This closes finding 1 of the RC.1 API audit: CARD-22, decision D20.
Reports:api/index.api.md, deno.api.md, bun.api.md and edge.api.md. api-extractor 7.59.4 generates them from the .d.ts files that tsup emits. I chose 7.59.4 over 7.60.0 because 7.60.0 was published only three days ago.
Scripts:npm run api regenerates the reports. npm run api:check runs in the CI build job, right after build, and fails when a report no longer matches the build.
Missing exports: the check also fails when a public signature uses a type that its entry point does not export (ae-forgotten-export). In the adapter entries, types that @green-tea/core exports (App, Logger, …) are allowed.
Gate verified: I tested it locally both ways. Adding a field to TlsOptions fails the check because the report is stale. Removing the export of DenoServeOptions fails it with ae-forgotten-export. After restoring both, the check passes.
Publishing: the reports are not published. npm ships dist/, and JSR ships src/.
CONTRIBUTING: documents the new check and the additions-only rule until stable.
CARD-22 items still open: the inventory in .specs/, the deprecation policy (D18), the matrix on the freeze commit, and owner sign-off.
This closes finding 1 of the RC.1 API audit: CARD-22, decision D20.
- **Reports:** `api/index.api.md`, `deno.api.md`, `bun.api.md` and `edge.api.md`. api-extractor 7.59.4 generates them from the `.d.ts` files that tsup emits. I chose 7.59.4 over 7.60.0 because 7.60.0 was published only three days ago.
- **Scripts:** `npm run api` regenerates the reports. `npm run api:check` runs in the CI `build` job, right after `build`, and fails when a report no longer matches the build.
- **Missing exports:** the check also fails when a public signature uses a type that its entry point does not export (`ae-forgotten-export`). In the adapter entries, types that `@green-tea/core` exports (`App`, `Logger`, …) are allowed.
- **Gate verified:** I tested it locally both ways. Adding a field to `TlsOptions` fails the check because the report is stale. Removing the export of `DenoServeOptions` fails it with `ae-forgotten-export`. After restoring both, the check passes.
- **Publishing:** the reports are not published. npm ships `dist/`, and JSR ships `src/`.
- **CONTRIBUTING:** documents the new check and the additions-only rule until stable.
CARD-22 items still open: the inventory in `.specs/`, the deprecation policy (D18), the matrix on the freeze commit, and owner sign-off.
CARD-22 / D20. api-extractor 7.59.4 is now a dev dependency.
scripts/api-report.mjs reads the declarations that tsup emits for each
export-map entry (".", "./deno", "./bun", "./edge") and writes
api/<entry>.api.md.
`npm run api` regenerates the reports. `npm run api:check` runs in the
CI build job and fails when a report differs from the build, so a
public type change has to arrive with its regenerated report in the
same PR.
The check also fails on ae-forgotten-export: a public signature that
names a type its entry does not export. In the adapter entries, a root
type such as App or Logger is accepted, because it is importable from
@green-tea/core; any other unexported type still fails. Both failure
paths were verified locally, by adding a field to TlsOptions and by
un-exporting DenoServeOptions.
The reports are not published: npm ships dist/ and JSR ships src/.
CONTRIBUTING documents the check and the additions-only rule.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
Deno lists package.json's dependencies in deno.lock, so the new dev
dependency added a line on the first deno test. CI's deno publish
--dry-run then aborted on the dirty tree.
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx
merged commit 56ee10cc23 into develop2026-10-30 14:39:38 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This closes finding 1 of the RC.1 API audit: CARD-22, decision D20.
api/index.api.md,deno.api.md,bun.api.mdandedge.api.md. api-extractor 7.59.4 generates them from the.d.tsfiles that tsup emits. I chose 7.59.4 over 7.60.0 because 7.60.0 was published only three days ago.npm run apiregenerates the reports.npm run api:checkruns in the CIbuildjob, right afterbuild, and fails when a report no longer matches the build.ae-forgotten-export). In the adapter entries, types that@green-tea/coreexports (App,Logger, …) are allowed.TlsOptionsfails the check because the report is stale. Removing the export ofDenoServeOptionsfails it withae-forgotten-export. After restoring both, the check passes.dist/, and JSR shipssrc/.CARD-22 items still open: the inventory in
.specs/, the deprecation policy (D18), the matrix on the freeze commit, and owner sign-off.CARD-22 / D20. api-extractor 7.59.4 is now a dev dependency. scripts/api-report.mjs reads the declarations that tsup emits for each export-map entry (".", "./deno", "./bun", "./edge") and writes api/<entry>.api.md. `npm run api` regenerates the reports. `npm run api:check` runs in the CI build job and fails when a report differs from the build, so a public type change has to arrive with its regenerated report in the same PR. The check also fails on ae-forgotten-export: a public signature that names a type its entry does not export. In the adapter entries, a root type such as App or Logger is accepted, because it is importable from @green-tea/core; any other unexported type still fails. Both failure paths were verified locally, by adding a field to TlsOptions and by un-exporting DenoServeOptions. The reports are not published: npm ships dist/ and JSR ships src/. CONTRIBUTING documents the check and the additions-only rule. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>