@assistant-ui/x-buildutils#
0.0.30#
Patch Changes#
0.0.29#
Patch Changes#
-
#7746
05a1f0d- fix: fail the build when emitted output imports an undeclared package (@okisdev)aui-buildkept package imports external without checking them against the manifest, so emitted JavaScript or declarations could import a package a consumer cannot resolve. A build now allows only the package's own name, its declared dependencies, peers and optional dependencies (with a@types/*package standing in for the module it types), itsimportsmap and node builtins. tsdown'sdeps.onlyImportcovers import statements; a pass over the finished declarations covers the two shapes it does not visit, an inlineimport("pkg").Typeand a/// <reference types="pkg" />directive.Test helpers,
testUtilsmodules and benches undersrcare no longer build entries. They were unreachable through every exports map and carriedvitestandink-testing-libraryimports into published output.@assistant-ui/react-streamdowndeclaresremark-rehype, whoseOptionstype it re-exports asRemarkRehypeOptions. -
#7752
6d74c3f- chore: cover the undeclared-import guard with tests (@okisdev)The allowlist and declaration scan behind the undeclared-import guard move unchanged to
src/declared-imports.ts, wherenode --testpins the@types/*mapping, specifier splitting, builtin listing and the two declaration shapes the scan reports. Test files stay out of the published tarball. -
#7920
546bf4c- fix(build): catch statement-level type imports in published declarations (@Kinfe123) -
#7760
84e0cf4- fix: emit declarations from one TypeScript program so two builds of the same commit produce the same.d.ts(@okisdev)aui-buildnow emits the unbundled.d.tsoutput in one TypeScript pass over the whole package, so two builds of the same commit produce identical declarations; the per-module emit it replaced followed the bundler's load order and let union member order, alias visibility and import specifiers move between builds. Declarations import barrels as the source does and keepimport type; the exported types are unchanged. A/// <reference>directive that must reach the published declarations now carriespreserve="true"in the source. -
#7722
4910704- fix: sort the entry list so two builds of the same commit emit identical javascript (@okisdev)
0.0.28#
Patch Changes#
-
#7591
408d5f4- fix: keep package imports external inaui-buildoutput without resolving them, and fail the build when anything fromnode_moduleswould be bundled.assistant-streamand@assistant-ui/react-generative-uinow depend on@types/json-schemainstead of shipping a copy of it underdist/node_modules. (@okisdev) -
#7545
4a7002e- chore: add the ts/test preset so colocated vitest suites typecheck against the Node and ES2024 environment they run in (@okisdev)
0.0.27#
Patch Changes#
- #7236
063b9ec- feat: define__AUI_PACKAGE_VERSION__from the built package's version in both builds and ship its ambient declaration through the shared tsconfig base (@okisdev)
0.0.26#
Patch Changes#
0.0.25#
Patch Changes#
-
#6543
317f769- chore: unpin rolldown now that 1.2.6 restores the re-exported types it dropped in 1.2.5 (@okisdev)
0.0.24#
Patch Changes#
-
#6445
d323dc8- refactor: derive a bundled commonjs build mode from the exports map, and drop metro's private tsdown config. a package whose exports targets are .cjs files now builds as a bundled cjs/node artifact with declared dependencies external and workspace devDependencies inlined; metro's dist is byte-identical to what its per-package config produced. (@okisdev)
0.0.23#
Patch Changes#
-
#5846
d54844a- fix: remap a package's own bare react imports to the react-free standalone-shim when it depends on tap without a react peer, so a reactless bridge's build output no longer imports React directly (@Yonom) -
#5855
e92769d- fix: count direct react dependencies when selecting the tap shim target (@Yonom)
0.0.22#
Patch Changes#
0.0.21#
Patch Changes#
- #5660
aa302ee- fix: only run the react compiler on tap-dependent packages that declare a react peer, so non-React framework bridges do not gain memo caches that run outside any render the compiler understands (@okisdev)
0.0.20#
Patch Changes#
0.0.19#
Patch Changes#
0.0.18#
Patch Changes#
0.0.17#
Patch Changes#
0.0.16#
Patch Changes#
0.0.15#
Patch Changes#
0.0.14#
Patch Changes#
0.0.13#
Patch Changes#
- #4385
ae59baf- feat: precompile packages with React Compiler (@Yonom)- aui-build runs React Compiler over packages that depend on tap and remaps
react/compiler-runtimeto the tap shim subpath, so compiled hooks and components work both in React components and inside tap resource renders @assistant-ui/tap/react-shimexportsuseMemoCache(tap inside a resource render,React.__COMPILER_RUNTIME.cotherwise, with a React 18 polyfill); new@assistant-ui/tap/react-shim/compiler-runtimesubpath mirrorsreact/compiler-runtime'scexport- tap implements
useSyncExternalStoreand a no-opuseDebugValue;useSubscribablenow builds onuseSyncExternalStoreso its store reads stay visible to the compiler AssistantProviderBaseopts out via"use no memo"because the runtime receives options through an effect inside a re-rendered child element
- aui-build runs React Compiler over packages that depend on tap and remaps
0.0.12#
Patch Changes#
-
#4274
a78e4f0- fix: omitonSuccessinstead of passingundefinedso the tsdown config type-checks underexactOptionalPropertyTypes(@Yonom)
0.0.11#
Patch Changes#
0.0.10#
Patch Changes#
0.0.9#
Patch Changes#
-
#4097
1e21076- build(x-buildutils): migrateaui-buildfromts.createProgramtotsdownwithunbundle: true(@Yonom)Tsdown drives both JS and
.d.tsemission. Reference-directive restoration is preserved (tsdown/oxc drop/// <reference>lines, so we re-inject them in abuild:donehook).deps.skipNodeModulesBundle: truekeeps the old "never bundle anything fromnode_modules" behavior — devDependencies stay external instead of getting inlined intodist.Side fixes the new strict dts pipeline surfaced:
@assistant-ui/tap: dropped thefnSymbolbrand from the publicResourceElementtype. It referenced an@internalsymbol thatstripInternalremoved from emit, leaving the published.d.tswith a dangling reference.@assistant-ui/store: un-markedClientSchemaas@internal. It was already re-exported from the public package index; treating the re-export as authoritative.
0.0.8#
Patch Changes#
-
#4050
693922b- fix(x-buildutils): include localtypes/intypeRootsso x-buildutils itself can resolve its ambientbrowser-processtypes (@Yonom)feat(react): re-export
Unstable_DirectiveFormatter,Unstable_DirectiveSegment,Unstable_TriggerItem, andunstable_defaultDirectiveFormatterfrom@assistant-ui/coreso downstream packages don't need to depend on@assistant-ui/coredirectly
0.0.7#
Patch Changes#
0.0.6#
Patch Changes#
0.0.5#
Patch Changes#
- c988db8: chore: update dependencies
0.0.4#
Patch Changes#
- 376bb00: chore: update dependencies
0.0.3#
Patch Changes#
- 349f3c7: chore: update deps