Skip to content

Release 0.6.0 - #9

Merged
cudoment merged 1 commit into
mainfrom
release/0.6.0
Oct 1, 2026
Merged

cudoment merged 1 commit into
mainfrom
release/0.6.0

Conversation

@cudoment

@cudoment cudoment commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Bumps every package to 0.6.0 and pins the sibling dependencies to it. The release notes are in README.md and README.ko.md under ### 0.6.0.

  • Supported host versions and the compatibility promise before 1.0.0 in docs/README.md; cudoc-docusaurus and cudoc-eleventy declare their supported host ranges as peers; Next.js example on 16.3.8.
  • Every host guide is followed step by step in a new project from the packed packages (tests/scripts/guide-consumers.mjs), including an npm audit comparison with its example; the Docusaurus and Nextra guides carry the examples' overrides.
  • Safer output: the library and prepared embeds are published together, a second writer is refused, and recovery touches only directories cudoc owns.
  • Exports keep private documents private: deployed addresses in bound outputs, and a resource that would copy a private source stops the export under every policy.
  • Embedded sections carry raw HTML resource paths, climbing relative paths and Docusaurus images; replace on a section inside a list item keeps its structure, and the cases that cannot are refused and reported by cudoc check as unreplaceable-embed-section.
  • cudoc check reads the library without writing, reports cyclic-embed, places embed diagnostics on their own fence and checks an embed's copy after its rules.
  • VitePress and Eleventy render through the host for everything cudoc does not change, and collect, embed and render documents saved with \r\n line endings.
  • publish.yml requires a green CI run of the same commit on main and recovers missing tags and releases; pages.yml publishes the export showcase.

Verified on the release machine: npm ci, npm run build (and build:webpack in next-mdx) and npm audit in each of the six examples (only the VitePress advisories tabled in examples/README.md remain), npm run typecheck, npm run format:check, CUDOC_STRICT=1 npm test (61 files, 1606 tests) and npm run test:scripts (all five, including the guide check and the export showcase comparison).

Every package is already on npm, and each has a trusted publisher for this repository and publish.yml, so the whole release goes out from the workflow.

…d-section replacement

Every host guide now states the releases it is tested against and what a
minor or a patch release keeps compatible before 1.0.0. The Docusaurus
and Eleventy adapters declare the host ranges they support as peers, the
guides show every file they ask for, and each guide is followed step by
step in a new project from the packed packages before a release, failing
when the site it builds reports an advisory its example does not. The
Docusaurus and Nextra guides pin the fixed host dependencies the
examples pin, and the Next.js example moves to 16.3.8.

Collection keeps the last good library when a pass fails: the library
and its prepared embeds are published together, a second writer is
refused, and recovery after a killed build touches only directories that
carry cudoc's ownership marker. A root nested in another owns its files,
an index document takes its directory's route when routes end in a
slash, and a link to a directory reaches that index everywhere.

The export protects private documents. A link to one keeps its deployed
address in the bound print HTML, PDF and Word, and a resource that would
copy a private document's source, through a root, an asset directory, a
link or the library itself, stops the export under every link policy.
Copied files are written as URLs, so names with spaces or `%` load.

Embedded sections carry their resources and their structure. Raw HTML
`poster`, `data`, `srcset` and `xlink:href` paths move with the section,
a relative path that climbs out of the collection keeps pointing at the
same file, Docusaurus images are recorded as images when collected, and
a `replace` rule on a section inside a list item rewrites it into the
structure that was collected. Where part of the enclosing block would
stay in the text, a quote's `>`, a footnote's indentation or a
container's closing line, the rule is refused with a message, and
`cudoc check` reports the same case as `unreplaceable-embed-section`.

`cudoc check` reads the collected library without writing, reports
embeds that include themselves, places each embed diagnostic on its own
fence, and inspects an embed's copy after its rules have run, so it
fails where the build fails.

On VitePress and Eleventy the host renders everything cudoc does not
change, so highlighting, script blocks, emoji, tables of contents and
the site's own containers keep working. A document saved with `\r\n`
line endings is collected, embedded and rewritten as one saved with
`\n`, on Eleventy too, and image alt text matches the remark hosts.

The publish workflow requires a green CI run of the same commit on main,
and a release job creates any tag or GitHub release a previous run left
missing. The committed export showcase is published to GitHub Pages.

Upgrading from 0.5 changes a few calls; the release notes in README.md
and README.ko.md list them under `### 0.6.0`.
@cudoment
cudoment merged commit d5b94b2 into main Oct 1, 2026
6 checks passed
@cudoment
cudoment deleted the release/0.6.0 branch October 1, 2026 02:12
cudoment added a commit that referenced this pull request Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant