Version Packages#39
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
657cf27 to
2e091ff
Compare
2e091ff to
5e17ab6
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
leadtype@0.2.0
Minor Changes
e923e9f: Add
leadtype/nextframework adapter and formalize the core/adapter boundary.leadtype/nextexposes three server-only helpers for Next.js App Router:createGenerateStaticParams(...),createLoadPageData(...), andcreateDocsRouteHandler(...). The route handler wrapscreateAgentMarkdownResponseso a docs app can serve raw markdown, handleAccept: text/markdownnegotiation, and detect AI user agents from a one-lineroute.ts. The companionleadtype/next/clientsubpath exports auseLeadtypeSearchReact hook plus a framework-freecreateSearchClientfactory that lazy-loadssearch-index.json/search-content.jsonand runs BM25 per keystroke.reactis now an optional peer dependency forleadtype/next/client. Server-only consumers never pull in React.Documents the core/adapter boundary in a new
docs/reference/architecturepage: leadtype core has zero framework runtime deps, adapters live at flatleadtype/<framework>subpaths, and no leadtype package — core or adapter — ever ships rendered DOM. State primitives (hooks, composables, stores, handler factories) are allowed;<SearchBox>-style components are not. The docs also name the planned native adapter shapes for Nuxt, SvelteKit, Astro, TanStack Start, Vue search, and Svelte search without exporting those APIs yet. The boundary is now enforced by tests inpackages/leadtype/src/internal/package-surface.test.tsthat scan import graphs and fail if framework runtimes leak into core or one adapter imports from another.Patch Changes
c7fcbf6: Add first-class docs i18n support with locale-aware generation, localized source loading, per-locale search/LLM/readability artifacts, and a new
leadtype/i18nhelper surface. Locale-scoped search generation now uses URL-path document ids to align generated indexes with the source API.844a94d: Default
<ExtractedTypeTable>and<AutoTypeTable>path resolution to the Leadtype source root instead ofprocess.cwd()/docs.This fixes generated docs for source roots such as
.c15tor.leadtype, wherepath="./packages/..."should resolve against the configured source root. Source-MDX consumers can now passtypeTableBasePath/typeTableStrictthroughcreateDocsSource()or usecreateMdxSourcePlugins()for bundler-level configuration. Failed type extraction now emits a visible warning by default and can fail generation in strict mode.This changes the bare
mdxSourcePluginsdefault for bundler consumers: when Leadtype can see the source MDX file path, it derives the base path from the firstdocspath segment instead of always usingprocess.cwd()/docs. Projects that intentionally keep referenced TypeScript files under their docs folder should switch tocreateMdxSourcePlugins({ typeTableBasePath: path.resolve(process.cwd(), "docs") }).