release: 2.1.0 - bundle React UI in CLI, stabilize guide routing, and harden packaging checks#11
Merged
night-slayer18 merged 9 commits intomainfrom Feb 9, 2026
Merged
release: 2.1.0 - bundle React UI in CLI, stabilize guide routing, and harden packaging checks#11night-slayer18 merged 9 commits intomainfrom
night-slayer18 merged 9 commits intomainfrom
Conversation
sanitize theme values before applying them to the DOM add ErrorBoundary fallback to protect route rendering refactor search index reset path and update related tests Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
replace duplicated UI doc model types with core type imports add tsconfig path mapping for core type resolution in UI Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
handle browser open failures in serve command with warning fallback replace broad compilerOptions any-casts with typed conversion helpers use fs.rm recursive cleanup and remove lint-prone infinite loop pattern Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
add semver and JSON/file validation to version script set CLI author metadata make e2e performance budget configurable via environment variable Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
generate deterministic guide IDs from relative markdown paths encode/decode route IDs safely in UI links and page params switch guide route to /guide/:id/:slug and keep readable slugs add unit/e2e coverage for guide navigation and section edge branches Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
prepare ui-dist during prepack and include it in published files remove runtime UI build dependency from static generation path prefer bundled assets in buildReactUI and keep HTML fallback safety update CLI tests for bundled-asset resolution behavior Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
verify npm pack contains ui-dist assets required for React output add packed-tarball smoke test that runs autodocs build in temp fixture wire checks into preflight workflow and root npm scripts document local invocation and bundled-UI behavior in CLI README Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
add examples-plugin guards for identity stability and no-output path fix eslint/js config handling for js files and generated ui-dist ignore remove unnecessary jest global comments causing lint noise Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
update root and workspace package versions to 2.1.0 sync internal dependency and peerDependency ranges to ^2.1.0 update core VERSION constant and harden scripts/version.js to keep internal ranges aligned Signed-off-by: night-slayer18 <samanuaia257@gmail.com>
✅ Deploy Preview for autodocshq ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
|
🚀 Deployed on https://pr-11--autodocshq.netlify.app |
Preview DeploymentYour preview is ready. URL: https://pr-11--autodocshq.netlify.app Deployed from commit fe1d91f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR upgrades the monorepo from
2.0.0to2.1.0and fixes the npm-install path so@opensyntaxhq/autodocsreliably generates React UI output onautodocs build.What Changed
CLI packaging/runtime
Bundled UI assets into CLI package (
ui-dist) for publish artifacts.Added
prepare-ui-dist+prepackflow in CLI so tarballs include React UI files.Updated static build resolution to prefer bundled CLI UI assets and keep HTML fallback as safety.
Removed runtime dependence on building UI during consumer execution.
Packaging verification and CI gates
Added pack verification script to assert
ui-dist/index.htmland UI assets exist in tarball.Added tarball smoke test that installs packed CLI into a temp fixture and runs
autodocs build.Wired these checks into preflight CI.
Added root scripts for pack verification and smoke testing.
Guide/route correctness
Switched guide routing to ID-based path (
/guide/:id/:slug?) for stable links.URL-encode/decode route IDs in UI paths and page resolution.
Updated markdown plugin guide IDs to deterministic short hashes derived from relative paths.
Updated guide metadata fields (
fileName,module,source.file) to relative path semantics.Test coverage improvements
Added/expanded unit tests for guide and section pages (including edge branches).
Added UI route/link tests for guide IDs.
Added Playwright guide navigation test.
Added core plugin guard tests to ensure examples plugin does not mutate entry identity fields.
Tooling/release hygiene
Bumped versions to
2.1.0across root/workspaces and core version constant.Improved
scripts/version.jsto also sync internal dependency/peer/dev/optional ranges.ESLint config updates for JS config files and generated UI-dist ignores.
Validation
npm run buildnpm run type-checknpm run lintnpm run testnpm run test:coveragenpm run formatnpm run format:checkNotes for Upgraders
autodocs buildafter upgrading to regeneratedocs-distanddocs.jsonwith the new format.