You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a13b6c9
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: drop groupWholeModules, as metadata's chunks hold whole modules
From the review. A module is one file: parseApiDoc sets every entry's
api once per file, and worker.stream never splits an item, so each of
metadata's chunks already holds whole modules. section-pages reads its
input as it comes with toBatches instead of regrouping it, and the
helper and its tests go.
Co-authored-by: Aviv Keller <me@aviv.sh>
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .changeset/stream-metadata.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,4 @@
3
3
'@doc-kit/generator-react': minor
4
4
---
5
5
6
-
`metadata` and `section-pages` stream their input: with more than one thread, they start on their dependency's first chunk, so parsing, metadata and section pages overlap. The generated files are unchanged. `groupWholeModules`, from `@doc-kit/core/utils/generators.mjs`, regroups streamed entries so that each batch holds whole modules, and `toBatches` gives an input that is whole or streamed as batches.
6
+
`metadata` and `section-pages` stream their input: with more than one thread, they start on their dependency's first chunk, so parsing, metadata and section pages overlap. The generated files are unchanged. `toBatches`, from `@doc-kit/core/utils/generators.mjs`, gives an input that is whole or streamed as batches.
0 commit comments