Repository navigation
Commit f0b33ee
docs(spec): describe the shared-chunk bundle layout in three source comments (#25975)
Fixes #25811
Clause-②: no
Metadata-protocol: none
## What changed
Three source comments in `@objectstack/spec` still described the
per-entry, self-contained bundle layout that the one-module-graph build
replaced. They now describe the shared-chunk layout stated in
`packages/spec/README.md` (Export surfaces) and the `oneModuleGraph`
docblock in `packages/spec/tsup.config.ts`: a module two entries reach
ships once, in a shared chunk, and an entry links every chunk its own
module graph touches.
- `packages/spec/src/index.ts`: the standing-principle paragraph no
longer says "self-contained bundle"; it keeps the cost rule and dates
the +60.1 KB `/shared` measurement to the former per-entry bundles.
- `packages/spec/src/conversions/registry.ts`: only the `@__PURE__` note
(the sentence that cited `splitting: false`). The PURE-annotation
reasoning is unchanged and still holds per chunk.
- `packages/spec/src/api/package-api-assembled.zod.ts`: the module
TSDoc.
- `content/docs/references/api/package-api-assembled.mdx`: regenerated
with the spec package's `gen:docs` script, never hand-edited; the diff
is the same sentence, two lines.
Landing point matches the claimed file surface exactly; the real
producer of all four lines was in those files (measured on origin/main,
`grep` for the three stale phrases found them only there).
## Not changed
No code, key, export or behaviour. Hunks elsewhere in `registry.ts`
belong to other in-flight cards and were not touched.
## Changeset rule
A changeset is included (`patch`, `@objectstack/spec`). The os-dev fast
lane lists comments as not publishing, but the measured criterion is
what `files[]` ships: after a build, the new sentences are present in
`packages/spec/dist/index.d.ts` and `dist/api-assembled/index.d.ts`
(TSDoc rides in the declaration files), so the published content moved
and `skip-changeset` does not apply.
## Verification
- `pnpm --filter @objectstack/spec build` exit 0, then `gen:docs` exit
0: 229 files generated, exactly one tracked file changed.
- Local gate list from `dispatch-gates.mjs --commands` (108 families):
105 run, all exit 0. Three are NOT MEASURED, reason:
`check:dual-build-cjs-loads` and `check:lean-entry-closure` exit 3
(PREREQUISITE NOT MET, they read built dist of packages this card does
not touch), `check-plugin-teardown-shape --self-test` needs an
unshallowed clone. CI runs the full farm.
## Acceptance notes
The branch is `claude/project-thread-mybepv`, a platform-assigned branch
(this session can push only that one), not the usual issue-named branch.
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 05f7758 commit f0b33ee
5 files changed
Lines changed: 26 additions & 11 deletions
File tree
- .changeset
- content/docs/references/api
- packages/spec/src
- api
- conversions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18238 | 18238 | | |
18239 | 18239 | | |
18240 | 18240 | | |
18241 | | - | |
18242 | | - | |
18243 | | - | |
18244 | | - | |
| 18241 | + | |
| 18242 | + | |
| 18243 | + | |
| 18244 | + | |
| 18245 | + | |
18245 | 18246 | | |
18246 | 18247 | | |
18247 | 18248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
0 commit comments