Fluixi is experimental: APIs can change between alpha releases. Pin exact versions. Release notes

Changelog

Every release of the Fluixi packages, newest first.

1.0.0-alpha.115

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

@fluixi/core

@fluixi/cron

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • List items that are fragments with a conditional text before a component now keep their server text after hydration.

@fluixi/head

@fluixi/jobs

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

@fluixi/realtime

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.114

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

@fluixi/core

  • A lazy component now opens its hydration key scope regardless of whether its module was already loaded, ensuring consistent hydration depth between server and browser.

@fluixi/cron

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • A Suspense fallback that is not shown now takes no hydration keys on the server, as in the browser.

@fluixi/head

@fluixi/jobs

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

@fluixi/realtime

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.113

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

  • Each CDN global file now includes an unminified development copy under dist/cdn/dev/, and the @fluixi/cdn package ships *.development.js files and corresponding map files that point to the development bundles.
  • The CDN files and import-map bundles are now production builds, so development warnings and devtools reporting are omitted and the files are smaller.

@fluixi/cli

@fluixi/compiler

  • The new hydratable compiler option (default true) can be set to false for code that is never server rendered to omit hydration markers, producing smaller components and runtime. @fluixi/start apps with ssr: false get it automatically.
  • Components now compile to direct createComponent calls instead of a memo wrapper, and each read of props.children rebuilds the children; read props.children once into a local variable or use readChildren(() => props.children). Development builds warn when a component reads it twice in one turn.
  • ref={el} now assigns the element to a let, var, or parameter variable, whereas previously the variable remained undefined.
  • The Vite plugin now produces production browser builds that omit the runtime server rendering branches, resulting in smaller bundles of about 65 to 165 bytes gzipped.
  • The Vite plugin now defines __DEV__ as false in production builds, causing Fluixi development code to be omitted from the bundle while preserving any user-defined __DEV__ value.

@fluixi/core

  • Each CDN global file now includes an unminified development copy under dist/cdn/dev/, and the @fluixi/cdn package ships *.development.js files and corresponding map files that point to the development bundles.
  • window.Fluixi is now set only in development, and production pages keep the empty data-fluixi attribute without a global variable.
  • The CDN files and import-map bundles are now production builds, so development warnings and devtools reporting are omitted and the files are smaller.
  • llms.txt now says the APIs are experimental and change between alpha releases; pin exact versions.

@fluixi/cron

@fluixi/devtools

  • The component tree now displays each directly called component once, with the outermost component rendered first, nested components rendered in order, and the root inserted into the element where the app is mounted.

@fluixi/di

@fluixi/dom

  • Each CDN global file now includes an unminified development copy under dist/cdn/dev/, and the @fluixi/cdn package ships *.development.js files and corresponding map files that point to the development bundles.
  • The new hydratable compiler option (default true) can be set to false for code that is never server rendered to omit hydration markers, producing smaller components and runtime. @fluixi/start apps with ssr: false get it automatically.
  • Components now compile to direct createComponent calls instead of a memo wrapper, and each read of props.children rebuilds the children; read props.children once into a local variable or use readChildren(() => props.children). Development builds warn when a component reads it twice in one turn.
  • A Promise passed as a JSX child now renders nothing and triggers a development-only warning, so load async data with a resource and read it inside <Suspense>.
  • Every reactive member of a children array now updates on its own, plain functions included, so a change to one member no longer re-runs its siblings or rebuilds components they built, and the server-only element object handling now loads with the jsx-runtime, reducing bundle size.
  • window.Fluixi is now set only in development, and production pages keep the empty data-fluixi attribute without a global variable.
  • The CDN files and import-map bundles are now production builds, so development warnings and devtools reporting are omitted and the files are smaller.
  • The development export now provides a dev build in dist/dev with warnings and devtools reporting, while dist remains the production build without them.
  • insert now typechecks mixed arrays of children, its marker argument accepts null, and createComponent is typed to return the component value instead of a thunk.
  • JSX event handlers now type e.currentTarget as the element and, in input and change handlers on an input, select or textarea, e.target as that control (elsewhere Element), and ref can be passed a variable reference.
  • createHotModule now ignores a hot object without a data property, allowing the module to load and run as if hot reload were not present.
  • Devtools now shows a hot-reloaded component only once at its declaration instead of three times, and the internal option of createMemo now reaches the watcher.
  • ref={el} now assigns the element to a let, var, or parameter variable, whereas previously the variable remained undefined.
  • render() and hydrate() now execute the app code only once, and a signal read during app building no longer triggers a full rebuild when it changes.
  • The Vite plugin now produces production browser builds that omit the runtime server rendering branches, resulting in smaller bundles of about 65 to 165 bytes gzipped.
  • Elements from a compiled template now belong to the page document when a ref receives them, and custom elements in a template are upgraded immediately.

@fluixi/head

@fluixi/jobs

@fluixi/jsx

  • Every reactive member of a children array now updates on its own, plain functions included, so a change to one member no longer re-runs its siblings or rebuilds components they built, and the server-only element object handling now loads with the jsx-runtime, reducing bundle size.

@fluixi/oauth2

@fluixi/reactive

  • Each CDN global file now includes an unminified development copy under dist/cdn/dev/, and the @fluixi/cdn package ships *.development.js files and corresponding map files that point to the development bundles.
  • The CDN files and import-map bundles are now production builds, so development warnings and devtools reporting are omitted and the files are smaller.
  • The development export now provides a dev build in dist/dev with warnings and devtools reporting, while dist remains the production build without them.
  • Devtools now shows a hot-reloaded component only once at its declaration instead of three times, and the internal option of createMemo now reaches the watcher.
  • Store setter now accepts array paths like [0].text, users[*].name, [0][1], supports wildcard writes that take the element, optional steps, and writes of three and four steps; createDebouncedResource(empty string, fetcher) now lets setQuery accept any string.

@fluixi/realtime

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

  • The new hydratable compiler option (default true) can be set to false for code that is never server rendered to omit hydration markers, producing smaller components and runtime. @fluixi/start apps with ssr: false get it automatically.
  • Server rendering of class elements now resides in @fluixi/web-components/server, so browser bundles no longer include it. Apps built with @fluixi/start need no change; elsewhere, import @fluixi/web-components/server before rendering on the server.
  • The Vite plugin now defines __DEV__ as false in production builds, causing Fluixi development code to be omitted from the bundle while preserving any user-defined __DEV__ value.

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

  • Each CDN global file now includes an unminified development copy under dist/cdn/dev/, and the @fluixi/cdn package ships *.development.js files and corresponding map files that point to the development bundles.
  • The CDN files and import-map bundles are now production builds, so development warnings and devtools reporting are omitted and the files are smaller.

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

  • Floor, Ceil and Trunc now return correct values for negative numbers (e.g., Floor<-1.5> is -2, Ceil<-1.5> is -1, Trunc<-1.5> is -1) and set now types a write to the elements an index list, a range, or a wildcard selects as one element.

@fluixi/vite-plugin

  • The new hydratable compiler option (default true) can be set to false for code that is never server rendered to omit hydration markers, producing smaller components and runtime. @fluixi/start apps with ssr: false get it automatically.
  • The Vite plugin now produces production browser builds that omit the runtime server rendering branches, resulting in smaller bundles of about 65 to 165 bytes gzipped.
  • The Vite plugin now defines __DEV__ as false in production builds, causing Fluixi development code to be omitted from the bundle while preserving any user-defined __DEV__ value.

@fluixi/web-components

  • The provide and consume methods are removed from class elements; use provideContext(this, context, value) and consumeContext(this, context) from @fluixi/web-components instead. Update any code that calls element.provide(...) or element.consume(...) to use these functions.
  • Server rendering of class elements now resides in @fluixi/web-components/server, so browser bundles no longer include it. Apps built with @fluixi/start need no change; elsewhere, import @fluixi/web-components/server before rendering on the server.
  • The development export now provides a dev build in dist/dev with warnings and devtools reporting, while dist remains the production build without them.
  • Element hydration now reaches every copy of the package; when a bundler loads it twice (pre-bundled with the elements, and again for the hydrate entry), server-rendered elements adopt their markup instead of rendering again.

create-fluixi

1.0.0-alpha.112

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

@fluixi/core

@fluixi/cron

@fluixi/devtools

@fluixi/di

@fluixi/dom

@fluixi/head

@fluixi/jobs

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

@fluixi/realtime

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

  • New apps now include AGENTS.md pointing coding assistants to the llms.txt of installed fluixi packages and listing the npm scripts, and CLAUDE.md imports it.

1.0.0-alpha.111

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

@fluixi/core

  • The package now ships llms.txt with coding assistant rules and a link to the docs, readable from node_modules.

@fluixi/cron

@fluixi/devtools

@fluixi/di

@fluixi/dom

@fluixi/head

  • HeadLink now replaces the Link component exported from @fluixi/head. Import HeadLink from @fluixi/head or @fluixi/start/head instead of Link.

@fluixi/jobs

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

@fluixi/realtime

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.110

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

  • Import maps now point at bundled copies shipped in the package, so a page importing @fluixi/core fetches about 25 files instead of about 180.

@fluixi/cli

@fluixi/compiler

  • hotRewrite now swaps component modules in place on save.
  • A module registering an element class with defineCustomElement now accepts hot updates for it, and classes using #private fields trigger a page reload on update.
  • hotRewrite now accepts a keepState option, and files containing // @refresh reset start fresh.
  • A module registering its element class with customElements.define now reloads the page on save.
  • // @refresh reload now reloads the page on save. A module exporting a class is no longer hot-swapped.
  • Hot reload now serves API route GET or POST handlers directly instead of wrapping them as a component, preventing empty responses in development.
  • The hydratable compiler option is no longer available. Remove any hydratable setting from your compiler configuration.
  • The Vite plugin now compiles JSX in an app's .js files, while leaving dependency .js files untouched.
  • The backend option now accepts only imperative, the sole backend, and the unused control IR node kind is removed.
  • The build now fails on broken HTML templates, prints warnings with file positions (including accessibility warnings such as img without alt) at build time, and no longer reports using if and each together on one element as an error.

@fluixi/core

  • The router now announces each client navigation to screen readers and moves focus to the main element, a new announce(text) export speaks custom text, and the announce prop on Router accepts a focus target or false to disable it.
  • Link now loads its target route code on hover, focus or touch (disable with preload={false}), and a new usePreloadRoute hook lets you preload navigation without a link.
  • @fluixi/core now exports createUniqueId and readChildren.
  • The router now reloads the data of routes on screen when hot reload changes a route data loader.
  • load:interaction now listens on the component's own nodes, and any interaction that occurred before the code arrived is replayed once it renders.
  • isServer and isClient now replace isServerEnvironment and isClientEnvironment in @fluixi/core/server. Update imports to use isServer and isClient instead of the removed names.
  • The default export's VERSION, getFrameworkInfo() and the CDN global now report the published version instead of 0.0.1.
  • SuspenseList now coordinates its Suspense children from compiled JSX, revealing forwards in order and collapsing the tail to show a single fallback.

@fluixi/cron

@fluixi/devtools

  • Hot updates now appear as separate timeline commits and rebuilt elements are outlined.

@fluixi/di

  • An app initializer registered after the page started rendering now warns in dev even when @fluixi/di is first loaded by a route; before, it never ran and nothing said so.

@fluixi/dom

  • createHotModule now keeps the state of signals and stores of a swapped component and its children, and disposes the old build on swap.
  • @fluixi/dom/hot now enables component hot reload in development.
  • The new createUniqueId generates an ID that is consistent between server render and the hydrated page for label-for and ARIA references.
  • accessKey and value now accept an accessor, and class/className now accept a string, a list, a class map, or an accessor (ClassValue).
  • createDynamicElement now builds its children once, preventing multiple lazy evaluations per element.
  • renderToString with hydrationKeys false writes dynamic elements without the hydration markers around their children.
  • render() now adds version information to window.Fluixi.versions instead of overwriting window.Fluixi when a CDN build already put its API there.
  • Island now reads its props once without a destructure.
  • Server elements now have a dataset and toggleAttribute.
  • Hydration mismatch warnings now appear in the browser during development, and text that the server rendered differently from the client is reported.
  • renderStarted() now indicates if the first-render work of the request or page has started.

@fluixi/head

@fluixi/jobs

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

  • combineSignals now emits each combined value once at the start and on each write, instead of once per source signal.
  • The library now exports setHotState which lets dev tooling choose the start value of new signals and stores.
  • The package descriptions now correctly state that @fluixi/reactive does not claim RxJS interop, @fluixi/server does not claim streaming, and @fluixi/vite-plugin does not mention a JSX backend.
  • A store key now does not allocate a closure per key when hot reload is off.
  • startTransition and useTransition now keep the current resource value during a transition, showing no Suspense fallback while isPending is true and returning a promise that resolves when the loads finish; the initial load still suspends.

@fluixi/realtime

@fluixi/router

@fluixi/server

  • The package descriptions now correctly state that @fluixi/reactive does not claim RxJS interop, @fluixi/server does not claim streaming, and @fluixi/vite-plugin does not mention a JSX backend.

@fluixi/session

@fluixi/start

  • A page shell can now be a component (src/document.tsx) that renders Html, Head, Main and Scripts from @fluixi/start/document per request, allowing request-derived values like lang or a theme class, while only the app inside Main hydrates and index.html remains the default.
  • The document component now works in an SPA (ssr false: rendered once to index.html at build), with prerendering, and on the Cloudflare, Netlify and Vercel adapters.
  • The Img component from @fluixi/start/image now provides an unstyled <img> with srcset, width/height, sizes, priority, fill, quality, loader, and unoptimized options. createImageHandler moves to @fluixi/start/image/server.
  • The dev server now reports when a document component replaces an existing index.html.
  • The image endpoint now finds sharp installed by the app under a strict layout (pnpm), serves resized images while keeping the source encoding (a PNG stays a PNG with its transparency and an SVG passes through), and caps the request q at the configured quality.
  • The build now includes a static: true prerender option that lists links to non-prerendered pages and pages calling server functions, which fail on a static host.
  • Netlify and Vercel builds no longer copy public/ into the server function; the platform serves those files itself.
  • The route scan now warns when two page files answer the same address: only the first renders.
  • The build now refuses to publish env names ending in TOKEN, API_KEY, APIKEY, DSN, DATABASE_URL or SECRETS (e.g., GITHUB_TOKEN, STRIPE_API_KEY), while TOKEN_ENDPOINT still passes.
  • The image endpoint now optimizes images in development when sharp is installed, instead of serving them untouched.

@fluixi/storage

@fluixi/template-parser

  • The build now fails on broken HTML templates, prints warnings with file positions (including accessibility warnings such as img without alt) at build time, and no longer reports using if and each together on one element as an error.
  • <div><span>x</div> now reports Unclosed <span>, the element left open; before, it named the <div>, whose closing tag the <span> had taken.

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

  • The editor now shows the HTML template parser's repaired-tag error and missing-alt accessibility warnings (code 9002), and warning 9001 no longer fires for a child accessor but still fires when the accessor is mixed with text inside an attribute.

@fluixi/utils

@fluixi/vite-plugin

  • The hot option now keeps a swapped component's state when keepState: true is set.
  • Editing a component in dev now swaps it in place and keeps the rest of the page state, instead of reloading the page; set hot to false to turn this off.
  • Hot reload now reaches a custom element written in plain TypeScript, and leaves packages linked from outside the app alone.
  • The package descriptions now correctly state that @fluixi/reactive does not claim RxJS interop, @fluixi/server does not claim streaming, and @fluixi/vite-plugin does not mention a JSX backend.

@fluixi/web-components

  • Element renders now keep their state under keepState and a class redefined by hot reload gets the new methods, causing instances to re-render.
  • In dev, an element redefined by hot reload now takes the new setup and its instances on the page rebuild, keeping their props.
  • A string assigned to a prop.any prop is now kept as is again.
  • On the server, an element that writes dataset, style, classList or attributes from render now writes them into the HTML and attachInternals is accepted.

create-fluixi

  • --document now starts the app with its page shell as src/document.tsx (or src/document.ts with --html) instead of index.html.

1.0.0-alpha.109

@fluixi/api

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/auth

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/babel-plugin-jsx

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/cdn

@fluixi/cli

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/compiler

  • Props and children written as !x(), -x(), x()!, x() as T or x() satisfies T now update when x changes.
  • An imported component that has a load: and also a use without load: in the same file now treats both uses as eager, as with a resolve rule. A warning now appears when load:never is placed next to an eager use of the same component. When load: is used on NS.default, the message now names the namespace import. In HTML templates, a hole in a load: value is now refused like JSX, and using load: on <${Chart}> now prompts a message to write the bare tag.
  • load:never now excludes the component from the browser build (no import and no chunk), while the server still renders it and hydration preserves the content, resulting in an empty placeholder on pages reached via client navigation.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.
  • props destructuring at the top of a component body now remains reactive and is treated as a destructured parameter, and a build warning is emitted when a props destructure runs only once during setup (such as inside an if block or shared const).
  • Destructured props read under as, ! or satisfies are now rewritten to prop reads.
  • Spread children are now rendered as content with JSX children taking precedence, and spreads that gain a key become bound while those that lose a key are cleared, preserving bindings for unchanged keys.
  • A spread computed from signals ({...attributes()}) now stays reactive on its element and no longer rebuilds what creates it.
  • Static-attribute custom elements, elements defined with defineElement, and slotted(name) now render correctly on the server, and after hydration children placed between server-rendered tags appear where render() puts them, with a new afterHydrationPass(fn) API available.

@fluixi/core

  • fluixiRoutesPlugin, scanRoutes and generateRouteModule are now internal to @fluixi/start and @fluixi/core/plugins is removed. Import fluixi from @fluixi/vite-plugin instead. @fluixi/core no longer lists the compiler, the Vite plugin or vite-plugin-node-polyfills as peers.
  • ErrorBoundary now renders its fallback in the HTML when a child's effect fails during server render, instead of outputting an empty element.
  • ErrorBoundary fallback rendered by the server now uses the error status (400-599 or 500) as the response status, matching the router. A fallback can call setResponseStatus to set another; errorResponseStatus(error) returns the status the rule picks.
  • provideAppInitializer now runs before the app renders, executing per request on the server and once in the browser before hydration, and beforeFirstRender tasks are run once per request or page.
  • load: deferred components now retain their server-rendered content during hydration until the component code loads, and components can return keepServerContent while hydrating to preserve their slot content.
  • A page hydrated from the server now watches its routeDeps and reloads its data when they change.
  • load:never now excludes the component from the browser build (no import and no chunk), while the server still renders it and hydration preserves the content, resulting in an empty placeholder on pages reached via client navigation.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.
  • With an ErrorBoundary around <Outlet />, a failing route data load now shows the boundary on that page, and navigating to another route clears the error.
  • A route error with a status from 400 to 599 now returns that status on the server (404 shows the built-in not-found view); any other error answers 500, a page whose data fails inside an element now renders the error view on the server instead of an empty element, and the reactive ErrorBoundary now provides a caught() method that returns the error immediately and untracked.
  • A route whose routeData fails without an ErrorBoundary now shows a built-in error view in place of that route while keeping layouts, and the new Router option error lets you replace that view.
  • A page that throws while the server renders it now returns a 500 response with the router error view while preserving layouts, instead of a 200 empty shell.

@fluixi/cron

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/devtools

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/di

  • provideAppInitializer now runs before the app renders, executing per request on the server and once in the browser before hydration, and beforeFirstRender tasks are run once per request or page.
  • inject() now throws a clear error when called outside an injection context, and app initializers now run in the root injection context as documented.
  • inject() in middleware now creates a separate root injector for each request that is disposed when the response is ready, and requestScope() and endRequestScope() are added to @fluixi/dom.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/dom

  • ErrorBoundary now renders its fallback in the HTML when a child's effect fails during server render, instead of outputting an empty element.
  • ErrorBoundary fallback rendered by the server now uses the error status (400-599 or 500) as the response status, matching the router. A fallback can call setResponseStatus to set another; errorResponseStatus(error) returns the status the rule picks.
  • provideAppInitializer now runs before the app renders, executing per request on the server and once in the browser before hydration, and beforeFirstRender tasks are run once per request or page.
  • load: deferred components now retain their server-rendered content during hydration until the component code loads, and components can return keepServerContent while hydrating to preserve their slot content.
  • inject() in middleware now creates a separate root injector for each request that is disposed when the response is ready, and requestScope() and endRequestScope() are added to @fluixi/dom.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.
  • Portal now renders its children only on the client after hydration, avoiding server-side errors.
  • With an ErrorBoundary around <Outlet />, a failing route data load now shows the boundary on that page, and navigating to another route clears the error.
  • A route whose routeData fails without an ErrorBoundary now shows a built-in error view in place of that route while keeping layouts, and the new Router option error lets you replace that view.
  • Spread children are now rendered as content with JSX children taking precedence, and spreads that gain a key become bound while those that lose a key are cleared, preserving bindings for unchanged keys.
  • A spread computed from signals ({...attributes()}) now stays reactive on its element and no longer rebuilds what creates it.
  • A spread prop backed by a getter that is undefined when the element is created now updates once it has a value, showing the attribute and property after the element is created.
  • A page that throws while the server renders it now returns a 500 response with the router error view while preserving layouts, instead of a 200 empty shell.
  • Static-attribute custom elements, elements defined with defineElement, and slotted(name) now render correctly on the server, and after hydration children placed between server-rendered tags appear where render() puts them, with a new afterHydrationPass(fn) API available.

@fluixi/head

  • seo() now restores <html> attributes such as lang and htmlAttrs to their original values when the page that set them is removed, and on initial load the server records the template's original <html> values in a data-fh-original attribute.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/jobs

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/jsx

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/oauth2

  • Sessions now re-authorise silently once on the next page request when a newly configured scope is missing, using the new rescopeParams config to add authorize parameters from the current claims.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/reactive

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.
  • With an ErrorBoundary around <Outlet />, a failing route data load now shows the boundary on that page, and navigating to another route clears the error.
  • A route error with a status from 400 to 599 now returns that status on the server (404 shows the built-in not-found view); any other error answers 500, a page whose data fails inside an element now renders the error view on the server instead of an empty element, and the reactive ErrorBoundary now provides a caught() method that returns the error immediately and untracked.
  • A route whose routeData fails without an ErrorBoundary now shows a built-in error view in place of that route while keeping layouts, and the new Router option error lets you replace that view.

@fluixi/realtime

  • postgresBus.listen now accepts a function that creates a client, automatically reconnects with exponential back-off and reports onGap when listening resumes, and the channel server sends a resync to every member on a gap and a server connection's drained() settles once its unsent bytes fall to a bound.
  • New: createChannelClient creates a client that subscribes to a channel with a handler and onResync and onDenied callbacks, automatically rejoining with the last ID after a reconnect, and createChannelServer creates a server with authorize, replay, bus, maxChannels, and endpoint options, offering start, publish, upgrade, and close methods, while memoryBus and postgresBus provide bus implementations for messaging.
  • New package. createWebSocket(url, options) returns signals status, connected, data, error, info, buffered and provides methods send, subscribe, on, connect, close, and dispose with reconnection backoff, timeout, heartbeat, queue limits and customizable serializers. Nothing connects during server rendering.
  • createWebSocketServer and createChannelServer now accept a maxAge option that closes a connection with CLOSE_REAUTHENTICATE (4100) after the specified time, causing the client to reconnect and run authenticate again.
  • New entry @fluixi/realtime/server: createWebSocketServer({ path, authenticate, origins, onConnection, maxConnections, maxMessageSize, maxBuffered, pingInterval, keepAlive }) creates a WebSocket server on the app's host that checks origins, returns 401 when authenticate is null, 403 for invalid origins, 503 when exceeding maxConnections or during shutdown, closes oversized messages with code 1009, sends protocol pings to drop silent connections, uses keepAlive to send a text heartbeat, and provides on('message') with text strings and binary bytes while close() sends code 1001 and terminates after a timeout.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.
  • An effect that calls connect, send, close or subscribes to a channel no longer re-runs on each connection status change.

@fluixi/router

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/server

  • provideAppInitializer now runs before the app renders, executing per request on the server and once in the browser before hydration, and beforeFirstRender tasks are run once per request or page.
  • inject() in middleware now creates a separate root injector for each request that is disposed when the response is ready, and requestScope() and endRequestScope() are added to @fluixi/dom.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/session

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/start

  • New: forwardUpgrade({ to, prefix }) from @fluixi/start/server pipes WebSocket upgrades under the specified prefix (default /api) to the target origin, setting the host to the target and forwarding the caller's IP via x-forwarded-for, while forwarding refusals, returning a 502 when unreachable, and closing both sides when either ends.
  • fluixi start now runs the default-exported defineServer({ start, upgrade, shutdown }) from src/server.ts, listening, handling upgrades, and shutting down on SIGTERM or SIGINT with a configurable timeout. fluixi dev runs the same file, and a build with src/server.ts fails for a serverless adapter.
  • provideAppInitializer now runs before the app renders, executing per request on the server and once in the browser before hydration, and beforeFirstRender tasks are run once per request or page.
  • fluixiRoutesPlugin, scanRoutes and generateRouteModule are now internal to @fluixi/start and @fluixi/core/plugins is removed. Import fluixi from @fluixi/vite-plugin instead. @fluixi/core no longer lists the compiler, the Vite plugin or vite-plugin-node-polyfills as peers.
  • The build now refuses publicEnv().X or env('X') in browser code for undeclared X even when env.public is empty. Server publicEnv() now returns only declared names and VITE_ names, never the full process.env, and in production it uses the build values from dist/server/public-env.json.
  • @fluixi/start now replays clicks, input and key presses that occur on a server-rendered page before hydration by inserting an event-capture script at the top of <head>, and you can disable this with the new eventReplay option (default true).
  • A server function error now results in a 500 Internal Server Error with no message in the response in production, while development still shows the message and 4xx errors remain unchanged.
  • seo() now restores <html> attributes such as lang and htmlAttrs to their original values when the page that set them is removed, and on initial load the server records the template's original <html> values in a data-fh-original attribute.
  • A page hydrated from the server now watches its routeDeps and reloads its data when they change.
  • createImageHandler now follows redirects of a remote source one by one, checking each target against allowed domains and only http/https, refusing with 403 on disallowed hosts and returning 502 after more than 5 redirects.
  • The service imported by both src/middleware.ts and the app is now a single instance in production, as it is in development.
  • inject() in middleware now creates a separate root injector for each request that is disposed when the response is ready, and requestScope() and endRequestScope() are added to @fluixi/dom.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.
  • A page that throws while the server renders it now returns a 500 response with the router error view while preserving layouts, instead of a 200 empty shell.
  • Importing addInterceptor or defineMiddleware from @fluixi/start in page code no longer throws a node:fs/promises error in development.

@fluixi/storage

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/template-parser

  • An imported component that has a load: and also a use without load: in the same file now treats both uses as eager, as with a resolve rule. A warning now appears when load:never is placed next to an eager use of the same component. When load: is used on NS.default, the message now names the namespace import. In HTML templates, a hole in a load: value is now refused like JSX, and using load: on <${Chart}> now prompts a message to write the bare tag.
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/template-runtime

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/testing

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/ts-plugin

@fluixi/utils

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/vite-plugin

  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.

@fluixi/web-components

  • Light DOM elements now have slotted(name) to retrieve light-DOM children marked with slot="name" or those without a slot, to place in render().
  • The library now builds with mix-builder 0.4.3, sharing chunks across ES module entries so each module and its state appears only once and the published ES module files are 50-80 % smaller, with CDN globals using a single copy of the signal graph.
  • A custom element now parses string literals on typed props as their attribute values, so a number prop receives 2 instead of "2" while string props remain unchanged.
  • Static-attribute custom elements, elements defined with defineElement, and slotted(name) now render correctly on the server, and after hydration children placed between server-rendered tags appear where render() puts them, with a new afterHydrationPass(fn) API available.

create-fluixi

1.0.0-alpha.108

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

  • fluixi worker runs the app's jobs module (default export createJobs from src/jobs.ts) and fluixi build outputs it to dist/server/jobs.js (including API-only apps), --port answers GET /health with a 503 status while starting or stopping, SIGTERM waits worker.stopTimeoutSeconds for running jobs, fluixi dev runs the worker beside the server and restarts it when its files change, and worker.inline runs it inside fluixi start.

@fluixi/compiler

  • SVG primitives such as linearGradient, radialGradient, stop, mask, pattern, filter and animation elements are recognized in the SVG namespace and rendered correctly, including when returned in a fragment outside an <svg> or as children of an SVG element, while foreignObject content is treated as HTML.

@fluixi/core

  • redirect(to, { status }), thrown in a route's routeData, answers a server render with that status and Location before the page is sent, and replaces the address in the browser; a page already streaming redirects from itself. setResponseRedirect and takeResponseRedirect in @fluixi/dom let a host honour it.
  • Link with an external address, target _blank, a download attribute, or a middle-click navigates using the browser's default behavior instead of the framework's navigation.

@fluixi/cron

  • New package. defineSchedule declares a five-field cron in an IANA time zone and the @fluixi/jobs job it sends, and throws on a cron, zone or name it cannot read.
  • createJobs takes schedules from defineSchedule, and jobs.work() puts them in place first, removing stored ones no longer declared, while duplicate schedule names or a schedule for a job not given cause an error at createJobs.

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • redirect(to, { status }), thrown in a route's routeData, answers a server render with that status and Location before the page is sent, and replaces the address in the browser; a page already streaming redirects from itself. setResponseRedirect and takeResponseRedirect in @fluixi/dom let a host honour it.
  • After hydration, resources are seeded from the server data only while the browser is on the address the server rendered.

@fluixi/head

@fluixi/jobs

  • New package. defineJob declares a job with its schema, retries and timeout; createJobs runs jobs on an engine: send checks the data, a key makes a send idempotent, and the sending request's context reaches the handler. Engines: @fluixi/jobs/pg-boss (Postgres or embedded PGlite) and @fluixi/jobs/memory.
  • createJobs takes schedules from defineSchedule, and jobs.work() puts them in place first, removing stored ones no longer declared, while duplicate schedule names or a schedule for a job not given cause an error at createJobs.
  • send() starts the engine as a sender without any polling, work() starts it as a worker upgrading a sender in the same process, and JobEngine.start accepts a { worker } option.

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

  • fluixi worker runs the app's jobs module (default export createJobs from src/jobs.ts) and fluixi build outputs it to dist/server/jobs.js (including API-only apps), --port answers GET /health with a 503 status while starting or stopping, SIGTERM waits worker.stopTimeoutSeconds for running jobs, fluixi dev runs the worker beside the server and restarts it when its files change, and worker.inline runs it inside fluixi start.
  • send() starts the engine as a sender without any polling, work() starts it as a worker upgrading a sender in the same process, and JobEngine.start accepts a { worker } option.
  • redirect(to, { status }), thrown in a route's routeData, answers a server render with that status and Location before the page is sent, and replaces the address in the browser; a page already streaming redirects from itself. setResponseRedirect and takeResponseRedirect in @fluixi/dom let a host honour it.

@fluixi/storage

@fluixi/template-parser

  • SVG primitives such as linearGradient, radialGradient, stop, mask, pattern, filter and animation elements are recognized in the SVG namespace and rendered correctly, including when returned in a fragment outside an <svg> or as children of an SVG element, while foreignObject content is treated as HTML.

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.107

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

  • draggable, spellcheck, contenteditable and aria-* attributes write booleans as the text true or false in templates and setAttribute, and a function passed as the whole style value is tracked.

@fluixi/core

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • draggable, spellcheck, contenteditable and aria-* attributes write booleans as the text true or false in templates and setAttribute, and a function passed as the whole style value is tracked.

@fluixi/head

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

  • An effect that reads no signal on its first run and leaves no cleanup, child or context is dropped, so its parent owner keeps no reference to it.
  • The signal node view behind the signal-node symbol is built on first read instead of at signal creation.
  • An effect is its own Computed and schedules itself when a source marks it non-clean, removing the separate Computed and Watcher objects per effect.
  • Signal creation uses plain assignment for symbols, exposing the State node via signal[$NODE] and adding a value getter.

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.106

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

  • Elements with reactive attributes now stay in their template, binding each attribute individually, and nested elements are handled similarly. Generated code only: behaviour is unchanged, and spread still handles real spreads and the cases that cannot be bound one by one. New in @fluixi/dom: setDynamicStyle and setDynamicClassList, the function branches of spread as standalone helpers.
  • The published builds replaced process.env.NODE_ENV with "production" at publish time, which turned off development-only behavior such as hydration warnings and the release in data-fluixi, in development too. The builds keep the expression, and the app bundler decides its value per build.

@fluixi/core

  • The published builds replaced process.env.NODE_ENV with "production" at publish time, which turned off development-only behavior such as hydration warnings and the release in data-fluixi, in development too. The builds keep the expression, and the app bundler decides its value per build.

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • Elements with reactive attributes now stay in their template, binding each attribute individually, and nested elements are handled similarly. Generated code only: behaviour is unchanged, and spread still handles real spreads and the cases that cannot be bound one by one. New in @fluixi/dom: setDynamicStyle and setDynamicClassList, the function branches of spread as standalone helpers.
  • The published builds replaced process.env.NODE_ENV with "production" at publish time, which turned off development-only behavior such as hydration warnings and the release in data-fluixi, in development too. The builds keep the expression, and the app bundler decides its value per build.
  • Per-row state is now built only when it is used: @fluixi/reactive creates the row index signal on first read and builds reactive node reports only when an observer is registered, and @fluixi/dom builds the insert component cache on the first component thunk.

@fluixi/head

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

  • Disposal unlinks a computation from the signals it read: Computed.dispose() removes it from those signals' observer sets, so a cleared list no longer stays reachable from a signal that outlives it.
  • The published builds replaced process.env.NODE_ENV with "production" at publish time, which turned off development-only behavior such as hydration warnings and the release in data-fluixi, in development too. The builds keep the expression, and the app bundler decides its value per build.
  • keyArray rows now read their item from a per-entry signal set during reconciliation instead of a memo over the whole list.
  • Per-row state is now built only when it is used: @fluixi/reactive creates the row index signal on first read and builds reactive node reports only when an observer is registered, and @fluixi/dom builds the insert component cache on the first component thunk.
  • Effect runs now drain pending without allocating an array and dirty marking walks observer sets without copying them.

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

  • The published builds replaced process.env.NODE_ENV with "production" at publish time, which turned off development-only behavior such as hydration warnings and the release in data-fluixi, in development too. The builds keep the expression, and the app bundler decides its value per build.

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.105

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

@fluixi/core

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • In a production browser build the data-fluixi attribute on the mount element is empty because the check reads process.env.NODE_ENV exactly as a bundler replaces it, while the previous process.env?.NODE_ENV survived the build and read as development. fluixi start sets NODE_ENV to production when the deployment leaves it unset.

@fluixi/head

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

  • In a production browser build the data-fluixi attribute on the mount element is empty because the check reads process.env.NODE_ENV exactly as a bundler replaces it, while the previous process.env?.NODE_ENV survived the build and read as development. fluixi start sets NODE_ENV to production when the deployment leaves it unset.

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.104

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

  • A component such as Card with a class, className or classList inside a component with <style scoped> receives the scope attribute and the class is passed so the scoped rule applies. Components without a class continue to render without a scope attribute as before.

@fluixi/core

  • The mount element carries a single data-fluixi attribute in place of fluixi, fx-dom and fx-reactive; its value is the release in development and empty in production. @fluixi/start writes this attribute on the server so it appears in the page source, and window.Fluixi retains all three version strings.
  • createTheme initializes by calling load with the stored value, fixing the issue where the stylesheet was missing after a reload until the theme was picked again.

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • The mount element carries a single data-fluixi attribute in place of fluixi, fx-dom and fx-reactive; its value is the release in development and empty in production. @fluixi/start writes this attribute on the server so it appears in the page source, and window.Fluixi retains all three version strings.

@fluixi/head

@fluixi/jsx

@fluixi/oauth2

  • A token request that fails at the callback redirects the user to the app with an auth_error (provider_unreachable or refusal code) rather than showing an error page.

@fluixi/reactive

  • A plain function child of a context Provider runs under the Provider's scope and reads the current context value instead of the default.

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

  • The mount element carries a single data-fluixi attribute in place of fluixi, fx-dom and fx-reactive; its value is the release in development and empty in production. @fluixi/start writes this attribute on the server so it appears in the page source, and window.Fluixi retains all three version strings.
  • When an error is thrown by a page, server function, or middleware on a production server, the error is logged and the visitor receives a 500 response with a plain HTML page or the text "Internal Server Error" for non-page requests, never the stack trace; an application can provide its own error page via public/error.html; the Fluixi development environment continues to display the stack trace.
  • defineConfig accepts a dedupe array of package names that are resolved once from the app root in addition to the framework's own deduped packages; if a listed package cannot be resolved by the app, it is ignored.

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

  • share() on a dev server pre-bundles the shared modules and writes the import map first in the page head, each id mapped to the URL the dev server gives the app's own import of it. Code loaded at runtime (a mounted plugin) gets the same module instance in development as in a build.

@fluixi/web-components

create-fluixi

1.0.0-alpha.103

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

@fluixi/core

@fluixi/devtools

@fluixi/di

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/oauth2

  • The login route forwards prompt=create to the provider.

@fluixi/reactive

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.102

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

  • fluixi dev and fluixi start take the port from --port=<n> or --port <n>, then the PORT variable, then port in fluixi.config.ts, then 3000. An invalid value stops with an error naming the flag or variable.

@fluixi/compiler

@fluixi/core

@fluixi/devtools

@fluixi/di

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/oauth2

  • oauthRoutes takes a new option, authorizeParams: names of login query parameters to pass to the authorization request, for provider parameters that vary per login.

@fluixi/reactive

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.101

@fluixi/api

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

  • The format compiler option no longer accepts 'lit' and accepts 'html' (or 'jsx' or 'both'). The lit helpers isLitResult, isLitTemplateResult, getLitEventName and isTemplateFactory are removed: they detected lit-html objects, which no longer occur.

@fluixi/core

  • The format compiler option no longer accepts 'lit' and accepts 'html' (or 'jsx' or 'both'). The lit helpers isLitResult, isLitTemplateResult, getLitEventName and isTemplateFactory are removed: they detected lit-html objects, which no longer occur.
  • fluixi generate in @fluixi/cli replaces the removed fluixi-generate and fluixi-run commands.

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • The format compiler option no longer accepts 'lit' and accepts 'html' (or 'jsx' or 'both'). The lit helpers isLitResult, isLitTemplateResult, getLitEventName and isTemplateFactory are removed: they detected lit-html objects, which no longer occur.

@fluixi/head

@fluixi/jsx

@fluixi/oauth2

@fluixi/reactive

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

create-fluixi

1.0.0-alpha.100

@fluixi/api

@fluixi/auth

  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/babel-plugin-jsx

  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/cdn

@fluixi/cli

  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/compiler

  • During hydration, an element after a component, control flow or reactive expression in a JSX fragment is wrapped in deferElement, so it is built in order when the array is placed instead of being duplicated.
  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/core

  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/devtools

@fluixi/di

@fluixi/dom

  • During hydration, an element after a component, control flow or reactive expression in a JSX fragment is wrapped in deferElement, so it is built in order when the array is placed instead of being duplicated.
  • A page rendered blank after hydration when a route layout returns a fragment with a sibling beside a <Show> whose content contains another <Show>, because the elements the nested <Show> adopted from the server were not counted as adopted and were removed.

@fluixi/head

@fluixi/jsx

@fluixi/oauth2

  • When a renewal request times out, the connection is cut after sending, or a 2xx response has no access_token, the session ends and the refresh token is not sent again. If a renewal receives a 429 or 5xx response or the connection never opens, the session is kept and the renewal is retried after the Retry-After header or after 5 seconds by default. tokenTimeoutMs (default 10000 ms) limits how long a token request may take. A 400 or 401 response still ends the session.
  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/reactive

@fluixi/router

@fluixi/server

@fluixi/session

@fluixi/start

  • For code loaded at run time, the share() function creates separate chunks for each specified module and writes an import map to share.json that is placed in the <head> before any module script, and the share option in @fluixi/start adds this plugin and keeps those packages external in the server build, which needs nodeAdapter.
  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/storage

  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/template-parser

@fluixi/template-runtime

  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/testing

@fluixi/ts-plugin

  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/utils

@fluixi/vite-plugin

  • For code loaded at run time, the share() function creates separate chunks for each specified module and writes an import map to share.json that is placed in the <head> before any module script, and the share option in @fluixi/start adds this plugin and keeps those packages external in the server build, which needs nodeAdapter.
  • @fluixi/oauth2 installs @fluixi/auth and @fluixi/session directly, so applications using @fluixi/oauth2 may remove @fluixi/auth from their dependencies if it's only used for OAuth2. Its peers include @fluixi/dom and @fluixi/storage, and Fluixi packages depend on each other through ^ ranges.

@fluixi/web-components

create-fluixi

1.0.0-alpha.99

@fluixi/api

@fluixi/auth

  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.

@fluixi/babel-plugin-jsx

@fluixi/cdn

@fluixi/cli

@fluixi/compiler

@fluixi/core

  • The runtime packages of @fluixi/start, @fluixi/core, @fluixi/server and @fluixi/template-runtime are peer dependencies, so an app that updates one package keeps a single runtime instance.

@fluixi/devtools

@fluixi/di

  • The new @fluixi/di package provides typed tokens with factory and scope, useValue/useClass/useFactory/useExisting and multi providers, optional/self/skipSelf/host injection options, constructor injection from the holding injector, detailed InjectionError with resolution path, DestroyRef and INJECTOR, providePlatform, request-root disposal, provideAppInitializer and runAppInitializers, isInInjectionContext and assertInInjectionContext, and the testing utilities createTestInjector and resetInjection in @fluixi/di/testing.
  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.

@fluixi/dom

  • onRequestEnd(fn) registers work to run when the current request ends, endRequestContext(ctx) runs it once, latest first, renderToString and renderToStringAsync end the context they create, and @fluixi/server re-exports both.
  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.

@fluixi/head

  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.

@fluixi/jsx

  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.

@fluixi/oauth2

  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.
  • @fluixi/start/di re-exports @fluixi/di and server functions and API routes end the request context they create, releasing request services; @fluixi/oauth2 imports @fluixi/di instead of @fluixi/start/di.

@fluixi/reactive

@fluixi/router

@fluixi/server

  • onRequestEnd(fn) registers work to run when the current request ends, endRequestContext(ctx) runs it once, latest first, renderToString and renderToStringAsync end the context they create, and @fluixi/server re-exports both.
  • The runtime packages of @fluixi/start, @fluixi/core, @fluixi/server and @fluixi/template-runtime are peer dependencies, so an app that updates one package keeps a single runtime instance.

@fluixi/session

  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.

@fluixi/start

  • The runtime packages of @fluixi/start, @fluixi/core, @fluixi/server and @fluixi/template-runtime are peer dependencies, so an app that updates one package keeps a single runtime instance.
  • @fluixi/start/di re-exports @fluixi/di and server functions and API routes end the request context they create, releasing request services; @fluixi/oauth2 imports @fluixi/di instead of @fluixi/start/di.

@fluixi/storage

@fluixi/template-parser

@fluixi/template-runtime

  • The runtime packages of @fluixi/start, @fluixi/core, @fluixi/server and @fluixi/template-runtime are peer dependencies, so an app that updates one package keeps a single runtime instance.

@fluixi/testing

  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.

@fluixi/ts-plugin

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

  • Fluixi peer dependencies are published as ^ ranges (^1.0.0-alpha.N) instead of exact versions.

create-fluixi

  • SPA templates are @fluixi/start apps with ssr: false, providing file routing, server functions, middleware, and fluixi dev/build/start instead of plain Vite, and the --spa --auth flag wires authentication like an SSR app, with each template listing @fluixi/start and the runtime packages.
  • --help indicates that --auth works for both modes and displays the npm command npm create fluixi@alpha -- my-app --spa, and the README refers to SPA templates as @fluixi/start apps and the alpha dist-tag.

1.0.0-alpha.98

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • The request store and server-function context runner are held in the global registry like the locals bag, and @fluixi/server installs its async store only when none is already present. In a built app, server functions ran outside the request context, so getLocals() was empty and an auth library saw every call as signed out.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

  • The request store and server-function context runner are held in the global registry like the locals bag, and @fluixi/server installs its async store only when none is already present. In a built app, server functions ran outside the request context, so getLocals() was empty and an auth library saw every call as signed out.

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

1.0.0-alpha.97

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

@fluixi/web-components

  • First release: custom elements with reactive props, events, slots and styles, usable from plain HTML, React, Vue and Svelte. The package is versioned with @fluixi/core from this release on.

1.0.0-alpha.96

@fluixi/auth

  • The better-auth peer range requires version 1.6.22 or later: earlier versions allow account takeover through magic-link sign-in.

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • The router's Form is now named ActionForm (its props are now ActionFormProps). Update imports and JSX to use ActionForm instead of Form.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.95

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Component styles now build and hot-reload on Vite 8, with each block served as card.tsx.fx-0.css and any edited style updating in the dev server without a restart.
  • The compiler now sets JSX through oxc when Vite bundles with Rolldown and through esbuild otherwise, start now builds single-file bundles with the option each bundler expects, the env check now includes the file name in its error under Vite 8, and fluixi check and fluixi doctor now work in a TypeScript 7 app by falling back to the CLI's classic TypeScript.
  • In devtools, a rule from a css value imported from another module now points to the line it was written on in that module, and the dev server enables CSS source maps by default unless the app sets css.devSourcemap.

@fluixi/core

  • Route data now reloads when navigating to a new URL that only changes the route's params, and the page stays mounted showing its current data until the new data arrives.
  • The page now stays in the document with its current data while route data reloads, and the Suspense fallback above the router no longer replaces it, preserving scroll positions.
  • Client navigation now opens the new page at the top or at its #hash, back and forward return you to your previous scroll position, reload preserves the position, replace on the same page leaves the scroll unchanged, and locations now include a key and action while browser history stores the key alongside the app's state.

@fluixi/dom

  • Hydration now keeps static text written next to an expression, as in {label} <a>, preserving the text after the expression instead of dropping or moving it.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

  • In devtools, a rule from a css value imported from another module now points to the line it was written on in that module, and the dev server enables CSS source maps by default unless the app sets css.devSourcemap.

1.0.0-alpha.94

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • css`` literals from @fluixi-css/core are compiled away into style handles, the CSS import is removed, processed CSS is returned in styleLiteralsand emitted only where used, interpolations like${value}withincss`` or <style>{\${value} ...`}merge processed nodes in order (scoped values respect the component's scope), and values imported from other modules appear instyleReferenceswhile non-style interpolations and cycles are reported instyleDiagnostics`.
  • css and the FluixiStyle type are now exported from @fluixi/core (and @fluixi/dom) alongside html and svg. In an app, $html, $svg and $css need no import and compile like the other tags. The compiler no longer reads css from @fluixi-css/core.
  • In a library build (build.lib), component styles are emitted as <name>.css files alongside each module and imported relatively, with a matching <name>.css.js loader, and a build will error if it would overwrite an existing <name>.css file.
  • transformTemplates now extracts <style> and <style scoped> blocks from JSX, processes them with the host's CSS engine via styles: { process(css, from) }, and returns the resulting styles while adding a deterministic data-fx-s attribute to rendered elements for scoped styles and leaving unprocessable blocks in the output with diagnostics.
  • Templates with <style> and <style scoped> now compile like the JSX form, extracted, processed by the host's CSS engine, scoped, and returned in styles, and each component now receives a single id shared across its JSX and template blocks, with a custom element's render() blocks belonging to the class name.
  • An element with static shadow now gets its <style> blocks in its shadow root as CSS strings without a scoping attribute, css`` values in static styles are compiled to CSS strings, and light-DOM elements and components remain scoped and served as page stylesheets.
  • Custom properties in a style object (--gap) now apply, style:x and class:x update only their own property when its value changes, JSX class:x and style:x on DOM elements work as in html``templates (JSX cannot parsestyle:--x, use style={{ '--x': ... }}), style={{ ... }}on a DOM element updates per property and removes keys missing from the new object, andstyle=together withstyle:x in a template no longer produces a duplicate key.
  • Component styles now carry a source map back to the module, with each rule and declaration mapping to the line it was written on in the .tsx, and the Vite plugin serves the map, which Vite keeps under css.devSourcemap in development and build.sourcemap in builds.
  • <style> in an html template now accepts CSS values by name, `${base}`, locally defined or imported from another module, refuses other values with the same JSX error message, and html style blocks now receive source maps back to the template lines.
  • The Vite plugin now compiles component <style> blocks, resolves css``` values imported from other modules through Vite, hashes scope ids from the project root so elements and CSS always match, and its devtools channel calls the compiler plugin's own loadandconfigureServer` instead of replacing them.
  • An edited &lt;style&gt; block now updates in the dev server, and a style requested before its component's imports were analyzed no longer keeps its old CSS until the dev server restarts.
  • HTML templates now decode character references like &nbsp;, &amp;, &copy;, and numeric references in text and static attributes, the same set JSX accepts.
  • Component props with an object literal value now compile even when a sibling prop or text child mentions this.

@fluixi/core

  • css and the FluixiStyle type are now exported from @fluixi/core (and @fluixi/dom) alongside html and svg. In an app, $html, $svg and $css need no import and compile like the other tags. The compiler no longer reads css from @fluixi-css/core.

@fluixi/dom

  • css and the FluixiStyle type are now exported from @fluixi/core (and @fluixi/dom) alongside html and svg. In an app, $html, $svg and $css need no import and compile like the other tags. The compiler no longer reads css from @fluixi-css/core.
  • Custom properties in a style object (--gap) now apply, style:x and class:x update only their own property when its value changes, JSX class:x and style:x on DOM elements work as in html``templates (JSX cannot parsestyle:--x, use style={{ '--x': ... }}), style={{ ... }}on a DOM element updates per property and removes keys missing from the new object, andstyle=together withstyle:x in a template no longer produces a duplicate key.
  • A dynamic child that hydrates empty now keeps its place among its siblings.
  • mergeProps now reads each source value only once per access, preventing duplicate node creation when spreading getters.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

  • The Vite plugin now compiles component <style> blocks, resolves css``` values imported from other modules through Vite, hashes scope ids from the project root so elements and CSS always match, and its devtools channel calls the compiler plugin's own loadandconfigureServer` instead of replacing them.
  • Component styles no longer fail with "transformTemplates is not a function" when the first module is transformed right after startup, as in a build.

1.0.0-alpha.93

@fluixi/auth

  • The signedIn() and member({ roles, permissions }) guards are now available in @fluixi/auth/server for protecting @fluixi/api routes, with member() providing auth.member.organizationId and returning 403 errors no_active_organization or not_a_member, and AuthError now includes an optional code.
  • The cookie codec now resides at @fluixi/utils/cookie and @fluixi/auth re-exports it, so imports from @fluixi/auth continue to work. Update any code that writes cookies to avoid invalid names, paths, or domains containing ; or whitespace (which now throw a TypeError). SameSite=None now always adds Secure, and parseCookies keeps a malformed escape as raw text instead of throwing.
  • effect and createEffect now accept an optional { name } third argument, which appears in the devtools graph like signals and memos.
  • New remoteAuth({ url, basePath }) in @fluixi/auth/server, for defineAuth when Better Auth runs in another service, enabling authMiddleware, requireUser and client hooks to work in the web app with the session read from the API using the visitor cookie. Guards such as member() stay in the API.

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • The new $cachedResource intrinsic provides cachedResource without requiring an import.
  • Each on an element now renders the element once and its content per item, and <container> now renders only its content while supporting if, else, each, and key in JSX. You must move each to the parent element, converting <li each> to <ul each> with the <li> placed inside the render function.
  • $storage stands for useStorage, $asyncStorage stands for useAsyncStorage, and $persisted stands for persisted from @fluixi/core/storage.
  • A signal in a class field inside a function no longer breaks the dev build, and a class field signal shows its own line and field name in the devtools graph.
  • Development builds now record where each subclass is declared and which instance a class field signal belongs to for the devtools graph.
  • The new app's fluixi.d.ts now declares every reactive intrinsic from the compiler's table and the compiler exports them via @fluixi/compiler/intrinsics.
  • Functions passed to a custom element property are now assigned instead of being called as an accessor, so actions and callbacks reach the element as functions, also on the server.
  • The compiler now provides intrinsics $batch, $cleanup, $root, $context, $renderEffect and $computed that can be used without importing them in a start app.
  • this in a component prop now keeps the enclosing method's value, allowing a custom element's render to pass this.x into a component prop.

@fluixi/core

  • The new useAsyncStorage supports awaited or encrypted storage with the same scopes as useStorage, and StorageProvider accepts an async storage.
  • The new createColorScheme supports system, light, and dark modes with resolved and toggle, and a themeColor for the browser bars. ThemeProvider, ColorSchemeProvider, useTheme and useColorScheme are new, and createTheme now sends its before-paint script with the page during a render.
  • composeProviders now nests multiple Providers in a single call and requireContext throws if no Provider is found instead of returning the default.
  • The library no longer includes createConsumer, createContextWithProvider, composeProviders, useProvide or the object form of createProvider. Use Ctx.Provider, useContext, or createProvider(context, value, props) instead.
  • revalidate now accepts a list of names and the router applies x-fx-revalidate from @fluixi/api/client responses.
  • useStorage now supports auto, local, session, request, and cookie scopes, includes a StorageProvider and hydrateStorage, reads the same value during server render and in the browser, sets Set-Cookie on the response for cookie scope, and isolates request-scoped values between requests.
  • createTheme now stores the selected theme in a cookie and the server renders <html data-theme> from it, eliminating the flash, and createIsomorphicStore.persist can accept a storage option. useStorage from @fluixi/core/storage now replaces the removed storage and createMemoryStorage exports. Import useStorage instead of the old names.
  • The new persisted from @fluixi/core/storage follows changes from other storages and tabs, works over async and encrypted storage, and with cookie scope the server render and the browser agree.
  • Revalidating by name now reaches other open tabs of the site, which drop the same cached data and reload their routes.
  • The routeDeps export now provides app-wide values that routeData receives as args.deps, and a change to them reloads the route data while the page remains on screen.
  • The router cache now isolates results per request on the server and supports cache options ttl and staleWhileRevalidate, where revalidate refreshes routes on screen without hiding the page and action takes an invalidates option.
  • The new storageCache(storage, { ttl }) keeps a cachedResource in session or local storage so the data survives a reload.
  • A server-rendered custom element now waits for the hydrating app to provide its owner before building, ensuring that context such as the router reaches the element's first render and a <Link> inside it navigates after a full page load.
  • Hydration now builds the client's template when the server rendered a different one at that position and removes any server elements that were not claimed.
  • rt now formats relative time in the active locale, e.g., "yesterday" or "3 days ago".
  • Link now updates title, aria-current and similar props reactively when given as functions.
  • A Link without a router above it now lets the browser follow the link.
  • useIsRouting({ delay }) now reports navigation as pending until the new route's modules and data are loaded, keeping the current page visible.
  • In the devtools graph, app modules and the services they provide appear as groups, and the auth service is shown under its module with its state named (user, token, status, roles and the rest) instead of anonymous signals.
  • Reading route data whose load failed now throws its error, causing an ErrorBoundary in the route to show the failure instead of rendering an empty page.
  • useSubmissions(action) now returns every call in flight and every failed call, one entry each, so concurrent calls no longer overwrite each other and an optimistic list can render the pending ones.

@fluixi/dom

  • The new cachedResource handle supports refetch, invalidate, and mutate, accepts a cache option, and carries server values to the browser. Remove any use of createCachedResource, clearCachedResourceNamespace, or clearAllCachedResources and use cachedResource and clearCachedResources(name?) instead.
  • Light DOM custom elements now render on the server and are adopted on upgrade, with object props passed as JSON in data-fx-props, and hydrateChildren(container, build) is exported from @fluixi/dom. Shadow DOM elements still render on the client, and content an element places from its authored children is not adopted.
  • appendResponseHeader(name, value) now adds a header, such as Set-Cookie, to the current request's response (merged by @fluixi/start) and returns false if the headers have already been sent or it is called outside a request.
  • streamDocument now returns a Promise<Response> and cookies and other headers set while a streamed page renders its shell reach the response, a render failing before the head is sent answers 500, and appendResponseHeader takes an optional request.
  • event.currentTarget now refers to the element the handler is attached to, matching addEventListener behavior, so new FormData(event.currentTarget) works in onSubmit.
  • Components whose props extend HTMLAttributes now typecheck correctly when rendering props.children alongside other children.
  • JSX now supports if, else, each, key and the <container> element types.
  • A custom element rendered on the server now receives context from the app when hydration reaches it.
  • Functions passed to a custom element property are now assigned instead of being called as an accessor, so actions and callbacks reach the element as functions, also on the server.
  • Page hydration now steps over a custom element that rendered its own content on the server, so elements after it are adopted instead of being built a second time.
  • A server-rendered custom element now waits for the hydrating app to provide its owner before building, ensuring that context such as the router reaches the element's first render and a <Link> inside it navigates after a full page load.
  • ErrorBoundary now catches errors thrown after the first render, including from accessors and effects, and shows the fallback when a child fails later.
  • Server data is now read from the window.__FX_DATA__ script element in the browser, preventing refetches after hydration and preserving the SSR locale seed.
  • Hydration now adopts server nodes in document order when a component's children mix a lazy memo (<Show>) with plain siblings, preventing duplicated or rebuilt inputs and buttons in hydrated forms.
  • Hydration now adopts server elements by their data-hk keys instead of creation order, and renderToString generates static markup with hydrationKeys: false.
  • Hydration now builds the client's template when the server rendered a different one at that position and removes any server elements that were not claimed.
  • During page hydration, only the first insert adopts server nodes and later updates build their own nodes, so a custom element given a new prop no longer takes over its own or its neighbours' nodes.
  • Custom element string, number and boolean props now appear as attributes in server-rendered HTML.
  • Custom elements now read the surrounding app context during server rendering as they do in the browser.

@fluixi/jsx

  • The JSX custom element tags are now registered on the JSXCustomElements interface instead of HTMLReactiveElement or FluixiElements. Rename any augmentations that reference HTMLReactiveElement or FluixiElements to use JSXCustomElements.
  • Custom elements declared in JSXCustomElements are now typed in JSX, providing typed props and event handlers.

@fluixi/reactive

  • The new deps option of cachedResource uses accessor values as cache keys, so each user or organisation gets its own entry and a change switches to it.
  • The new cachedResource handle supports refetch, invalidate, and mutate, accepts a cache option, and carries server values to the browser. Remove any use of createCachedResource, clearCachedResourceNamespace, or clearAllCachedResources and use cachedResource and clearCachedResources(name?) instead.
  • The devtools graph now shows custom elements, app modules and services as their own kinds, holding the signals and memos they created, and new @fluixi/reactive functions openReactiveScope, withReactiveScope, closeReactiveScope, adoptReactiveScope, markReactiveScope, and reactiveScopeOf report such a scope.
  • effect and createEffect now accept an optional { name } third argument, which appears in the devtools graph like signals and memos.

@fluixi/server

  • appendResponseHeader(name, value) now adds a header, such as Set-Cookie, to the current request's response (merged by @fluixi/start) and returns false if the headers have already been sent or it is called outside a request.

@fluixi/session

  • Session now persists using @fluixi/storage with localStorage in the browser and no storage on the server, adding a new storage option. Sessions created with earlier versions cannot be read, so users must sign in again.
  • In the devtools graph, app modules and the services they provide appear as groups, and the auth service is shown under its module with its state named (user, token, status, roles and the rest) instead of anonymous signals.

@fluixi/utils

  • The cookie codec now resides at @fluixi/utils/cookie and @fluixi/auth re-exports it, so imports from @fluixi/auth continue to work. Update any code that writes cookies to avoid invalid names, paths, or domains containing ; or whitespace (which now throw a TypeError). SameSite=None now always adds Secure, and parseCookies keeps a malformed escape as raw text instead of throwing.

@fluixi/vite-plugin

1.0.0-alpha.92

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • $env now compiles to env from @fluixi/start/env, and when a module binds that name itself, the runtime is imported under an alias instead of the call reaching the local binding.
  • fluixi.d.ts now declares each component that a resolve pattern rule reaches, generating one declaration per file in the directory matching the module path, and adds a new componentGlobals option for candidates.

@fluixi/core

@fluixi/dom

  • @fluixi/start now supplies the request it is answering, ensuring middleware locals are available during server-side rendering.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.91

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.90

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.89

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.88

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.87

@fluixi/auth

  • Can and Protect can be used in a template. They declared children: unknown and returned () => unknown, which JSX refuses: a component that cannot go in a template is not one. They now take and return ComponentChild, the same shape the control flow components use, so both JSX and html accept them. With no fallback, a denied guard yields null rather than undefined, which renders as nothing in one path and as a word in the other.

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • The ./builtins, ./transform and ./analyze modules are now included in the published package.
  • A binding on a custom element sets the property even when the element has not upgraded yet. key in element is false until customElements.define runs, so a page rendered before its element registered sent every value to an attribute and an object arrived as [object Object], with nothing assigning the property once the element upgraded. The global attributes (id, class, slot, title, aria-*, data-* and the rest) still go to attributes. The compiler marks a dash tag while compiling, so the runtime is told rather than reading the tag back off the node.

@fluixi/core

  • ./utils is now included in the published package.

@fluixi/dom

  • A binding on a custom element sets the property even when the element has not upgraded yet. key in element is false until customElements.define runs, so a page rendered before its element registered sent every value to an attribute and an object arrived as [object Object], with nothing assigning the property once the element upgraded. The global attributes (id, class, slot, title, aria-*, data-* and the rest) still go to attributes. The compiler marks a dash tag while compiling, so the runtime is told rather than reading the tag back off the node.
  • Event delegation keeps its registry on globalThis, so a page carrying more than one build of the runtime has one document listener per event rather than one per copy. Two standalone custom elements is the ordinary way a page ends up with two copies, and a single click was running every handler twice.

@fluixi/jsx

  • A custom element can be typed for its consumers. ElementOf builds the DOM interface for HTMLElementTagNameMap, so querySelector returns something with the element's properties on it; ElementAttributes builds the JSX tag's attributes from the same prop schema, with a handler per dispatched event; ForeignElementAttributes does the same for an element someone else wrote. JSX augmentation moves to an interface named HTMLReactiveElement, and the previous FluixiElements keeps working. The web-component vocabulary is available alongside the framework's own: customElement, property, attribute, event, target, ref and slot bind to defineElement, prop, createDispatch and createTargets.

@fluixi/reactive

@fluixi/server

  • seo() now adds its tags to the head of its own request when rendered concurrently.

@fluixi/session

  • @fluixi/session/server holds a session the browser cannot read: createSessionCookie seals a value into an httpOnly cookie with AES-GCM through Web Crypto, and reads it back. It is not an auth system and does not know what a user is, which is what lets an app with its own database seal a user id, and @fluixi/oauth2 seal tokens, over the same piece. @fluixi/oauth2/server now uses it rather than carrying its own copy of the cookie and crypto handling.

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.86

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

  • Generated apps use the $signal/$resource intrinsics, navigate with <Link> rather than <a href>, and ship a fluixi.d.ts so an editor knows the intrinsics before the app has been run. The fluixi-css stylesheet now carries @fluixi base/utilities/components and its own @theme, so no fluixi.css.config.js is generated. resource() accepts the single-fetcher form again: it borrowed its parameters from createResource, which collapses an overloaded function to its last signature.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.85

@fluixi/auth

  • protectedRoute now accepts a navigator option, e.g., protectedRoute(Admin, { role: 'admin', navigator: { handler: useNavigate } }), and redirects via the app router instead of assigning window.location.

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • set now writes to the path it names using the provided step(s) and value, the server-function scan now ignores directives inside comments, the devtools agent now resolves the ESM build instead of the CJS one, and the AsyncLocalStorage warning now appears only on the server.

@fluixi/core

  • Router now keeps the current page visible until the new route can render, and you can control this with the new transition prop on Router and the transition option on navigate and useLinkNavigation.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

  • set now writes to the path it names using the provided step(s) and value, the server-function scan now ignores directives inside comments, the devtools agent now resolves the ESM build instead of the CJS one, and the AsyncLocalStorage warning now appears only on the server.

@fluixi/server

  • set now writes to the path it names using the provided step(s) and value, the server-function scan now ignores directives inside comments, the devtools agent now resolves the ESM build instead of the CJS one, and the AsyncLocalStorage warning now appears only on the server.

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

  • set now writes to the path it names using the provided step(s) and value, the server-function scan now ignores directives inside comments, the devtools agent now resolves the ESM build instead of the CJS one, and the AsyncLocalStorage warning now appears only on the server.

1.0.0-alpha.84

@fluixi/auth

  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.

@fluixi/babel-plugin-jsx

  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.

@fluixi/compiler

  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.
  • @fluixi/cli, @fluixi/devtools, @fluixi/head, @fluixi/router, @fluixi/server, and @fluixi/start now provide bundled builds with import resolving to a .mjs file and a require condition resolving to a .cjs file, and @fluixi/core and @fluixi/compiler now include the copyright banner in their subpath exports.
  • Compiled output now emits parentheses only when they change an expression's meaning.

@fluixi/core

  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.
  • @fluixi/cli, @fluixi/devtools, @fluixi/head, @fluixi/router, @fluixi/server, and @fluixi/start now provide bundled builds with import resolving to a .mjs file and a require condition resolving to a .cjs file, and @fluixi/core and @fluixi/compiler now include the copyright banner in their subpath exports.
  • isServer now reports consistently across the package regardless of import source.

@fluixi/dom

  • joinedVersions() reports every build of the reactive runtime sharing one graph, and a page running more than one now says so. The graph is now shared per major version: copies of one major share it, a different major gets its own.
  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.

@fluixi/jsx

  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.

@fluixi/reactive

  • A cached resource now updates the effects and bindings that read it.
  • joinedVersions() reports every build of the reactive runtime sharing one graph, and a page running more than one now says so. The graph is now shared per major version: copies of one major share it, a different major gets its own.
  • root, renderEffect, computed, context and childOwner are now available without the create prefix alongside signal, memo and effect.
  • A store whose root is an array can now be replaced or emptied, and the setter's array methods are typed.
  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.

@fluixi/server

  • @fluixi/cli, @fluixi/devtools, @fluixi/head, @fluixi/router, @fluixi/server, and @fluixi/start now provide bundled builds with import resolving to a .mjs file and a require condition resolving to a .cjs file, and @fluixi/core and @fluixi/compiler now include the copyright banner in their subpath exports.

@fluixi/session

  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.

@fluixi/utils

  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.

@fluixi/vite-plugin

  • The published entry files now include a copyright banner, and @fluixi/dom, @fluixi/jsx, @fluixi/template-parser and @fluixi/template-runtime ship unminified, which their build configs had always asked for.

1.0.0-alpha.83

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • jsx tags and elements now record their source positions, which are emitted beside the template string.
  • @fluixi/compiler/analyze now reads a project's reactive graph out of source without running it, and each reactive hole now carries the line it was written on, in development builds only. The source map could not give them because a template is emitted as one overwrite, so its source map holds a single entry for the whole root, making every hole in it trace back to the line the template opens at.
  • analyze now reads the element tree each component writes and hangs it on the node.
  • A component now reports the props it was handed, the compiler records where each was written, and the inspector shows both.
  • use, ref, bind, class and style directives now report their name, their element and the position they were written at.

@fluixi/core

  • isServer is now a function, and server mode is stored on the realm instead of a module variable. Replace any usage of the isServer variable with a call to isServer().
  • createContext now takes an optional name parameter, and creating, providing, and reading a context are announced to a watcher.
  • A lazily loaded route now carries the name of its component when created through createComponent, making it visible to watchers.

@fluixi/dom

  • isServer is now a function, and server mode is stored on the realm instead of a module variable. Replace any usage of the isServer variable with a call to isServer().
  • A hole now retains its recorded position during hydration when substituted by a wrapper, and templateNode now accepts a list of positions and applies one to each cloned element.
  • A component now reports the props it was handed, the compiler records where each was written, and the inspector shows both.
  • use, ref, bind, class and style directives now report their name, their element and the position they were written at.
  • Each DOM binding now reports the element and the attribute or content it writes, along with the accessor it reads, as it is wired up. Only the DOM layer can know what a signal's reader is, such as the text of an <li> rather than a class, and the accessor is included because the compiler may have stamped it with the line the hole was written on.

@fluixi/jsx

  • The global JSX namespace now declares each name once, and JSX.IntrinsicElements correctly carries the element types, with JSX.Element being an alias for what the DOM can insert. Before this, <div> was "Property 'div' does not exist" in every application, and no editor could complete an element or an attribute.

@fluixi/reactive

  • createContext now takes an optional name parameter, and creating, providing, and reading a context are announced to a watcher.
  • A component now reports the props it was handed, the compiler records where each was written, and the inspector shows both.
  • The observer can now be told who wrote a signal, and what each DOM binding writes, via reportReactiveBinding, wrote, and bound. A node already carries its own dependencies, so reads were readable off the graph; once a write had propagated, nothing recorded what caused it, and a signal's readers could be counted but not named.
  • use, ref, bind, class and style directives now report their name, their element and the position they were written at.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

  • Each consumer of the graph now keeps its own cursor instead of sharing one drained queue, so updates are no longer lost when multiple tools watch the same page.
  • The graph channel now carries timeline events and the dev server retains its event buffer instead of discarding it after the first delivery. The endpoint has no single reader — an editor panel and a browser panel can both be watching — and draining it gave each of them whichever events the other had not taken. Every event carries a seq, so consumers deduplicate.

1.0.0-alpha.82

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • onMount and useEffect now only run on the client, avoiding errors from accessing document during server-side rendering. Suspense no longer attempts to read process.env.FX_DEBUG during hydration, preventing freezes in development builds.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.81

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Importing a retired subpath now fails the build with the name of the replacement and the file that imported it, rather than the bundler reporting a missing specifier.

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.80

@fluixi/auth

  • The package name remains @fluixi/core, and the router subpath is now @fluixi/core/router — if you previously tried using fluixi or @fluixi/core/router-next, update your imports accordingly.

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • The new @fluixi/template-runtime package compiles html and svg templates in the browser, with no build step, and @fluixi/compiler now includes a ./compile subpath that excludes node-specific dependencies.
  • The package name remains @fluixi/core, and the router subpath is now @fluixi/core/router — if you previously tried using fluixi or @fluixi/core/router-next, update your imports accordingly.

@fluixi/core

  • A list no longer rebuilds every node when it changes, as the runtime now creates components itself instead of waiting for @fluixi/core to provide a way to create them.
  • The package name remains @fluixi/core, and the router subpath is now @fluixi/core/router — if you previously tried using fluixi or @fluixi/core/router-next, update your imports accordingly.

@fluixi/dom

  • A list no longer rebuilds every node when it changes, as the runtime now creates components itself instead of waiting for @fluixi/core to provide a way to create them.

@fluixi/jsx

@fluixi/reactive

  • The package now falls back to checking window.__FLUIXI_PROD__ when process is not available, allowing it to load in a browser without a bundler.

@fluixi/server

@fluixi/session

  • The package name remains @fluixi/core, and the router subpath is now @fluixi/core/router — if you previously tried using fluixi or @fluixi/core/router-next, update your imports accordingly.

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.79

@fluixi/auth

  • The package is now named fluixi instead of @fluixi/core, with the same contents and subpaths; all other @fluixi/* packages retain their names. Replace @fluixi/core with fluixi in package.json and all import statements, and update subpaths like @fluixi/core/server to fluixi/server.

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • The package is now named fluixi instead of @fluixi/core, with the same contents and subpaths; all other @fluixi/* packages retain their names. Replace @fluixi/core with fluixi in package.json and all import statements, and update subpaths like @fluixi/core/server to fluixi/server.
  • The router subpath is now fluixi/router; it was previously @fluixi/core/router-next.
  • The rx subpath is removed and replaced with @fluixi/reactive for signals and effects, and fluixi/server for server-side primitives.

@fluixi/core

  • The package is now named fluixi instead of @fluixi/core, with the same contents and subpaths; all other @fluixi/* packages retain their names. Replace @fluixi/core with fluixi in package.json and all import statements, and update subpaths like @fluixi/core/server to fluixi/server.
  • The router subpath is now fluixi/router; it was previously @fluixi/core/router-next.
  • The rx subpath is removed and replaced with @fluixi/reactive for signals and effects, and fluixi/server for server-side primitives.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

  • The package is now named fluixi instead of @fluixi/core, with the same contents and subpaths; all other @fluixi/* packages retain their names. Replace @fluixi/core with fluixi in package.json and all import statements, and update subpaths like @fluixi/core/server to fluixi/server.

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.78

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • The npm descriptions no longer claim things that do not exist: Solid compatibility, an SWC compiler front-end, a language server, and a Biome plugin.

@fluixi/core

  • The npm descriptions no longer claim things that do not exist: Solid compatibility, an SWC compiler front-end, a language server, and a Biome plugin.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

  • The npm descriptions no longer claim things that do not exist: Solid compatibility, an SWC compiler front-end, a language server, and a Biome plugin.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.77

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • load: now works on a component you imported yourself. It used to do nothing there: deferring means creating the reference as a dynamic import, and a static one was already in the way. The static import is removed now and the deferred() binding takes its place, so the chunk splits like any other. Only when the name is used exclusively as a tag. JSX element names are JSXIdentifier, so any Identifier reference at all — register(Chart), a re-export, Chart.displayName — means the import stands and the directive is reported instead, since a lazy wrapper is not what those sites expect. Namespace imports and components declared in the file are reported too: there is no single export to defer. This reverses a prior rule that an author-written import always won. An import and a load: on the same name are two instructions that cannot both hold, and the directive is the more specific one.
  • Turn propsDestructure on by default. A component can take its props apart the plain way and the bindings stay live reads; ...rest becomes the splitProps call you would have written. What the rewrite can't prove safe it leaves as written and reports. Turn it off for a package that ships its source for consumers to compile — an exports entry pointing at .ts. The rewrite is a property of how code is compiled, so a consumer without the option would read those props once. Compiled output is fine either way.
  • Say when a component reference or a load: directive can't work. Both cases built cleanly and failed at runtime with no trace anywhere else:
    • A capitalised tag nothing imports and no resolve rule supplies compiles to a reference to a name that does not exist, so the component renders nothing. Commenting one line out of a resolve map was enough.
    • A deferring load: on a component the compiler doesn't supply is dropped, because deferring means creating the binding as a dynamic import and there is nothing to create. The chunk then ships eagerly, and nothing says so. Both warn now, naming the component and which situation it is, since the fixes differ. Warnings print once per message per module, so a watch rebuild doesn't repeat them.

@fluixi/core

@fluixi/dom

  • Remove export subpaths that pointed at modules that were never there. @fluixi/dom/dom, @fluixi/reactive/helpers and @fluixi/utils/{array,object,primitive,dom,functions}/types all failed to resolve, so nothing could have been importing them. Also fixes @fluixi/dom/control-flow in publishConfig.exports, which still pointed at the old path — the dev export map was corrected but the published one is what npm reads.
  • Fix the @fluixi/dom/control-flow export, which pointed at a file that does not exist (lib/dom/control-flow) and failed to resolve. It resolves to the control-flow module now — Show, For, Index, Switch, Match, Dynamic, Portal, ClientOnly, ErrorBoundary, classMap, styleMap and the array helpers.

@fluixi/jsx

@fluixi/reactive

  • Remove export subpaths that pointed at modules that were never there. @fluixi/dom/dom, @fluixi/reactive/helpers and @fluixi/utils/{array,object,primitive,dom,functions}/types all failed to resolve, so nothing could have been importing them. Also fixes @fluixi/dom/control-flow in publishConfig.exports, which still pointed at the old path — the dev export map was corrected but the published one is what npm reads.

@fluixi/server

@fluixi/session

@fluixi/utils

  • Remove export subpaths that pointed at modules that were never there. @fluixi/dom/dom, @fluixi/reactive/helpers and @fluixi/utils/{array,object,primitive,dom,functions}/types all failed to resolve, so nothing could have been importing them. Also fixes @fluixi/dom/control-flow in publishConfig.exports, which still pointed at the old path — the dev export map was corrected but the published one is what npm reads.

@fluixi/vite-plugin

1.0.0-alpha.76

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Add propsDestructure. With it on, a component can take its props apart the plain way and the compiler rewrites the bindings into reads, so they stay reactive:
    function Hello({ name, tone = 'calm' }) {
      return <p data-tone={tone}>{name}</p>;
    }
    
    Each use compiles to props.name, so the binding keeps its type and nothing else about the function changes. ...rest becomes the splitProps call you would have written, which carries the remaining props across as getters. Aliases, defaults and nested patterns work; a default still applies only to undefined. Anything the rewrite can't prove is left exactly as written and reported — a reassigned binding, a computed key, a default that would have to re-run on every read. Off by default. It's a property of how code is compiled, so a package that ships its source for others to compile should keep writing props explicitly.
  • Add the $ reactive intrinsics. $signal, $memo, $effect and $store compile to the runtime calls they stand for, with the import added for whatever a module actually used:
    const count = $signal(0); // → signal(0), plus the import
    
    They are the runtime API under another spelling, not a second one — $signal compiles to signal, so there is one reactive graph and no difference in lifecycle, SSR or hydration. The compiler resolves a primitive by where its binding came from rather than by how the name reads, so import { signal as state } is recognised and a local function signal() is not. A module that binds a $ name itself keeps its own meaning, and that is reported rather than rewritten. On by default: $signal is a reference error otherwise, so there is nothing for it to break. intrinsics: false turns it off.

@fluixi/core

  • Add useLinkNavigation() — client-side navigation for anchors the app didn't author. <Link> covers links written as JSX. It can't cover the ones that arrive as markup: markdown, a CMS payload, anything dropped in through innerHTML. Those are plain anchors with nothing to bind to, so every one of them reloaded the document. One delegated handler on the container fixes the lot:
    const onClick = useLinkNavigation();
    <article onClick={onClick} innerHTML={doc.html} />;
    
    The anchors stay anchors — middle-click, open in new tab, copy link address and crawlers all keep working, because only a plain left-click is taken over. Modified clicks, target, download, rel="external", mailto:/tel:, another origin and an in-page hash are left to the browser; shouldNavigate opts out a section that must load as a document.
  • Show a Suspense boundary's fallback when a lazy child appears after the first render. Navigating client-side to a route whose chunk isn't loaded yet fetched the chunk and then mounted nothing: no fallback, no content, no error — an empty node. The boundary tracks its children in a render effect so a suspended read is reported to it rather than to whatever effect happens to be running, but that effect only read the outer accessor. A component child arrives as a thunk, and the compiler wraps a dynamic child in its own memo, so the lazy component was never instantiated under the boundary at all. It ran later, downstream of the output memo, where a suspend has nothing that can re-run it. The children now go through readChildren — thunks unwrapped, signals left reactive, memoised so the tracking effect and the output share one instantiation — and the effect follows nested accessors. Hydration is unaffected: a route preloaded before hydrating still resolves synchronously and adopts the server DOM.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

  • Add signal, memo and effect — the same primitives as createSignal, createMemo and createEffect, handed back as one object rather than a tuple:
    const count = signal(0);
    count(); // read
    count.set(1); // write
    
    signal is the accessor createSignal returns, with the setter attached — so a read is the same call it always was, count still passes anywhere an accessor is expected, and only the write changes spelling. memo is createMemo under a shorter name, since a derived value has nothing to set. store comes along too, as the state itself with set on it:
    const user = store({ name: 'Ada' });
    user.name; // reads, and tracks that key
    user.set({ name: 'Grace' });
    
    resource comes along the same way — the accessor with refetch/mutate on it, beside the loading/error/latest it already carried. The rule across the API: read it the way its shape implies — a call for a value, a property for an object — and .set() writes. Reads still subscribe per key. createSignal, createMemo, createEffect and createStore are unchanged.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.75

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Fix Link and Form duplicating element children on hydration. Both forwarded author attributes with Object.entries(props), which reads every prop — including children, a getter the compiler emits to build fresh nodes per access. Under hydration that first, discarded build consumed the server's nodes, so the real read appended a second copy: a doubled logo and pager on every prerendered page, until a client-side navigation re-rendered the subtree. They iterate Object.keys and read only the props they forward.
  • Reference a route's own chunk and stylesheet in the document that renders it. A lazily-imported route is its own chunk with its own CSS, and neither was mentioned anywhere in the shell. The browser learned they existed only once hydration ran the dynamic import, so the route's markup painted before its styles arrived and the chunk was fetched a round trip later than it could have been. fluixi build now resolves each route to the files it compiles into — that is what Vite's SSR manifest was being generated for, and nothing had ever read it — and writes a URL-pattern map to dist/server. The handler looks the path up and emits modulepreload and stylesheet links into the head; deploy adapters inline the same map, since a worker cannot read it. The manifest itself is no longer published: it maps every source path to its chunk, which is not something a CDN needs to serve. Every part of it is optional. An app with no file routes, a path that matches nothing, or a build from before this existed yields no links and an unchanged page. @fluixi/core/plugins exports scanRoutes, so the build resolves routes with the same scanner the plugin uses instead of a second copy of the conventions.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

  • Let a store setter take the readonly value a store hands back. Reading a store gives a deeply readonly view, so set(untrackStore(other)) — the ordinary way to seed one store from another, or to reset from a snapshot — was rejected by the types for a call the setter handles fine: it copies values out of what it is given and never writes to it. Every such site needed a cast. UpdateValue and the path overload accept the readonly form now, and Immutable<T> is defined in terms of the same DeepReadonly<T> the setter takes, so the two cannot describe different shapes.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.74

@fluixi/auth

@fluixi/babel-plugin-jsx

  • Babel is no longer a dependency of @fluixi/compiler. The IR, the resolve and optimize passes, and codegen import no Babel — that has been true for a while, and dist/index.mjs proves it — but the package still listed five @babel/* packages under dependencies, so importing @fluixi/compiler for the component-resolver map or the IR types installed a whole compiler toolchain (52 MB in this workspace). @fluixi/ts-plugin, which imports @fluixi/compiler/builtins and nothing else, was paying that. @babel/core, @babel/generator, @babel/helper-plugin-utils and @babel/preset-typescript are now optional peer dependencies. The packages that always run a Babel compile — @fluixi/vite-plugin, @fluixi/start and @fluixi/babel-plugin-jsx — depend on them for real, so no app config changes and nothing new has to be installed. @babel/types was listed and never imported; it is gone. no-babel-in-core.spec.ts locks the invariant in by walking the import graph from each Babel-free entry point (. and ./builtins), following relative imports transitively and catching import 'x', import … from 'x', import('x') and require('x'). A stray Babel import in the core is not a style question: for a consumer that never installed the optional peer, it is a module that fails to resolve.
  • One lowering. The compiler had two implementations of every JSX semantic and compiled with only one of them. plugin.ts carried a full second lowering — the codegen: 'inline' path, plus the backend: 'jsx' factory emitter — alongside the IR pipeline that has been the default for some time. Nothing selected either one; the only references left in the repository were two tests written for them, and the option's own docstring still advertised inline as the default it had stopped being. Meanwhile the two implementations had to agree about ref, use:, spreads, control flow and template cloning, and when they disagreed it shipped: codegen: 'ir' went out as alpha.71 and broke three @fluixi/ui packages. Removed: 39 of the 46 functions in plugin.ts:898-2555 (~1,400 lines) and the backend, codegen, runtime, pragma, pragmaFrag, hoistStatics, useLitHTML, optimizeControlFlow, autoShowTransform, detectReactivity, delegatedEvents and optimize options that only fed them. JSX and html ``templates now take the same path they already took: build IR, run the imperative is byte-identical before and after. backend: 'jsx' is gone, but the @fluixi/jsx runtime is not: it is still what TypeScript's jsxImportSource resolves types through and what esbuild's automatic runtime targets. This compiler simply never emits a jsx() call. Also removed from @fluixi/compiler/integrations: a regex-based transform() that every adapter silently fell back to when @babel/core failed to load. It could not compile JSX, so it returned source whose templates had never become DOM calls — a build that reported success and failed when the page opened. Missing babel is now a hard error, and a compile error propagates instead of being swallowed and replaced with half-transformed source. The dead `generate: Nothing that compiles today compiles differently. Configs passing a removed option get a type error naming it, rather than an option that silently does nothing.

@fluixi/compiler

  • The compiler no longer runs inside babel. fluixi() and serverFunctionsVitePlugin() compile by rewriting the source directly: parse once, splice the emitted code over the spans it replaces. Nothing is reprinted, edits carry a source map, and types are left for esbuild to strip. The native option is gone — that is simply what the plugin does. Babel is kept for the case that needs it, the way Next keeps one: a babel.config.js whose other plugins have to see the output. fluixi({ babel: only by @fluixi/babel-plugin-jsx. What an app installs from that namespace is now @babel/parser, used as a parser. @fluixi/vite-pluginand@fluixi/startdeclare no babel packages at all, and importing@fluixi/compiler/integrationsloads none — pinned byno-babel-in-core.spec.ts, which distinguishes a static import from the dynamic one behind the opt-in. Verified on examples/start-app(HTML identical to the babel build), the docs site (53 prerendered pages identical), the@fluixi-uiplayground, and 681 files fromstore-admin, storefront` and the component library.
  • The webpack, rollup and esbuild adapters compile without babel. Only the vite one had been ported; the other three still called babel.transformAsync unconditionally, which made babel required for anyone not using vite. All four now go through one compileModule, so an adapter cannot drift from the others — a bundler integration growing its own compile logic is how the two paths diverged the first time. The esbuild adapter returns a ts/tsx loader rather than js: the transform leaves types in place for the bundler to strip, which esbuild has to be told. Rollup and esbuild also now accept .ts/.jsx, not only .tsx. This is what makes babel an integration rather than a requirement — the position Svelte and Vue are in, where the compiler is standalone and each bundler gets a thin wrapper.
  • Babel is no longer a dependency of @fluixi/compiler. The IR, the resolve and optimize passes, and codegen import no Babel — that has been true for a while, and dist/index.mjs proves it — but the package still listed five @babel/* packages under dependencies, so importing @fluixi/compiler for the component-resolver map or the IR types installed a whole compiler toolchain (52 MB in this workspace). @fluixi/ts-plugin, which imports @fluixi/compiler/builtins and nothing else, was paying that. @babel/core, @babel/generator, @babel/helper-plugin-utils and @babel/preset-typescript are now optional peer dependencies. The packages that always run a Babel compile — @fluixi/vite-plugin, @fluixi/start and @fluixi/babel-plugin-jsx — depend on them for real, so no app config changes and nothing new has to be installed. @babel/types was listed and never imported; it is gone. no-babel-in-core.spec.ts locks the invariant in by walking the import graph from each Babel-free entry point (. and ./builtins), following relative imports transitively and catching import 'x', import … from 'x', import('x') and require('x'). A stray Babel import in the core is not a style question: for a consumer that never installed the optional peer, it is a module that fails to resolve.
  • One lowering. The compiler had two implementations of every JSX semantic and compiled with only one of them. plugin.ts carried a full second lowering — the codegen: 'inline' path, plus the backend: 'jsx' factory emitter — alongside the IR pipeline that has been the default for some time. Nothing selected either one; the only references left in the repository were two tests written for them, and the option's own docstring still advertised inline as the default it had stopped being. Meanwhile the two implementations had to agree about ref, use:, spreads, control flow and template cloning, and when they disagreed it shipped: codegen: 'ir' went out as alpha.71 and broke three @fluixi/ui packages. Removed: 39 of the 46 functions in plugin.ts:898-2555 (~1,400 lines) and the backend, codegen, runtime, pragma, pragmaFrag, hoistStatics, useLitHTML, optimizeControlFlow, autoShowTransform, detectReactivity, delegatedEvents and optimize options that only fed them. JSX and html ``templates now take the same path they already took: build IR, run the imperative is byte-identical before and after. backend: 'jsx' is gone, but the @fluixi/jsx runtime is not: it is still what TypeScript's jsxImportSource resolves types through and what esbuild's automatic runtime targets. This compiler simply never emits a jsx() call. Also removed from @fluixi/compiler/integrations: a regex-based transform() that every adapter silently fell back to when @babel/core failed to load. It could not compile JSX, so it returned source whose templates had never become DOM calls — a build that reported success and failed when the page opened. Missing babel is now a hard error, and a compile error propagates instead of being swallowed and replaced with half-transformed source. The dead `generate: Nothing that compiles today compiles differently. Configs passing a removed option get a type error naming it, rather than an option that silently does nothing.
  • "use server" compiles on the native path. transformServerFns finds the directive, and either replaces the whole function with an RPC stub (client build) or wraps it in its registration and drops the directive (server build) — by rewriting spans, so the body that stays is the author's own text. The id a server function is registered and called by moves to transform/server-fn-id.ts and is shared with the babel path. Client stub and server registration come from separate builds of the same file, so the two have to agree exactly; a test compiles the same sources both ways and compares the ids they produce. serverFunctionsVitePlugin({ native: true }) selects it. On examples/start-app — which uses a server function behind a <Form> action — both paths serve identical HTML and answer the POST the same way.
  • compileTemplate() — compile a template to runtime calls with no Babel in the path. The template lowering moves out of the Babel front-end into lower/template.ts, which imports nothing from a JavaScript toolchain. What a front-end still owns is the holes, because reading ${…} means reading JavaScript; it hands them over as TemplateHole — source text, whether the expression is reactive, and the two structural facts the lowering branches on (a single-expression arrow for each, an object literal for class). Deliberately conclusions, never a syntax tree: if the lowering could ask a parser a new question, the dependency grows back one field at a time. compileTemplate(source, options) then runs parse → lower → resolve → optimize → emit and returns code, the runtime symbols to import, and the IR. It runs the same passes in the same order as the Babel front-end, and a differential test compiles ten templates both ways and compares the emitted code. One difference worth knowing: this path passes hole source through verbatim where the Babel path reprints it through @babel/generator, so output matches the author's formatting rather than the printer's. Not yet a module compiler. Finding templates inside a JavaScript file, and describing each hole without a parser, is the remaining piece.
  • native: true on the Vite plugin compiles without babel. The plugin gains parity with the front-end it replaces: delegated events are registered, components a resolve rule supplies are imported, lazy ones become deferred(() => import(…)) bindings with their strategy, and @fluixi/core/rx is rewritten to @fluixi/reactive. Names already bound in the file win, as before. On examples/start-app the two paths serve byte-identical HTML — the only difference in the built output is the client bundle's content hash, since the emitted text is not the same bytes. On the compile step alone the native path is 15-18x faster (27 KB fixture, 100 components: ~156 ms → ~10 ms). Whole-build time moves much less on a small app, where Vite and rollup dominate. Types are left in place for esbuild to strip, which it does after this plugin runs either way — so @babel/preset-typescript is not needed on this path. Opt-in while the two are compared on real apps. TypeScript stripping, JSX, html ``, nesting in either direction, and source maps are covered; the
  • @fluixi/compiler/transform — compile a module's templates without running as a Babel plugin. transformTemplates(code, id, options) parses once, finds every html`...` and svg`...`, and splices the emitted runtime calls over their spans with magic-string. Two things follow from owning the transform rather than living inside someone else's pipeline:
    • Source maps. The plugin path emits none — every generated node inherits one location from the template. A splice carries real mappings.
    • No reparse. Holes are source slices, so nothing is printed and re-parsed. That round-trip is 70% of compile time on the plugin path. Holes keep the author's formatting, since they are never reprinted. Import injection skips names already bound at module scope, which is the same answer path.scope.hasBinding gives on the Program path. @babel/parser becomes a dependency and is the only babel package the transform touches — a parser used as a library, the way Vue uses one. @babel/core, @babel/generator and @babel/helper-plugin-utils stay optional peers belonging to the plugin front-end, and no-babel-in-core.spec.ts fails the build if that line moves. JSX still goes through the plugin. Nothing changes for existing builds.
  • Move the reactivity rule out of the Babel front-end. Whether count() is wired reactively while count is not, and whether props.children counts as a value to track, is a Fluixi decision. It was written against @babel/types inside build-ir.ts, which meant the rule could only be read — and only be tested — through a parser. It now lives in @fluixi/compiler's analyze/reactive-expr.ts as isReactiveShape(shape) over a four-case ExprShape (call, member, compound, opaque). The Babel front-end keeps only the mapping from its AST to those shapes, which is the part that genuinely belongs to a front-end; a second front-end supplies its own mapping and inherits the semantics unchanged. ExprShape is deliberately narrow and must not grow into a JavaScript AST: every syntax the rule does not branch on collapses to compound (reactive when a part is) or opaque. Which sub-expressions count stays with the front-end — a spread element or a computed key contributes nothing, because the compiler cannot see what it would introduce. Behaviour is unchanged: examples/start-app compiles to a byte-identical bundle, and the rule now has a 39-case table covering both the shapes and the syntax that maps onto them.
  • JSX compiles through the transform, on the same builder as the plugin. buildJsxIR moves to lower/jsx.ts and reads node.type instead of a parser's helpers, asking the caller for an expression's source through code() — a front-end that can slice the original text returns that, one that reprints returns the printed form. Both paths get the same IR from one builder rather than two that have to agree. The two shape mappers collapse into one: shapeOf in analyze/expr-shape.ts reads node types, so it serves the Babel AST and any ESTree-shaped one. The 32-case syntax table now covers it. moduleBindings — which decides whether an injected import would collide — is checked against path.scope.hasBinding over 22 cases, including array holes, rest elements, nested destructuring and exported declarations. A missed binding emits a duplicate declaration; a phantom one drops an import the code needs. transformTemplates handles JSX, html ``, and either nested in the other. Still not wired into the Vite plugin.
  • Compiler specs run against the default path. Every semantic spec — directives, use:, load:, component resolution, slots, control flow, template cloning, the imperative fixtures — compiled through the babel plugin, which is now the optional integration. So the path that ships was the one without the coverage. They compile through transformTemplates now; the two that stay on babel do so deliberately, and say why: compile-cost measures both, templates.spec is the differential between them. format comes back as a transform option. It selected which syntaxes the plugin touched, and the transform had quietly always compiled both — a dropped option is worse than a kept one, since a config that sets it would silently mean something else.
  • Hoist static templates to module scope on the native path. compilePieces gains hoistTemplates, which leaves the _tmpl$N references in place and hands the templates back for a caller with a module scope to declare them in — matching what the plugin emits. compileTemplate still inlines, having nowhere to hoist to. Bundle size is unchanged either way (templateCache is keyed by the string, not its identity, so an inlined template still parses once), but the output shape now matches the path it is replacing.
  • The native path is checked against the babel one over 681 real files. store-admin and storefront, the whole @fluixi-ui component library, its playground, and this repo's docs, web, examples and playground: 281 files containing JSX or templates compiled both ways and compared on what the output does — element and template calls, inserts, spreads, component calls, and the attribute names that reach the DOM. No failures, no differences. The docs site builds natively and its 53 prerendered pages are byte-identical to the babel build once the bundle hash is normalised. One open difference: the native output tree-shakes slightly less. On the @fluixi-ui playground the bundle is 487.8 kB against 477.1 kB, with the same 225 modules in both — nothing is missing, some unused components are retained that the babel output lets rollup drop. Not diagnosed yet.
  • Register delegated events for JSX nested inside an expression. <button onClick={…}> reached through a ternary, a .map() callback or any other expression never got its event added to the module's delegateEvents call. JSX nested in an expression is compiled and discarded during the walk, and the handlers went with it — so nothing registered the listener and the button did nothing unless some other module in the app happened to register the same event. @fluixi-ui's table has exactly that shape: the sort button lives in a nested ternary, and table.tsx emitted no delegateEvents at all. Found by diffing the two compile paths over 226 real files — the native one walks every root, so it had been reporting the events all along. The sets now agree on every file.
  • Resolve components used only inside a nested expression. {(b) => <Input />} — a render prop, a .map() callback, a ternary — emitted a reference to Input that nothing imported. JSX inside an expression is compiled and discarded during the walk, and the resolve pass only ever ran on the top-level node, so a component the resolve rules should have supplied was simply left unbound. At runtime that is a ReferenceError the moment the branch renders. @fluixi-ui's playground has it in FormDemo: Input, Select and Checkbox are used only inside render props, and none of the three was imported. The fix replaces the ad-hoc event set threaded through genExpr with a hook called on any nested IR, which runs the same resolve, collapse and collect-needs passes the top-level node gets. Delegated events came along with it, having been the first symptom of the same hole. Found by diffing the native path against this one over the whole component library: it walks every root, so it had been resolving them correctly. The two now emit identical import sets on all 93 files, and the @fluixi-ui playground bundle goes from 477.2 kB to 486.7 kB — the missing components, now present.
  • Fix nested edits being applied twice when slicing a hole's source. A hole's text is taken from the original source with any compiled root inside it substituted in. That substitution applied every edit within the range, including ones already folded into a containing edit's output — so the second write landed at an offset the first had moved, and the emitted expression came out truncated. It needed three levels to show: a hole containing a root that itself contains another. examples/start-app did not have that shape; the docs site did, and failed to build. Both the file-level splice and the slice now apply only the outermost edits.
  • Two bugs the spec suite caught once it compiled through the transform. Builtin component modules were restated in the transform. Await was imported from @fluixi/dom, which does not export it, and Portal from core rather than dom. The lists live in resolve/builtins.ts — the same ones the resolve pass and the TS plugin read — and the transform now reads them instead of keeping its own copy. Two templates could share one hoisted name. Roots are emitted innermost first and spliced into their parent, so by the time the outer one is renamed its code already contains hoisted names. Sharing the backend's _tmpl$N prefix meant the rename rewrote those too and pointed both templates at one string — a <Switch> rendered its fallback's markup in place of the matched branch. Hoisted names use their own prefix now, so the two namespaces cannot be confused. The compiler specs compile through transformTemplates via test/fixtures.ts, which lives outside src so it is not published. Assertions on emitted text gained the parentheses the backend puts round a spliced expression — nothing reprints the output any more, and esbuild drops them.

@fluixi/core

  • @fluixi/core no longer installs the build toolchain. It listed @fluixi/compiler, @fluixi/vite-plugin and vite-plugin-node-polyfills under dependencies while importing none of them from src/ — they exist for the @fluixi/core/plugins subpath, which is build-time tooling. Declaring them as runtime dependencies of the runtime package meant every consumer of @fluixi/core installed Vite plugins and a Babel toolchain (52 MB in this workspace) to render a component. Component libraries built on @fluixi/core were passing that on to their own users. They are now optional peer dependencies: use @fluixi/core/plugins and you need them, otherwise you do not. @fluixi/start reaches that subpath through await import('@fluixi/core/plugins'), so it declares them itself — apps using the meta-framework are unaffected, and the standalone Vite templates already declared @fluixi/vite-plugin as a devDependency. @fluixi/core's runtime closure is now @fluixi/{dom,jsx,reactive,router,server,utils,head}, none of which reach the compiler.
  • Import the route tree from @fluixi/core/routes virtual:fluixi-routes needed an ambient declare module to be typed, which the plugin wrote into your src/ as fluixi-env.d.ts — a file you did not create, must not edit, and had to keep. It also left the specifier invisible to anything not running the Vite plugin: plain tsc, an editor, a test runner. @fluixi/core/routes is a real module, so its types come from this package and no generated file is needed. The plugin swaps in the scanned tree exactly as before.
    - import { routes } from 'virtual:fluixi-routes';
    + import { routes } from '@fluixi/core/routes';
    
    virtual:fluixi-routes still resolves, so this is not a breaking change, and the plugin no longer writes fluixi-env.d.ts — delete it once you have switched. Importing it without the plugin now throws with an actionable message rather than handing back an empty array, which would have built fine and 404'd every route.
  • The runtime specs compile through the default path. Sixteen specs — hydration, portals, control flow, SSR context, event replay — build their fixtures by compiling JSX and running the result. They compiled it with the babel plugin, so the code they exercised was not the code an app ships. They use @fluixi/compiler/transform now. @babel/core still appears in them, to turn ESM into CJS so new Function can evaluate the module. That is a property of the test, not of the compiler.
  • Fix resource ids shifting between the first request for a route and the next. A resource id is a position in a per-render sequence, and the client re-derives it by counting resources in the same order. lazy() broke that. Its module-load resource is created on the cold path only, and on the server the module stays loaded after the first request — so the first visitor after a restart got the page's own data under r1 and everyone after them got r0, while the client, which preloads routes before hydrating, always counted from r0. One of the two had to be wrong. In practice the first visitor after every deploy was served data keyed to an id their client never looked up: the resource fell back to fetching on the client, so that visitor paid a request the page had already answered, and saw whatever the loading state renders. ResourceOptions gains transport?: boolean. false opts a resource out of the __FX_DATA__ transport and out of the id sequence — the two have to move together, since an id consumed on one side only shifts every id after it. lazy() uses it: the value there is the component function, which never travelled to the client anyway, and the client re-imports the chunk itself. Both createResource implementations take the option — the live one in graph/resource.ts and the legacy @fluixi/reactive/signal-legacy — so the two cannot disagree about what an id means.
  • LinkProps accepts what Link forwards. Link forwards every prop it does not handle itself onto the <a> — id, style, title, aria-*, data-*, event handlers — deliberately allow-by-default so a polymorphic as={Link} keeps its styling hooks. The type did not say so, and <Link onClick={…}> was a type error on a prop that works at runtime.

@fluixi/dom

  • Don't ship an empty __FX_DATA__ script. A resource can resolve to something JSON cannot carry — most often a lazy route's module, where the resource value is the component function. That entry passed the "is there any data?" check (it is a real entry in the map) and then vanished inside JSON.stringify, so the document carried <script type="application/json" id="__FX_DATA__">{}</script>: a data transport with nothing in it, on every page whose only resource was a lazy import. serializeResourceData now skips values JSON cannot represent, and decides whether to emit on the serialized payload rather than on the map — so a nested undefined, or a class whose toJSON returns nothing, cannot resurrect the empty script either.
  • Fix resource ids shifting between the first request for a route and the next. A resource id is a position in a per-render sequence, and the client re-derives it by counting resources in the same order. lazy() broke that. Its module-load resource is created on the cold path only, and on the server the module stays loaded after the first request — so the first visitor after a restart got the page's own data under r1 and everyone after them got r0, while the client, which preloads routes before hydrating, always counted from r0. One of the two had to be wrong. In practice the first visitor after every deploy was served data keyed to an id their client never looked up: the resource fell back to fetching on the client, so that visitor paid a request the page had already answered, and saw whatever the loading state renders. ResourceOptions gains transport?: boolean. false opts a resource out of the __FX_DATA__ transport and out of the id sequence — the two have to move together, since an id consumed on one side only shifts every id after it. lazy() uses it: the value there is the component function, which never travelled to the client anyway, and the client re-imports the chunk itself. Both createResource implementations take the option — the live one in graph/resource.ts and the legacy @fluixi/reactive/signal-legacy — so the two cannot disagree about what an id means.

@fluixi/jsx

@fluixi/reactive

  • Fix resource ids shifting between the first request for a route and the next. A resource id is a position in a per-render sequence, and the client re-derives it by counting resources in the same order. lazy() broke that. Its module-load resource is created on the cold path only, and on the server the module stays loaded after the first request — so the first visitor after a restart got the page's own data under r1 and everyone after them got r0, while the client, which preloads routes before hydrating, always counted from r0. One of the two had to be wrong. In practice the first visitor after every deploy was served data keyed to an id their client never looked up: the resource fell back to fetching on the client, so that visitor paid a request the page had already answered, and saw whatever the loading state renders. ResourceOptions gains transport?: boolean. false opts a resource out of the __FX_DATA__ transport and out of the id sequence — the two have to move together, since an id consumed on one side only shifts every id after it. lazy() uses it: the value there is the component function, which never travelled to the client anyway, and the client re-imports the chunk itself. Both createResource implementations take the option — the live one in graph/resource.ts and the legacy @fluixi/reactive/signal-legacy — so the two cannot disagree about what an id means.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

  • The compiler no longer runs inside babel. fluixi() and serverFunctionsVitePlugin() compile by rewriting the source directly: parse once, splice the emitted code over the spans it replaces. Nothing is reprinted, edits carry a source map, and types are left for esbuild to strip. The native option is gone — that is simply what the plugin does. Babel is kept for the case that needs it, the way Next keeps one: a babel.config.js whose other plugins have to see the output. fluixi({ babel: only by @fluixi/babel-plugin-jsx. What an app installs from that namespace is now @babel/parser, used as a parser. @fluixi/vite-pluginand@fluixi/startdeclare no babel packages at all, and importing@fluixi/compiler/integrationsloads none — pinned byno-babel-in-core.spec.ts, which distinguishes a static import from the dynamic one behind the opt-in. Verified on examples/start-app(HTML identical to the babel build), the docs site (53 prerendered pages identical), the@fluixi-uiplayground, and 681 files fromstore-admin, storefront` and the component library.
  • Babel is no longer a dependency of @fluixi/compiler. The IR, the resolve and optimize passes, and codegen import no Babel — that has been true for a while, and dist/index.mjs proves it — but the package still listed five @babel/* packages under dependencies, so importing @fluixi/compiler for the component-resolver map or the IR types installed a whole compiler toolchain (52 MB in this workspace). @fluixi/ts-plugin, which imports @fluixi/compiler/builtins and nothing else, was paying that. @babel/core, @babel/generator, @babel/helper-plugin-utils and @babel/preset-typescript are now optional peer dependencies. The packages that always run a Babel compile — @fluixi/vite-plugin, @fluixi/start and @fluixi/babel-plugin-jsx — depend on them for real, so no app config changes and nothing new has to be installed. @babel/types was listed and never imported; it is gone. no-babel-in-core.spec.ts locks the invariant in by walking the import graph from each Babel-free entry point (. and ./builtins), following relative imports transitively and catching import 'x', import … from 'x', import('x') and require('x'). A stray Babel import in the core is not a style question: for a consumer that never installed the optional peer, it is a module that fails to resolve.
  • One lowering. The compiler had two implementations of every JSX semantic and compiled with only one of them. plugin.ts carried a full second lowering — the codegen: 'inline' path, plus the backend: 'jsx' factory emitter — alongside the IR pipeline that has been the default for some time. Nothing selected either one; the only references left in the repository were two tests written for them, and the option's own docstring still advertised inline as the default it had stopped being. Meanwhile the two implementations had to agree about ref, use:, spreads, control flow and template cloning, and when they disagreed it shipped: codegen: 'ir' went out as alpha.71 and broke three @fluixi/ui packages. Removed: 39 of the 46 functions in plugin.ts:898-2555 (~1,400 lines) and the backend, codegen, runtime, pragma, pragmaFrag, hoistStatics, useLitHTML, optimizeControlFlow, autoShowTransform, detectReactivity, delegatedEvents and optimize options that only fed them. JSX and html ``templates now take the same path they already took: build IR, run the imperative is byte-identical before and after. backend: 'jsx' is gone, but the @fluixi/jsx runtime is not: it is still what TypeScript's jsxImportSource resolves types through and what esbuild's automatic runtime targets. This compiler simply never emits a jsx() call. Also removed from @fluixi/compiler/integrations: a regex-based transform() that every adapter silently fell back to when @babel/core failed to load. It could not compile JSX, so it returned source whose templates had never become DOM calls — a build that reported success and failed when the page opened. Missing babel is now a hard error, and a compile error propagates instead of being swallowed and replaced with half-transformed source. The dead `generate: Nothing that compiles today compiles differently. Configs passing a removed option get a type error naming it, rather than an option that silently does nothing.

1.0.0-alpha.73

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Default codegen back to inline 1.0.0-alpha.71 made ir the default. Running a real component library against it found two separate defects: ref was thunked (fixed in alpha.72), and something further that breaks delegated interaction in two more packages, still undiagnosed. The IR path is not at parity with inline, so it should not be what an app gets by default. codegen: 'ir' remains available and is still where the newer work lives — template cloning, partial templates, resolution and load strategies all run through it. It becomes the default again once a real library passes on it.
  • Keep template-cloned elements when a hole receives an array reconcileArrays clones any node that already has a parent other than the target, so a module-hoisted static element is never stolen from its current owner. A DocumentFragment is not that kind of owner: cloneTemplate hands back the clone still inside its fragment, so every template-cloned element arrived with a non-null parent and was cloned again. cloneNode copies attributes but not event-handler properties, so the live DOM ended up holding handler-less copies while the wired-up nodes were discarded, unconnected. It took templateClone (for the fragment parent), partialTemplates (for the hole) and two siblings (so the hole received an array) — the default combination on the IR codegen. A single child takes a different insert path and always worked, which is why a component library hit this and the framework's own tests did not. With that fixed, codegen defaults to 'ir' again.

@fluixi/core

@fluixi/dom

  • Keep template-cloned elements when a hole receives an array reconcileArrays clones any node that already has a parent other than the target, so a module-hoisted static element is never stolen from its current owner. A DocumentFragment is not that kind of owner: cloneTemplate hands back the clone still inside its fragment, so every template-cloned element arrived with a non-null parent and was cloned again. cloneNode copies attributes but not event-handler properties, so the live DOM ended up holding handler-less copies while the wired-up nodes were discarded, unconnected. It took templateClone (for the fragment parent), partialTemplates (for the hole) and two siblings (so the hole received an array) — the default combination on the IR codegen. A single child takes a different insert path and always worked, which is why a component library hit this and the framework's own tests did not. With that fixed, codegen defaults to 'ir' again.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.72

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Stop thunking ref on the IR codegen path ref={mergeRefs(a, b)} is a call expression, which the IR path read as a reactive value and wrapped: ref: () => mergeRefs(a, b). The runtime calls ref(element), so it called the thunk instead — the real callback never received the element, and everything hanging off that reference stopped working with nothing reported. This only surfaced once codegen: 'ir' became the default in 1.0.0-alpha.71; a component library using a call-expression ref loses press state, forwarded refs and activation handlers on that release. Upgrade past it, or set codegen: 'inline'.

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.71

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Generate the ambient declarations for resolved components resolve lets a capitalised tag skip its import, but TypeScript still reported Cannot find name for every one of them — the import only exists after compilation. The answer was a hand-written .d.ts per project, or a CLI shipped by whichever component library you happened to use. The compiler now generates it. componentGlobals(rules) turns a resolve config into declarations, and the Vite plugin writes them to src/fluixi.d.ts on config resolve. Set globals to another path, or false to turn it off. Commit the file — that is what lets a fresh clone type-check before anyone starts the dev server. The generator belongs here rather than in a component library because only the resolve config knows the whole picture: library components, the project's own, and the builtins all arrive through it. The file goes to fluixi.d.ts at the project root, which needs "fluixi.d.ts" in the tsconfig include alongside "src". If it is written somewhere TypeScript will not read it, the plugin says so — an ignored file and a missing one produce identical errors, so that is not a difference worth leaving anyone to work out.
  • Run use: directives in JSX, and make IR the default codegen <div use:tooltip={opts} /> in JSX compiled to a prop literally named use:tooltip, which the runtime does not dispatch on — so the directive never ran, and nothing said so. It worked in html ``and undercodegen: 'ir', which is what made it look like it the runtime reads. codegen now defaults to 'ir'. Both paths produce the same behaviour, but the IR path is the one the newer work is built on — template cloning, partial templates, resolution and load strategies — so it is what most output already goes through. Set codegen: 'inline' to keep the old path.

@fluixi/core

  • Stamp the version attributes on every render path, not just core's fluixi/fx-dom/fx-reactive were stamped by @fluixi/core's render, which an SSR app never calls: startClient hydrates through the DOM runtime's own render, so those apps — the docs site among them — carried no version attributes at all. Exactly the case where a bug report needs them. The stamping now lives in @fluixi/dom, which both paths pass through. @fluixi/core cannot be imported from there without a dependency cycle, so core registers its version on load instead and whichever render runs stamps what it has been given.

@fluixi/dom

  • Stamp the version attributes on every render path, not just core's fluixi/fx-dom/fx-reactive were stamped by @fluixi/core's render, which an SSR app never calls: startClient hydrates through the DOM runtime's own render, so those apps — the docs site among them — carried no version attributes at all. Exactly the case where a bug report needs them. The stamping now lives in @fluixi/dom, which both paths pass through. @fluixi/core cannot be imported from there without a dependency cycle, so core registers its version on load instead and whichever render runs stamps what it has been given.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.70

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Publish the built-in component names as data @fluixi/compiler/builtins exports the names the compiler supplies without an import, and the module each comes from:
    import {
      builtinComponentMap,
      RESERVED_COMPONENTS,
    } from '@fluixi/compiler/builtins';
    
    These were hardcoded inside the Babel plugin, which mixed up two things: which module a name comes from — data every tool needs — and which names get special codegen, which is the compiler's business. With nothing published, @fluixi/ts-plugin kept its own copy. That copy is gone, and the subpath carries no compiler code, so the plugin's bundle grows 2 KB rather than pulling the compiler in. A configured resolve rule now wins over Router, Outlet, Redirect and Link. Those are only an auto-import, so a project defining its own Link previously lost to the router's silently, rendering the wrong component with nothing reported. Control flow is unchanged and still outranks rules, because there the name selects codegen a rule cannot supply: Show, For, Index and Match emit their value prop as a getter, so each={items()} re-reads instead of snapshotting once. RESERVED_COMPONENTS lists them so rule generators can report a clash instead of emitting a rule that does nothing.
  • Record where each component reference comes from in the IR IRComponent gains source — { module, export, origin } — set by a resolve pass that runs between the frontends and codegen:
    import { resolveComponentSources } from '@fluixi/compiler';
    const { resolved, unresolved } = resolveComponentSources(ir, {
      resolver,
      isBound,
    });
    
    origin separates rule from builtin because they are not interchangeable: a rule is configuration and can be re-targeted, while a control-flow name also selects a lowering and cannot. Precedence is encoded once, so import injection and later passes read one answer instead of agreeing by coincidence. unresolved lists capitalised tags nothing supplies and nothing binds. Those compile to a reference to an identifier that does not exist — the build succeeds and the page throws — so reporting them is the point of the pass having a return value. Emitted output is unchanged.
  • Add the load: directive — decide when a component's code is fetched Resolution says where a component comes from; load: says when it loads. They are separate because they vary independently: a component's location is the same everywhere and belongs in config, while whether a particular usage should wait for the viewport is a property of that usage.
    <Summary />                                    // eager — entry chunk
    <ExportDialog load:interaction />              // own chunk, on first interaction
    <AuditLog load:media="(min-width: 1024px)" />  // own chunk, desktop only
    <RevenueChart load:visible="200px" />          // own chunk, on approach
    
    Six strategies: eager, idle, visible, interaction, media, never. A deferred component compiles to deferred(() => import('…'), { strategy }) instead of a static import, so chunking, hashing and tree-shaking stay ordinary bundler behaviour rather than an integration. deferred() is new in @fluixi/core, built on lazy() — it adds only the scheduling, reusing Suspense integration and the synchronous-when-preloaded hydration path unchanged. load: joins the existing use:/prop:/attr:/bool: namespace, so it cannot collide with a real prop. Both syntaxes share one parser: load:visible is already a valid JSXNamespacedName, and the html``parser gains aLoadDirective node, but each funnels through the same helper — a test pins the two to identical output. Strategy collapsing is included, and it is not optional. If a module is referenced eagerly anywhere in the file, deferred references to it are demoted to eager: it is in the chunk already, so a lazy boundary would add a wrapper, a promise and a re-render in order to fetch nothing — and emitting both forms would redeclare the binding. The strategy must be a literal. It decides how the module is emitted, so a runtime value cannot supply it, and load:visible={margin} is an error rather than a silent fallback. See examples/load-strategies, whose test runs the real build and asserts which chunk each component landed in.
  • Build markup by cloning a template instead of an element at a time Static markup is serialized to HTML once, declared at module scope, and cloned per instance. Subtrees whose structure is static but which contain dynamic values are cloned too, with each value inserted through a reference into the clone:
    const _tmpl$0 =
      '<div class="card"><h3><!--fx--><!--fx/--></h3><p>a <!--fx--><!--fx/--> b</p></div>';
    const _el$ = templateNode(_tmpl$0, 'div', true);
    const _n$1 = _el$.firstChild.firstChild;
    const _n$2 = holeEnd(_n$1);
    insert(
      _el$.firstChild,
      holeScope(_n$1, () => () => title()),
      _n$2,
      holeContent(_n$1, _n$2)
    );
    
    Instantiation is roughly twice as fast — 2.08x for a three-element row, 2.45x for a nine-element card, measured in Chrome against the real runtime. The gap widens with component size. Transfer size is unchanged: the old output was repetitive enough that compression absorbed it, so this is a parse-time and runtime win rather than a bytes one. Applies to html\`andcodegen: 'ir', and is on by default. templateClone: falseandpartialTemplates: falseopt out. **Each interpolation leaves an<!--fx-->…<!--fx/-->pair in the HTML.** That is what makes a clone, the server's markup and the DOM being hydrated the same shape, so one set of node references addresses all three and hydration adopts the server's nodes rather than rebuilding them. Tests asserting exact server markup will need to account for them. New in@fluixi/dom: templateNode, holeEnd, holeContent, holeScope, and a server parser that turns a template into server nodes so SSR can render into it. Some shapes stay on the element-by-element path, because a template would change what the code means: SVG, namespaced names (prop:, attr:, bool:, on:), property-only names (innerHTML, value, …), raw-text elements (<style>, <script>`), and adjacent text children, which the DOM merges while the IR does not.
  • Fix control flow not being imported when nested &lt;div&gt;&lt;Show/&gt;&lt;/div&gt; compiled to a reference to an undefined Show. The JSX visitor registers control-flow names, but a lowered parent is replaced before its subtree is walked, so a nested tag never reached it. Registration moved to emitComponentCall, the chokepoint every component passes through. Only unbound names are injected, so a hand-written import still wins, and repeated usage emits one binding.
  • Fix codegen: 'ir' skipping resolution, and drop a dead import Under codegen: 'ir' a resolved tag compiled to a bare reference with no import and threw at runtime — the IR path never ran the resolve pass. It now runs the same passes as the html\`path.load:was also read as an ordinary attribute there, so the directive The IR path also emitted import { jsx, jsxs, Fragment } from '@fluixi/jsx'into every file, which it never uses.backend: 'jsx'` is unaffected.
  • Fix a named slot duplicating a same-named attribute &lt;Card header&gt;&lt;span slot="header"&gt;…&lt;/span&gt;&lt;/Card&gt; emitted the header key twice — valid JS where the last wins, but the first is dead and esbuild warns on every build. A slot now replaces a same-named attribute: content is the more specific intent.
  • Write literal attributes directly instead of through spread An element with only compile-time-constant attributes emitted spread({ element, props: { className: "card" } }). spread walks every prop checking for reactivity, events, refs, class/style objects and namespaces — none of which a constant needs. It now emits el.setAttribute("class", "card"). This covers elements that cannot be cloned whole because a child is dynamic, which is the common shape. Fully static subtrees already bake their attributes into the template. SVG stays on spread, where the namespace handling lives.

@fluixi/core

  • Stop re-exporting @fluixi/utils from the main entry export * from '@fluixi/utils' in core.ts put the whole utility library into every app's module graph. On the counter example:
    raw gzip
    before 100.27 kB 31.86 kB
    after 23.50 kB 8.19 kB
    @fluixi/utils was 56% of a minimal app's source bytes, and a counter was also shipping
    the router. A barrel re-exporting another barrel is not shakeable in practice, and
    sideEffects: false on core does not help — it would also be wrong, since index.ts calls
    ensureIntegration() at module scope.
    Migration. Import helpers directly:
    import { get } from '@fluixi/utils/object'; // preferred — finest grained
    import { get } from '@fluixi/core/utils'; // same surface, one import away
    
    @fluixi/core/utils is a new entry point carrying the full surface, so this is one import rewrite rather than one per helper. Core's own internals already used the @fluixi/utils/* subpaths and are unaffected.
  • Add the load: directive — decide when a component's code is fetched Resolution says where a component comes from; load: says when it loads. They are separate because they vary independently: a component's location is the same everywhere and belongs in config, while whether a particular usage should wait for the viewport is a property of that usage.
    <Summary />                                    // eager — entry chunk
    <ExportDialog load:interaction />              // own chunk, on first interaction
    <AuditLog load:media="(min-width: 1024px)" />  // own chunk, desktop only
    <RevenueChart load:visible="200px" />          // own chunk, on approach
    
    Six strategies: eager, idle, visible, interaction, media, never. A deferred component compiles to deferred(() => import('…'), { strategy }) instead of a static import, so chunking, hashing and tree-shaking stay ordinary bundler behaviour rather than an integration. deferred() is new in @fluixi/core, built on lazy() — it adds only the scheduling, reusing Suspense integration and the synchronous-when-preloaded hydration path unchanged. load: joins the existing use:/prop:/attr:/bool: namespace, so it cannot collide with a real prop. Both syntaxes share one parser: load:visible is already a valid JSXNamespacedName, and the html``parser gains aLoadDirective node, but each funnels through the same helper — a test pins the two to identical output. Strategy collapsing is included, and it is not optional. If a module is referenced eagerly anywhere in the file, deferred references to it are demoted to eager: it is in the chunk already, so a lazy boundary would add a wrapper, a promise and a re-render in order to fetch nothing — and emitting both forms would redeclare the binding. The strategy must be a literal. It decides how the module is emitted, so a runtime value cannot supply it, and load:visible={margin} is an error rather than a silent fallback. See examples/load-strategies, whose test runs the real build and asserts which chunk each component landed in.
  • Report the running package versions on the mount element and window.Fluixi The mount element now carries which build of each package is running:
    <div
      id="app"
      fluixi="1.0.0-alpha.68"
      fx-dom="1.0.0-alpha.68"
      fx-reactive="1.0.0-alpha.68"
    ></div>
    
    and the same is available in the console:
    window.Fluixi; // { core: '…', dom: '…', reactive: '…' }
    
    It replaces fluixi-js="v1", which said only that Fluixi was involved. Three attributes rather than one because the packages are resolved separately even though they release together. A stale lockfile or a duplicated install can pair one version of the DOM runtime with another of the signal core, which surfaces as reactivity behaving inexplicably — so a mismatch also warns once at mount, naming the versions. @fluixi/core, @fluixi/dom and @fluixi/reactive each export VERSION.

@fluixi/dom

  • Build markup by cloning a template instead of an element at a time Static markup is serialized to HTML once, declared at module scope, and cloned per instance. Subtrees whose structure is static but which contain dynamic values are cloned too, with each value inserted through a reference into the clone:
    const _tmpl$0 =
      '<div class="card"><h3><!--fx--><!--fx/--></h3><p>a <!--fx--><!--fx/--> b</p></div>';
    const _el$ = templateNode(_tmpl$0, 'div', true);
    const _n$1 = _el$.firstChild.firstChild;
    const _n$2 = holeEnd(_n$1);
    insert(
      _el$.firstChild,
      holeScope(_n$1, () => () => title()),
      _n$2,
      holeContent(_n$1, _n$2)
    );
    
    Instantiation is roughly twice as fast — 2.08x for a three-element row, 2.45x for a nine-element card, measured in Chrome against the real runtime. The gap widens with component size. Transfer size is unchanged: the old output was repetitive enough that compression absorbed it, so this is a parse-time and runtime win rather than a bytes one. Applies to html\`andcodegen: 'ir', and is on by default. templateClone: falseandpartialTemplates: falseopt out. **Each interpolation leaves an<!--fx-->…<!--fx/-->pair in the HTML.** That is what makes a clone, the server's markup and the DOM being hydrated the same shape, so one set of node references addresses all three and hydration adopts the server's nodes rather than rebuilding them. Tests asserting exact server markup will need to account for them. New in@fluixi/dom: templateNode, holeEnd, holeContent, holeScope, and a server parser that turns a template into server nodes so SSR can render into it. Some shapes stay on the element-by-element path, because a template would change what the code means: SVG, namespaced names (prop:, attr:, bool:, on:), property-only names (innerHTML, value, …), raw-text elements (<style>, <script>`), and adjacent text children, which the DOM merges while the IR does not.
  • Report the running package versions on the mount element and window.Fluixi The mount element now carries which build of each package is running:
    <div
      id="app"
      fluixi="1.0.0-alpha.68"
      fx-dom="1.0.0-alpha.68"
      fx-reactive="1.0.0-alpha.68"
    ></div>
    
    and the same is available in the console:
    window.Fluixi; // { core: '…', dom: '…', reactive: '…' }
    
    It replaces fluixi-js="v1", which said only that Fluixi was involved. Three attributes rather than one because the packages are resolved separately even though they release together. A stale lockfile or a duplicated install can pair one version of the DOM runtime with another of the signal core, which surfaces as reactivity behaving inexplicably — so a mismatch also warns once at mount, naming the versions. @fluixi/core, @fluixi/dom and @fluixi/reactive each export VERSION.

@fluixi/jsx

@fluixi/reactive

  • Report the running package versions on the mount element and window.Fluixi The mount element now carries which build of each package is running:
    <div
      id="app"
      fluixi="1.0.0-alpha.68"
      fx-dom="1.0.0-alpha.68"
      fx-reactive="1.0.0-alpha.68"
    ></div>
    
    and the same is available in the console:
    window.Fluixi; // { core: '…', dom: '…', reactive: '…' }
    
    It replaces fluixi-js="v1", which said only that Fluixi was involved. Three attributes rather than one because the packages are resolved separately even though they release together. A stale lockfile or a duplicated install can pair one version of the DOM runtime with another of the signal core, which surfaces as reactivity behaving inexplicably — so a mismatch also warns once at mount, naming the versions. @fluixi/core, @fluixi/dom and @fluixi/reactive each export VERSION.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.69

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Resolve unbound component tags to modules, so a component can be used without an import The framework already auto-imported Suspense/Portal/Router, but through a hardcoded name set inside the Babel plugin — not extensible by a UI library or an app. resolve makes that configurable:
    // vite.config.ts — forwarded through the vite/rollup integration
    fluixi({
      resolve: [
        { components: { Button: '@fluixi-ui/button' } },
        { match: /^Icon(.+)$/, module: '@/icons/$1', export: 'default' },
      ],
    });
    
    html<Button>Save</Button>``and<Button>Save</Button> then compile identically with no import written by hand. Resolution is by name, below the syntax layer, so parity between the two syntaxes is structural rather than maintained by hand.
    • A lexical binding always wins — an explicit import or a local of the same name is never overridden, so enabling this cannot change what an existing file means.
    • Components from one module share a single injected import.
    • A name claimed by two rules with different targets is reported as a conflict rather than resolved first-rule-wins: with a map of ~80 common words (Card, Table, Text), a working import of the wrong component is far harder to debug than an error.
    • With no resolve rules, behaviour is exactly as before. createComponentResolver is exported so the TS plugin can synthesise the same import for hover/go-to-definition/rename, and a codemod can materialise imports back into source. Keeping resolution a pure name -> { module, export } function is what lets those consumers agree. Also forwarded through the vite and rollup integrations: getOptions() is an allowlist, so an option missing from it is silently dropped rather than rejected.

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.68

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Dispose a control-flow branch when it is left Show, Switch and Dynamic rendered their branches in the enclosing owner, so anything a branch registered with onCleanup — an event listener, an observer, a timer — was never torn down when that branch went away. It piled up on the outer scope and only ran when the whole tree died. In practice: a component inside a closed <Show> kept listening, and reopening left two live listeners, so an outside-click dismissal fired on clicks inside the reopened panel. Each branch now renders in its own scope, disposed when the branch changes. Keyed on the branch, not on every re-run: these memos also re-run when a value changes within the same branch, and disposing then would throw away DOM the runtime deliberately reuses. For already disposed removed items correctly and is unchanged. Match now holds its children lazily, like when. Read eagerly, every branch's children were built the moment the Match node was — before Switch had chosen one — so they were created outside the branch's scope, and non-matching branches were built for nothing. @fluixi/reactive exports createChildOwner / disposeScope for this: a scope that is a child of the creation-time owner, so context still resolves up the chain, but whose cleanups can be torn down independently.
  • Make selected, open and optgroup/option disabled reactive These six were left as plain boolean while the rest of the toggle-state attributes were converted, so binding one — <option selected={() => value() === v}>, <details open={() => expanded()}> — failed to type-check even though the runtime applies a function-valued prop as a reactive render effect. Covers details/dialog open, fieldset/optgroup/option disabled, and option selected. keygen and link keep their non-reactive disabled: both are obsolete.

@fluixi/jsx

@fluixi/reactive

  • Dispose a control-flow branch when it is left Show, Switch and Dynamic rendered their branches in the enclosing owner, so anything a branch registered with onCleanup — an event listener, an observer, a timer — was never torn down when that branch went away. It piled up on the outer scope and only ran when the whole tree died. In practice: a component inside a closed <Show> kept listening, and reopening left two live listeners, so an outside-click dismissal fired on clicks inside the reopened panel. Each branch now renders in its own scope, disposed when the branch changes. Keyed on the branch, not on every re-run: these memos also re-run when a value changes within the same branch, and disposing then would throw away DOM the runtime deliberately reuses. For already disposed removed items correctly and is unchanged. Match now holds its children lazily, like when. Read eagerly, every branch's children were built the moment the Match node was — before Switch had chosen one — so they were created outside the branch's scope, and non-matching branches were built for nothing. @fluixi/reactive exports createChildOwner / disposeScope for this: a scope that is a child of the creation-time owner, so context still resolves up the chain, but whose cleanups can be torn down independently.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.67

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Add ClientOnly / NoSsr Renders children only in the browser, for subtrees that read window, a canvas, or produce time/locale-dependent output that would differ between the server and client passes and corrupt hydration. The swap to children is deferred to a microtask: hydrate() runs synchronously, so rendering them during the pass would desync the hydration cursor from the server markup — the exact bug the component exists to prevent. Outside hydration there is nothing to match, so children render immediately and fallback never appears.

@fluixi/dom

  • Add ClientOnly / NoSsr Renders children only in the browser, for subtrees that read window, a canvas, or produce time/locale-dependent output that would differ between the server and client passes and corrupt hydration. The swap to children is deferred to a microtask: hydrate() runs synchronously, so rendering them during the pass would desync the hydration cursor from the server markup — the exact bug the component exists to prevent. Outside hydration there is nothing to match, so children render immediately and fallback never appears.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.66

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Fix ComponentChild being any, which disabled type checking at every component boundary The union ended in | any, and a union containing any is any. Every component return, every children, and every render prop's parameter was silently untyped — <Pressable>{(state) => ...}</Pressable> gave state: any. FxElement (JSX.Element) is now the same type rather than a parallel copy that had drifted, and an html`` TemplateResult is assignable to a renderable value. Build-time assertions keep both from regressing. Also: createDynamicElement infers what it builds — 'div' → HTMLDivElement, 'circle' → SVGCircleElement, a component → its own return type — instead of any.

@fluixi/dom

  • Fix ComponentChild being any, which disabled type checking at every component boundary The union ended in | any, and a union containing any is any. Every component return, every children, and every render prop's parameter was silently untyped — <Pressable>{(state) => ...}</Pressable> gave state: any. FxElement (JSX.Element) is now the same type rather than a parallel copy that had drifted, and an html`` TemplateResult is assignable to a renderable value. Build-time assertions keep both from regressing. Also: createDynamicElement infers what it builds — 'div' → HTMLDivElement, 'circle' → SVGCircleElement, a component → its own return type — instead of any.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.65

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Export createDynamicElement from @fluixi/dom. Building an element or component from a type known only at runtime is what a polymorphic as prop needs, and what JSX syntax cannot express — you can write <div> or <Comp>, but not <{value}>. That logic lived in the automatic JSX runtime only because JSX happened to be its first caller. It belongs in dom: both authoring modes compile to the same dom calls, so an as-polymorphic component shouldn't have to depend on @fluixi/jsx. It did — which made @fluixi/jsx a runtime dependency of every component library built on as, including for apps that only ever write html`` templates. jsx() now calls it rather than keeping its own copy, so the two paths can't drift the way spread and applyProps did.
  • Type the remaining attributes as Reactive<>. Thirteen attributes — including id, title, href, src, disabled, checked and placeholder — were written by hand as T | Accessor<T> while every other attribute uses Reactive<T>. The difference is that Reactive<T> permits undefined, which is how an attribute is omitted reactively: () => (cond ? value : undefined) removes it, because setAttribute already drops an attribute on undefined/null/false. So the most commonly bound attributes were the ones that couldn't be omitted without a cast — the same gap style had. Widening only accepts more, so nothing that compiled before stops compiling. SVGAttributes had the same split inside one interface: its presentation attributes were already Reactive<>, but the core id, className, style, lang beside them were not — so an SVG could animate its fill while being unable to compute its id. style there also had no accessor form at all.

@fluixi/head

@fluixi/jsx

  • Export createDynamicElement from @fluixi/dom. Building an element or component from a type known only at runtime is what a polymorphic as prop needs, and what JSX syntax cannot express — you can write <div> or <Comp>, but not <{value}>. That logic lived in the automatic JSX runtime only because JSX happened to be its first caller. It belongs in dom: both authoring modes compile to the same dom calls, so an as-polymorphic component shouldn't have to depend on @fluixi/jsx. It did — which made @fluixi/jsx a runtime dependency of every component library built on as, including for apps that only ever write html`` templates. jsx() now calls it rather than keeping its own copy, so the two paths can't drift the way spread and applyProps did.

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.64

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Map compiled html`` back to the template. The IR is emitted as a string and reparsed, so the resulting nodes carry no position. Babel then falls back to the enclosing node's, collapsing everything lowered from a template onto a single point — a breakpoint or stack frame inside compiled template code landed at the top of the enclosing function rather than at the template. Generated nodes now inherit the template's own location, so template-derived code maps into the template's span. This is coarse by construction: everything from one template maps to that template, not to the individual hole it came from. Per-hole precision would mean carrying spans through the emit, which the string round-trip discards — a larger change to the backend.
  • Auto-import <SuspenseList>, and make a reactive class a render effect. SuspenseList was listed in the compiler's core-only control-flow set but never in the set that drives auto-import, so the core-only entry was dead and <SuspenseList> in a template failed to compile unless imported by hand — while Suspense and Await, which sit beside it in core, worked. Surfaced by building the language-service map against these sets. setClassName wrapped a function-valued class in createEffect, whereas spread already wraps class in createRenderEffect and every other attribute binding uses a render effect. A class forwarded through applyProps — which is what every polymorphic wrapper does — was therefore scheduled a phase later than the same binding written as a compiled attribute. Also removes a commented-out console.log and a dead alternative implementation left in that function.

@fluixi/core

  • Add createDebouncedSignal and createDebouncedResource; stop createDebounce touching the DOM. Two values, not one. A debounced input has an immediate value — what the user is typing, and what a controlled input must be bound to — and a settled value, which is what a query should run on. Collapsing them into one delayed signal makes a controlled input lag behind the keyboard, so both are exposed:
    const [query, setQuery, { immediate, pending, flush, cancel }] =
      createDebouncedSignal('', 300);
    
    flush and cancel are part of the primitive rather than extras: a search box needs "submit now" on Enter, and leaving a screen needs to drop a pending write instead of firing it into a disposed scope. Disposal cancels automatically. createDebouncedResource is search-as-you-type as one primitive, and keeps the two waiting states apart: pending is "still typing", resource.loading is "a request is in flight". A UI that conflates them either flickers on every keystroke or looks frozen while typing. An empty query doesn't fetch, so clearing a search box doesn't hit the network; shouldFetch overrides that rule. Behaviour change: createDebounce inspected its last argument and, if it looked like an input/textarea or an event targeting one, called .focus() on it. A general-purpose debounce silently moving focus is a side effect nobody asks for, it made the primitive unusable outside the DOM, and it fired on any argument that happened to match. Removed. If a debounced update was relying on it to keep focus, that belongs at the call site.

@fluixi/dom

  • Type style as Reactive<>, like every other attribute. It was string | CSSProperties | Accessor<string | CSSProperties>, so an accessor could not return undefined — making style the one attribute that couldn't be omitted reactively. setStyle already removes it on null/undefined, so only the type disagreed. This blocks any component that forwards a computed style, since "no style" has to be expressible.
  • Auto-import <SuspenseList>, and make a reactive class a render effect. SuspenseList was listed in the compiler's core-only control-flow set but never in the set that drives auto-import, so the core-only entry was dead and <SuspenseList> in a template failed to compile unless imported by hand — while Suspense and Await, which sit beside it in core, worked. Surfaced by building the language-service map against these sets. setClassName wrapped a function-valued class in createEffect, whereas spread already wraps class in createRenderEffect and every other attribute binding uses a render effect. A class forwarded through applyProps — which is what every polymorphic wrapper does — was therefore scheduled a phase later than the same binding written as a compiled attribute. Also removes a commented-out console.log and a dead alternative implementation left in that function.

@fluixi/head

@fluixi/jsx

@fluixi/reactive

  • Add createDebouncedSignal and createDebouncedResource; stop createDebounce touching the DOM. Two values, not one. A debounced input has an immediate value — what the user is typing, and what a controlled input must be bound to — and a settled value, which is what a query should run on. Collapsing them into one delayed signal makes a controlled input lag behind the keyboard, so both are exposed:
    const [query, setQuery, { immediate, pending, flush, cancel }] =
      createDebouncedSignal('', 300);
    
    flush and cancel are part of the primitive rather than extras: a search box needs "submit now" on Enter, and leaving a screen needs to drop a pending write instead of firing it into a disposed scope. Disposal cancels automatically. createDebouncedResource is search-as-you-type as one primitive, and keeps the two waiting states apart: pending is "still typing", resource.loading is "a request is in flight". A UI that conflates them either flickers on every keystroke or looks frozen while typing. An empty query doesn't fetch, so clearing a search box doesn't hit the network; shouldFetch overrides that rule. Behaviour change: createDebounce inspected its last argument and, if it looked like an input/textarea or an event targeting one, called .focus() on it. A general-purpose debounce silently moving focus is a side effect nobody asks for, it made the primitive unusable outside the DOM, and it fired on any argument that happened to match. Removed. If a debounced update was relying on it to keep focus, that belongs at the call site.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.63

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Fix createProvider's return type. It was annotated Component<T> but returns context.Provider({…}) — the rendered output, not a component. So the documented wrapper pattern failed to type-check:
    const ThemeProvider = (p) => createProvider(ThemeCtx, 'dark', p);
    <ThemeProvider>…</ThemeProvider>; // TS2786: not a valid JSX element
    
    Now returns ComponentChild, the framework's renderable type from @fluixi/dom, which keeps core free of any JSX-authoring dependency — html templates and JSX both consume it.

@fluixi/dom

  • Move element attribute types to @fluixi/dom, exported as @fluixi/dom/attributes. HTMLAttributes, AriaAttributes, DOMAttributes, CSSProperties, the 45 per-element interfaces and SVGAttributes describe the DOM, not JSX syntax, but they only existed inside @fluixi/jsx's JSX namespace. The framework supports both JSX and html authoring, so an html-only app — and the html`` tooling itself — had to reach through a JSX package for types that have nothing to do with JSX. @fluixi/jsx re-exports every one of them into the JSX namespace, so JSX.HTMLAttributes<T> and friends keep working unchanged. JSX.Element and JSX.IntrinsicElements stay in @fluixi/jsx — those are the JSX contract.
  • Accept a reactive style in applyProps. spread wrapped a function-valued style in a render effect, but applyProps called setStyle with it directly, so the accessor was stringified once and never updated. class and classList on the same path already unwrapped an accessor, which is why this went unnoticed. applyProps is the path taken whenever a component forwards a computed value through a props object rather than as a compiled JSX attribute — every polymorphic/as wrapper does this — so a wrapper with a reactive style silently rendered its first value and froze.

@fluixi/head

@fluixi/jsx

  • Move element attribute types to @fluixi/dom, exported as @fluixi/dom/attributes. HTMLAttributes, AriaAttributes, DOMAttributes, CSSProperties, the 45 per-element interfaces and SVGAttributes describe the DOM, not JSX syntax, but they only existed inside @fluixi/jsx's JSX namespace. The framework supports both JSX and html authoring, so an html-only app — and the html`` tooling itself — had to reach through a JSX package for types that have nothing to do with JSX. @fluixi/jsx re-exports every one of them into the JSX namespace, so JSX.HTMLAttributes<T> and friends keep working unchanged. JSX.Element and JSX.IntrinsicElements stay in @fluixi/jsx — those are the JSX contract.
  • Make JSX.CSSProperties catch misspelled properties. It ended with & { [key: string]: string | number | undefined }, so every key type-checked — style={{ colr: 'red' }} was accepted silently, and the property autocomplete the first member provides was unreachable. Custom properties are already covered by the --* member, so the open fallback only removed safety. Also selects the string-valued members of CSSStyleDeclaration rather than excluding length and parentRule by name, which additionally drops its methods and numeric index (getPropertyValue was a valid style property before). Potentially breaking for a style object that sets a property newer than the TypeScript lib in use; set it as a custom property or widen at the call site. Checked against the workspace and every example — no new errors.

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.62

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Fix accessor typeof checking to also identify reactive arrays using isReactiveArray on insert() so accessor could reach effect if it's potentially an array containg reactive values

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.61

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Keep getter-backed props reactive when applied to native elements. spread and applyProps read each prop once (const value = props[key]) and only wired an effect when the value was a function. A component prop compiles to a getter — get value() { return sig().toUpperCase() } — whose current result is a plain value; forwarded to a native element through {...rest} (splitProps) or the jsx runtime, it was snapshotted once and never updated (the DOM only refreshed if you wrote value={() => sig()...} to make the value itself a function). Both paths now re-read props[key] inside a render effect for non-function values, so the getter's dependencies are tracked; function accessors keep their existing path (no double-wrapping) and static values run once. Covers the property/attribute path plus the value/checked/select special cases (focus guard and the select microtask defer preserved).

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.60

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

  • useHead({ htmlAttrs: { 'data-theme': () => theme() } }) now sets attributes on <html>, rendered by the server and kept current on the client.
  • themeColor now accepts a list of { color, media } objects for light and dark browser bar colours, and colorScheme now accepts an accessor.

@fluixi/jsx

  • Make intrinsic ref bivariant, and widen SVG attributes to reactive.
    • ref: the intrinsic ref now uses a bivariant callback plus a base-element (HTMLElement/SVGElement) object form. This lets a component whose props extend HTMLAttributes<HTMLElement> (the generic wrapper pattern) AND one whose props extend the specific element (e.g. HTMLAttributes<HTMLUListElement>) both spread {...others} onto the same intrinsic. Previously only one convention worked per tag because the { current: T | null } object form is invariant — keeping the specific ul/p/h1–h6/pre/dl typings from the prior release broke consumers using the generic pattern. Both now compile.
    • SVGAttributes: every presentation/geometry/text/filter attribute (cx, cy, r, d, transform, fill, stroke-width, …) is widened to Reactive<> so SVG geometry can bind reactive accessors, matching HTMLAttributes/AriaAttributes. (Supersedes the earlier jsx-specific-list-text-refs changeset — the specificity stays, the ref variance is what's fixed.)

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.59

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

  • Type the ul, p, h1–h6, pre and dl intrinsics with their specific DOM element (HTMLUListElement, HTMLParagraphElement, HTMLHeadingElement, HTMLPreElement, HTMLDListElement) instead of the generic HTMLElement, matching div/li/ol and React. Previously a component whose props extended HTMLAttributes<HTMLUListElement> couldn't spread {...others} onto its own <ul> (the props' ref: Ref<HTMLUListElement> wasn't assignable to the generic intrinsic's ref: Ref<HTMLElement> under function-parameter contravariance). Only a type change; no runtime effect.

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.58

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Router Link now forwards arbitrary author attributes onto its <a>. Previously Link only applied href, slot, class/className and the active/activeClass pair — every other prop (id, style, title, role, data-*, aria-*, …) was silently dropped. That broke any component composed via as={Link} (polymorphic): e.g. @fluixi-ui's <SidenavLink as={Link}> lost its data-sidenav-link styling hook and inline styles, so it rendered unstyled with no hover. Link now forwards the rest onto the <a> (matching how Form already does), skipping only the props it owns.

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.57

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Fix a listener/effect leak when a component is torn down before its onMount runs (e.g. a <Portal> inside a <Show> that closes in the same tick). The queued mount callback ran against the already-disposed owner: its onCleanup re-created the owner's nulled cleanups array on a scope that never tears down again, so document listeners attached in onMount stayed live forever. Owners now carry a disposed flag (set by final teardown, not by an effect's between-run cleanup). The lifecycle flush skips a disposed owner (matching Solid: an unmounted component's onMount doesn't run), and onCleanup on a disposed owner runs the teardown immediately instead of leaking it.

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

  • Fix a listener/effect leak when a component is torn down before its onMount runs (e.g. a <Portal> inside a <Show> that closes in the same tick). The queued mount callback ran against the already-disposed owner: its onCleanup re-created the owner's nulled cleanups array on a scope that never tears down again, so document listeners attached in onMount stayed live forever. Owners now carry a disposed flag (set by final teardown, not by an effect's between-run cleanup). The lifecycle flush skips a disposed owner (matching Solid: an unmounted component's onMount doesn't run), and onCleanup on a disposed owner runs the teardown immediately instead of leaking it.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.56

@fluixi/auth

  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.

@fluixi/babel-plugin-jsx

  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.

@fluixi/compiler

  • html`` templates: full feature support, and @fluixi/lit folded into @fluixi/dom.
    • fluixi() now compiles both JSX and html``by default (noformat option).
    • Directives: if/else, each/key, bind:, class:, style: (+ class/style object syntax), ref, use/use:, html= raw, boolean/property bindings.
    • Events: native on:click plus modifiers (.capture/.once/.passive/.prevent/ .stop/.self); @click/onClick stay delegated.
    • Components: dynamic <${Comp}/>, named slots (slot="name" → props.name), <component is=${C}> (→ Dynamic), and a new Await component.
    • html/svg markers and their types now live in @fluixi/dom and are re-exported from @fluixi/core; the separate @fluixi/lit package is removed.
  • JSX now supports the Solid-style directives use: and oncapture:, closing the gap with the html`` template surface.
    • use:name / use:name={opts} → normalized to a single use prop ([dir, () => opts] pairs) the runtime applies; the directive identifier is kept referenced so its import isn't dropped.
    • oncapture:event={h} → a native capture-phase listener.
    • on:event handlers pass through to the native-listener dispatch and are no longer wired reactively (a props.onX handler could previously be reactive-wrapped).
    • use:${string} / oncapture:${string} added to the JSX attribute types. Also fixes a latent bug in both lowerers: use:x={{…}} object options were parsed as an arrow block body (returning undefined) instead of an object — the accessor body is now parenthesized.
  • Auto-import router components. Using <Router>, <Outlet>, <Redirect> or <Link> in a template (html`` or JSX) now injects the import from the router module if it isn't already tag, so those aren't auto-imported.
  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.
  • Compile lit html`...` templates through the shared JSX IR. A new format: 'jsx' | 'lit' | 'both' option (default 'jsx', unchanged) routes html / svg tagged templates through the same host-agnostic IR and imperative backend JSX uses — a template and its JSX twin emit byte-identical code, and there is no lit runtime in the output. The template front-end handles child/attribute/event/.prop/?bool/spread bindings, capitalized/member component tags (so <Show>/<For>/<Ctx.Provider> control flow works inside html ), mixed static+hole attribute values, HTML comments, raw-text elements, and nested html composition (${cond ? html… : html…}, ${list.map(x => html<li>${x}</li>)}). A type-annotated arrow param inside a hole ((x: T) => html…``) now compiles (the reparse understands TypeScript). Removed the dead litrx runtime directive handler.

@fluixi/core

  • html`` templates: full feature support, and @fluixi/lit folded into @fluixi/dom.
    • fluixi() now compiles both JSX and html``by default (noformat option).
    • Directives: if/else, each/key, bind:, class:, style: (+ class/style object syntax), ref, use/use:, html= raw, boolean/property bindings.
    • Events: native on:click plus modifiers (.capture/.once/.passive/.prevent/ .stop/.self); @click/onClick stay delegated.
    • Components: dynamic <${Comp}/>, named slots (slot="name" → props.name), <component is=${C}> (→ Dynamic), and a new Await component.
    • html/svg markers and their types now live in @fluixi/dom and are re-exported from @fluixi/core; the separate @fluixi/lit package is removed.
  • Remove the lit-html runtime bridge from the framework — no lit dependency remains anywhere. @fluixi/core no longer lazily import('lit') to register a lit renderer on the client (this was also the "Lit is in dev mode" console warning); @fluixi/dom drops registerLitRender/renderLitToNodes and the _$litType$/_$litDirective$ insert-path branches; @fluixi/dom and @fluixi/jsx drop their remaining lit type imports (TemplateResult/SVGTemplateResult/DirectiveResult, which were redundant in the render-type unions). Authoring with html `` templates now goes through the compiled path (@fluixi/lit+ the compiler'sformat: 'lit'), not a runtime renderer.

@fluixi/dom

  • Forced binding directives prop:, attr: and bool: (Solid parity), on both JSX and html`` surfaces.
    • prop:name always assigns the DOM property (element[name] = value), bypassing the property-vs-attribute heuristic.
    • attr:name always sets the attribute via setAttribute.
    • bool:name toggles a boolean attribute by truthiness — a truthy value renders the empty string, a falsy value removes it. All three accept static or reactive values and are handled in the runtime spread / applyProps dispatch, so JSX (namespaced attribute) and html``(plain-attribute fallback)
  • html`` templates: full feature support, and @fluixi/lit folded into @fluixi/dom.
    • fluixi() now compiles both JSX and html``by default (noformat option).
    • Directives: if/else, each/key, bind:, class:, style: (+ class/style object syntax), ref, use/use:, html= raw, boolean/property bindings.
    • Events: native on:click plus modifiers (.capture/.once/.passive/.prevent/ .stop/.self); @click/onClick stay delegated.
    • Components: dynamic <${Comp}/>, named slots (slot="name" → props.name), <component is=${C}> (→ Dynamic), and a new Await component.
    • html/svg markers and their types now live in @fluixi/dom and are re-exported from @fluixi/core; the separate @fluixi/lit package is removed.
  • Remove the lit-html runtime bridge from the framework — no lit dependency remains anywhere. @fluixi/core no longer lazily import('lit') to register a lit renderer on the client (this was also the "Lit is in dev mode" console warning); @fluixi/dom drops registerLitRender/renderLitToNodes and the _$litType$/_$litDirective$ insert-path branches; @fluixi/dom and @fluixi/jsx drop their remaining lit type imports (TemplateResult/SVGTemplateResult/DirectiveResult, which were redundant in the render-type unions). Authoring with html `` templates now goes through the compiled path (@fluixi/lit+ the compiler'sformat: 'lit'), not a runtime renderer.
  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.
  • Fix empty reactive text duplicating on hydration. When a reactive text was empty on the client during hydration (e.g. a resource's brief loading state) while the server had rendered non-empty content there, hydrateText('') returned null and never adopted the server text node — so the content duplicated once the value resolved (e.g. User #9User #9). An empty reactive text now adopts and clears a non-empty server text node at the cursor. Client-only insertion anchors/placeholders (which must never consume a server node) are marked with a new anchor flag on createTextNode so they still bypass the hydration walker — keeping adjacent static text (e.g. a list item's text beside a nested element) intact.

@fluixi/head

@fluixi/jsx

  • Forced binding directives prop:, attr: and bool: (Solid parity), on both JSX and html`` surfaces.
    • prop:name always assigns the DOM property (element[name] = value), bypassing the property-vs-attribute heuristic.
    • attr:name always sets the attribute via setAttribute.
    • bool:name toggles a boolean attribute by truthiness — a truthy value renders the empty string, a falsy value removes it. All three accept static or reactive values and are handled in the runtime spread / applyProps dispatch, so JSX (namespaced attribute) and html``(plain-attribute fallback)
  • JSX now supports the Solid-style directives use: and oncapture:, closing the gap with the html`` template surface.
    • use:name / use:name={opts} → normalized to a single use prop ([dir, () => opts] pairs) the runtime applies; the directive identifier is kept referenced so its import isn't dropped.
    • oncapture:event={h} → a native capture-phase listener.
    • on:event handlers pass through to the native-listener dispatch and are no longer wired reactively (a props.onX handler could previously be reactive-wrapped).
    • use:${string} / oncapture:${string} added to the JSX attribute types. Also fixes a latent bug in both lowerers: use:x={{…}} object options were parsed as an arrow block body (returning undefined) instead of an object — the accessor body is now parenthesized.
  • Remove the lit-html runtime bridge from the framework — no lit dependency remains anywhere. @fluixi/core no longer lazily import('lit') to register a lit renderer on the client (this was also the "Lit is in dev mode" console warning); @fluixi/dom drops registerLitRender/renderLitToNodes and the _$litType$/_$litDirective$ insert-path branches; @fluixi/dom and @fluixi/jsx drop their remaining lit type imports (TemplateResult/SVGTemplateResult/DirectiveResult, which were redundant in the render-type unions). Authoring with html `` templates now goes through the compiled path (@fluixi/lit+ the compiler'sformat: 'lit'), not a runtime renderer.
  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.
  • Add JSX.CSSProperties — a typed style-object: known camelCase CSS properties (autocompleted from the DOM CSSStyleDeclaration), custom --* properties, plus a string fallback, with string-or-number values. style is retyped string | CSSProperties | Accessor<string | CSSProperties>.

@fluixi/reactive

  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.

@fluixi/server

@fluixi/session

  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.

@fluixi/utils

  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.

@fluixi/vite-plugin

  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.

1.0.0-alpha.55

@fluixi/auth

@fluixi/babel-plugin-jsx

  • Add a description field to packages that were missing one. Without it, npm's profile/list view fell back to the first README line — the raw <p align="center"> logo block — instead of a summary.
  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

@fluixi/compiler

  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

@fluixi/core

@fluixi/dom

  • Add a description field to packages that were missing one. Without it, npm's profile/list view fell back to the first README line — the raw <p align="center"> logo block — instead of a summary.
  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

@fluixi/head

@fluixi/jsx

  • Add a description field to packages that were missing one. Without it, npm's profile/list view fell back to the first README line — the raw <p align="center"> logo block — instead of a summary.
  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

@fluixi/reactive

  • Add a description field to packages that were missing one. Without it, npm's profile/list view fell back to the first README line — the raw <p align="center"> logo block — instead of a summary.
  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

@fluixi/server

  • Add a description field to packages that were missing one. Without it, npm's profile/list view fell back to the first README line — the raw <p align="center"> logo block — instead of a summary.
  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

@fluixi/session

@fluixi/utils

  • Add a description field to packages that were missing one. Without it, npm's profile/list view fell back to the first README line — the raw <p align="center"> logo block — instead of a summary.
  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

@fluixi/vite-plugin

  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

1.0.0-alpha.54

@fluixi/auth

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/babel-plugin-jsx

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/compiler

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/core

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/dom

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/head

  • Adds setHeadScope, and the active registry is now shared across copies of the package.

@fluixi/jsx

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/reactive

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/server

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/session

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/utils

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/vite-plugin

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

1.0.0-alpha.53

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Fix i18n t() key autocomplete for nested messages. A subtree whose children are all strings (e.g. nav: { dashboard, settings }) was truncated to the branch key ('nav') instead of recursing to the leaf paths ('nav.dashboard' | 'nav.settings'), because it looked structurally identical to a plural map. Plural maps are now detected by their CLDR-category keys (one/other/…), so real subtrees recurse and every leaf key is suggested and type-checked.

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

  • Rewrite the reactive store to a proxy-write model — createStore drops from 13.8kb to ~3.7kb gzip (Solid parity), no cloning or diffing. Keep the store's path/array/produce helpers on the setter. Drop the legacy signal engine from the default @fluixi/reactive/signal entry: the unused operator modules move to @fluixi/reactive/operators and @fluixi/reactive/cached-resource subpaths, so /signal falls from 8.8kb to 4.7kb gzip and no longer bundles the old engine. Add @fluixi/testing — minimal helpers (render, flush, fireEvent) for testing components in jsdom.

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.52

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Slim the client runtime: keep SSR code out of client bundles. The package barrel export *-ed the server string renderer (renderToString, serialization, request context) alongside the client runtime, so every client build shipped the SSR renderer. The runtime barrel now re-exports only the server node classes/guards it actually references; the renderer is re-exported as tree-shakeable named bindings from the entry (still importable as import { renderToString } from '@fluixi/dom') and lives on the @fluixi/dom/server subpath. Added a sideEffects field so bundlers can drop what a client app doesn't use. Also removed dead code: the unused ReactiveDOM export/module and the unused autoInitialize export.

@fluixi/head

@fluixi/jsx

  • Slim the client runtime: keep SSR code out of client bundles. The package barrel export *-ed the server string renderer (renderToString, serialization, request context) alongside the client runtime, so every client build shipped the SSR renderer. The runtime barrel now re-exports only the server node classes/guards it actually references; the renderer is re-exported as tree-shakeable named bindings from the entry (still importable as import { renderToString } from '@fluixi/dom') and lives on the @fluixi/dom/server subpath. Added a sideEffects field so bundlers can drop what a client app doesn't use. Also removed dead code: the unused ReactiveDOM export/module and the unused autoInitialize export.

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.51

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Fix mapped-array children (list.map(...)) duplicating on hydration. DOM-reuse hydration walks the server DOM with a single descent cursor that only ascends back to an element's next sibling when the element is routed through insert() (ascendPast). list.map(...) builds all its elements back-to-back before any is inserted, so the first item adopted its server node and descended into it, but item 2+ then hydrated against the stranded cursor and built fresh — leaving the server copies behind (e.g. a sidebar's nav items or a grid's cards appearing twice after hydration). Hydration now keeps a descent stack (hydration.parents) and recovers the cursor: when it's exhausted at the current sibling level it ascends to an open parent's next sibling (and skips insert()'s empty-text anchors), so every mapped item adopts the server node in place instead of duplicating it.

@fluixi/head

  • @fluixi/cli, @fluixi/devtools, @fluixi/head, @fluixi/router, @fluixi/server, and @fluixi/start now provide bundled builds with import resolving to a .mjs file and a require condition resolving to a .cjs file, and @fluixi/core and @fluixi/compiler now include the copyright banner in their subpath exports.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.50

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Fix page content duplicated on hydration when seo()/useHead() is used in dev. @fluixi/head carries a page's SEO back from SSR as an inert <!--fh:…--> comment prepended to the body; the server lifts it into <head> and strips it via injectAppAndHead. The prod adapter and prerender did this, but the dev server used plain injectApp, leaving the marker as the mount root's first child. The hydration cursor started on that comment, never matched the app's first element, and rebuilt the whole tree next to the server DOM — a duplicated page. (Dev also emitted no head tags as a result.) Dev now uses injectAppAndHead, so the marker is lifted into <head>/<html> exactly like prod. As a safety net for streaming/custom servers, stripHeadMarker drops any stray leading fh: comment on the client before hydration.

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.49

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.48

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Add ref support to PortalProps and handle the ref on Portal createRoot method. So consumer components could bind ref to have the native Portal wrapper. Usefull when whant portal styling or wrappper DOM manipultaions.

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.47

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Make lazy component props consistent and scope them to components. Every component prop is now emitted as a getter (get prop() { return … }) — including static props and the base object inside mergeProps(...spreads, { … }) — so a component is created once and reactivity flows through the getter uniformly, across all codegen paths (inline jsx, inline imperative, IR). Native-element attributes are no longer getter-wrapped: they already carry their own reactivity as () => expr thunks that spread consumes, so wrapping them added a redundant get x() { return () => expr } layer.

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.46

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Emit reactive component props as getters. <Comp prop={sig()} /> compiled to createMemo(() => createComponent(Comp, { prop: sig() })), reading the signal eagerly inside the memo — so the memo re-created the whole component on every change. A component rendering a <Portal> then re-mounted and piled up in <body>. Reactive props (prop={sig()}, prop={store.x}) are now emitted as getters (get prop() { return sig() }, like children), so the component is created once and reactivity flows through the getter into its own effects. Static props, plain identifiers and event handlers stay eager. Applies to both codegen paths (inline + IR).

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.45

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Emit reactive component props as getters. <Comp prop={sig()} /> compiled to createMemo(() => createComponent(Comp, { prop: sig() })), reading the signal eagerly inside the memo — so the memo re-created the whole component on every change. A component rendering a <Portal> then re-mounted and piled up in <body>. Reactive props (prop={sig()}, prop={store.x}) are now emitted as getters (get prop() { return sig() }, like children), so the component is created once and reactivity flows through the getter into its own effects. Static props, plain identifiers and event handlers stay eager. Applies to both codegen paths (inline + IR).

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.44

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Remove dropped <For> items whose child renders through a component boundary. When a <For> row wrapped its content in a context Provider around a component (<P value={x}><Row/></P>), the child resolved to a nested memo, so the array-insert reconciler tracked only a placeholder marker and inserted the real node beside it — outside reconcile tracking. Shrinking the list removed the marker but orphaned the node, leaving stale DOM. The per-slot reactive insert now removes its content when its effect is torn down, so a dropped row (or any reactive array member) is cleaned up. In-place updates (e.g. <Show> toggling) are unaffected — they don't re-run the enclosing effect.

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.43

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Make control-flow reactive props reactive in the called shape. <For each={items()}>, <Show when={cond()}>, <Index each={xs()}> and <Match when={m()}> snapshot their value once and never updated — only the accessor shapes (each={items} / each={() => items()}) reacted. The compiler now emits these value props as getters (like children), and the runtime reads them through a shared resolveReactiveProp helper inside each component's own tracking scope, so all three shapes work and <For> keeps its keyed reconciliation instead of re-creating on every change. Both codegen paths (inline + IR) emit getters. Dynamic.component and Portal.mount are intentionally left as-is (a component is indistinguishable from an accessor; mount is read once).

@fluixi/core

@fluixi/dom

  • Make control-flow reactive props reactive in the called shape. <For each={items()}>, <Show when={cond()}>, <Index each={xs()}> and <Match when={m()}> snapshot their value once and never updated — only the accessor shapes (each={items} / each={() => items()}) reacted. The compiler now emits these value props as getters (like children), and the runtime reads them through a shared resolveReactiveProp helper inside each component's own tracking scope, so all three shapes work and <For> keeps its keyed reconciliation instead of re-creating on every change. Both codegen paths (inline + IR) emit getters. Dynamic.component and Portal.mount are intentionally left as-is (a component is indistinguishable from an accessor; mount is read once).

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.42

@fluixi/auth

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/babel-plugin-jsx

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/compiler

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/core

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/dom

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/head

@fluixi/jsx

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/reactive

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/server

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/session

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/testing

@fluixi/utils

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/vite-plugin

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

1.0.0-alpha.41

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

  • Widen reactive attribute types. Reactive<T> now accepts an accessor that returns undefined (T | undefined | Accessor<T | undefined>), so a conditionally-omitted attribute like aria-disabled={() => (disabled() ? 'true' : undefined)} type-checks without a cast — setAttribute already removes the attr on undefined/null/false. Also typed the native form attributes required, readonly/readOnly, min, max, step, maxlength/maxLength, minlength/minLength, multiple, size, pattern as Reactive<> on input/textarea/select, matching disabled.

@fluixi/reactive

  • Isolate each context Provider in its own owner scope. Ctx.Provider stamped its value on the current reactive owner, so two sibling <Ctx.Provider> used inline as JSX elements ran under the same owner and the second clobbered the first — every descendant (including children rendered lazily through Portal/Show/For) then resolved the last provider's value. The Provider now opens a dedicated child owner and reads its children under it, so siblings no longer overwrite each other.

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.40

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Fire non-delegated onX event handlers. Handlers for non-bubbling events (focus, blur, pointerenter, pointerleave, mouseenter, mouseleave, load, error, …) were stored but never attached, so they silently dropped. addDelegatedEventListener now attaches a direct listener for those events (removed on cleanup), matching dom-expressions; delegated events (click/keydown/…) are unchanged.

@fluixi/head

@fluixi/jsx

  • Widen hidden, tabindex/tabIndex to T | Accessor<T> so a reactive () => … type-checks without a cast (as class/style already do; aria-* were widened previously).

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.39

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Fix: a component whose entire return is a control-flow result (<Show>/<Switch>/<For>) now updates when its condition changes. When a component returned a bare control-flow memo and was placed among sibling children (an array), the array insertion read that memo inline in the enclosing render effect. A change then re-rendered the whole subtree from scratch (recreating sibling state) instead of re-inserting just that slot — so the output appeared frozen after the first render. An element or Portal wrapper worked because the wrapper's own insert gave the child its own effect. flattenArray now defers a reactive array member to a per-slot marker and wires a fine-grained insert() for it after the markers are placed, giving a bare control-flow component return the same nested render effect an element child gets. This does not affect the signal graph (sibling reactive attributes reading the same value already updated correctly).

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.38

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • setAttribute now removes the attribute for null/undefined/false instead of rendering ="undefined". An undefined/null value fell through to element.setAttribute(name, String(value)), so a conditionally-absent attribute (aria-orientation={cond ? 'vertical' : undefined}, data-pressed={dataAttr(false)}) rendered as the literal string "undefined". Since the compiler routes dynamic attributes through setDynamicAttribute → setAttribute, this hit any conditional attribute. Now, matching Solid's dom-expressions semantics: null/undefined/false remove the attribute, true sets it to the empty string, objects serialize to JSON, and everything else stringifies.

@fluixi/head

@fluixi/jsx

  • Allow reactive accessors on aria-* and role JSX attributes. class, id, href, style, etc. already accept T | Accessor<T>, but ARIA attributes were typed as plain values, forcing a cast to bind a reactive one. Every aria-* attribute and role now accepts T | Accessor<T> (via a Reactive<T> alias), so a function-valued ARIA prop type-checks without a cast — the runtime already applies it as a reactive render effect.
    <button
      aria-checked={() => (checked() ? 'true' : 'false')}
      aria-label={() => label()}
    />
    

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.37

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Solid-compatible prop helpers + component typing, and re-export them from @fluixi/core. mergeProps (dom): a later source's undefined no longer clobbers an earlier defined value — it falls through to it (Solid's contract). Previously mergeProps(defaults, props) lost defaults whenever props.x was undefined, and since the compiler emits mergeProps(...spreads, baseProps) for JSX spreads, <div {...a} {...b} /> with b.x === undefined wiped a.x. It's now a lazy Proxy (like splitProps): keys resolve last-defined-wins across the union of sources, reactively (getter/signal-backed props re-read on every access, never snapshotted).
    mergeProps({ value: 1 }, { value: undefined }).value; // 1 (was undefined)
    mergeProps({ value: 1 }, { value: 2 }).value; // 2
    
    Component typing (dom): Component<P> is now a proper function type — (props: P) => … — so you can annotate it and have props actually typed:
    const Greeting: Component<{ name: string }> = (props) => (
      <h1>{props.name}</h1>
    );
    
    Previously Component<P> was ComponentFn<P> | ComponentChild (which includes any), erasing all prop checking. Fluixi-branded helper types: FxComponent/FxC (aliases of Component), FxParent/FxParentProps (optional children), FxVoid/FxVoidProps (no children), FxFlow/FxFlowProps (required children), and ComponentOrElement for the loose "function-or-rendered-node" shape some internals pass around. @fluixi/core re-exports: mergeProps, splitProps, and the component/prop types (Component, ComponentProps, ComponentFn, ComponentChild, ComponentOrElement, FxComponent, FxC, Fx{Parent,Void,Flow} + their *Props) are now exported from @fluixi/core — no more reaching into @fluixi/dom for them. @fluixi/cli: fluixi generate component <Name> now scaffolds a typed component — a <Name>Props type and a Component<<Name>Props> annotation (was an untyped export function).
  • <Router> no longer renders a blank page for an unmatched URL. When the current URL matches no route, the router now renders a fallback instead of nothing. Pass notFound (a component, element, or any renderable) to control it; omit it for a minimal built-in 404. It clears reactively when you navigate to a matched route, and works under SSR.
    <Router routes={routes} notFound={NotFound} />
    
    A catch-all file route ([...slug].tsx → *) still takes precedence — use that when the 404 should render inside your layout; notFound is the app-level fallback for everything else.

@fluixi/dom

  • Solid-compatible prop helpers + component typing, and re-export them from @fluixi/core. mergeProps (dom): a later source's undefined no longer clobbers an earlier defined value — it falls through to it (Solid's contract). Previously mergeProps(defaults, props) lost defaults whenever props.x was undefined, and since the compiler emits mergeProps(...spreads, baseProps) for JSX spreads, <div {...a} {...b} /> with b.x === undefined wiped a.x. It's now a lazy Proxy (like splitProps): keys resolve last-defined-wins across the union of sources, reactively (getter/signal-backed props re-read on every access, never snapshotted).
    mergeProps({ value: 1 }, { value: undefined }).value; // 1 (was undefined)
    mergeProps({ value: 1 }, { value: 2 }).value; // 2
    
    Component typing (dom): Component<P> is now a proper function type — (props: P) => … — so you can annotate it and have props actually typed:
    const Greeting: Component<{ name: string }> = (props) => (
      <h1>{props.name}</h1>
    );
    
    Previously Component<P> was ComponentFn<P> | ComponentChild (which includes any), erasing all prop checking. Fluixi-branded helper types: FxComponent/FxC (aliases of Component), FxParent/FxParentProps (optional children), FxVoid/FxVoidProps (no children), FxFlow/FxFlowProps (required children), and ComponentOrElement for the loose "function-or-rendered-node" shape some internals pass around. @fluixi/core re-exports: mergeProps, splitProps, and the component/prop types (Component, ComponentProps, ComponentFn, ComponentChild, ComponentOrElement, FxComponent, FxC, Fx{Parent,Void,Flow} + their *Props) are now exported from @fluixi/core — no more reaching into @fluixi/dom for them. @fluixi/cli: fluixi generate component <Name> now scaffolds a typed component — a <Name>Props type and a Component<<Name>Props> annotation (was an untyped export function).

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.36

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Fix an SVG attribute throw on hydration (and the dead reactivity it caused). spread decided property-vs-attribute from the compile-time isSVG flag, but the codegen only flags some SVG elements (<svg>, <defs>) and misses nested ones (<linearGradient>, <stop>). For a real SVG node a key like x1 IS in element (a read-only SVGAnimatedLength), so it took the property branch and threw Cannot set property x1 of SVGLinearGradientElement. Because that throw happened mid-hydration, it aborted the synchronous hydration pass — so everything rendered after the offending SVG lost its reactivity (e.g. a filter whose data-* bindings never wired up). spread now detects SVG by the element's real namespaceURI, so SVG attributes always go through setAttribute. No throw, and downstream hydration/reactivity is unaffected.

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.35

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Flash-free hydration for lazy file-routes — preload the route chunk before hydrating. A server-rendered app with code-split file-routes used to render twice on hydration: the lazy boundary rendered empty on the first pass (chunk not loaded), then re-rendered when the chunk resolved a tick later — building a fresh subtree next to the server DOM instead of adopting it. The app flashed and, with auto-hydration on, duplicated. Now the matched route's chunk is downloaded and awaited before hydration, so each lazy route resolves synchronously on the first pass and adopts the server DOM in place.
    • lazy() renders synchronously once its module is resolved (no resource/Suspense/late re-render); a cold client-side navigation still suspends and shows the fallback.
    • New preloadRoutes(routes, pathname) (@fluixi/core/router-next, re-exported by @fluixi/start/router): matches the URL and preloads the matched route's lazy chunks.
    • startClient takes a routes option and awaits preloadRoutes before hydrating. Passing routes also enables auto-hydration of a server-rendered (non-empty) root — flash-free with no extra config. Apps without it keep the plain client-render path.
    // entry-client.ts
    import App, { appRoutes } from './app';
    startClient(App, { root: '#root', routes: appRoutes });
    

    The SSR scaffold (create-fluixi) wires this up and ships a small seo() example in the index route.

  • Revert auto-hydrate-on-non-empty-root to opt-in. A non-empty mount root used to auto-hydrate, but DOM-reuse hydration still duplicates apps with async lazy file-routes (the route chunk resolves after the hydration pass and rebuilds a second copy). Until that's fixed, startClient defaults to the render() path again (correct output, with a brief first-paint re-render); pass { hydrate: true } to opt in.

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.34

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Fix whole-app hydration duplicating the tree (rendering it 2–3×) for nested Router/Suspense/Outlet apps — the shape every @fluixi/start app has. Inline JSX passed to a component prop (e.g. <Suspense fallback={<div/>}>) compiled to an eager IIFE built when the props object was constructed. During hydration that walked the hydration cursor, and a same-tag fallback <div> adopted the real server content node, stranding the cursor so the content rebuilt fresh next to the server DOM. Now:
    • Inline-JSX component props compile to lazy getters (like children) in both imperative codegens (inline + IR).
    • @fluixi/dom adds runWithoutHydration, and Suspense instantiates its fallback off the hydration cursor.
    • startClient auto-hydrates a non-empty mount root — reusing the server DOM instead of clearing and re-rendering, which removes the first-paint re-render flash. A client-only app (empty #root) still client-renders.

@fluixi/core

  • Wire @fluixi/head into the framework (zero-config SEO). renderRequestAsync collects seo()/useHead metadata during SSR and carries it back; @fluixi/start lifts it into <head>/<html> for SSR + prerender. startClient mounts the head registry so it hydrates (server tags reused by key) and updates live, including on route transitions (seo() auto-disposes on owner unmount). Apps just call seo({...}) — no setup.
  • Fix whole-app hydration duplicating the tree (rendering it 2–3×) for nested Router/Suspense/Outlet apps — the shape every @fluixi/start app has. Inline JSX passed to a component prop (e.g. <Suspense fallback={<div/>}>) compiled to an eager IIFE built when the props object was constructed. During hydration that walked the hydration cursor, and a same-tag fallback <div> adopted the real server content node, stranding the cursor so the content rebuilt fresh next to the server DOM. Now:
    • Inline-JSX component props compile to lazy getters (like children) in both imperative codegens (inline + IR).
    • @fluixi/dom adds runWithoutHydration, and Suspense instantiates its fallback off the hydration cursor.
    • startClient auto-hydrates a non-empty mount root — reusing the server DOM instead of clearing and re-rendering, which removes the first-paint re-render flash. A client-only app (empty #root) still client-renders.

@fluixi/dom

  • fix: support a static (non-function) innerHTML prop. The client handler always called the value as an accessor (val()), so a plain string like innerHTML="<b>x</b>" threw — and during hydration it wiped the element's content. It now sets a string directly and only wraps a function in an effect. @fluixi/jsx types innerHTML as string | (() => string) to match.
  • Fix whole-app hydration duplicating the tree (rendering it 2–3×) for nested Router/Suspense/Outlet apps — the shape every @fluixi/start app has. Inline JSX passed to a component prop (e.g. <Suspense fallback={<div/>}>) compiled to an eager IIFE built when the props object was constructed. During hydration that walked the hydration cursor, and a same-tag fallback <div> adopted the real server content node, stranding the cursor so the content rebuilt fresh next to the server DOM. Now:
    • Inline-JSX component props compile to lazy getters (like children) in both imperative codegens (inline + IR).
    • @fluixi/dom adds runWithoutHydration, and Suspense instantiates its fallback off the hydration cursor.
    • startClient auto-hydrates a non-empty mount root — reusing the server DOM instead of clearing and re-rendering, which removes the first-paint re-render flash. A client-only app (empty #root) still client-renders.

@fluixi/head

@fluixi/jsx

  • fix: support a static (non-function) innerHTML prop. The client handler always called the value as an accessor (val()), so a plain string like innerHTML="<b>x</b>" threw — and during hydration it wiped the element's content. It now sets a string directly and only wraps a function in an effect. @fluixi/jsx types innerHTML as string | (() => string) to match.

@fluixi/reactive

@fluixi/server

  • Wire @fluixi/head into the framework (zero-config SEO). renderRequestAsync collects seo()/useHead metadata during SSR and carries it back; @fluixi/start lifts it into <head>/<html> for SSR + prerender. startClient mounts the head registry so it hydrates (server tags reused by key) and updates live, including on route transitions (seo() auto-disposes on owner unmount). Apps just call seo({...}) — no setup.

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.33

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

  • fix: acquire AsyncLocalStorage synchronously, without a top-level await. The previous edge-safe change used await import('node:async_hooks') at module top level, which esbuild rejects when an app bundles its server for an es2020 target — breaking fluixi build for every SSR app. It now uses process.getBuiltinModule('node:async_hooks') (Node 20.16+/22+) for synchronous, import-free, build-safe access (still preferring a global AsyncLocalStorage on edge, falling back to the sync store otherwise). Synchronous acquisition also fixes prerender/SSG emitting an empty shell — the async render needs the request context set before it runs.

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.32

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

  • Edge-safe request scoping. @fluixi/server no longer statically imports node:async_hooks (which made the module fail to load on edge runtimes). It now acquires AsyncLocalStorage at runtime: prefer a global one (Cloudflare Workers with nodejs_compat, Deno, Bun all expose it), else dynamically import node:async_hooks (Node), else fall back to the sync request store with a warning. So the SSR server loads and runs on edge/worker runtimes, with full async-render isolation wherever an AsyncLocalStorage is available.

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.31

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Harden the SSR data transport (__FX_DATA__). The resolved resource/seed data is now emitted as a non-executable <script type="application/json" id="__FX_DATA__"> block instead of an inline <script>window.__FX_DATA__=…</script> assignment. Two wins:
    • CSP-friendly — it works under a strict script-src that forbids inline executable scripts (the JSON block is data, not script).
    • No script breakout — the JSON is escaped with the standard SSR set (<, >, &, U+2028, U+2029, matching Next.js), so no string value can close the <script> or corrupt the parse. JSON.parse round-trips the escapes back. The client reads it through a single getServerData() helper (prefers a pre-set globalThis.__FX_DATA__ for back-compat, else parses the JSON block) — used by hydration, i18n locale seeding, and isomorphic state. Confidentiality is still handled by setDataRedactor (strip server-only fields); the payload remains intentionally non-secret — don't put secrets in it, and don't rely on encoding it (encryption can't secure data you hand the client).

@fluixi/dom

  • Harden the SSR data transport (__FX_DATA__). The resolved resource/seed data is now emitted as a non-executable <script type="application/json" id="__FX_DATA__"> block instead of an inline <script>window.__FX_DATA__=…</script> assignment. Two wins:
    • CSP-friendly — it works under a strict script-src that forbids inline executable scripts (the JSON block is data, not script).
    • No script breakout — the JSON is escaped with the standard SSR set (<, >, &, U+2028, U+2029, matching Next.js), so no string value can close the <script> or corrupt the parse. JSON.parse round-trips the escapes back. The client reads it through a single getServerData() helper (prefers a pre-set globalThis.__FX_DATA__ for back-compat, else parses the JSON block) — used by hydration, i18n locale seeding, and isomorphic state. Confidentiality is still handled by setDataRedactor (strip server-only fields); the payload remains intentionally non-secret — don't put secrets in it, and don't rely on encoding it (encryption can't secure data you hand the client).

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

  • Harden the SSR data transport (__FX_DATA__). The resolved resource/seed data is now emitted as a non-executable <script type="application/json" id="__FX_DATA__"> block instead of an inline <script>window.__FX_DATA__=…</script> assignment. Two wins:
    • CSP-friendly — it works under a strict script-src that forbids inline executable scripts (the JSON block is data, not script).
    • No script breakout — the JSON is escaped with the standard SSR set (<, >, &, U+2028, U+2029, matching Next.js), so no string value can close the <script> or corrupt the parse. JSON.parse round-trips the escapes back. The client reads it through a single getServerData() helper (prefers a pre-set globalThis.__FX_DATA__ for back-compat, else parses the JSON block) — used by hydration, i18n locale seeding, and isomorphic state. Confidentiality is still handled by setDataRedactor (strip server-only fields); the payload remains intentionally non-secret — don't put secrets in it, and don't rely on encoding it (encryption can't secure data you hand the client).

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.30

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Built-in i18n — @fluixi/core/i18n. Reactive, SSR-correct internationalization, no dependency.
    import { createI18n } from '@fluixi/core/i18n';
    const i18n = createI18n({
      locale: 'en',
      locales: ['en', 'fr'] as const,
      messages: { en, fr },
    });
    export const { t, n, d, locale, setLocale } = i18n;
    t('welcome', { name: 'Ada' }); // interpolation
    t('cart.items', { count: 3 }); // pluralization via Intl.PluralRules
    n(1234.5);
    d(new Date()); // locale-aware number/date (Intl)
    setLocale('fr'); // reactive — every t() re-evaluates
    
    • SSR request-scoped locale — per-request on the server (kept in the RequestContext, not a shared signal, so two concurrent requests in different languages never bleed); a reactive module signal on the client; the server-resolved locale is serialized into __FX_DATA__ for the client to seed (no flash, no hydration mismatch).
    • Resolves without the reactive owner-context chain — t() reads the locale from the request context / module signal, NOT useContext, so it works in lazy routes, server functions, and loaders. (This is exactly why it sidesteps the "useLocale() undefined under SSR on a lazy route" failure — there's no provider owner-chain to lose.)
    • Platform-native — pluralization via Intl.PluralRules, numbers/dates via Intl.NumberFormat/Intl.DateTimeFormat. Nested and flat dotted keys, {param} interpolation, fallback-locale, and a detectLocale(acceptLanguage, locales) helper. @fluixi/start — translation auto-discovery + config. fluixi.config's i18n option (default src/i18n, or false to disable, or { dir, defaultLocale, locales }) makes the build scan <dir>/<locale>.json and expose them as virtual:fluixi-i18n ({ messages, locales, defaultLocale }) — feed it to createI18n in one line. The virtual modules' TypeScript declarations (virtual:fluixi-i18n AND virtual:fluixi-server-fns) are now auto-generated into src/fluixi-start-env.d.ts (like the routes plugin's fluixi-env.d.ts), so apps never hand-write a declare module block.
  • i18n: typed translation keys. t('…') now autocompletes the valid keys from your messages and the editor flags typos — derived with a MessageKey<M> type that produces the leaf key union: flat keys ('welcome'), flat dotted keys ('nav.dashboard'), nested dot-paths ('cart.items'), and plural leaves — but not intermediate branch keys (which would render [object Object]). createI18n infers the message shape (a const type parameter), so no annotation or as const is needed. Backward compatible — t still accepts any string for dynamic keys.

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.29

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.28

@fluixi/auth

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Env management + server-function auto-wiring. Env management — fluixi dev|build|start now load .env files into process.env for server code (loaders, "use server" functions). Security model is Vite-aligned: only VITE_-prefixed vars reach the client (import.meta.env, inlined into the browser bundle); everything else is server-only via process.env and never ships to the web. Real (OS) env vars win, so deploys/secret managers override files. Apps stop hand-rolling dotenv loaders (and stop risking secret leaks). loadServerEnv(root, mode) exported from @fluixi/start. Server-function auto-wiring — virtual:fluixi-server-fns now re-exports the dispatcher (isServerFnRequest / handleServerFn), and fluixi dev routes /_server through it directly. So a "use server" function just works — no need to manually export { isServerFnRequest, handleServerFn } from entry-server. (Previously, missing that re-export made the RPC fall through to the SPA catch-all and return the HTML page — a silent, confusing failure.) Prod (fluixi start) still reads the dispatcher off the built entry-server; the canonical one-liner is now `export { isServerFnRequest, handleServerFn }

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.27

@fluixi/auth

  • Standardized client auth: RBAC + session-expiry as framework primitives, so apps stop hand-rolling them. @fluixi/session createSession:
    • access — role → permission map OR a resolver (user) => permissions (derive straight from user fields, no matrix). Adds roles(), permissions(), can(query). Generic over your permission shape; multi-role merge supported. Pluggable match matcher so can() takes a predicate by default, or a declarative query (can('products:edit'), an object, a CASL ability, or a user-field check) — match receives the permission set, the query, and the user.
    • unauthorized — react to a server 401 (expired session). createFetchGuard wraps a fetch you pass to your SDK (no global mutation); installGlobalFetchGuard is the explicit opt-in for SDKs that only use the global fetch (e.g. Medusa). Default on-expiry is logout.
    • status() state machine: idle | authenticating | authenticated | expired | error. @fluixi/auth/client createAuthHooks:
    • usePermissions(), useCan(), and <Can perform> / <Protect> components, driven by the session's access config.
    • protectedRoute now gates on roles[] and a permission predicate, not just a single role string. Note: client roles/permissions are a UI affordance only — the server enforces authz.

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

  • Standardized client auth: RBAC + session-expiry as framework primitives, so apps stop hand-rolling them. @fluixi/session createSession:
    • access — role → permission map OR a resolver (user) => permissions (derive straight from user fields, no matrix). Adds roles(), permissions(), can(query). Generic over your permission shape; multi-role merge supported. Pluggable match matcher so can() takes a predicate by default, or a declarative query (can('products:edit'), an object, a CASL ability, or a user-field check) — match receives the permission set, the query, and the user.
    • unauthorized — react to a server 401 (expired session). createFetchGuard wraps a fetch you pass to your SDK (no global mutation); installGlobalFetchGuard is the explicit opt-in for SDKs that only use the global fetch (e.g. Medusa). Default on-expiry is logout.
    • status() state machine: idle | authenticating | authenticated | expired | error. @fluixi/auth/client createAuthHooks:
    • usePermissions(), useCan(), and <Can perform> / <Protect> components, driven by the session's access config.
    • protectedRoute now gates on roles[] and a permission predicate, not just a single role string. Note: client roles/permissions are a UI affordance only — the server enforces authz.

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.26

@fluixi/auth

  • Less auth boilerplate + proper cookies + a CLI generator.
    • createAuthHooks({ session }) — drive the hooks from an existing reactive session (e.g. @fluixi/session) instead of a Better Auth client. The framework owns the reactive sync, so apps stop hand-writing a createEffect to mirror their store into the auth hooks (useUser/protectedRoute/useSignIn derive from session.user/login/logout).
    • Cookie API (from @fluixi/auth/server) — parseCookies, serializeCookie (secure-by-default: HttpOnly, Secure, SameSite=Lax, Path=/), deleteCookie, and request-scoped getCookie/getCookies.
    • fluixi generate auth — scaffolds auth.config.ts, auth.client.ts, src/middleware.ts, and the /api/auth/[...all] route in one command.

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.25

@fluixi/auth

  • New @fluixi/auth package — server-first auth as native bindings over Better Auth (peer dependency; consumed structurally). Better Auth owns the audited security primitives (hashing, sessions, CSRF, OAuth, 2FA, organizations, RBAC, DB adapters); this package owns the Fluixi integration:
    • /server — defineAuth(betterAuth(...)), authMiddleware() (resolves the session once per request into locals.auth via the request-locals bridge), mountAuthRoutes(), and request-context helpers requireUser / optionalUser / requireRole / requirePermission (no token parsing; work in loaders and server functions).
    • /client — createAuthHooks(client) → useUser / useSession / useAuth / useSignIn / useSignOut and protectedRoute (authed / guestOnly / role). The session is a createIsomorphicStore: server-resolved from locals.auth, serialized, and seeded synchronously on the client — no auth flash, no post-hydration refetch. The client entry never imports the server engine or Node.

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Add a typed per-request locals seam + the middleware→render bridge. RequestEvent now carries a locals bag (initialized by createRequestContext), with an augmentable RequestLocals interface and a getLocals() accessor. This is the framework seam middleware writes and loaders / server functions / the render read back — the basis for request-scoped data like the authenticated user, without prop threading. getLocals() returns a fresh empty object off-request so reads never throw. The bridge: middleware runs on the raw platform request, outside the render's context, so getRequestLocals(request) exposes a per-request locals bag (a WeakMap, request-keyed → concurrency-isolated, GC-friendly). Middleware writes getRequestLocals(request).x = …; createRequestContext adopts that same bag when the app forwards request on the render event (renderRequestAsync(App, { url, request })). @fluixi/start re-exports getRequestLocals/getLocals and now passes request to the string render path (the streaming path already did), so apps that forward it get request-scoped locals end-to-end. Re-exported from @fluixi/server too.

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.24

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Add createTheme (@fluixi/core) and the new @fluixi/session package (createSession). createTheme — the theme workflow as a primitive so apps stop rewriting it: detect (stored value or prefers-color-scheme) → persist → apply a data-* attribute → toggle() across an arbitrary theme list. Optional async load per theme drives isLoading(), with onChange/onLoading/onLoaded hooks, and headScript() returns an inline <head> script that sets the attribute before first paint (no theme flash on SSR). Built on the universal storage/env, so it's SSR-safe. @fluixi/session — createSession — the client-side session lifecycle. You provide a small backend adapter (login, fetchUser, optional logout/register/refresh/getExpiry); the framework owns token/user signals, isAuthenticated, isLoading/error, SSR-safe persistence, the hydrate-on-load flow, and automatic token refresh before expiry (client-only). Replaces the ~100 lines of hand-rolled session glue every app repeats. (The full server-first auth engine — OAuth/MFA/orgs/RBAC — will be the separate @fluixi/auth package.)

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/session

  • Add createTheme (@fluixi/core) and the new @fluixi/session package (createSession). createTheme — the theme workflow as a primitive so apps stop rewriting it: detect (stored value or prefers-color-scheme) → persist → apply a data-* attribute → toggle() across an arbitrary theme list. Optional async load per theme drives isLoading(), with onChange/onLoading/onLoaded hooks, and headScript() returns an inline <head> script that sets the attribute before first paint (no theme flash on SSR). Built on the universal storage/env, so it's SSR-safe. @fluixi/session — createSession — the client-side session lifecycle. You provide a small backend adapter (login, fetchUser, optional logout/register/refresh/getExpiry); the framework owns token/user signals, isAuthenticated, isLoading/error, SSR-safe persistence, the hydrate-on-load flow, and automatic token refresh before expiry (client-only). Replaces the ~100 lines of hand-rolled session glue every app repeats. (The full server-first auth engine — OAuth/MFA/orgs/RBAC — will be the separate @fluixi/auth package.)

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.23

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Add createIsomorphicStore + universal env utilities. createIsomorphicStore(key, { server, client, fallback, persist? }) — the object-shaped sibling of createIsomorphicState, for an isomorphic value that is a record ({ active, list }). It removes the boilerplate of hand-rolling that on the single-value primitive:
    • per-field reactive accessors (store.fields.region()),
    • a field setter that preserves the rest (store.setField('region', r)),
    • a built-in ensureInit() — memoised once, retry-on-failure — that runs the async client resolver exactly once on a pure-SPA cold load and is a no-op when the value was server-seeded (kills the duplicate cold-load fetch),
    • optional persist localStorage mirror on every write. Server-resolve / serialize / client-seed flow through the existing createIsomorphicState machinery, so @fluixi/server needs no changes. Universal env utilities — so app modules stop touching raw globals that don't exist under SSR:
    • storage — the localStorage API; real localStorage on the client, an ephemeral in-memory store on the server (no more globalThis.localStorage = … shims, no module-eval crash when a store reads storage.getItem(...) at import time).
    • isServer / isClient flags, createMemoryStorage().
    • env.window / env.document — lazy, typed accessors returning the real global on the client and undefined on the server (guard with ?.; deliberately not faked, to avoid hydration mismatches).
    • clientOnly(fn, fallback?) — run only on the client.

@fluixi/dom

@fluixi/head

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.22

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

  • SSR resilience: a failing backend request no longer blanks the page.
    • preloadServerState now catches a throwing isomorphic server resolver (e.g. the backend is down/restarting): it logs, leaves the state at its fallback, and lets the render continue (and the client resolve/retry after hydration) instead of rejecting the whole render.
    • renderToStream / renderToBodyStream no longer controller.error() on a render failure (which truncated the already-flushed document into a blank page). They emit an EMPTY body and close the document cleanly — so it stays well-formed and, with no __FLUIXI_HYDRATION__ marker present, startClient does a full CLIENT render (CSR fallback). A transient SSR/backend failure degrades to client rendering, never a blank.

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.21

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Fix: export createIsomorphicState from the public barrel. It was added to lib/index.ts, but the package entry re-exports lib/core.ts, so alpha.20 shipped the implementation without exposing it on @fluixi/core. Re-exported from lib/core.ts so consumers can actually import it.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.20

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Add isomorphic request state — createIsomorphicState (@fluixi/core) + preloadServerState (@fluixi/server). A value resolved ONCE on the server per request (before the app renders), serialized into the page, and seeded synchronously on the client so the first client render matches the server — no hydration mismatch, no refetch. The generic, framework-level form of the "resolve some context (region / locale / session) before routes render, then transfer it" pattern that previously had to be done by hand (e.g. await store.ensureInit() in the server entry + per-page null-gating).
    // app code, runs on both sides
    const region = createIsomorphicState('region', {
      server: (event) => resolveRegion(event), // runs in the server preload, serialized
      client: () => readRegionCookie(), // optional pure-SPA initial value
      fallback: null,
    });
    region.value(); // reactive accessor — correct on the server AND at client hydration
    
    Wiring:
    • @fluixi/dom's renderToStringAsync gains a preload option that runs inside the request context before the render.
    • @fluixi/server's renderRequestAsync passes preloadServerState, which walks the registered states, runs each server(event) resolver, sets the signal, and stashes the value into the request data (it ships in window.__FX_DATA__['__iso:<key>']). NOTE: the state signal is currently module-scoped (shared across concurrent SSR requests) — fine for a single default value; per-user, per-request isolation via AsyncLocalStorage is a follow-up.

@fluixi/dom

  • Add isomorphic request state — createIsomorphicState (@fluixi/core) + preloadServerState (@fluixi/server). A value resolved ONCE on the server per request (before the app renders), serialized into the page, and seeded synchronously on the client so the first client render matches the server — no hydration mismatch, no refetch. The generic, framework-level form of the "resolve some context (region / locale / session) before routes render, then transfer it" pattern that previously had to be done by hand (e.g. await store.ensureInit() in the server entry + per-page null-gating).
    // app code, runs on both sides
    const region = createIsomorphicState('region', {
      server: (event) => resolveRegion(event), // runs in the server preload, serialized
      client: () => readRegionCookie(), // optional pure-SPA initial value
      fallback: null,
    });
    region.value(); // reactive accessor — correct on the server AND at client hydration
    
    Wiring:
    • @fluixi/dom's renderToStringAsync gains a preload option that runs inside the request context before the render.
    • @fluixi/server's renderRequestAsync passes preloadServerState, which walks the registered states, runs each server(event) resolver, sets the signal, and stashes the value into the request data (it ships in window.__FX_DATA__['__iso:<key>']). NOTE: the state signal is currently module-scoped (shared across concurrent SSR requests) — fine for a single default value; per-user, per-request isolation via AsyncLocalStorage is a follow-up.

@fluixi/jsx

@fluixi/reactive

  • Fix two type regressions introduced by the TC39-core switch (runtime was always fine):
    • createResource lost its return type. The compat createResource had only the permissive (source: unknown, fetcherFn?: unknown) implementation signature, so every call site inferred ResourceReturn<{}> and the accessor came back as {}. Restored the two typed overloads (createResource<T>(fetcher) and createResource<T, S>(source, fetcher)) so T is inferred from the fetcher's return, as before.
    • createContext().Provider returned unknown. A component whose body is return Ctx.Provider(…) (e.g. <Router>) was therefore typed unknown, which isn't a valid JSX element → TS2786: 'X' cannot be used as a JSX component. Changed the Provider return type to any (matching the legacy core), so Provider-returning components are valid JSX again.

@fluixi/server

  • Add isomorphic request state — createIsomorphicState (@fluixi/core) + preloadServerState (@fluixi/server). A value resolved ONCE on the server per request (before the app renders), serialized into the page, and seeded synchronously on the client so the first client render matches the server — no hydration mismatch, no refetch. The generic, framework-level form of the "resolve some context (region / locale / session) before routes render, then transfer it" pattern that previously had to be done by hand (e.g. await store.ensureInit() in the server entry + per-page null-gating).
    // app code, runs on both sides
    const region = createIsomorphicState('region', {
      server: (event) => resolveRegion(event), // runs in the server preload, serialized
      client: () => readRegionCookie(), // optional pure-SPA initial value
      fallback: null,
    });
    region.value(); // reactive accessor — correct on the server AND at client hydration
    
    Wiring:
    • @fluixi/dom's renderToStringAsync gains a preload option that runs inside the request context before the render.
    • @fluixi/server's renderRequestAsync passes preloadServerState, which walks the registered states, runs each server(event) resolver, sets the signal, and stashes the value into the request data (it ships in window.__FX_DATA__['__iso:<key>']). NOTE: the state signal is currently module-scoped (shared across concurrent SSR requests) — fine for a single default value; per-user, per-request isolation via AsyncLocalStorage is a follow-up.

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.19

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

  • Fix control-flow reactivity on the TC39 signal core: stamp $SIGNAL on createMemo accessors. The compat createMemo only marked its accessor with $MEMO, not $SIGNAL, so isSignal(memo) returned false (the legacy createMemo stamped both). The DOM runtime's insert() relies on isSignal to recognise a control-flow memo (For/Switch/Index/Dynamic) as reactive; without it the memo fell into the component cache and was frozen after first render — initial output was correct but updates never applied. Stamping $SIGNAL (matching the legacy memo) restores fine-grained updates for all control-flow components. Fixes the 10 @fluixi/compiler imperative-fixtures failures.
  • Fix resource reactivity/detection on the TC39 signal core: stamp $RESOURCE and $SIGNAL on createResource accessors. The compat createResource stamped neither marker, so isResource() and isSignal() both returned false (the legacy createResource stamps both). The DOM runtime/control-flow use these: isResource gates Show on a resource's .loading, and isSignal lets insert() read the resource reactively instead of caching/freezing it. Without the markers a resource rendered through control flow wouldn't show its fallback while loading and wouldn't update once resolved. Sibling of the createMemo $SIGNAL fix; restores legacy detection parity.

@fluixi/server

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.18

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Slim the @fluixi/dom integration bridge to framework glue only. Reactive signal primitives are no longer wrapped by the integration bridge — they are imported straight from @fluixi/reactive/signal and unified across separately bundled packages via the graph's globalThis singleton. dom/integration.ts now carries only the non-core glue (createComponent + bridge/store plumbing). @fluixi/dom re-exports the reactive primitives from the core, so existing import { … } from '@fluixi/dom' consumers keep working unchanged. @fluixi/core (context, router-next, the reactive re-export barrel) now imports those primitives directly from @fluixi/reactive/signal.

@fluixi/dom

  • Slim the @fluixi/dom integration bridge to framework glue only. Reactive signal primitives are no longer wrapped by the integration bridge — they are imported straight from @fluixi/reactive/signal and unified across separately bundled packages via the graph's globalThis singleton. dom/integration.ts now carries only the non-core glue (createComponent + bridge/store plumbing). @fluixi/dom re-exports the reactive primitives from the core, so existing import { … } from '@fluixi/dom' consumers keep working unchanged. @fluixi/core (context, router-next, the reactive re-export barrel) now imports those primitives directly from @fluixi/reactive/signal.

@fluixi/jsx

@fluixi/reactive

  • Add @fluixi/reactive/signal-next — the complete reactive API running on a TC39 Signals proposal-shaped core, as an opt-in, additive drop-in for @fluixi/reactive/signal.
    • L0 graph core (Signal.State / Signal.Computed / Signal.subtle.Watcher): class-based, lazy push-pull, glitch-free, equality-gated, error-caching — ported from the existing CLEAN/CHECK/DIRTY + version algorithm.
    • L1 runtime (the APIs TC39 omits): effects, owner tree (createRoot/onCleanup), scheduler, batch, and an owner-tree context.
    • Full surface on the new core: createSignal/createMemo/createEffect/createComputed/ createContext/useContext/provide, createResource(with the sameFX_DATASSR seeding + async-SSR drain, reusing the existing hooks),Suspenseboundaries, and error boundaries. The legacy@fluixi/reactive/signal (signal.ts) and the store remain the default and the fallback — completely unchanged. Adopt signal-nextto run on the new core; when a nativeglobalThis.Signal` ships, L0 becomes a thin polyfill swap under the same surface.

@fluixi/server

@fluixi/testing

@fluixi/utils

@fluixi/vite-plugin

1.0.0-alpha.17

@fluixi/testing

1.0.0-alpha.16

@fluixi/testing

1.0.0-alpha.15

@fluixi/testing

1.0.0-alpha.14

@fluixi/oauth2

@fluixi/testing

1.0.0-alpha.13

@fluixi/oauth2

@fluixi/testing

1.0.0-alpha.12

@fluixi/oauth2

  • oauthRoutes answers POST <basePath>/backchannel-logout, the URL to register as the client's backchannel_logout_uri, allowing a valid logout token to end the matching session in sessionLocals, /me and /refresh, with logouts kept in memory by default and shared between instances by passing a LogoutStore as logouts.
  • requestAuth() now reports unreachable: true when a session exists but the provider cannot be reached, and the login route now redirects back to the app with ?auth_error=provider_unreachable when the provider is down, while server discovery errors indicate the provider was not reached.
  • A callback whose state matches no pending sign-in now restarts the sign-in once, or redirects home if already signed in, and a second mismatch redirects to the default page with auth_error=state_mismatch.

@fluixi/testing

1.0.0-alpha.11

@fluixi/oauth2

@fluixi/testing

1.0.0-alpha.10

@fluixi/oauth2

@fluixi/testing

1.0.0-alpha.9

@fluixi/oauth2

  • In the devtools graph, app modules and the services they provide appear as groups, and the auth service is shown under its module with its state named (user, token, status, roles and the rest) instead of anonymous signals.

@fluixi/testing

1.0.0-alpha.8

@fluixi/oauth2

@fluixi/testing

1.0.0-alpha.7

@fluixi/oauth2

@fluixi/testing

1.0.0-alpha.6

@fluixi/oauth2

@fluixi/testing

1.0.0-alpha.5

@fluixi/oauth2

  • BrowserConfig.tokenAuthMethod now accepts RFC names as values, allowing presets or authFromEnv clients to spread into a browser config without a type error.
  • navigate now accepts the router useNavigate without a type error.

@fluixi/testing

1.0.0-alpha.4

@fluixi/oauth2

  • oauthRoutes and sessionLocals accept dpop: true and dpopAlgorithm. The session's DPoP key is stored in the encrypted session cookie. With authFromEnv, AUTH_DPOP=true turns it on.

@fluixi/testing

  • Drop the unused tslib dependency. importHelpers is on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code imports tslib, so it was dead weight in dependencies.

1.0.0-alpha.3

@fluixi/oauth2

  • authModule(auth) registers the service and client tokens from src/app.config.ts, and authServerModule(config) mounts oauthRoutes and sessionLocals from src/app.config.server.ts.

1.0.0-alpha.2

@fluixi/oauth2

1.0.0-alpha.1

@fluixi/oauth2

  • createApiGuard and rolesFrom now generate the 401 response with a WWW-Authenticate header, matching what browser.ts reads.
  • authFromEnv on @fluixi/oauth2/env now reads VITE_AUTH_* into a preset and client config.
  • createAuthService returns the guards as well as the session: protectedRoute, Can, Protect, useAuth, useUser and useCan come back on the service, so an app declares its authentication once instead of wiring createAuthHooks to it in a second file. navigate, loginPath, homePath and forbiddenPath move onto the same options object.
  • @fluixi/oauth2/callback now provides OAuthCallback and useOAuthCallback.
  • Three shapes that most deployments end up needing. createServiceClient on @fluixi/oauth2/service asks for a token with the client_credentials grant, for a background job or one service calling another with no user involved. It caches until the token is close to expiring, and a burst of callers on a cold cache makes one request rather than one each. Server side only: the grant is the client secret. revoke() retires a token through the provider's revocation endpoint (RFC 7009), and logout() now calls it before forgetting the refresh token. Dropping one without revoking leaves a copy usable for its whole lifetime while the browser believes it signed out. issuer on the verifier and the introspector accepts a list, for a provider that names itself more than one way. Google publishes both accounts.google.com and https://accounts.google.com, and a service pinned to one rejected tokens carrying the other. Discovery uses the first.
  • DPoP, RFC 9449: a token bound to a key the client holds, so a copy taken from storage, a log or a proxy is worth nothing without the key. dpop: true on a browser config generates a key per client, signs a proof for every token and resource request, presents the token under the DPoP scheme rather than Bearer, and retries once with a nonce when the provider asks for one. The private half never leaves the process and is not stored, so a reload makes a new key and the session is rebuilt from the refresh token: a page cannot keep a private key safely. dpop: true on createTokenVerifier is the other half, and one without the other is worse than neither. It refuses a token carrying no cnf.jkt, and refuses a bound one whose proof was signed with a different key, made for another method or URL, made for another token, or is older than the skew allowance. Verifying a bare string with it set is refused outright rather than silently skipping the check, since a service cannot read a proof it was not given. Okta requires this by default for a new client and an integrator org does not allow turning it off, which is what prompted it.
  • credentialsFromEnv and explainCredentials now resolve secrets or private keys from environment variables.
  • First release. OAuth2 and OIDC for a Fluixi app, split in two: an AuthClient that drives the protocol (PKCE, the authorization redirect, the code exchange, refresh and end-session) and an AuthService built on @fluixi/session that owns the user, the status and the refresh schedule. The service depends on the client and not on which one, so the same application code runs in either mode. tokens: 'browser' is a public client holding its own tokens, which needs no server. tokens: 'server' keeps them on the app's own server behind an httpOnly cookie, using the routes from @fluixi/oauth2/server. Endpoints come from OIDC discovery when given an issuer. The service satisfies the session shape createAuthHooks takes, so protectedRoute and the rest work on top of it unchanged.
  • The subpath @fluixi/oauth2/roles now exports rolesFrom, so importing ./presets or ./env no longer bundles the token verifier into the browser.
  • Client authentication is one implementation rather than four. It was built separately in the browser client, the server routes, the service client and the introspector, which is how tokens: 'server' came to lack private_key_jwt while two other paths had it: a method was added where it was demanded instead of once. Every authenticated call now shares client-auth.ts, so oauthRoutes can authenticate with a signed assertion and a method added later reaches all of them. The methods take their names from token_endpoint_auth_methods_supported, so a provider's discovery document and an app's configuration say the same words: client_secret_basic, client_secret_post, private_key_jwt, none. The shorter basic and body still work. A configuration is checked when a client is built rather than on its first request, and the credentials grant refuses a public client outright, since that grant is the credential.
  • clientAuthMethod: 'private_key_jwt' authenticates a service by signing a short-lived assertion with a key the provider holds the public half of, so no shared secret travels. Available on createServiceClient and createTokenIntrospector, with privateKey as a JWK. Not a preference everywhere: Okta's org authorization server refuses client credentials with anything else, and FAPI requires it. The assertion names the endpoint as its audience so it cannot be replayed elsewhere, carries a fresh jti so it cannot be replayed there, and lives one minute.
  • @fluixi/oauth2/presets now provides OIDC and OAuth2 presets for any provider along with five named providers, fixing the issuer spelling, roles claim and provider refusal details.
  • A server-held session can retire its tokens. revoke() existed only on the browser client, so calling it in tokens: 'server' did nothing at all: the browser holds a cookie and no token, and there was no route to ask. oauthRoutes now serves /revoke, which opens the cookie and revokes what is inside, and logout revokes the refresh token before clearing the cookie rather than leaving a copy usable for its whole lifetime. A provider publishing no revocation endpoint answers 501 rather than reporting success, since a silent success leaves the token live while the caller believes otherwise.
  • sessionLocals reuses a userinfo response for a short window instead of asking the provider on every server render, which made the provider being up a condition of rendering at all. userCacheMs sets the window and 0 turns it off; entries are keyed by access token, a refusal is never cached, and the store is bounded. The package documents where trust comes from: why the client does not verify token signatures, why identity is a userinfo round trip rather than a decoded token, and why signature verification belongs at the resource server with an audited library.
  • createTokenIntrospector verifies a token the service cannot read, over RFC 7662. A provider may issue an opaque reference token rather than a JWT, and there is no way to check one locally, so the service asks the provider instead. It returns the same shape as createTokenVerifier, so a guard written against one works with the other. What that buys is the property a signature cannot give: a revoked token is refused at once rather than staying valid until it expires. What it costs is a request to the provider per call, so cacheMs defaults to zero and a refusal is never cached. Client credentials are required, because an unauthenticated introspection endpoint would let anyone test a stolen token. Discovery now carries introspection_endpoint on Endpoints.
  • @fluixi/oauth2/verify checks an access token at the service that receives it. createTokenVerifier({ issuer, audience }) returns a function taking a token or a Request and giving back its claims, with the JWKS found through discovery. Nothing in it is Fluixi-specific, so an Express service, a worker or a plain handler can import it on its own. The cryptography is jose's, an optional peer loaded only when something verifies. What this adds is the configuration around it: algorithms pinned rather than read from the token, an issuer and audience that have to be stated, and authorizedParty for a provider that puts no aud on its access tokens and names the client in azp instead, which is what Keycloak does until an audience mapper is configured.
  • userInfo says where the user comes from when it is not the provider's OIDC userinfo. url points at an app's own endpoint, map turns whatever it returns into the shape the app wants, and headers, credentials and method cover an API with its own requirements. Replacing fetchUser wholesale still works for anything this does not reach. The OIDC subject check applies only to the provider's own userinfo. An app endpoint answers in its own shape and carries no sub to compare, so applying it there would reject every custom endpoint.
  • authorizedParty reads client_id as well as azp. Some providers name the client a token was issued to in client_id rather than the OIDC claim, Cognito among them, and those tokens carry no aud either, so every one of them was rejected. The introspection path already read both.
  • A conformance suite under conformance/ runs the same checks against any provider from a small config block: discovery, the client credentials grant, token shape, the authorization code flow, userinfo, JWKS verification, introspection and revocation. It reports what must hold separately from what a provider may legitimately lack, so an absent revocation endpoint reads as a fact to document rather than a failure. Keycloak and Dex both pass. Dex has no client credentials grant and no revocation endpoint, which is what the capability rows are for. Configs with setup instructions are included for Auth0, Okta, Entra and Google, which need an account before they can run.
  • A discovery document that cannot be read now says why. In a browser a refused cross-origin read throws before any status exists and fetch reports only "Failed to fetch", which reads as a network fault. Not every provider lets a page read its own document: Keycloak does once an origin is configured, Dex and Google do not. The error now names that as the likely cause and points at the two ways around it, giving endpoints directly or resolving them on a server.
  • A token request refused for want of a DPoP proof now says what that means. invalid_dpop_proof and use_dpop_nonce carry no meaning on their own, and Okta turns the requirement on by default for new applications, so it is met before anything is actually misconfigured. The message names RFC 9449, says the package does not implement it, and gives the two ways forward.
  • The DPoP key now persists in IndexedDB instead of a variable, ensuring refresh tokens remain bound across page loads.
  • Introspection now names the key and passes the provider's reply through when a request is refused.
  • An app can run more than one provider. A client's stored values are namespaced by its clientId, or by storageKey when two clients share a provider; they used to share one set of keys, so starting a second login overwrote the first's verifier and state. tokenAuthMethod: 'basic' sends the client credentials in an Authorization header for providers that require it, rather than in the form. sessionLocals puts the signed-in user on request locals for tokens: 'server', which is what lets a server render know who is looking. There is no browser-mode equivalent: the token never leaves the browser, so the server has no credential to resolve.
  • A callback route no longer fails its server render. paramsFromUrl read location.href, which does not exist on the server, so the route threw before the browser could finish the exchange. It now returns nothing there, and complete() says plainly that it runs in the browser, where the authorization code and the PKCE verifier both are.
  • Only invalid_grant errors now clear the stored refresh token.
  • A login can no longer be made to land on another origin. The destination a flow carries so a visitor resumes where they were interrupted arrives from outside: ?returnTo= on the login route, a caller's argument, a value read back out of browser storage. It was honoured unchecked, so a link carrying ?returnTo=https://evil.example.com/ sent an authenticated visitor there with a live session, which is the worst place for an open redirect: they have just proved who they are and trust the page they arrive on. Sealing the value into a signed cookie did not help and was the reasoning that let this through. A cookie that cannot be tampered with is not the question when the application seals the attacker's value itself. safeReturnTo now decides, and is applied where a destination enters a flow and again where it is used: a path on this origin is kept, anything else falls back. Refused are another origin, //host and \\host which a browser reads as one, any non-http scheme so javascript: cannot be reached, a control character used to smuggle past a check, a bare word, and a lookalike such as https://app.example.com.evil.test. allowedReturnOrigins names further origins for an application that genuinely spans several, compared as whole origins rather than by prefix.
  • revoke() says what happened. It had three silent returns, for no token to revoke, no revocation endpoint, and a refusal from the provider, which made a revocation that did nothing indistinguishable from one that worked. Each now throws with the reason, and a revoked refresh token is forgotten so a later refresh fails for the right cause. logout() still ignores a failed revocation, which is the one place it should: a provider that cannot revoke must not stop someone signing out.
  • @fluixi/session/server holds a session the browser cannot read: createSessionCookie seals a value into an httpOnly cookie with AES-GCM through Web Crypto, and reads it back. It is not an auth system and does not know what a user is, which is what lets an app with its own database seal a user id, and @fluixi/oauth2 seal tokens, over the same piece. @fluixi/oauth2/server now uses it rather than carrying its own copy of the cookie and crypto handling.
  • The userinfo response is now checked against the id token's subject before it is used, which OIDC requires: a response obtained for one subject must not be read as another. A provider that issues no id token has nothing to compare against and is unaffected. A signed userinfo response is reported as one rather than failing inside a JSON parse, and a refused token now carries the reason the provider gave in WWW-Authenticate instead of only a status code.

1.0.0-next.17

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Per-island resource seeding for partial hydration. Resources read inside an island are now seeded from __FX_DATA__ per-island instead of relying on a whole-app hydrate: the server namespaces each island's resource ids in render order (Counter#0:r0, …) and the client reproduces that namespace when it hydrates the island, so island resources don't refetch or flash. Adds RequestContext.nextIslandNamespace/withResourceScope and a hydrate(el, container, { resourceNamespace }) option. (Resources created in a data waterfall — after the first resolves during the async drain — fall outside the synchronous island scope and still refetch; pass that data via island props.)

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/utils

@fluixi/vite-plugin

1.0.0-next.16

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • getRequestEvent() now works inside a "use server" function — access the request, headers, and cookies:
    import { getRequestEvent } from '@fluixi/server';
    const whoami = async () => {
      'use server';
      const req = getRequestEvent()?.request as Request;
      return req.headers.get('user-agent');
    };
    
    The RPC dispatcher runs the function inside @fluixi/server's request context (wired by a server-only @fluixi/start/server-fn-setup bridge that virtual:fluixi-server-fns imports, keeping the @fluixi/start/server-fn runtime client-safe). Response headers set on the event (e.g. Set-Cookie) are returned with the RPC response.
  • Server functions in lazy routes now register reliably. serverFunctionsVitePlugin provides virtual:fluixi-server-fns — side-effect imports of every module containing a "use server" directive (found by scanning src/). The server entry imports it, so all server functions register at startup, including those in lazy-loaded routes that would otherwise register only when their chunk loads (causing an RPC registry miss → 404). The client never imports the virtual module.

@fluixi/core

  • Add a <Form action={...}> component (@fluixi/core/router-next) for form-driven actions. On submit it builds the form's fields into a plain object and calls the action (typically wrapping a "use server" function), preventing a full navigation and tracking submission state via useSubmission:
    <Form action={save}>
      <input name="title" />
      <button>Save</button>
    </Form>
    
    The markup carries method="post" + action={action.url} so it's progressive- enhancement-ready. (Multipart/file uploads and no-JS submission are follow-ups.)
  • Lazy-route hydration + hydration correctness fixes.
    • Lazy-route hydration — a lazy() component loads async, after the synchronous hydration pass, so it used to render a fresh, duplicate subtree next to the un-hydrated server one. lazy() now captures its server-DOM position (captureHydrationCursor) and resumes hydration there when the module resolves (runHydrationAt), reusing the server DOM in place. hydrate() keeps resource seeding (__FX_DATA__) active after the sync pass so lazy-route resources still seed.
    • Text-ordering fix — an empty-text positioning marker (createTextNode('') from insert) was consuming and blanking the adjacent server content node during hydration, reversing siblings (text <small>… → <small>…text). Empty markers are client-only anchors and are now created fresh, never consuming a server node. (Fixes a general hydration-ordering bug, not just lazy.)
    • <Form>/<Link> read children once — the compiler's children getter builds fresh nodes on every access, so reading it twice produced duplicate nodes. New @fluixi/dom exports: captureHydrationCursor, runHydrationAt. Auto-hydration of SSR'd apps stays opt-in pending a remaining component-children duplication.
  • SSR fixes:
    • <Form> and <Link> render real elements on the server. Both returned an HTML string on the server, which the serializer escaped as text (&lt;form&gt;…) — breaking the element and the hydration cursor. They now build a real element via the runtime (server ServerNode / client DOM).
    • @fluixi/start: /* @vite-ignore */ on the runtime dynamic imports (config/entry-server/middleware) to silence Vite's import-analysis warnings in dev.

@fluixi/dom

  • __FX_DATA__ redaction. Resource data resolved during SSR is serialized into the page (window.__FX_DATA__) so the client seeds resources without refetching — but it's visible to anyone viewing source. setDataRedactor((value, id) => …) transforms or drops each value before serialization: return the value to embed, or undefined to omit the entry (the client then refetches that resource). A throwing redactor omits rather than leaks. Exported from @fluixi/dom and @fluixi/server.
    import { setDataRedactor } from '@fluixi/server';
    setDataRedactor((v) => {
      if (v && typeof v === 'object' && 'passwordHash' in v) {
        const { passwordHash, ...safe } = v as any;
        return safe;
      }
      return v;
    });
    
  • Islands — partial hydration. <Island component={C} props={p} name="C" /> server-renders a component inside a <fluixi-island> boundary (props serialized as a JSON attribute); hydrateIslands(registry) — the client entry instead of startClient(App) — finds every boundary, looks it up by name, and hydrates only that subtree in place. The rest of the page stays inert static HTML (no client JS executed for it). Re-exported from @fluixi/core.
    // page (SSR): <Island name="Counter" component={Counter} props={{ start: 0 }} />
    // client entry:
    import { hydrateIslands } from '@fluixi/core';
    hydrateIslands({ Counter });
    
    (The Index SSR extra-node bug and dev hydration-mismatch warnings — also tracked under hydration follow-ups — were already resolved.)
  • Lazy-route hydration + hydration correctness fixes.
    • Lazy-route hydration — a lazy() component loads async, after the synchronous hydration pass, so it used to render a fresh, duplicate subtree next to the un-hydrated server one. lazy() now captures its server-DOM position (captureHydrationCursor) and resumes hydration there when the module resolves (runHydrationAt), reusing the server DOM in place. hydrate() keeps resource seeding (__FX_DATA__) active after the sync pass so lazy-route resources still seed.
    • Text-ordering fix — an empty-text positioning marker (createTextNode('') from insert) was consuming and blanking the adjacent server content node during hydration, reversing siblings (text <small>… → <small>…text). Empty markers are client-only anchors and are now created fresh, never consuming a server node. (Fixes a general hydration-ordering bug, not just lazy.)
    • <Form>/<Link> read children once — the compiler's children getter builds fresh nodes on every access, so reading it twice produced duplicate nodes. New @fluixi/dom exports: captureHydrationCursor, runHydrationAt. Auto-hydration of SSR'd apps stays opt-in pending a remaining component-children duplication.
  • Fix hydration duplicating native children that follow a void element when passed through a component. hydrateElement descended into a void element's (null) firstChild, stranding the cursor so the next sibling — e.g. the <button> after an <input> in <Form><input/><button/></Form> — was rebuilt fresh and appended. Void elements (input, br, img, …) now ascend to nextSibling instead of descending. This was the last bug gating default auto-hydration of SSR'd apps.

@fluixi/jsx

@fluixi/reactive

@fluixi/server

  • __FX_DATA__ redaction. Resource data resolved during SSR is serialized into the page (window.__FX_DATA__) so the client seeds resources without refetching — but it's visible to anyone viewing source. setDataRedactor((value, id) => …) transforms or drops each value before serialization: return the value to embed, or undefined to omit the entry (the client then refetches that resource). A throwing redactor omits rather than leaks. Exported from @fluixi/dom and @fluixi/server.
    import { setDataRedactor } from '@fluixi/server';
    setDataRedactor((v) => {
      if (v && typeof v === 'object' && 'passwordHash' in v) {
        const { passwordHash, ...safe } = v as any;
        return safe;
      }
      return v;
    });
    
  • Docs: rewrite the package READMEs in the canonical format (logo, badges, overview, install, usage, license) and bring them up to date — streaming SSR, middleware, server functions, fluixi generate, and the SSR/SPA scaffold. Adds the missing @fluixi/create README. (The root README's package list + architecture were also corrected.)

@fluixi/utils

@fluixi/vite-plugin

1.0.0-next.15

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • Server functions — "use server". A function carrying the directive runs only on the server and is callable from the client over RPC:
    const getUser = async (id) => {
      'use server';
      return db.users.find(id);
    };
    
    • @fluixi/compiler: serverFunctionsVitePlugin + transformServerFunctions apply the directive transform per build — the client gets an RPC stub ($createServerReference), the server keeps the body and registers it ($registerServerFn) under a stable id shared by both builds. Server-only code never ships to the client.
    • @fluixi/start: @fluixi/start/server-fn runtime (registry + stub + dispatcher) and a /_server RPC endpoint wired into dev and start (with same-origin CSRF protection). The dispatcher rides on the entry-server module's exports so it shares the app's registry. The plugin is enabled by default in start apps. Note: a server function must live in a module reachable from the server entry's eager graph to be registered (lazy-route registration via a manifest is a follow-up).

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

@fluixi/utils

@fluixi/vite-plugin

1.0.0-next.14

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Drop the "kettle" name now that the org is fluixi. BREAKING — no aliases.
    • @fluixi/kettlejs → @fluixi/core (facade package + folder). Update imports, including subpaths: @fluixi/core/router-next, /plugins, /client, /server, /jsx-runtime, /rx.
    • @fluixi/jsx-runtime → @fluixi/jsx (package + folder). Set jsxImportSource: "@fluixi/jsx" in tsconfig (was @fluixi/core) and add @fluixi/jsx to app deps; the /jsx-runtime + /jsx-dev-runtime subpaths are unchanged.
    • All remaining kettle identifiers/contracts → fluixi: KettleJS → Fluixi, KettleElement → FluixiElement, kettleRoutesPlugin → fluixiRoutesPlugin, virtual:kettle-routes → virtual:fluixi-routes, __KETTLE_HYDRATION__ → __FLUIXI_HYDRATION__, the kettle-js root attribute → fluixi-js, the kettle-generate/kettle-run bins → fluixi-generate/fluixi-run.
    • The @fluixi/kettlejs-test test harness → @fluixi/core-test. No API/behavior changes — names only. Also removes the dead React bridge from @fluixi/jsx (jsx.ts: getJSX/loadReact/ ensureReactInit/ComponentChild — exported but unused, only a lazy import('react')), dropping the react/react-dom/@types/react dev deps. @fluixi/jsx no longer pulls React in any form.

@fluixi/dom

@fluixi/jsx

  • Drop the "kettle" name now that the org is fluixi. BREAKING — no aliases.
    • @fluixi/kettlejs → @fluixi/core (facade package + folder). Update imports, including subpaths: @fluixi/core/router-next, /plugins, /client, /server, /jsx-runtime, /rx.
    • @fluixi/jsx-runtime → @fluixi/jsx (package + folder). Set jsxImportSource: "@fluixi/jsx" in tsconfig (was @fluixi/core) and add @fluixi/jsx to app deps; the /jsx-runtime + /jsx-dev-runtime subpaths are unchanged.
    • All remaining kettle identifiers/contracts → fluixi: KettleJS → Fluixi, KettleElement → FluixiElement, kettleRoutesPlugin → fluixiRoutesPlugin, virtual:kettle-routes → virtual:fluixi-routes, __KETTLE_HYDRATION__ → __FLUIXI_HYDRATION__, the kettle-js root attribute → fluixi-js, the kettle-generate/kettle-run bins → fluixi-generate/fluixi-run.
    • The @fluixi/kettlejs-test test harness → @fluixi/core-test. No API/behavior changes — names only. Also removes the dead React bridge from @fluixi/jsx (jsx.ts: getJSX/loadReact/ ensureReactInit/ComponentChild — exported but unused, only a lazy import('react')), dropping the react/react-dom/@types/react dev deps. @fluixi/jsx no longer pulls React in any form.

@fluixi/reactive

@fluixi/server

  • Guarantee a single runtime instance. @fluixi/dom + @fluixi/reactive (the renderer integration + signal core — both hold module-global state) are now peerDependencies of the runtime extensions (@fluixi/jsx, @fluixi/lit, @fluixi/server), and @fluixi/reactive is a peer of @fluixi/dom. They're provided once by @fluixi/core (or by installing @fluixi/dom + @fluixi/reactive directly). This prevents a duplicate reactive runtime where signals from one copy don't drive effects in another.

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.13

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Keep lit fully out of the core module graph — fixes HTMLElement is not defined when SSR-rendering / prod-serving an app (e.g. via @fluixi/start). The real culprit was the file-routing codegen: kettleRoutesPlugin emitted import { lazy, runWithOwner } from '@fluixi/kettlejs/router' (the old, lit-coupled router) into virtual:kettle-routes. That statically pulled @fluixi/lit → lit, which extends HTMLElement at module init, so the server bundle threw on import — and because lit was static in the graph, the lazy import('lit') elsewhere couldn't be split out either. Codegen now imports lazy from router-next (lit-free); the unused runWithOwner is dropped. Also scrubbed the remaining lit pulls from the core entries so lit lives only in @fluixi/lit:
    • @fluixi/kettlejs main entry + lib/index barrel: removed the html/svg/ nothing/litRender/LitElement/$show/$for/$switch/$portal/$if/$each/ $classMap/$styleMap/litrx/createReactiveJSX re-exports; Router/Link/etc. now come from router-next; render/index lazily imports lit client-only.
    • @fluixi/jsx-runtime: dropped the $/$if/litrx re-export and the unused html/svg/nothing value imports (→ import type); removed the dead @fluixi/lit + @lit-labs/ssr dependencies.
    • @fluixi/dom: TemplateResult is now a type-only import. BREAKING: import lit symbols (html, svg, nothing, LitElement, $show/$for/ $switch/$portal/$if/$each, $classMap/$styleMap, litrx) from @fluixi/lit directly instead of from @fluixi/kettlejs.
  • Retire the old @fluixi/kettlejs/router. router-next (the framework-agnostic @fluixi/router core + its kettlejs adapter) is now the only router, and it already covered every real feature — hooks (useRouter/useLocation/useNavigate/useParams/ useParam/useParamSelector/useMatch/useSearchParams/select), the data layer (cache/action/revalidate/createAsync/useSubmission/useAction/useRouteData), Outlet/Link/A/Redirect, lazy routes, and nested layouts. The old router was the last lit-coupled module in the core (its <Router>/<Routes>/ <Route> JSX imported html from @fluixi/lit), so removing it takes lit fully out of the router path too. Changes:
    • Removed the ./router, ./router/index, and ./router.js package exports and the router/{router,rt,fs-router,index}.ts implementation.
    • Moved the shared route-data layer to router-next/data.ts (it's re-exported from @fluixi/kettlejs/router-next); added a runWithOwner re-export there for parity. BREAKING: import routing from @fluixi/kettlejs/router-next instead of @fluixi/kettlejs/router. The declarative <Routes>/<Route> JSX is replaced by the routes prop: <Router routes={routes} /> (wrap in <Suspense> for lazy routes). The dead createFileRoutes/fs-router helper is gone (file routing is the kettleRoutesPlugin
    • virtual:kettle-routes).

@fluixi/dom

  • Keep lit fully out of the core module graph — fixes HTMLElement is not defined when SSR-rendering / prod-serving an app (e.g. via @fluixi/start). The real culprit was the file-routing codegen: kettleRoutesPlugin emitted import { lazy, runWithOwner } from '@fluixi/kettlejs/router' (the old, lit-coupled router) into virtual:kettle-routes. That statically pulled @fluixi/lit → lit, which extends HTMLElement at module init, so the server bundle threw on import — and because lit was static in the graph, the lazy import('lit') elsewhere couldn't be split out either. Codegen now imports lazy from router-next (lit-free); the unused runWithOwner is dropped. Also scrubbed the remaining lit pulls from the core entries so lit lives only in @fluixi/lit:
    • @fluixi/kettlejs main entry + lib/index barrel: removed the html/svg/ nothing/litRender/LitElement/$show/$for/$switch/$portal/$if/$each/ $classMap/$styleMap/litrx/createReactiveJSX re-exports; Router/Link/etc. now come from router-next; render/index lazily imports lit client-only.
    • @fluixi/jsx-runtime: dropped the $/$if/litrx re-export and the unused html/svg/nothing value imports (→ import type); removed the dead @fluixi/lit + @lit-labs/ssr dependencies.
    • @fluixi/dom: TemplateResult is now a type-only import. BREAKING: import lit symbols (html, svg, nothing, LitElement, $show/$for/ $switch/$portal/$if/$each, $classMap/$styleMap, litrx) from @fluixi/lit directly instead of from @fluixi/kettlejs.

@fluixi/jsx

  • Keep lit fully out of the core module graph — fixes HTMLElement is not defined when SSR-rendering / prod-serving an app (e.g. via @fluixi/start). The real culprit was the file-routing codegen: kettleRoutesPlugin emitted import { lazy, runWithOwner } from '@fluixi/kettlejs/router' (the old, lit-coupled router) into virtual:kettle-routes. That statically pulled @fluixi/lit → lit, which extends HTMLElement at module init, so the server bundle threw on import — and because lit was static in the graph, the lazy import('lit') elsewhere couldn't be split out either. Codegen now imports lazy from router-next (lit-free); the unused runWithOwner is dropped. Also scrubbed the remaining lit pulls from the core entries so lit lives only in @fluixi/lit:
    • @fluixi/kettlejs main entry + lib/index barrel: removed the html/svg/ nothing/litRender/LitElement/$show/$for/$switch/$portal/$if/$each/ $classMap/$styleMap/litrx/createReactiveJSX re-exports; Router/Link/etc. now come from router-next; render/index lazily imports lit client-only.
    • @fluixi/jsx-runtime: dropped the $/$if/litrx re-export and the unused html/svg/nothing value imports (→ import type); removed the dead @fluixi/lit + @lit-labs/ssr dependencies.
    • @fluixi/dom: TemplateResult is now a type-only import. BREAKING: import lit symbols (html, svg, nothing, LitElement, $show/$for/ $switch/$portal/$if/$each, $classMap/$styleMap, litrx) from @fluixi/lit directly instead of from @fluixi/kettlejs.

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.12

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Reduce lit coupling in the core. Drop the unused lit option from router-next's <Link> (and its top-level import { html } from '@fluixi/lit'), and remove the dead @lit-labs/ssr + @lit-labs/ssr-client dependencies (declared but never imported — Fluixi SSR uses its own ServerNode renderer, not lit's). First step toward "all lit lives in @fluixi/lit"; the remaining main-entry re-exports are decoupled with the old-router retirement.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.11

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • kettleRoutesPlugin now accepts polyfills?: boolean (default true, back-compat). The injected vite-plugin-node-polyfills shims break SSR (resolution + CJS-in-ESM); SSR-first setups pass polyfills: false. @fluixi/start does this so server rendering works out of the box.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.10

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Dev hydration-mismatch detection now also covers comment markers: hydrateMarker warns (dev only) when the server marker at the cursor diverges from what the client expects, matching the existing element/text warnings. Helps diagnose structural SSR/CSR divergence.
  • Async SSR: run the probe/final serializeNode inside the render root's owner. Previously these ran after createRoot returned (with Owner reset to null), so any resource a lazy subtree created during serialization was unowned — dispose() couldn't cancel it, and it would settle after the response was serialized and the root disposed, re-running an effect on a torn-down tree (the "page renders, then errors ~2-3s later" crash with a slow backend). Running serialize within the root owner makes those resources owned, so they're cancelled on dispose.

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.9

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Add hydration event-replay. The server emits a small capture script (eventCaptureScript(), included in createHtmlDocument by default; toggle with eventReplay: false) that records discrete events (click/input/change/submit/keydown) fired before hydration into window.__FX_REPLAY__. After domHydrate(), startClient replays them on their original targets (still live, since hydration reuses the server DOM) so the now-wired delegated handlers fire — early clicks/inputs aren't lost during the hydration window.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.8

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Make the router-next hooks SSR-safe. On the server, useRouter (and therefore useNavigate/useParams/useLocation) returns a no-op stub instead of throwing when no RouterContext is on the owner chain. This happens during a late/detached re-render — e.g. a slow data resource settling after renderToStringAsync already serialized the response and disposed the root — whose output is discarded; previously it threw a floating rejection that crashed the dev server / showed an error overlay seconds after the page rendered. On the client, a missing router is still genuine misuse and throws.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.7

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Fix an infinite render loop on the client after hydration (regression in 0.4.0-next.6). The eager stale-effect scheduling added for <Suspense> async SSR is now gated to the server render only (setEagerStaleEffects, enabled inside renderToStringAsync). On the client the lazy stale-effect behavior is restored, so a memo↔effect cycle no longer spins forever.

@fluixi/jsx

@fluixi/reactive

  • Fix an infinite render loop on the client after hydration (regression in 0.4.0-next.6). The eager stale-effect scheduling added for <Suspense> async SSR is now gated to the server render only (setEagerStaleEffects, enabled inside renderToStringAsync). On the client the lazy stale-effect behavior is restored, so a memo↔effect cycle no longer spins forever.

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.6

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Fix async SSR of lazy routes rendered through the router <Outlet/>. propagateDirty now schedules a stale effect reached via a pure memo on signal write (matching the memo-recompute path), so a <Suspense> output re-renders when its boundary resolves; and renderToStringAsync probe-evaluates the lazily-built tree before draining so deferred route resources register and are awaited instead of serialising the fallback.

@fluixi/jsx

@fluixi/reactive

  • Fix async SSR of lazy routes rendered through the router <Outlet/>. propagateDirty now schedules a stale effect reached via a pure memo on signal write (matching the memo-recompute path), so a <Suspense> output re-renders when its boundary resolves; and renderToStringAsync probe-evaluates the lazily-built tree before draining so deferred route resources register and are awaited instead of serialising the fallback.

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.5

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Fix <Suspense> + lazy() under async SSR: register the boundary's lazy-trigger effect in its resume list so a resolved lazy child re-renders during the drain (and its own resource is awaited) instead of serialising the fallback.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.4

@fluixi/babel-plugin-jsx


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

@fluixi/compiler


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

@fluixi/core


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

@fluixi/dom


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

@fluixi/jsx


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

@fluixi/reactive


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

@fluixi/utils


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

@fluixi/vite-plugin


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

0.4.0-next.3

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.2

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Add the keyed list-reconciliation primitives mapArray, keyArray and indexArray (mirrors SolidJS) and rebuild <For>/<Index> on top of them.
    • mapArray(list, mapFn, { fallback? }) — reference-keyed; reuses an item's scope while the same value stays in the list, map fn gets the plain value + a reactive index. Backs <For>.
    • keyArray(list, keyFn, mapFn, { fallback? }) — key-function keyed; survives object recreation, map fn gets a live item accessor. Backs <For by={…}>.
    • indexArray(list, mapFn, { fallback? }) — index-keyed; growing adds slots, shrinking disposes trailing slots, a value change updates the slot signal without re-running the map fn. Backs <Index>. Each mapped item lives in its own createRoot, so list items have a stable, disposable owner scope. <For>/<Index> are now thin wrappers over these (and a stray debug console.log in the keyed <For> path is gone). Exported from @fluixi/reactive/signal and re-exported from @fluixi/dom.

@fluixi/jsx

@fluixi/reactive

  • Add the keyed list-reconciliation primitives mapArray, keyArray and indexArray (mirrors SolidJS) and rebuild <For>/<Index> on top of them.
    • mapArray(list, mapFn, { fallback? }) — reference-keyed; reuses an item's scope while the same value stays in the list, map fn gets the plain value + a reactive index. Backs <For>.
    • keyArray(list, keyFn, mapFn, { fallback? }) — key-function keyed; survives object recreation, map fn gets a live item accessor. Backs <For by={…}>.
    • indexArray(list, mapFn, { fallback? }) — index-keyed; growing adds slots, shrinking disposes trailing slots, a value change updates the slot signal without re-running the map fn. Backs <Index>. Each mapped item lives in its own createRoot, so list items have a stable, disposable owner scope. <For>/<Index> are now thin wrappers over these (and a stray debug console.log in the keyed <For> path is gone). Exported from @fluixi/reactive/signal and re-exported from @fluixi/dom.

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.1

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • createProvider gets a lazy-safe overload so a provider can wrap an <Outlet/> without losing context under SSR. The old form createProvider({ context, value, children }) reads children when the object literal is built — i.e. before the reactive Provider stamps its context. With an <Outlet/> among siblings (e.g. a layout <P><Navbar/><main><Outlet/></main><Footer/></P>), the route subtree then renders in an owner root disjoint from the provider, so route descendants get undefined from useContext. New form reads children through a getter, inside the stamped scope:
    function ThemeProvider(props) {
      return createProvider(ThemeContext, theme, props); // children stays lazy
    }
    
    The old { context, value, children } form still works but is deprecated (one-time dev warning); prefer the 3-arg form or JSX <Ctx.Provider value={…}>{props.children}</Ctx.Provider>. Internal createContextWithProvider/composeProviders now use the lazy form too.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.4.0-next.0

@fluixi/babel-plugin-jsx

@fluixi/compiler

  • The imperative backend is now the default codegen (was jsx). Consumers using fluixi() / createVitePlugin() without an explicit backend now compile straight into @fluixi/dom runtime calls (createNativeElement/spread/insert/…) instead of the interpreted jsx()/jsxs() runtime. The jsx backend remains available via backend: 'jsx' (unchanged when opted in). Apps already on backend: 'imperative' are unaffected; the example configs drop the now-redundant opt-in.
  • Fix the IR codegen to match inline: component prop values are now passed as values, not () => … thunks. Wrapping them handed the component a function instead of the value — e.g. history={createMemoryHistory()} caused history.get is not a function, breaking the whole router example under the IR codegen. The createComponent call already sits in a createMemo, so reading a signal in a prop still re-evaluates on change. Both codegens now pass the full router example and a new differential fixture.
  • Fix the imperative {props.children} async bug: lazy/<Suspense> content threaded through a child component's {props.children} rendered empty. Two causes, both in the inline codegen:
    1. .children member access compiled to a reactive () => props.children thunk, which fully unwrapped the child's Suspense/memo to a static node and severed the reactive binding. It's now non-reactive, so insert binds the child's own memo (like a directly-rendered <Outlet/>).
    2. JSX whitespace between elements (e.g. <Shell>\n <Suspense/>\n</Shell>) was kept as a " " text node, turning props.children into an array `[" ", memo, Now uses canonical JSX whitespace cleaning (drops newline-spanning whitespace, as React/Solid do), so a lone child stays lone. The IR codegen path is kept in sync (identical output).

@fluixi/core

@fluixi/dom

  • True DOM-reuse hydration. hydrate() now reuses the server-rendered DOM instead of re-rendering: the hydration cursor descends into a matched element's children (createNativeElement) and ascends past a placed child once its subtree is done (insert), matching the depth-first shape the imperative codegen emits. insertExpression adopts server nodes already in place. All changes are behind isHydrating, so the normal client render path is unchanged.
  • Resource-data transport for hydration (no flash). renderToStringAsync now serializes resolved createResource values into an inline <script>window.__FX_DATA__=…</script>; on the client hydrate() seeds the matching resources (ids matched by creation order) so they don't refetch — the async data renders immediately instead of flashing through the loading fallback. Also extracts the DOM-reuse hydration out of runtime.ts into a dedicated hydration.ts.
  • Hydration now works for For (and Show) control-flow. Hydrating a server- rendered list used to add duplicate/extra nodes and break reconciliation: each For item's createNativeElement descended into its node, but nothing ascended the hydration cursor between siblings, so items 2+ were rebuilt fresh. For now advances the cursor past each rendered item (hydrateAdvancePast, no-op outside hydration), so server list items are reused and stay reactive. Show already worked; both are covered by tests. (Index SSR has a separate, pre-existing extra-node bug — tracked separately.)
  • Hydration now works for Index too (same fix as For in the previous release): each item ascends the hydration cursor past its rendered node so server list items are reused instead of rebuilt. Index SSR was already correct — this was a missing-ascend hydration bug, not a server-render one.
  • Dev-only hydration mismatch detection. When hydrate() walks the server DOM and the cursor node diverges from what the client builds (different tag/type), it logs a warning pointing at the likely cause (non-deterministic render, browser-only branches, untransported data). Tree-shaken out of production via process.env.NODE_ENV, so it costs nothing in prod. Only warns on a present-but- wrong node; empty-text insertion markers (which the server serializes to nothing) are not flagged.

@fluixi/jsx

@fluixi/reactive

  • Fix infinite loop when a Suspense boundary resolves during/after disposal. A disposed computation could still be re-run — renderToString() of a <Suspense> whose child kicks off a fetching resource hung the process: disposing the root cancelled the resource's settle (it stayed loading), but the boundary's decrement (firing as the now-resolved promise settled) kept resuming the disposed effect, which re-threw the already-resolved promise → synchronous re-fire. dispose() now marks the computation and updateComputation skips disposed nodes, so a disposed computation never re-runs.
  • Resource-data transport for hydration (no flash). renderToStringAsync now serializes resolved createResource values into an inline <script>window.__FX_DATA__=…</script>; on the client hydrate() seeds the matching resources (ids matched by creation order) so they don't refetch — the async data renders immediately instead of flashing through the loading fallback. Also extracts the DOM-reuse hydration out of runtime.ts into a dedicated hydration.ts.

@fluixi/utils

@fluixi/vite-plugin

0.3.0

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

  • Universal SSR + request scoping. SSR previously never worked (the runtime hard-required document). @fluixi/dom now has a universal string renderer: under server mode the leaf factories build a serializable ServerNode tree that renderToString turns into HTML — the same imperative runtime (insert/spread/Show/For/createComponent), no jsdom. The client path is unchanged (the isServer branch + duck-typed node guards).
    • renderToString / renderToStringAsync — sync render-once and async (awaits createResource/Suspense data before serializing, via an injectable resource tracker in @fluixi/reactive).
    • Request scoping (the module-global SSR concurrency hazard): a pluggable RequestStore shaped like AsyncLocalStorage — runWithRequestContext, getRequestEvent, per-request routeData/nextId. @fluixi/dom never imports node:async_hooks, so browser bundles stay clean.
    • New @fluixi/server package: the Node-side home that injects a real AsyncLocalStorage (concurrency-safe out of the box) and adds renderRequest/renderRequestAsync/startServer/createHtmlDocument.
    • @fluixi/kettlejs SSR now renders through @fluixi/server.
    • splitProps added to @fluixi/dom (reactive-preserving, Solid-style).
    • Resource saveToCache no longer throws when localStorage is absent (SSR).

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

@fluixi/vite-plugin

0.3.0-next.13

@fluixi/server

  • Add renderToBodyStream(app, event) — a web ReadableStream<Uint8Array> of just the app body (no document shell), for hosts that own the surrounding HTML document and want to stream the body into their own template (e.g. @fluixi/start flushing index.html's head first). The content includes the __FX_DATA__ resource-transport script, so hydration still seeds without refetch. Also exposed as startServer(App).bodyStream(url). Single chunk today; progressive Suspense streaming is a later pass (same signature).

0.3.0-next.12

@fluixi/server

0.3.0-next.11

@fluixi/server

0.3.0-next.10

@fluixi/server

0.3.0-next.9

@fluixi/server

  • Add hydration event-replay. The server emits a small capture script (eventCaptureScript(), included in createHtmlDocument by default; toggle with eventReplay: false) that records discrete events (click/input/change/submit/keydown) fired before hydration into window.__FX_REPLAY__. After domHydrate(), startClient replays them on their original targets (still live, since hydration reuses the server DOM) so the now-wired delegated handlers fire — early clicks/inputs aren't lost during the hydration window.

0.3.0-next.8

@fluixi/server

0.3.0-next.7

@fluixi/server

0.3.0-next.6

@fluixi/server

0.3.0-next.5

@fluixi/server

0.3.0-next.4

@fluixi/server


"@fluixi/kettlejs": patch


Tidy kettlejs internals: remove the dead dev-server/ and builder/ stubs and ~4,500 lines of extensionless router scratch files (actual/curr/known/lts/ rs/rt) — all unexported and unimportable. No public API change.

0.3.0-next.3

@fluixi/server

0.3.0-next.2

@fluixi/server

0.3.0-next.1

@fluixi/server

0.3.0-next.0

@fluixi/server

  • Add renderToStream — web ReadableStream<Uint8Array> SSR that works on edge/ worker runtimes (Cloudflare Workers, Deno, Bun, Node 18+), plus startServer(App).stream(url, opts). The document shell (<head> + open <body>) is flushed first so the browser can start loading assets, then the app HTML (awaiting data loaders/Suspense) and the closing tags follow. createHtmlDocument is refactored into shell/close pieces (output unchanged). Progressive out-of-order <Suspense> streaming is a later pass — today the body is a single chunk after the async render resolves.

0.2.1

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils

  • Include src in the published tarball (like the other @fluixi/* packages). Consumers that resolve @fluixi/* via the development export condition (the TypeScript source — used in dev to keep a single reactive instance) were failing on @fluixi/router / @fluixi/utils with "Failed to resolve entry".

@fluixi/vite-plugin

0.2.0

@fluixi/babel-plugin-jsx

@fluixi/compiler

@fluixi/core

  • Move web-component support to @fluixi/element (now its own repo, wc-element). @fluixi/kettlejs no longer re-exports defineElement, wrapElement, KettleElement, KettleLitElement, KettleController, createComponent (createJsxComponent), or kettleElementPlugin. Import them from @fluixi/element (and @fluixi/element/plugin) directly. @fluixi/element and @fluixi/webui are no longer published from this repo.

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/server

  • Universal SSR + request scoping. SSR previously never worked (the runtime hard-required document). @fluixi/dom now has a universal string renderer: under server mode the leaf factories build a serializable ServerNode tree that renderToString turns into HTML — the same imperative runtime (insert/spread/Show/For/createComponent), no jsdom. The client path is unchanged (the isServer branch + duck-typed node guards).
    • renderToString / renderToStringAsync — sync render-once and async (awaits createResource/Suspense data before serializing, via an injectable resource tracker in @fluixi/reactive).
    • Request scoping (the module-global SSR concurrency hazard): a pluggable RequestStore shaped like AsyncLocalStorage — runWithRequestContext, getRequestEvent, per-request routeData/nextId. @fluixi/dom never imports node:async_hooks, so browser bundles stay clean.
    • New @fluixi/server package: the Node-side home that injects a real AsyncLocalStorage (concurrency-safe out of the box) and adds renderRequest/renderRequestAsync/startServer/createHtmlDocument.
    • @fluixi/kettlejs SSR now renders through @fluixi/server.
    • splitProps added to @fluixi/dom (reactive-preserving, Solid-style).
    • Resource saveToCache no longer throws when localStorage is absent (SSR).

@fluixi/utils

@fluixi/vite-plugin

0.2.0-alpha.7

@fluixi/devtools

  • Reading a component's props no longer leaves running what a prop getter built, so the Show fallback read by the panel no longer throws repeated context errors.
  • Component props are now read once per props object for display instead of on every sample.

0.2.0-alpha.6

@fluixi/devtools

  • The devtools graph now shows custom elements, app modules and services as their own kinds, holding the signals and memos they created, and new @fluixi/reactive functions openReactiveScope, withReactiveScope, closeReactiveScope, adoptReactiveScope, markReactiveScope, and reactiveScopeOf report such a scope.
  • A custom element now appears once in the component tree, showing its props and field signals, and its card displays where the class is defined and where the tag is used.
  • An element, module or service card in the graph no longer shows the package's own line as its source.

0.2.0-alpha.5

@fluixi/devtools

  • SSR now bundles @fluixi/core instead of externalizing it, so @fluixi/core/routes reaches the routes plugin and an installed app gets its route tree rather than the "did not replace it" stub. @fluixi/devtools publishes its ./plugins subpath, which the vite plugin needs to turn the reactive graph on.

0.2.0-alpha.4

@fluixi/devtools

  • @fluixi/cli, @fluixi/devtools, @fluixi/head, @fluixi/router, @fluixi/server, and @fluixi/start now provide bundled builds with import resolving to a .mjs file and a require condition resolving to a .cjs file, and @fluixi/core and @fluixi/compiler now include the copyright banner in their subpath exports.

0.2.0-alpha.3

@fluixi/devtools

  • Each consumer of the graph now keeps its own cursor instead of sharing one drained queue, so updates are no longer lost when multiple tools watch the same page.
  • Each element row in the tree now shows the tag that rendered it, the values writing into it with each binding's own line, and the line the element itself was written on.
  • A snapshot says what the graph is. By the time a panel polls, the propagation is over and everything reads as settled.
    • createTimeline now shows what happened, grouped into commits. A write with nothing running came from a handler, and opens a commit. Filter, and a pause button.
    • Diffs are computed at the write, both sides in hand. An append reports the one row added, not every row after it. Each entry carries JSON for copying.
    • DOM targets now show the element and attribute a value writes, with the line, described rather than referenced so a removed subtree is not held alive.
    • createDetailPanel now shows one commit in full, dragged and resized.
    • graphToJson / exportGraph now exports the whole graph as JSON, referencing nodes by name.
    • The graph view now draws cards for bindings and setters behind a toggle, and its zoom ceiling now follows the size of the graph.
  • @fluixi/devtools now uses a single colour table shared by all views and adds a draggable, resizable pane for long values, so colours are consistent across the graph, tree and inspector and a clipped value can be read in full.
  • @fluixi/devtools now has a plugin seam, with directives and contexts as the first two plugins, exported from @fluixi/devtools/plugins.
  • The component tree now shows a tag's props, rows are ordered the same way as the page, and the toolbar displays words instead of glyphs.
  • A component now reports the props it was handed, the compiler records where each was written, and the inspector shows both.
  • The inspector now lists the tags a value writes inside, counting repeats, so users can see all instances where a signal is used within a component.
  • A binding card is now drawn once per place, with an edge from each value that writes there, rather than once per reader.
  • A component is now drawn once for every place the DOM names it, and a floating pane is resized from where the drag began.

0.2.0-alpha.2

@fluixi/devtools

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

0.2.0-alpha.1

@fluixi/devtools

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

0.2.0-alpha.0

@fluixi/devtools

  • New package: @fluixi/devtools — a live inspector for the Fluixi reactive graph. createReactor() gives instrumented createSignal / createMemo / createEffect / createStore / createResource (same signatures as the core; an optional { name } sets the graph label). createGraphView(svg) renders the dependency graph and animates propagation in real time:
    • read edges (solid) + write edges (dashed) — see effects feed back into signals
    • click a node to inspect it — value, real version + CLEAN/CHECK/DIRTY state, sources, observers, writes
    • async resources (loading → resolved) and stores graphed alongside signals/memos/effects
    • nodes are removed when their owning scope disposes (no stale-node leak) Edges come from real reads, so it's the actual graph, not a reconstruction.

0.1.2-alpha.5

@fluixi/router

  • Client navigation now opens the new page at the top or at its #hash, back and forward return you to your previous scroll position, reload preserves the position, replace on the same page leaves the scroll unchanged, and locations now include a key and action while browser history stores the key alongside the app's state.

0.1.2-alpha.4

@fluixi/router

  • @fluixi/cli, @fluixi/devtools, @fluixi/head, @fluixi/router, @fluixi/server, and @fluixi/start now provide bundled builds with import resolving to a .mjs file and a require condition resolving to a .cjs file, and @fluixi/core and @fluixi/compiler now include the copyright banner in their subpath exports.

0.1.2-alpha.3

@fluixi/router

  • Add a description field to packages that were missing one. Without it, npm's profile/list view fell back to the first README line — the raw <p align="center"> logo block — instead of a summary.
  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

0.1.2-alpha.2

@fluixi/router

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

0.1.2-alpha.1

@fluixi/router

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

0.1.2-alpha.0

@fluixi/router

  • Tolerate a trailing slash when matching routes. Static hosts (e.g. Cloudflare Pages) canonicalise /a/b to /a/b/; leaf routes match exactly, so the stray slash matched nothing and rendered an empty root after hydration. The matcher now strips a trailing slash (root / preserved).

0.1.1

@fluixi/router

  • Include src in the published tarball (like the other @fluixi/* packages). Consumers that resolve @fluixi/* via the development export condition (the TypeScript source — used in dev to keep a single reactive instance) were failing on @fluixi/router / @fluixi/utils with "Failed to resolve entry".

0.1.0

@fluixi/babel-plugin-jsx

  • KettleJS compiled fine-grained architecture.
    • New @fluixi/compiler package: host-agnostic JSX compiler with an IR and pluggable codegen backends. Babel is the front-end adapter; the JSX transform moved here (@fluixi/babel-plugin-jsx is now a thin re-export).
    • Imperative codegen backend — compiles JSX straight into @fluixi/dom runtime calls (createNativeElement/spread/insert/createComponent) instead of the jsx() automatic runtime. Selectable via the plugin/vite-plugin options backend: 'jsx' | 'imperative' and codegen: 'inline' | 'ir' (jsx stays the default). The ir path recurses into JSX nested in expressions.
    • New @fluixi/lit package: the lit renderer extracted out of @fluixi/dom, so the core runtime is usable without lit. The @fluixi/dom barrel is now lit-free.
    • New @fluixi/vite-plugin: the canonical Vite integration (fluixi()).
    • @fluixi/jsx-runtime now instantiates components through the framework's registered createComponent (unifying the jsx and imperative paths).
    • Runtime fixes surfaced by hardening: per-child reactive insert for multi-child elements, Switch/Match with compiler-wrapped children, and classList support.

@fluixi/compiler

  • KettleJS compiled fine-grained architecture.
    • New @fluixi/compiler package: host-agnostic JSX compiler with an IR and pluggable codegen backends. Babel is the front-end adapter; the JSX transform moved here (@fluixi/babel-plugin-jsx is now a thin re-export).
    • Imperative codegen backend — compiles JSX straight into @fluixi/dom runtime calls (createNativeElement/spread/insert/createComponent) instead of the jsx() automatic runtime. Selectable via the plugin/vite-plugin options backend: 'jsx' | 'imperative' and codegen: 'inline' | 'ir' (jsx stays the default). The ir path recurses into JSX nested in expressions.
    • New @fluixi/lit package: the lit renderer extracted out of @fluixi/dom, so the core runtime is usable without lit. The @fluixi/dom barrel is now lit-free.
    • New @fluixi/vite-plugin: the canonical Vite integration (fluixi()).
    • @fluixi/jsx-runtime now instantiates components through the framework's registered createComponent (unifying the jsx and imperative paths).
    • Runtime fixes surfaced by hardening: per-child reactive insert for multi-child elements, Switch/Match with compiler-wrapped children, and classList support.

@fluixi/core

  • KettleJS compiled fine-grained architecture.
    • New @fluixi/compiler package: host-agnostic JSX compiler with an IR and pluggable codegen backends. Babel is the front-end adapter; the JSX transform moved here (@fluixi/babel-plugin-jsx is now a thin re-export).
    • Imperative codegen backend — compiles JSX straight into @fluixi/dom runtime calls (createNativeElement/spread/insert/createComponent) instead of the jsx() automatic runtime. Selectable via the plugin/vite-plugin options backend: 'jsx' | 'imperative' and codegen: 'inline' | 'ir' (jsx stays the default). The ir path recurses into JSX nested in expressions.
    • New @fluixi/lit package: the lit renderer extracted out of @fluixi/dom, so the core runtime is usable without lit. The @fluixi/dom barrel is now lit-free.
    • New @fluixi/vite-plugin: the canonical Vite integration (fluixi()).
    • @fluixi/jsx-runtime now instantiates components through the framework's registered createComponent (unifying the jsx and imperative paths).
    • Runtime fixes surfaced by hardening: per-child reactive insert for multi-child elements, Switch/Match with compiler-wrapped children, and classList support.
  • Framework-agnostic router (@fluixi/router) + kettlejs router-next adapter.
    • New @fluixi/router package: pure routing core — matchRoutes / matchPath, history adapters, and a createRouter state machine. No reactivity or DOM, so any view layer can sit on top.
    • @fluixi/kettlejs/router-next: kettlejs adapter that renders the resolved match tree top-down, fixing deeply-nested <Outlet/>. Full API parity with the old router (useParams / useParam / useParamSelector / useMatch / useSearchParams / useLocation / useNavigate / select / Redirect / Link). Routes with a data loader gate on resolved data, so useRouteData() works without a Suspense boundary.

@fluixi/dom

  • KettleJS compiled fine-grained architecture.
    • New @fluixi/compiler package: host-agnostic JSX compiler with an IR and pluggable codegen backends. Babel is the front-end adapter; the JSX transform moved here (@fluixi/babel-plugin-jsx is now a thin re-export).
    • Imperative codegen backend — compiles JSX straight into @fluixi/dom runtime calls (createNativeElement/spread/insert/createComponent) instead of the jsx() automatic runtime. Selectable via the plugin/vite-plugin options backend: 'jsx' | 'imperative' and codegen: 'inline' | 'ir' (jsx stays the default). The ir path recurses into JSX nested in expressions.
    • New @fluixi/lit package: the lit renderer extracted out of @fluixi/dom, so the core runtime is usable without lit. The @fluixi/dom barrel is now lit-free.
    • New @fluixi/vite-plugin: the canonical Vite integration (fluixi()).
    • @fluixi/jsx-runtime now instantiates components through the framework's registered createComponent (unifying the jsx and imperative paths).
    • Runtime fixes surfaced by hardening: per-child reactive insert for multi-child elements, Switch/Match with compiler-wrapped children, and classList support.

@fluixi/jsx

  • KettleJS compiled fine-grained architecture.
    • New @fluixi/compiler package: host-agnostic JSX compiler with an IR and pluggable codegen backends. Babel is the front-end adapter; the JSX transform moved here (@fluixi/babel-plugin-jsx is now a thin re-export).
    • Imperative codegen backend — compiles JSX straight into @fluixi/dom runtime calls (createNativeElement/spread/insert/createComponent) instead of the jsx() automatic runtime. Selectable via the plugin/vite-plugin options backend: 'jsx' | 'imperative' and codegen: 'inline' | 'ir' (jsx stays the default). The ir path recurses into JSX nested in expressions.
    • New @fluixi/lit package: the lit renderer extracted out of @fluixi/dom, so the core runtime is usable without lit. The @fluixi/dom barrel is now lit-free.
    • New @fluixi/vite-plugin: the canonical Vite integration (fluixi()).
    • @fluixi/jsx-runtime now instantiates components through the framework's registered createComponent (unifying the jsx and imperative paths).
    • Runtime fixes surfaced by hardening: per-child reactive insert for multi-child elements, Switch/Match with compiler-wrapped children, and classList support.

@fluixi/reactive

@fluixi/router

  • Framework-agnostic router (@fluixi/router) + kettlejs router-next adapter.
    • New @fluixi/router package: pure routing core — matchRoutes / matchPath, history adapters, and a createRouter state machine. No reactivity or DOM, so any view layer can sit on top.
    • @fluixi/kettlejs/router-next: kettlejs adapter that renders the resolved match tree top-down, fixing deeply-nested <Outlet/>. Full API parity with the old router (useParams / useParam / useParamSelector / useMatch / useSearchParams / useLocation / useNavigate / select / Redirect / Link). Routes with a data loader gate on resolved data, so useRouteData() works without a Suspense boundary.

@fluixi/utils

@fluixi/vite-plugin

  • KettleJS compiled fine-grained architecture.
    • New @fluixi/compiler package: host-agnostic JSX compiler with an IR and pluggable codegen backends. Babel is the front-end adapter; the JSX transform moved here (@fluixi/babel-plugin-jsx is now a thin re-export).
    • Imperative codegen backend — compiles JSX straight into @fluixi/dom runtime calls (createNativeElement/spread/insert/createComponent) instead of the jsx() automatic runtime. Selectable via the plugin/vite-plugin options backend: 'jsx' | 'imperative' and codegen: 'inline' | 'ir' (jsx stays the default). The ir path recurses into JSX nested in expressions.
    • New @fluixi/lit package: the lit renderer extracted out of @fluixi/dom, so the core runtime is usable without lit. The @fluixi/dom barrel is now lit-free.
    • New @fluixi/vite-plugin: the canonical Vite integration (fluixi()).
    • @fluixi/jsx-runtime now instantiates components through the framework's registered createComponent (unifying the jsx and imperative paths).
    • Runtime fixes surfaced by hardening: per-child reactive insert for multi-child elements, Switch/Match with compiler-wrapped children, and classList support.

0.1.0-next.8

@fluixi/cli

  • Redesigned CLI experience. A gradient fluixi wordmark and a clean, colored layout across the toolchain (zero new dependencies — hand-rolled ANSI that degrades to plain text when not a TTY / under NO_COLOR):
    • fluixi dev now prints a proper "ready" panel — timing plus Local and Network URLs — instead of a single localhost:PORT line.
    • fluixi build shows a wordmark header, per-step lines, and a timed built summary.
    • fluixi --help / generate use the wordmark, colored commands, and ✓/✗ markers.
    • npm create @fluixi gets a modern interactive flow: gradient intro, gutter prompts, and an arrow-key App-mode selector (SSR/SPA), with a styled "Next steps" outro.
    • New @fluixi/start/ui export (shared color/wordmark/panel helpers) honoring NO_COLOR/FORCE_COLOR.

0.1.0-next.7

@fluixi/cli

  • Docs: rewrite the package READMEs in the canonical format (logo, badges, overview, install, usage, license) and bring them up to date — streaming SSR, middleware, server functions, fluixi generate, and the SSR/SPA scaffold. Adds the missing @fluixi/create README. (The root README's package list + architecture were also corrected.)

@fluixi/start

  • Redesigned CLI experience. A gradient fluixi wordmark and a clean, colored layout across the toolchain (zero new dependencies — hand-rolled ANSI that degrades to plain text when not a TTY / under NO_COLOR):
    • fluixi dev now prints a proper "ready" panel — timing plus Local and Network URLs — instead of a single localhost:PORT line.
    • fluixi build shows a wordmark header, per-step lines, and a timed built summary.
    • fluixi --help / generate use the wordmark, colored commands, and ✓/✗ markers.
    • npm create @fluixi gets a modern interactive flow: gradient intro, gutter prompts, and an arrow-key App-mode selector (SSR/SPA), with a styled "Next steps" outro.
    • New @fluixi/start/ui export (shared color/wordmark/panel helpers) honoring NO_COLOR/FORCE_COLOR.

0.1.0-next.6

@fluixi/cli

@fluixi/start

  • getRequestEvent() now works inside a "use server" function — access the request, headers, and cookies:
    import { getRequestEvent } from '@fluixi/server';
    const whoami = async () => {
      'use server';
      const req = getRequestEvent()?.request as Request;
      return req.headers.get('user-agent');
    };
    
    The RPC dispatcher runs the function inside @fluixi/server's request context (wired by a server-only @fluixi/start/server-fn-setup bridge that virtual:fluixi-server-fns imports, keeping the @fluixi/start/server-fn runtime client-safe). Response headers set on the event (e.g. Set-Cookie) are returned with the RPC response.
  • Docs: rewrite the package READMEs in the canonical format (logo, badges, overview, install, usage, license) and bring them up to date — streaming SSR, middleware, server functions, fluixi generate, and the SSR/SPA scaffold. Adds the missing @fluixi/create README. (The root README's package list + architecture were also corrected.)
  • Server functions in lazy routes now register reliably. serverFunctionsVitePlugin provides virtual:fluixi-server-fns — side-effect imports of every module containing a "use server" directive (found by scanning src/). The server entry imports it, so all server functions register at startup, including those in lazy-loaded routes that would otherwise register only when their chunk loads (causing an RPC registry miss → 404). The client never imports the virtual module.
  • SSR fixes:
    • <Form> and <Link> render real elements on the server. Both returned an HTML string on the server, which the serializer escaped as text (&lt;form&gt;…) — breaking the element and the hydration cursor. They now build a real element via the runtime (server ServerNode / client DOM).
    • @fluixi/start: /* @vite-ignore */ on the runtime dynamic imports (config/entry-server/middleware) to silence Vite's import-analysis warnings in dev.

0.1.0-next.5

@fluixi/cli

  • Add fluixi generate <kind> <name> (alias g): scaffold a component (→ src/components/<Name>.tsx), a file-based route (→ src/routes/<path>.tsx, dynamic segments like blog/[id] supported), or middleware (→ src/middleware.ts) into the current app.

@fluixi/start

  • Server functions — "use server". A function carrying the directive runs only on the server and is callable from the client over RPC:
    const getUser = async (id) => {
      'use server';
      return db.users.find(id);
    };
    
    • @fluixi/compiler: serverFunctionsVitePlugin + transformServerFunctions apply the directive transform per build — the client gets an RPC stub ($createServerReference), the server keeps the body and registers it ($registerServerFn) under a stable id shared by both builds. Server-only code never ships to the client.
    • @fluixi/start: @fluixi/start/server-fn runtime (registry + stub + dispatcher) and a /_server RPC endpoint wired into dev and start (with same-origin CSRF protection). The dispatcher rides on the entry-server module's exports so it shares the app's registry. The plugin is enabled by default in start apps. Note: a server function must live in a module reachable from the server entry's eager graph to be registered (lazy-route registration via a manifest is a follow-up).

0.1.0-next.4

@fluixi/cli

@fluixi/start

0.1.0-next.3

@fluixi/cli

@fluixi/start

  • Add the @fluixi/start/router subpath, re-exporting @fluixi/kettlejs/router-next (Router, Outlet, Link, the hooks, createMemoryHistory/createBrowserHistory, the data layer, types). Apps get routing from the meta-framework's own surface — a single, stable dependency — instead of reaching into kettlejs internals:
    import { Router, Outlet, createMemoryHistory } from '@fluixi/start/router';
    
    Framework primitives (Suspense, lazy, signals, components) still come from @fluixi/kettlejs; only routing lives here.

0.1.0-next.2

@fluixi/cli

@fluixi/start

  • Add request middleware / guards. A src/middleware.ts that default-exports defineMiddleware([...]) runs a (request, next) => Response chain before SSR, in both fluixi dev and fluixi start. A middleware can short-circuit (return a Response without calling next — auth redirects, 401s, rewrites) or call next() and adjust the downstream response (headers, etc.). Runtime-neutral (Web Request/ Response).
    • New defineMiddleware / composeMiddleware / normalizeMiddleware + Middleware / MiddlewareNext types, exported from @fluixi/start.
    • fluixi build emits dist/server/middleware.js when src/middleware.ts exists; createProdHandler composes it around the renderer. Dev loads it per request via ssrLoadModule so edits hot-reload. Middleware errors become a 500 (guarded).
    • New middleware config option (default src/middleware.ts).
  • Streaming SSR. If src/entry-server.ts exports renderStream(url, request) (a web ReadableStream<Uint8Array> of the app body — e.g. via @fluixi/server's renderToBodyStream), fluixi dev and fluixi start stream the response: the index.html head is flushed immediately (the browser starts fetching assets while the server awaits data loaders), then the app body is piped into the mount point, then the tail. Falls back to the string render export when renderStream isn't present, and composes with middleware. Adds splitTemplate / streamDocument / StreamRenderFn.
  • Support fluixi.config.ts (TypeScript config). loadConfig now probes fluixi.config.{ts,mts,mjs,js} and bundles a TypeScript config on the fly with esbuild (bare imports kept external so import { defineConfig } from '@fluixi/start' and node builtins resolve from the app; relative imports are bundled in), then imports it and cleans up the temp file. Plain ESM configs still import directly, and no config at all still works (every field has a default).

create-fluixi

  • Redesigned CLI experience. A gradient fluixi wordmark and a clean, colored layout across the toolchain (zero new dependencies — hand-rolled ANSI that degrades to plain text when not a TTY / under NO_COLOR):
    • fluixi dev now prints a proper "ready" panel — timing plus Local and Network URLs — instead of a single localhost:PORT line.
    • fluixi build shows a wordmark header, per-step lines, and a timed built summary.
    • fluixi --help / generate use the wordmark, colored commands, and ✓/✗ markers.
    • npm create @fluixi gets a modern interactive flow: gradient intro, gutter prompts, and an arrow-key App-mode selector (SSR/SPA), with a styled "Next steps" outro.
    • New @fluixi/start/ui export (shared color/wordmark/panel helpers) honoring NO_COLOR/FORCE_COLOR.
  • Fix the SSR template's tsconfig.json: it referenced fluixi.config.mjs and a non-existent vite.config.ts in include (the template ships fluixi.config.ts), and declared types: ["node"] without @types/node installed. The include now matches the scaffolded files and @types/node is added to devDependencies, so a fresh SSR app typechecks out of the box.

0.1.0-next.1

@fluixi/cli

@fluixi/start

  • Deploy adapters (M1-rest). Adds the runtime-neutral production path on top of the fetch handler:
    • createProdHandler(config) — builds the SSR FetchHandler from a fluixi build output (dist/server + dist/client). The same handler runs on Node, Bun, Deno, and edge/worker runtimes.
    • serveNode(handler, opts) + withStaticFiles(handler, dir) — the Node reference adapter (http + static files from disk).
    • An Adapter interface with two reference implementations: nodeAdapter (listen + static) and webAdapter ({ fetch } export for edge/Bun/Deno/Cloudflare; assets served by the platform). fluixi start is now just serveNode(withStaticFiles(createProdHandler(), dist/client)). dev and build are validated end-to-end; the production start path is blocked on a separate SSR/web-components issue (router-next pulls @fluixi/lit, which references HTMLElement at module init in the bundled server build — needs the lit SSR DOM shim).

create-fluixi

  • Docs: rewrite the package READMEs in the canonical format (logo, badges, overview, install, usage, license) and bring them up to date — streaming SSR, middleware, server functions, fluixi generate, and the SSR/SPA scaffold. Adds the missing @fluixi/create README. (The root README's package list + architecture were also corrected.)

0.1.0-next.0

@fluixi/cli

  • Add the Fluixi meta-framework (walking skeleton). @fluixi/start is the runtime that sits on top of @fluixi/kettlejs: dev (Vite-middleware SSR dev server with shared-HMR + crash guards), build (client + server bundles), and start (production SSR server). All rendering flows through a runtime-neutral Web Request → Response handler (createRequestHandler), with Node as a thin bridge (toNodeHandler/nodeToRequest/sendResponse) — the seam future edge/worker/Bun/Deno adapters plug into. It injects the kettlejs build plugins (file routing + JSX/SSR transform) for zero-config setup, and exposes defineConfig/loadConfig + conventions (src/entry-server.ts, index.html with <div id="root">). @fluixi/cli is the fluixi command-line tool (fluixi dev|build|start) that delegates to it.

@fluixi/start

  • Add the Fluixi meta-framework (walking skeleton). @fluixi/start is the runtime that sits on top of @fluixi/kettlejs: dev (Vite-middleware SSR dev server with shared-HMR + crash guards), build (client + server bundles), and start (production SSR server). All rendering flows through a runtime-neutral Web Request → Response handler (createRequestHandler), with Node as a thin bridge (toNodeHandler/nodeToRequest/sendResponse) — the seam future edge/worker/Bun/Deno adapters plug into. It injects the kettlejs build plugins (file routing + JSX/SSR transform) for zero-config setup, and exposes defineConfig/loadConfig + conventions (src/entry-server.ts, index.html with <div id="root">). @fluixi/cli is the fluixi command-line tool (fluixi dev|build|start) that delegates to it.

create-fluixi

  • New @fluixi/create — scaffold a Fluixi app with npm create @fluixi <dir> (or pnpm create @fluixi). Prompts for a name and a mode — SSR (@fluixi/start: file routing + SSR + hydration) or SPA (vite + @fluixi/vite-plugin) — or take them on the CLI (create-fluixi my-app --spa). Replaces the broken kettle-generate templates.

0.1.0-alpha.89

@fluixi/cli

0.1.0-alpha.88

@fluixi/cli

@fluixi/start

  • The request store and server-function context runner are held in the global registry like the locals bag, and @fluixi/server installs its async store only when none is already present. In a built app, server functions ran outside the request context, so getLocals() was empty and an auth library saw every call as signed out.

0.1.0-alpha.87

@fluixi/cli

@fluixi/start

0.1.0-alpha.86

@fluixi/cli

  • The compiler now sets JSX through oxc when Vite bundles with Rolldown and through esbuild otherwise, start now builds single-file bundles with the option each bundler expects, the env check now includes the file name in its error under Vite 8, and fluixi check and fluixi doctor now work in a TypeScript 7 app by falling back to the CLI's classic TypeScript.

@fluixi/start

0.1.0-alpha.85

@fluixi/cli

@fluixi/start

  • The compiler now sets JSX through oxc when Vite bundles with Rolldown and through esbuild otherwise, start now builds single-file bundles with the option each bundler expects, the env check now includes the file name in its error under Vite 8, and fluixi check and fluixi doctor now work in a TypeScript 7 app by falling back to the CLI's classic TypeScript.
  • A server-rendered page now links the CSS of components its route shares with other routes and preloads those shared chunks, so the components are styled immediately.

0.1.0-alpha.84

@fluixi/cli

@fluixi/start

0.1.0-alpha.83

@fluixi/cli

  • fluixi add auth now asks for a provider and token mode, writes the wiring, and installs the package (use --no-install to skip); @fluixi/cli/scaffold exposes the generators' code with no dependencies and a fluixi.config without an env block receives one.
    • fluixi check now validates editor env/auth rules in CI and exits with code 1 on error, with --strict treating warnings as errors.
    • fluixi env reports which env.public names are set, detects .env.example drift, warns about secrets that would ship, and writes environment types.
    • fluixi doctor now reports when the same @fluixi package is installed twice, when ts-plugin is missing from tsconfig, and other environment problems.
    • fluixi info now displays versions, adapter, modules, pages, and API routes.
    • The g env generator now picks environment variables from env.public using pickEnv.
    • The g module generator now registers modules in src/app.config.ts (or .server.ts) and creates the file if it does not exist.
    • The g service generator now creates a class, a token, and a module.
    • The g api --role generator now creates a route guarded by createApiGuard.
    • The g server-fn generator now creates a server function file.
    • The g auth oauth2 generator now sets up environment configuration, a service, callback and login routes, a server module, and required environment variables.
    • The auth better-auth route now resides in src/api/auth instead of src/routes/api/auth.

@fluixi/start

  • fluixi dev and fluixi build now write src/api.gen.ts with an ApiRoutes interface that maps each API path template to the type of its route file. Commit it: createClient<ApiRoutes>() from @fluixi/api/client types its calls from it.
  • New clientAddress(request) returns the caller's address as seen by the platform, or undefined when unknown. Behind a reverse proxy on Node it returns the proxy's address.
  • forward({ to, prefix }) middleware routes requests under a prefix (default /api) to another origin, streaming them and preserving all set-cookie headers. It answers 502 when the target is unreachable; WebSocket upgrades are not forwarded.
  • appendResponseHeader(name, value) now adds a header, such as Set-Cookie, to the current request's response (merged by @fluixi/start) and returns false if the headers have already been sent or it is called outside a request.
  • apiOnly: true now runs an app with only src/api routes and returns a JSON 404 for paths outside the API.
  • streamDocument now returns a Promise<Response> and cookies and other headers set while a streamed page renders its shell reach the response, a render failing before the head is sent answers 500, and appendResponseHeader takes an optional request.
  • New trustProxy config option: it gives the number of reverse proxies, and clientAddress() reads the X-Forwarded-For header that many hops back while request URLs use X-Forwarded-Proto and X-Forwarded-Host. Off by default, since any client can send these headers.
  • The dev server now picks up API route files added or removed while it runs, so a new route answers at once and api.gen.ts follows without a restart.
  • fluixi dev now sends /api requests straight to the app, bypassing Vite's middleware, in every app, not only API-only ones.
  • In API-only mode, the dev server now answers preflight requests with the app's middleware instead of Vite's CORS handler.
  • The dev server now inlines stylesheets processed by the app's CSS plugins instead of linking raw styles.
  • Node server now sends every Set-Cookie header of a response, not only the last.
  • In the devtools graph, app modules and the services they provide appear as groups, and the auth service is shown under its module with its state named (user, token, status, roles and the rest) instead of anonymous signals.
  • apiRoutes now exports each route with its path template for describing the API.
  • The app now loads a single copy of the framework packages, even when a library installs its own, so the app and its libraries share one state.
  • API routes now run inside the request context, so requireUser() and getSession() correctly recognize a valid session cookie.

0.1.0-alpha.82

@fluixi/cli

@fluixi/start

    • fluixi check now validates editor env/auth rules in CI and exits with code 1 on error, with --strict treating warnings as errors.
    • fluixi env reports which env.public names are set, detects .env.example drift, warns about secrets that would ship, and writes environment types.
    • fluixi doctor now reports when the same @fluixi package is installed twice, when ts-plugin is missing from tsconfig, and other environment problems.
    • fluixi info now displays versions, adapter, modules, pages, and API routes.
  • env(key) now reads variables from both public and private environments, and in the browser build non-public names are rejected while runtime-computed keys cause a throw, with keys typed from env.public and .env and generated into src/fluixi-env-vars.d.ts.
  • pickEnv now builds a typed, frozen config object from environment variables with defaults, optional fields and parsers, reporting all missing or invalid variables at once, and env() on the server also reads the VITE_ spelling.
  • @fluixi/start now supplies the request it is answering, ensuring middleware locals are available during server-side rendering.

0.1.0-alpha.81

@fluixi/cli

@fluixi/start

  • publicEnv() now returns a type derived from env.public, so keys are completed in the editor and undeclared keys cause a type error.

0.1.0-alpha.80

@fluixi/cli

@fluixi/start

  • The browser build now fails and reports the line and variable name when app code reads a name from publicEnv() that is not declared in env.public.

0.1.0-alpha.79

@fluixi/cli

@fluixi/start

  • A thrown 401 or 403 in a server function or API route now returns that status with { error, redirectTo } instead of a 500.

0.1.0-alpha.78

@fluixi/cli

  • fluixi build --format=web-component emits each component named in a webComponents config block as a self-contained file: a page loads it with a <script type="module"> and needs no Fluixi package installed. --format=fluixi emits the same elements with the runtime left as imports, so an app running several of them shares one copy. An app that declares webComponents also gets the files beside its own bundles on a normal build.
  • The CLI now warns when it runs a different @fluixi/start than the one the app resolves.

@fluixi/start

  • publicEnv() now finds a declared name under its VITE_ spelling when @fluixi/start is imported from node_modules on a server.

0.1.0-alpha.77

@fluixi/cli

@fluixi/start

  • env.public in fluixi.config now declares which variables are exposed to the browser and publicEnv/serverEnv read it accordingly.
  • A build refuses to publish a secret. Vite inlines every variable carrying the client prefix into import.meta.env, and it does so whether any code reads it or not, so naming one VITE_API_SECRET puts the value in the bundle for every visitor. Nothing in an application can undo that and nothing in it looks wrong, which is why this is checked rather than documented. Names containing SECRET, PASSWORD, PRIVATE_KEY or CREDENTIALS fail the build, across every env file an app may carry, with the unprefixed form to use instead. TOKEN is deliberately not one of them: VITE_TOKEN_ENDPOINT is a URL. fluixi dev warns rather than stopping, so the mistake is caught while writing. FLUIXI_ALLOW_PUBLIC_SECRETS=true allows a name that only reads like a secret.
  • ssrNoExternal accepts a RegExp as well as a name, so [/^@acme\//] bundles a whole scope. A linked package resolves to source and pulls its siblings in with it, so naming them one at a time only ever finds the next one on the next run. A pattern also keeps its matches out of the externals list when an adapter builds an external server bundle.
  • The new @fluixi/start/app exports defineModule and defineApp; start registers src/app.config.ts on both client and server and src/app.config.server.ts on the server, and replaces provideRoot calls in the entries.
  • Client builds now fail when app code imports a *.server.* file, unless the file starts with "use server".
  • Import aliases declared in compilerOptions.paths now resolve in the bundler as well as the type checker. TypeScript's paths only tells the type checker where a specifier lives, so an app that added "@/*": ["./src/*"] got a clean typecheck and a build that failed to resolve the import. The dev server and every build step read the same file, following extends and honouring baseUrl, with the longest prefix winning so a short alias cannot swallow a longer one.
  • fluixi build --format=web-component emits each component named in a webComponents config block as a self-contained file: a page loads it with a <script type="module"> and needs no Fluixi package installed. --format=fluixi emits the same elements with the runtime left as imports, so an app running several of them shares one copy. An app that declares webComponents also gets the files beside its own bundles on a normal build.
  • A build now refuses an app whose API routes could never be reached, naming the line to add. A built server dispatches to src/api only when the server entry re-exports the handlers; without it every /api request fell through to the page renderer and came back as a rendered page with a 200, so a route written to refuse a request appeared to accept it. The dev server wires this itself, so the gap only showed up once an app was built. The generated SSR entry carries the re-export, so a new app is never in that state.
  • The externalized-server warning now names ssrNoExternal when that option bundles every @fluixi dependency.
  • @fluixi/start/env is now listed in publishConfig.exports, so it can be imported from the package.
  • fluixi dev and fluixi start now exit with an error naming the port when it cannot be listened on, and serveNode now accepts an onListenError callback.
  • The *.server.* guard now also catches a file reached through an alias and the development error shows the real importer.
  • Streamed pages now carry seo() title, meta and html attributes in the served head, with the head sent with the first body chunk.
  • A missing file under the build asset directory now returns a 404 response with text/plain.
  • withStaticFiles now rejects requests whose path resolves outside the served directory.

0.1.0-alpha.76

@fluixi/cli

  • The @fluixi/start root export now is safe to import from a browser bundle. Import loadConfig, serveNode, adapters, or createImageHandler from their subpaths instead of the package root.

@fluixi/start

  • SSR now bundles @fluixi/core instead of externalizing it, so @fluixi/core/routes reaches the routes plugin and an installed app gets its route tree rather than the "did not replace it" stub. @fluixi/devtools publishes its ./plugins subpath, which the vite plugin needs to turn the reactive graph on.

0.1.0-alpha.75

@fluixi/cli

  • @fluixi/cli, @fluixi/devtools, @fluixi/head, @fluixi/router, @fluixi/server, and @fluixi/start now provide bundled builds with import resolving to a .mjs file and a require condition resolving to a .cjs file, and @fluixi/core and @fluixi/compiler now include the copyright banner in their subpath exports.

@fluixi/start

  • fluixi.config.ts now accepts the new options vitePlugin and plugins, allowing configuration of the fluixi Vite plugin options and additional Vite plugins.
  • The @fluixi/start root export now is safe to import from a browser bundle. Import loadConfig, serveNode, adapters, or createImageHandler from their subpaths instead of the package root.

0.1.0-alpha.74

@fluixi/cli

@fluixi/start

  • @fluixi/cli, @fluixi/devtools, @fluixi/head, @fluixi/router, @fluixi/server, and @fluixi/start now provide bundled builds with import resolving to a .mjs file and a require condition resolving to a .cjs file, and @fluixi/core and @fluixi/compiler now include the copyright banner in their subpath exports.

0.1.0-alpha.73

@fluixi/cli

@fluixi/start

  • fluixiPlugins now composes fluixi() instead of createVitePlugin() to correctly set up the reactive graph, source marks, and /__fluixi/graph endpoint. createVitePlugin is the bare compiler integration and the graph is composed on top of it by fluixi(), so no @fluixi/start app had one. Nothing to change in an application.

0.1.0-alpha.72

@fluixi/cli

@fluixi/start

0.1.0-alpha.71

@fluixi/cli

@fluixi/start

0.1.0-alpha.70

@fluixi/cli

@fluixi/start

  • The package name remains @fluixi/core, and the router subpath is now @fluixi/core/router — if you previously tried using fluixi or @fluixi/core/router-next, update your imports accordingly.

0.1.0-alpha.69

@fluixi/cli

@fluixi/start

  • The package is now named fluixi instead of @fluixi/core, with the same contents and subpaths; all other @fluixi/* packages retain their names. Replace @fluixi/core with fluixi in package.json and all import statements, and update subpaths like @fluixi/core/server to fluixi/server.

0.1.0-alpha.68

@fluixi/cli

  • Let an SSR app configure component resolution, and stop making people hand-write it. fluixi.config.ts had no seam for it — createVitePlugin() was called with no options — so an SSR app couldn't say where an unimported tag comes from at all. resolve is a config field now and reaches the compiler. The scaffolded apps carry one pattern rule covering src/components, so a generated component works as a tag with no config edit, ever:
    resolve: [{ match: /^([A-Z]\w+)$/, module: '/src/components/$1.tsx' }];
    
    fluixi g component prints that line when a project has no rule yet, and stays quiet when it does. It reads the config and never writes it: a config is arbitrary TypeScript, and editing it means reprinting someone's file.

@fluixi/start

0.1.0-alpha.67

@fluixi/cli

@fluixi/start

  • Let an SSR app configure component resolution, and stop making people hand-write it. fluixi.config.ts had no seam for it — createVitePlugin() was called with no options — so an SSR app couldn't say where an unimported tag comes from at all. resolve is a config field now and reaches the compiler. The scaffolded apps carry one pattern rule covering src/components, so a generated component works as a tag with no config edit, ever:
    resolve: [{ match: /^([A-Z]\w+)$/, module: '/src/components/$1.tsx' }];
    
    fluixi g component prints that line when a project has no rule yet, and stays quiet when it does. It reads the config and never writes it: a config is arbitrary TypeScript, and editing it means reprinting someone's file.

0.1.0-alpha.66

@fluixi/cli

@fluixi/start

  • Link the SSR-rendered CSS in dev, so a page stops flashing unstyled. The dev server sent a fully rendered page with no stylesheets at all — the styles arrived with the client bundle, so every load painted unstyled first. The build had no such gap, which is why this only ever showed up in the environment you look at most. It now walks the SSR module graph from the server entry, collects the styles the render pulled in, and links them with ?direct (dev serves a .css URL as a JS module otherwise).

0.1.0-alpha.65

@fluixi/cli

  • Deploy adapters for Cloudflare, Netlify and Vercel. An adapter can now emit the layout its platform reads, through a build hook that runs after the client build, the server build and prerendering:
    writes deploy
    cloudflareAdapter dist/client/_worker.js + _routes.json publish dist/client
    netlifyAdapter .netlify/functions-internal/fluixi-server.mjs publish dist/client
    vercelAdapter .vercel/output/ (Build Output API v3) Vercel reads it directly
    Each serves static files first and only reaches the server on a miss — Cloudflare
    through the ASSETS binding, Netlify through preferStatic, Vercel through a
    filesystem route ahead of the function — so a prerendered page stays a file.
    createHandlerFrom splits the handler from the filesystem. createProdHandler
    reads index.html off disk and imports the server entry by path; a worker can do
    neither. The assembly now takes the template and the module as arguments, and each
    adapter generates an entry that imports both statically. One assembly, so an edge
    deploy cannot dispatch differently from fluixi start.
    The entry is bundled as a single file. On Cloudflare that is not a size choice:
    _worker.js is written into the directory you publish, so a split chunk would be a
    publicly downloadable piece of your server. Verified — the published assets are now
    identical to a plain build.
    The CLI commands move to @fluixi/start/commands. They were re-exported from the
    package root, so import { defineMiddleware } from '@fluixi/start' could reach the dev
    server — and an adapter, which inlines everything its entry can reach, carried vite into
    the worker bundle. @fluixi/cli imports them from the new subpath.

@fluixi/start

  • Reference a route's own chunk and stylesheet in the document that renders it. A lazily-imported route is its own chunk with its own CSS, and neither was mentioned anywhere in the shell. The browser learned they existed only once hydration ran the dynamic import, so the route's markup painted before its styles arrived and the chunk was fetched a round trip later than it could have been. fluixi build now resolves each route to the files it compiles into — that is what Vite's SSR manifest was being generated for, and nothing had ever read it — and writes a URL-pattern map to dist/server. The handler looks the path up and emits modulepreload and stylesheet links into the head; deploy adapters inline the same map, since a worker cannot read it. The manifest itself is no longer published: it maps every source path to its chunk, which is not something a CDN needs to serve. Every part of it is optional. An app with no file routes, a path that matches nothing, or a build from before this existed yields no links and an unchanged page. @fluixi/core/plugins exports scanRoutes, so the build resolves routes with the same scanner the plugin uses instead of a second copy of the conventions.
  • Serve the shell for a client route on a SPA deploy. An app with no server entry got the static output alone, and a cold request for a route it handles in the browser found no file: 404 on Vercel, where the config listed only the filesystem phase, and on Netlify, which serves no fallback of its own. Both now hand back index.html for an unmatched path. Cloudflare Pages already does this for a project with no _worker.js, so its adapter still writes nothing.

0.1.0-alpha.64

@fluixi/cli

@fluixi/start

  • Adapters now decide how the server is bundled, not just how it is served. dist/server was always one self-contained file: every @fluixi/* package was copied into it. That is right for edge and serverless, where there is nothing to resolve against at runtime, and wasteful for a Node server, which runs from the app directory with the dependencies already installed next to it. Adapter gains a bundle mode — 'external' on nodeAdapter, 'inline' on webAdapter — and fluixi build follows the adapter named in fluixi.config.ts:
    import { defineConfig } from '@fluixi/start/config';
    import { nodeAdapter } from '@fluixi/start/adapter';
    export default defineConfig({ adapter: nodeAdapter });
    
    On examples/start-app that is entry-server.js at 4.6 KB instead of 76 KB — the app's own code and nothing else — and a build of 0.8 s instead of 1.9 s, for byte-identical HTML. fluixi start serves with the configured adapter too; one that returns { fetch } has no process to run and now says so rather than exiting as if it had started. Nothing changes for an app that names no adapter — Vite's own heuristic still applies. 'external' externalizes only the @fluixi/* packages the app itself declares as dependencies: under a strict node_modules layout an undeclared package is not resolvable from the app root, so externalizing a merely transitive one would emit an import Node cannot follow. Each package is listed with every subpath its exports map publishes, because Vite only honours an exact id in ssr.external — a bare package name leaves deep imports bundled, and @fluixi/core external next to @fluixi/core/router-next inlined is two routers with two sets of module state in one server. ssrNoExternal still wins. Adapters are also importable from @fluixi/start/adapter, so a config file can name one without pulling in the CLI commands.
  • The compiler no longer runs inside babel. fluixi() and serverFunctionsVitePlugin() compile by rewriting the source directly: parse once, splice the emitted code over the spans it replaces. Nothing is reprinted, edits carry a source map, and types are left for esbuild to strip. The native option is gone — that is simply what the plugin does. Babel is kept for the case that needs it, the way Next keeps one: a babel.config.js whose other plugins have to see the output. fluixi({ babel: only by @fluixi/babel-plugin-jsx. What an app installs from that namespace is now @babel/parser, used as a parser. @fluixi/vite-pluginand@fluixi/startdeclare no babel packages at all, and importing@fluixi/compiler/integrationsloads none — pinned byno-babel-in-core.spec.ts, which distinguishes a static import from the dynamic one behind the opt-in. Verified on examples/start-app(HTML identical to the babel build), the docs site (53 prerendered pages identical), the@fluixi-uiplayground, and 681 files fromstore-admin, storefront` and the component library.
  • Deploy adapters for Cloudflare, Netlify and Vercel. An adapter can now emit the layout its platform reads, through a build hook that runs after the client build, the server build and prerendering:
    writes deploy
    cloudflareAdapter dist/client/_worker.js + _routes.json publish dist/client
    netlifyAdapter .netlify/functions-internal/fluixi-server.mjs publish dist/client
    vercelAdapter .vercel/output/ (Build Output API v3) Vercel reads it directly
    Each serves static files first and only reaches the server on a miss — Cloudflare
    through the ASSETS binding, Netlify through preferStatic, Vercel through a
    filesystem route ahead of the function — so a prerendered page stays a file.
    createHandlerFrom splits the handler from the filesystem. createProdHandler
    reads index.html off disk and imports the server entry by path; a worker can do
    neither. The assembly now takes the template and the module as arguments, and each
    adapter generates an entry that imports both statically. One assembly, so an edge
    deploy cannot dispatch differently from fluixi start.
    The entry is bundled as a single file. On Cloudflare that is not a size choice:
    _worker.js is written into the directory you publish, so a split chunk would be a
    publicly downloadable piece of your server. Verified — the published assets are now
    identical to a plain build.
    The CLI commands move to @fluixi/start/commands. They were re-exported from the
    package root, so import { defineMiddleware } from '@fluixi/start' could reach the dev
    server — and an adapter, which inlines everything its entry can reach, carried vite into
    the worker bundle. @fluixi/cli imports them from the new subpath.
  • Import the generated server-fn and API tables from real modules virtual:fluixi-server-fns and virtual:fluixi-api could only be typed by an ambient declare module, which @fluixi/start wrote into your src/ as fluixi-start-env.d.ts.
    - import 'virtual:fluixi-server-fns';
    + import '@fluixi/start/server-fns';
    - export { isApiRequest, handleApiRequest } from 'virtual:fluixi-api';
    + export { isApiRequest, handleApiRequest } from '@fluixi/start/api-routes';
    
    Named api-routes because @fluixi/start/api is already the API plumbing you call directly. Both virtual specifiers still resolve. i18n deliberately keeps its generated declaration. virtual:fluixi-i18n types messages off your own JSON (typeof import('./i18n/en.json')) and locales as a literal tuple — that is what makes t() keys autocomplete, and no static package entry can express it. Moving it would have quietly downgraded those types to Record<string, unknown>. So fluixi-start-env.d.ts now contains only the i18n block, and is not written at all when i18n is unconfigured.
  • Babel is no longer a dependency of @fluixi/compiler. The IR, the resolve and optimize passes, and codegen import no Babel — that has been true for a while, and dist/index.mjs proves it — but the package still listed five @babel/* packages under dependencies, so importing @fluixi/compiler for the component-resolver map or the IR types installed a whole compiler toolchain (52 MB in this workspace). @fluixi/ts-plugin, which imports @fluixi/compiler/builtins and nothing else, was paying that. @babel/core, @babel/generator, @babel/helper-plugin-utils and @babel/preset-typescript are now optional peer dependencies. The packages that always run a Babel compile — @fluixi/vite-plugin, @fluixi/start and @fluixi/babel-plugin-jsx — depend on them for real, so no app config changes and nothing new has to be installed. @babel/types was listed and never imported; it is gone. no-babel-in-core.spec.ts locks the invariant in by walking the import graph from each Babel-free entry point (. and ./builtins), following relative imports transitively and catching import 'x', import … from 'x', import('x') and require('x'). A stray Babel import in the core is not a style question: for a consumer that never installed the optional peer, it is a module that fails to resolve.
  • Keep prerendered pages off the Cloudflare worker. In advanced mode the worker sees every request that _routes.json does not exclude, so a prerendered page woke it just to hand the file back through the ASSETS binding. On a plan metered by request that spends the page-view budget on static files. Every prerendered path is now excluded by name, capped at Cloudflare's 100-rule limit — past which the remainder still works, it just costs an invocation, and the build says so. / stays included: it is the shell an SSR miss falls back to.
  • @fluixi/core no longer installs the build toolchain. It listed @fluixi/compiler, @fluixi/vite-plugin and vite-plugin-node-polyfills under dependencies while importing none of them from src/ — they exist for the @fluixi/core/plugins subpath, which is build-time tooling. Declaring them as runtime dependencies of the runtime package meant every consumer of @fluixi/core installed Vite plugins and a Babel toolchain (52 MB in this workspace) to render a component. Component libraries built on @fluixi/core were passing that on to their own users. They are now optional peer dependencies: use @fluixi/core/plugins and you need them, otherwise you do not. @fluixi/start reaches that subpath through await import('@fluixi/core/plugins'), so it declares them itself — apps using the meta-framework are unaffected, and the standalone Vite templates already declared @fluixi/vite-plugin as a devDependency. @fluixi/core's runtime closure is now @fluixi/{dom,jsx,reactive,router,server,utils,head}, none of which reach the compiler.
  • Render / on Cloudflare, Netlify and Vercel instead of serving the shell. dist/client/index.html sits at the path a prerendered / would occupy, so each platform's static layer answered the home page with an empty mount element and never reached the app: the ASSETS binding on Pages, preferStatic on Netlify, the filesystem phase on Vercel. Every other route was already correct — nothing exists at /about unless it was prerendered. The adapters now decide who owns / by whether that file holds a rendered page, and the worker asks the ASSETS binding only about a prerendered path or a path with a file extension, which is the rule the Node adapter already used.
  • Render into the shell, not into the prerendered home page. dist/client/index.html is both the SSR template and the path a prerendered / is written to, so an app that prerenders its home page rendered every SSR response into that page: two mount elements in one document, the home page's head on every route, and hydration adopting the wrong one. The build now stashes the shell as dist/server/template.html before prerendering overwrites it, and both the Node handler and the deploy adapters read that when it exists.

0.1.0-alpha.63

@fluixi/cli

@fluixi/start

0.1.0-alpha.62

@fluixi/cli

@fluixi/start

0.1.0-alpha.61

@fluixi/cli

@fluixi/start

0.1.0-alpha.60

@fluixi/cli

@fluixi/start

0.1.0-alpha.59

@fluixi/cli

@fluixi/start

0.1.0-alpha.58

@fluixi/cli

@fluixi/start

0.1.0-alpha.57

@fluixi/cli

@fluixi/start

0.1.0-alpha.56

@fluixi/cli

@fluixi/start

0.1.0-alpha.55

@fluixi/cli

@fluixi/start

0.1.0-alpha.54

@fluixi/cli

@fluixi/start

0.1.0-alpha.53

@fluixi/cli

@fluixi/start

0.1.0-alpha.52

@fluixi/cli

@fluixi/start

0.1.0-alpha.51

@fluixi/cli

@fluixi/start

0.1.0-alpha.50

@fluixi/cli

@fluixi/start

0.1.0-alpha.49

@fluixi/cli

@fluixi/start

  • Add on-demand image optimization. createImageHandler(options) returns a Web Request → Response handler you mount as an API route: it resizes and re-encodes images (AVIF/WebP by Accept negotiation), with a target-width allow-list, remote-domain allow-listing + local path-traversal guards, immutable cache headers, and a small in-memory cache. The codec is pluggable — it uses sharp when installed, otherwise streams the source through unchanged, so @fluixi/start never hard-depends on a native module. imageLoader({ path }) produces a matching loader for @fluixi-ui/image's loader prop.

0.1.0-alpha.48

@fluixi/cli

@fluixi/start

0.1.0-alpha.47

@fluixi/cli

  • fluixi generate emits html`` components/routes (plain .ts) when the project is JSX projects still generate .tsx as before.

@fluixi/start

0.1.0-alpha.46

@fluixi/cli

  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

@fluixi/start

  • Re-export html and svg from @fluixi/start, so a meta-framework app can author templates without JSX: import { html } from '@fluixi/start'.

0.1.0-alpha.45

@fluixi/cli

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/start

  • Update READMEs for public npm: drop the GitHub Packages .npmrc install instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.

0.1.0-alpha.44

@fluixi/cli

@fluixi/start

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

0.1.0-alpha.43

@fluixi/cli

@fluixi/start

0.1.0-alpha.42

@fluixi/cli

@fluixi/start

0.1.0-alpha.41

@fluixi/cli

@fluixi/start

0.1.0-alpha.40

@fluixi/cli

@fluixi/start

  • Fix page content duplicated on hydration when seo()/useHead() is used in dev. @fluixi/head carries a page's SEO back from SSR as an inert <!--fh:…--> comment prepended to the body; the server lifts it into <head> and strips it via injectAppAndHead. The prod adapter and prerender did this, but the dev server used plain injectApp, leaving the marker as the mount root's first child. The hydration cursor started on that comment, never matched the app's first element, and rebuilt the whole tree next to the server DOM — a duplicated page. (Dev also emitted no head tags as a result.) Dev now uses injectAppAndHead, so the marker is lifted into <head>/<html> exactly like prod. As a safety net for streaming/custom servers, stripHeadMarker drops any stray leading fh: comment on the client before hydration.

0.1.0-alpha.39

@fluixi/cli

@fluixi/start

0.1.0-alpha.38

@fluixi/cli

@fluixi/start

0.1.0-alpha.37

@fluixi/cli

@fluixi/start

0.1.0-alpha.36

@fluixi/cli

@fluixi/start

0.1.0-alpha.35

@fluixi/cli

@fluixi/start

0.1.0-alpha.34

@fluixi/cli

@fluixi/start

0.1.0-alpha.33

@fluixi/cli

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/start

0.1.0-alpha.32

@fluixi/cli

@fluixi/start

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/ts-plugin

0.1.0-alpha.31

@fluixi/cli

@fluixi/start

@fluixi/ts-plugin

0.1.0-alpha.30

@fluixi/cli

@fluixi/start

@fluixi/ts-plugin

0.1.0-alpha.29

@fluixi/cli

@fluixi/start

@fluixi/ts-plugin

0.1.0-alpha.28

@fluixi/cli

  • Solid-compatible prop helpers + component typing, and re-export them from @fluixi/core. mergeProps (dom): a later source's undefined no longer clobbers an earlier defined value — it falls through to it (Solid's contract). Previously mergeProps(defaults, props) lost defaults whenever props.x was undefined, and since the compiler emits mergeProps(...spreads, baseProps) for JSX spreads, <div {...a} {...b} /> with b.x === undefined wiped a.x. It's now a lazy Proxy (like splitProps): keys resolve last-defined-wins across the union of sources, reactively (getter/signal-backed props re-read on every access, never snapshotted).
    mergeProps({ value: 1 }, { value: undefined }).value; // 1 (was undefined)
    mergeProps({ value: 1 }, { value: 2 }).value; // 2
    
    Component typing (dom): Component<P> is now a proper function type — (props: P) => … — so you can annotate it and have props actually typed:
    const Greeting: Component<{ name: string }> = (props) => (
      <h1>{props.name}</h1>
    );
    
    Previously Component<P> was ComponentFn<P> | ComponentChild (which includes any), erasing all prop checking. Fluixi-branded helper types: FxComponent/FxC (aliases of Component), FxParent/FxParentProps (optional children), FxVoid/FxVoidProps (no children), FxFlow/FxFlowProps (required children), and ComponentOrElement for the loose "function-or-rendered-node" shape some internals pass around. @fluixi/core re-exports: mergeProps, splitProps, and the component/prop types (Component, ComponentProps, ComponentFn, ComponentChild, ComponentOrElement, FxComponent, FxC, Fx{Parent,Void,Flow} + their *Props) are now exported from @fluixi/core — no more reaching into @fluixi/dom for them. @fluixi/cli: fluixi generate component <Name> now scaffolds a typed component — a <Name>Props type and a Component<<Name>Props> annotation (was an untyped export function).

@fluixi/start

@fluixi/ts-plugin

0.1.0-alpha.27

@fluixi/cli

@fluixi/start

@fluixi/ts-plugin

0.1.0-alpha.26

@fluixi/cli

@fluixi/start

@fluixi/ts-plugin

  • The editor now reports env and auth mistakes such as secret env names read in browser code, secrets in browser clients, unchecked audiences, weak algorithms, DPoP verifiers given bare tokens, role checks without roles, and weak session cookies.
  • Template diagnostics are now retained when an env/auth rule throws, and the failure is logged to the TypeScript server.
  • @fluixi/ts-plugin/rules exports envAuthDiagnostics, now usable outside tsserver.

0.1.0-alpha.25

@fluixi/cli

@fluixi/start

  • Flash-free hydration for lazy file-routes — preload the route chunk before hydrating. A server-rendered app with code-split file-routes used to render twice on hydration: the lazy boundary rendered empty on the first pass (chunk not loaded), then re-rendered when the chunk resolved a tick later — building a fresh subtree next to the server DOM instead of adopting it. The app flashed and, with auto-hydration on, duplicated. Now the matched route's chunk is downloaded and awaited before hydration, so each lazy route resolves synchronously on the first pass and adopts the server DOM in place.
    • lazy() renders synchronously once its module is resolved (no resource/Suspense/late re-render); a cold client-side navigation still suspends and shows the fallback.
    • New preloadRoutes(routes, pathname) (@fluixi/core/router-next, re-exported by @fluixi/start/router): matches the URL and preloads the matched route's lazy chunks.
    • startClient takes a routes option and awaits preloadRoutes before hydrating. Passing routes also enables auto-hydration of a server-rendered (non-empty) root — flash-free with no extra config. Apps without it keep the plain client-render path.
    // entry-client.ts
    import App, { appRoutes } from './app';
    startClient(App, { root: '#root', routes: appRoutes });
    

    The SSR scaffold (create-fluixi) wires this up and ships a small seo() example in the index route.

@fluixi/ts-plugin

0.1.0-alpha.24

@fluixi/cli

@fluixi/start

  • New @fluixi/head — built-in reactive, SSR-first SEO/document-head engine. Typed title/meta/OG/Twitter/JSON-LD/canonical/hreflang/icons/verification, last-wins dedupe with nested layout inheritance, SSR serialize + client reconcile (reuses server tags by key, no hydration mismatch, signals update the document live), JSON-LD helpers, head components, and robots.txt/sitemap.xml generators. Re-exported as @fluixi/start/head (same pattern as @fluixi/start/router) so apps have one import surface.
  • Wire @fluixi/head into the framework (zero-config SEO). renderRequestAsync collects seo()/useHead metadata during SSR and carries it back; @fluixi/start lifts it into <head>/<html> for SSR + prerender. startClient mounts the head registry so it hydrates (server tags reused by key) and updates live, including on route transitions (seo() auto-disposes on owner unmount). Apps just call seo({...}) — no setup.

@fluixi/ts-plugin

0.1.0-alpha.23

@fluixi/cli

@fluixi/start

@fluixi/ts-plugin

0.1.0-alpha.22

@fluixi/cli

@fluixi/head

@fluixi/start

  • File-based API routes. Files under src/api/** (configurable via apiDir) export HTTP-method handlers — export function GET(request, { params }) { … } (also POST/PUT/PATCH/DELETE) — served at /api/*. The file path is the route: api/users/[id].ts → /api/users/:id, api/files/[...path].ts → catch-all, api/index.ts → /api. Handlers return a Web Response (or any value → JSON). Static routes beat dynamic beat catch-all; a wrong method is 405, an unknown /api/* path is 404. Dev auto-wires it; prod dispatches via the entry-server re-export export { isApiRequest, handleApiRequest } from 'virtual:fluixi-api'. New @fluixi/start/api entry exports the matcher/dispatch helpers.
  • HTTP interceptors — a request/response/error pipeline around fetch (Angular-style). addInterceptor({ request, response, error }) registers cross-cutting logic: attach auth headers, unwrap or refresh-on-401 responses, log, or recover from network errors. Server-function RPC calls route through the chain automatically once any interceptor is registered, and fetchWithInterceptors is exported for your own data fetching. addInterceptor returns a remover; clearInterceptors resets.
  • Static Site Generation. Set prerender in fluixi.config and fluixi build renders routes to static HTML in dist/client (deploy to any static host; pages hydrate on the client). true prerenders / and crawls internal <a href> links; { routes, crawl } sets explicit paths (for dynamic routes with no incoming link) and toggles crawling. Each page is rendered through the real production handler, so the static output is byte-identical to what fluixi start serves — assets, __FX_DATA__, hydration markers and all. Also exported prerender() for programmatic use.

@fluixi/ts-plugin

0.1.0-alpha.21

@fluixi/cli

@fluixi/head

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/start

@fluixi/ts-plugin

0.1.0-alpha.20

@fluixi/cli

@fluixi/head

@fluixi/start

  • Built-in i18n — @fluixi/core/i18n. Reactive, SSR-correct internationalization, no dependency.
    import { createI18n } from '@fluixi/core/i18n';
    const i18n = createI18n({
      locale: 'en',
      locales: ['en', 'fr'] as const,
      messages: { en, fr },
    });
    export const { t, n, d, locale, setLocale } = i18n;
    t('welcome', { name: 'Ada' }); // interpolation
    t('cart.items', { count: 3 }); // pluralization via Intl.PluralRules
    n(1234.5);
    d(new Date()); // locale-aware number/date (Intl)
    setLocale('fr'); // reactive — every t() re-evaluates
    
    • SSR request-scoped locale — per-request on the server (kept in the RequestContext, not a shared signal, so two concurrent requests in different languages never bleed); a reactive module signal on the client; the server-resolved locale is serialized into __FX_DATA__ for the client to seed (no flash, no hydration mismatch).
    • Resolves without the reactive owner-context chain — t() reads the locale from the request context / module signal, NOT useContext, so it works in lazy routes, server functions, and loaders. (This is exactly why it sidesteps the "useLocale() undefined under SSR on a lazy route" failure — there's no provider owner-chain to lose.)
    • Platform-native — pluralization via Intl.PluralRules, numbers/dates via Intl.NumberFormat/Intl.DateTimeFormat. Nested and flat dotted keys, {param} interpolation, fallback-locale, and a detectLocale(acceptLanguage, locales) helper. @fluixi/start — translation auto-discovery + config. fluixi.config's i18n option (default src/i18n, or false to disable, or { dir, defaultLocale, locales }) makes the build scan <dir>/<locale>.json and expose them as virtual:fluixi-i18n ({ messages, locales, defaultLocale }) — feed it to createI18n in one line. The virtual modules' TypeScript declarations (virtual:fluixi-i18n AND virtual:fluixi-server-fns) are now auto-generated into src/fluixi-start-env.d.ts (like the routes plugin's fluixi-env.d.ts), so apps never hand-write a declare module block.
  • i18n auto-discovery now emits typed virtual:fluixi-i18n declarations. The generated src/fluixi-start-env.d.ts types messages off the actual files — (typeof import('./i18n/en.json'))['default'] per locale, plus a literal locales tuple and defaultLocale — so translation keys flow all the way from src/i18n/*.json into createI18n({ messages }) and t('…') autocompletes them. Falls back to the open Record<string, unknown> shape when no JSON files exist yet (or a configured locale has no file). Relies on resolveJsonModule (Vite's default tsconfig enables it).

@fluixi/ts-plugin

0.1.0-alpha.19

@fluixi/cli

@fluixi/head

@fluixi/start

  • Dependency injection + SPA mode — @fluixi/start now covers the full app architecture. @fluixi/start/di — dependency injection, Angular-style but SSR-correct + reactive.
    import {
      injectionToken,
      inject,
      provide,
      provideRoot,
    } from '@fluixi/start/di';
    const Logger = injectionToken<Logger>('Logger', {
      factory: () => new ConsoleLogger(),
    });
    class UserService {
      #log = inject(Logger);
    } // function injection — no decorators
    const Users = injectionToken('Users', { factory: () => new UserService() });
    // component / route / server function:
    const users = inject(Users);
    provide([{ provide: Theme, useClass: DarkTheme }]); // owner-scoped, disposed on unmount
    provideRoot([{ provide: Db, useFactory: () => new Db() }]);
    
    • useValue / useClass / useFactory (with deps) / useExisting; tree-shakable token factory (≈ providedIn: 'root'); circular-dependency detection; onDestroy() lifecycle.
    • The reactive owner tree IS the injector hierarchy — provide() attaches a child injector to the component's owner; inject() walks it; it disposes with the component.
    • SSR request isolation, for free — a "root" service is a singleton on the client but a FRESH instance per request on the server (the root injector lives in the per-request context), so stateful root services never leak across concurrent SSR requests.
    • runInInjectionContext to resolve outside a component (e.g. inside a server function).
    • Client-safe (imports only @fluixi/core + @fluixi/dom's pure getRequestContext). SPA mode — one toolchain for SPA and SSR apps. defineConfig({ ssr: false }) serves the static shell and lets the client render, while keeping the full @fluixi/start server: file routing, middleware, env loading, and /_server server functions. Same app code either way — flip the flag to choose where first paint happens. dev/build/start all honor it (a SPA without a server entry skips the server bundle; with one, server functions still work).

@fluixi/ts-plugin

0.1.0-alpha.18

@fluixi/cli

@fluixi/head

@fluixi/start

  • Env management + server-function auto-wiring. Env management — fluixi dev|build|start now load .env files into process.env for server code (loaders, "use server" functions). Security model is Vite-aligned: only VITE_-prefixed vars reach the client (import.meta.env, inlined into the browser bundle); everything else is server-only via process.env and never ships to the web. Real (OS) env vars win, so deploys/secret managers override files. Apps stop hand-rolling dotenv loaders (and stop risking secret leaks). loadServerEnv(root, mode) exported from @fluixi/start. Server-function auto-wiring — virtual:fluixi-server-fns now re-exports the dispatcher (isServerFnRequest / handleServerFn), and fluixi dev routes /_server through it directly. So a "use server" function just works — no need to manually export { isServerFnRequest, handleServerFn } from entry-server. (Previously, missing that re-export made the RPC fall through to the SPA catch-all and return the HTML page — a silent, confusing failure.) Prod (fluixi start) still reads the dispatcher off the built entry-server; the canonical one-liner is now `export { isServerFnRequest, handleServerFn }

@fluixi/template-runtime

@fluixi/ts-plugin

0.1.0-alpha.17

@fluixi/cli

  • Less auth boilerplate + proper cookies + a CLI generator.
    • createAuthHooks({ session }) — drive the hooks from an existing reactive session (e.g. @fluixi/session) instead of a Better Auth client. The framework owns the reactive sync, so apps stop hand-writing a createEffect to mirror their store into the auth hooks (useUser/protectedRoute/useSignIn derive from session.user/login/logout).
    • Cookie API (from @fluixi/auth/server) — parseCookies, serializeCookie (secure-by-default: HttpOnly, Secure, SameSite=Lax, Path=/), deleteCookie, and request-scoped getCookie/getCookies.
    • fluixi generate auth — scaffolds auth.config.ts, auth.client.ts, src/middleware.ts, and the /api/auth/[...all] route in one command.

@fluixi/head

  • Fix page content duplicated on hydration when seo()/useHead() is used in dev. @fluixi/head carries a page's SEO back from SSR as an inert <!--fh:…--> comment prepended to the body; the server lifts it into <head> and strips it via injectAppAndHead. The prod adapter and prerender did this, but the dev server used plain injectApp, leaving the marker as the mount root's first child. The hydration cursor started on that comment, never matched the app's first element, and rebuilt the whole tree next to the server DOM — a duplicated page. (Dev also emitted no head tags as a result.) Dev now uses injectAppAndHead, so the marker is lifted into <head>/<html> exactly like prod. As a safety net for streaming/custom servers, stripHeadMarker drops any stray leading fh: comment on the client before hydration.

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

0.1.0-alpha.16

@fluixi/cli

@fluixi/head

  • Add @fluixi/reactive to devDependencies on @fluixi/head and remove it has a direct dependency

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

0.1.0-alpha.15

@fluixi/cli

@fluixi/head

@fluixi/start

  • Add a typed per-request locals seam + the middleware→render bridge. RequestEvent now carries a locals bag (initialized by createRequestContext), with an augmentable RequestLocals interface and a getLocals() accessor. This is the framework seam middleware writes and loaders / server functions / the render read back — the basis for request-scoped data like the authenticated user, without prop threading. getLocals() returns a fresh empty object off-request so reads never throw. The bridge: middleware runs on the raw platform request, outside the render's context, so getRequestLocals(request) exposes a per-request locals bag (a WeakMap, request-keyed → concurrency-isolated, GC-friendly). Middleware writes getRequestLocals(request).x = …; createRequestContext adopts that same bag when the app forwards request on the render event (renderRequestAsync(App, { url, request })). @fluixi/start re-exports getRequestLocals/getLocals and now passes request to the string render path (the streaming path already did), so apps that forward it get request-scoped locals end-to-end. Re-exported from @fluixi/server too.

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • New apps now start on TypeScript 7 and Vite 8, and the editor support from @fluixi/ts-plugin continues to work through VS Code's built-in TypeScript.
  • create-fluixi --help now prints its options instead of creating an app and refuses unknown options, and a new app's fluixi.d.ts now declares $html, $svg and $css from the start.

0.1.0-alpha.14

@fluixi/cli

@fluixi/head

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • $storage stands for useStorage, $asyncStorage stands for useAsyncStorage, and $persisted stands for persisted from @fluixi/core/storage.
  • New apps now ignore the .fluixi folder that fluixi build generates.
  • The new app's fluixi.d.ts now declares every reactive intrinsic from the compiler's table and the compiler exports them via @fluixi/compiler/intrinsics.

0.1.0-alpha.13

@fluixi/cli

@fluixi/head

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • create-fluixi now allows SSR apps to start with authentication using --auth=oauth2|better-auth|none together with --provider and --tokens, and new apps include TypeScript so fluixi check runs.

0.1.0-alpha.12

@fluixi/cli

@fluixi/head

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

  • The npm descriptions no longer claim things that do not exist: Solid compatibility, an SWC compiler front-end, a language server, and a Biome plugin.

create-fluixi

  • A fluixi-css app is generated with a layers.css that declares the cascade-layer order, imported ahead of any component CSS. A layer ranks by where it is first declared and an undeclared one ranks last, so without this the engine's flx.base reset outranks the @fluixi-ui components it belongs under.
  • Generated apps use the $signal/$resource intrinsics, navigate with <Link> rather than <a href>, and ship a fluixi.d.ts so an editor knows the intrinsics before the app has been run. The fluixi-css stylesheet now carries @fluixi base/utilities/components and its own @theme, so no fluixi.css.config.js is generated. resource() accepts the single-fetcher form again: it borrowed its parameters from createResource, which collapses an overloaded function to its last signature.

0.1.0-alpha.11

@fluixi/cli

@fluixi/head

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • The generated stylesheet now matches the selected CSS engine, including the correct dark variant, @source scan, empty @theme, appropriate imports, and the @fluixi-ui token sheet is placed at @fluixi-ui/tokens/tokens.css before the app's own styles.

0.1.0-alpha.10

@fluixi/cli

@fluixi/head

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • The generator now proceeds past the project name, prompting for a component library and styling choice (with flags like --ui, --no-ui, --tailwind, --fluixi-css, --no-css) and accepts both Return and Enter keys.
  • fluixi.config.ts now accepts the new options vitePlugin and plugins, allowing configuration of the fluixi Vite plugin options and additional Vite plugins.

0.1.0-alpha.9

@fluixi/cli

@fluixi/head

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • Let an SSR app configure component resolution, and stop making people hand-write it. fluixi.config.ts had no seam for it — createVitePlugin() was called with no options — so an SSR app couldn't say where an unimported tag comes from at all. resolve is a config field now and reaches the compiler. The scaffolded apps carry one pattern rule covering src/components, so a generated component works as a tag with no config edit, ever:
    resolve: [{ match: /^([A-Z]\w+)$/, module: '/src/components/$1.tsx' }];
    
    fluixi g component prints that line when a project has no rule yet, and stays quiet when it does. It reads the config and never writes it: a config is arbitrary TypeScript, and editing it means reprinting someone's file.

0.1.0-alpha.8

@fluixi/head

@fluixi/start

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • Name an adapter in the scaffolded SSR config. A new app left adapter unset, so fluixi build fell back to Vite's own bundling rather than nodeAdapter's 'external' — the framework was copied into dist/server instead of staying an import next to node_modules, which is the wrong trade for the Node process the template's own start script runs. The config names nodeAdapter now and says where to swap in a deploy target.

0.1.0-alpha.7

@fluixi/head

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • Scaffold html -only projects. `create-fluixi` now asks for a template syntax (JSX or html variant is JSX-free: plain .ts sources and a tsconfig without jsx, useful when dependencies now track the alpha dist-tag.

0.1.0-alpha.6

@fluixi/head

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

0.1.0-alpha.5

@fluixi/head

@fluixi/storage

@fluixi/template-runtime

@fluixi/ts-plugin

create-fluixi

  • Fix control flow Show types to support JSX.Element because before it was required to use <Show>{()=><Component />}</Show> the fix now directly allow <Show><Component /></Show>

0.1.0-alpha.4

@fluixi/head

@fluixi/storage

@fluixi/template-parser

  • The npm descriptions no longer claim things that do not exist: Solid compatibility, an SWC compiler front-end, a language server, and a Biome plugin.

@fluixi/template-runtime

@fluixi/ts-plugin

  • Publish the built-in component names as data @fluixi/compiler/builtins exports the names the compiler supplies without an import, and the module each comes from:
    import {
      builtinComponentMap,
      RESERVED_COMPONENTS,
    } from '@fluixi/compiler/builtins';
    
    These were hardcoded inside the Babel plugin, which mixed up two things: which module a name comes from — data every tool needs — and which names get special codegen, which is the compiler's business. With nothing published, @fluixi/ts-plugin kept its own copy. That copy is gone, and the subpath carries no compiler code, so the plugin's bundle grows 2 KB rather than pulling the compiler in. A configured resolve rule now wins over Router, Outlet, Redirect and Link. Those are only an auto-import, so a project defining its own Link previously lost to the router's silently, rendering the wrong component with nothing reported. Control flow is unchanged and still outranks rules, because there the name selects codegen a rule cannot supply: Show, For, Index and Match emit their value prop as a getter, so each={items()} re-reads instead of snapshotting once. RESERVED_COMPONENTS lists them so rule generators can report a clash instead of emitting a rule that does nothing.
  • Re-query completions on every keystroke inside a template, and stop past > Completion lists were returned without isIncomplete, so the editor treated one response as valid for the whole word and filtered it locally rather than asking again. Inside a template the valid set changes with the cursor — a tag name, then that tag's props — so a list captured a keystroke earlier is simply the wrong one, and the props only appeared after enough typing to force a fresh request. That is what made completion feel intermittent. The attribute area was also end-inclusive, so props were still offered with the cursor already past >.
  • Complete and describe component props for tags supplied by a resolve rule Typing <Stack inside html`…` offered only the framework's generic surface — class, .prop, use: — and none of the component's own props. Hovering a prop name gave nothing either. Both resolved the tag by scanning the file's own top-level statements, so it only ever found local declarations and hand-written imports. A component supplied by a resolve rule has neither: the compiler injects its import, and TypeScript knows it through generated ambient declarations. They now resolve through scope, the same lookup hover already used — which is why hover worked on the very tag whose props did not complete. Alias declarations are followed, since generated globals are emitted as export import Stack = ns.Stack and the alias has to be resolved before the call signature is reachable.
  • Keep component props in the list once you start typing Prop completions carried no replacement span, so the editor filtered them against the word it computed at the cursor — which inside a template literal isn't the attribute name. The props showed while the prefix was empty and vanished on the first keystroke. They now span the name being typed, so dir narrows to direction instead of emptying the list.
  • Fix template offsets drifting after an escape sequence Spans were computed from node.text, the cooked template value, where \` is one character while the source spends two. Every position after an escape was therefore reported short, so hover, completion and diagnostics landed on the wrong offset — and a tag whose attribute area had shifted out from under the cursor simply returned nothing. A single html`\`\` …` in a file was enough: two escapes moved the following tag two characters left, which reads as "autocomplete just doesn't work in this file" while everything looks perfectly ordinary. Pieces are now built from the source text. The escape stays a backslash and a backtick in the text a node reports, which changes nothing structural — spans are what matter here — and offsets line up with the file again.

create-fluixi

  • Flash-free hydration for lazy file-routes — preload the route chunk before hydrating. A server-rendered app with code-split file-routes used to render twice on hydration: the lazy boundary rendered empty on the first pass (chunk not loaded), then re-rendered when the chunk resolved a tick later — building a fresh subtree next to the server DOM instead of adopting it. The app flashed and, with auto-hydration on, duplicated. Now the matched route's chunk is downloaded and awaited before hydration, so each lazy route resolves synchronously on the first pass and adopts the server DOM in place.
    • lazy() renders synchronously once its module is resolved (no resource/Suspense/late re-render); a cold client-side navigation still suspends and shows the fallback.
    • New preloadRoutes(routes, pathname) (@fluixi/core/router-next, re-exported by @fluixi/start/router): matches the URL and preloads the matched route's lazy chunks.
    • startClient takes a routes option and awaits preloadRoutes before hydrating. Passing routes also enables auto-hydration of a server-rendered (non-empty) root — flash-free with no extra config. Apps without it keep the plain client-render path.
    // entry-client.ts
    import App, { appRoutes } from './app';
    startClient(App, { root: '#root', routes: appRoutes });
    

    The SSR scaffold (create-fluixi) wires this up and ships a small seo() example in the index route.

0.1.0-alpha.3

@fluixi/api

  • First release: typed routes with guards that refuse with 401, 403 or 503, rate limits, an OpenAPI document generated from the routes, and a typed client in @fluixi/api/client.

@fluixi/head

@fluixi/storage

@fluixi/template-parser

  • Add the load: directive — decide when a component's code is fetched Resolution says where a component comes from; load: says when it loads. They are separate because they vary independently: a component's location is the same everywhere and belongs in config, while whether a particular usage should wait for the viewport is a property of that usage.
    <Summary />                                    // eager — entry chunk
    <ExportDialog load:interaction />              // own chunk, on first interaction
    <AuditLog load:media="(min-width: 1024px)" />  // own chunk, desktop only
    <RevenueChart load:visible="200px" />          // own chunk, on approach
    
    Six strategies: eager, idle, visible, interaction, media, never. A deferred component compiles to deferred(() => import('…'), { strategy }) instead of a static import, so chunking, hashing and tree-shaking stay ordinary bundler behaviour rather than an integration. deferred() is new in @fluixi/core, built on lazy() — it adds only the scheduling, reusing Suspense integration and the synchronous-when-preloaded hydration path unchanged. load: joins the existing use:/prop:/attr:/bool: namespace, so it cannot collide with a real prop. Both syntaxes share one parser: load:visible is already a valid JSXNamespacedName, and the html``parser gains aLoadDirective node, but each funnels through the same helper — a test pins the two to identical output. Strategy collapsing is included, and it is not optional. If a module is referenced eagerly anywhere in the file, deferred references to it are demoted to eager: it is in the chunk already, so a lazy boundary would add a wrapper, a promise and a re-render in order to fetch nothing — and emitting both forms would redeclare the binding. The strategy must be a literal. It decides how the module is emitted, so a runtime value cannot supply it, and load:visible={margin} is an error rather than a silent fallback. See examples/load-strategies, whose test runs the real build and asserts which chunk each component landed in.

@fluixi/template-runtime

@fluixi/testing

@fluixi/ts-plugin

  • Go To Definition, Find References and Rename for component tags in templates. A ${…} hole is a real expression, so TypeScript already answered all three for it — the plugin simply wasn't forwarding those requests. The synthetic part is the tag name: <UserCard> is text inside a string literal, invisible to the checker. Rename is the one that mattered most. Renaming a component previously left every template referencing it silently broken, because nothing rewrote the tags. Both the opening and the closing tag are collected — rewriting <Tag> but not </Tag> would leave a mismatched template, which is worse than not renaming at all — and tag locations are only added when the ordinary rename already succeeded. References resolve each candidate tag through its own file's scope before being included, so an unrelated local component that happens to share a name is not swept in. Files are pre-filtered on the literal html\`` before anything is parsed, so a project without templates costs one string search per file. Auto-imported components are covered too. <Show>, <Portal>, <Suspense>, <Outlet>and the rest have no import — the compiler injects one — so there is no binding in the file and every symbol-driven feature went quiet on precisely the components used most. They now resolve the way the compiler would, against the module it would import from. That also gives them hover, which they never had. Fixing hover across files exposed a bug in it: the declaration's offset was used to query the file being edited rather than the file the declaration is in. Harmless while every component was local, wrong as soon as one isn't. The map mirroring the compiler's sets is pinned by a test that reads the compiler source, so adding a component there without updating the plugin fails. Auto-imported components resolve even when their module isn't in the program — which is the normal case, since nothing importing the module is exactly what "auto-imported" means. OnlySuspenseappeared to work, because something else pulls@fluixi/coreinto the program while@fluixi/domhas no reason to be there. Definition needs a file and a span rather than the checker, so it now reads the declaration from disk, followingexport *` through the barrels these packages are built from.
  • Offer a quick fix for the uncalled-accessor warning. A diagnostic you can't act on is half a feature: the rule already knows the remedy, so leaving it to be typed by hand is a gap, not a design. ${count} now comes with "Call 'count'", and a fix-all that corrects every occurrence in the file in one pass. The plugin's fixes are appended to TypeScript's rather than replacing them, so nothing it would have offered is displaced. Fix-all edits are applied latest-first, so applying one doesn't shift the offsets of the next. The accessor rule now also covers ${signals[0]} and ${state.count}, not just a bare identifier — reaching an accessor by index or property is the same mistake, and only the identifier form was reported. Template diagnostics are cached on the SourceFile. They were recomputed for every quick-fix request, and the editor asks for code actions on every cursor move — so the analysis ran constantly rather than once per edit.
  • Fix a crash that took down the whole TypeScript language service. 0.1.0-alpha.2 added shadow files to the program by patching getScriptFileNames, and built a shadow for every file inside that call. tsserver calls it on every project sync, so this re-entered host machinery and parsed the project on each call — the service died on startup and VS Code disabled it after five attempts, taking every JS/TS feature with it. The host is no longer touched at all, and the plugin still creates no language service. It only wraps the service it is handed. Hole type-checking is kept, by a different route: the expressions inside ${…} are real expressions in a real file that TypeScript has already bound. The only thing missing is a contextual type for the callback parameter, so the plugin supplies the type it already infers for hover and asks the main checker whether each property access on that parameter holds. Errors land on real source positions, so nothing needs mapping. This reports a wrong property on an inferred parameter — each items, ref elements, event objects — which is the mistake templates actually produce. It is not a general type-check of hole contents; that needed the machinery which proved unsafe to run inside tsserver. Also reports a signal read without calling it. ${count} in child position renders the function object and never updates; ${count()} is what was meant. The editor already had this rule for JSX, so html`` templates lacked an equivalent for the same mistake. Scoped hard: only a bare identifier, only among the children of a native element, and only when its type is callable with no required arguments. A component legitimately receives accessors (&lt;For each=${items}&gt;) and a render-prop child is a function on purpose, so neither is touched.

create-fluixi

  • Fix create-fluixi hanging after scaffolding in interactive mode. The app-mode select menu calls emitKeypressEvents(stdin), which resumes stdin to read keypresses. After a choice was made the keypress listener was removed and raw mode reset, but stdin was left resumed — a live handle that keeps the event loop alive, so the CLI printed "Created …" and then never exited. Pause stdin when the menu finishes so the process exits cleanly. (Non-interactive --spa/--ssr runs were unaffected — they never open the keypress menu.)

0.1.0-alpha.2

@fluixi/api

  • A guard can declare 503 in refuses, for a check that asks another service, and the OpenAPI document lists the 503 for its routes.

@fluixi/head

@fluixi/storage

@fluixi/template-parser

  • Accessibility warnings, and a consistent event name. Five structural rules over the template AST: an img with no alt, an a with no href, an iframe with no title, a positive tabindex, and a click handler on an element that isn't keyboard-reachable. They live in the parser rather than in a consumer because the language service and the compiler both parse templates, so one implementation reaches the editor and the build. Every rule is structural — no types, no scope analysis. A rule that cannot be certain stays silent: anything carrying a spread is skipped entirely, since the spread may supply the very attribute being looked for. An accessibility warning that cries wolf gets switched off, and then the real ones are lost too. All are warnings; none make a template invalid. Opt out with accessibility: false. EventBindingNode.name is now the DOM event name whatever the spelling. It was documented as lowercased but only was for @click and on:click — onMouseDown produced MouseDown. Compilation was unaffected because lowering lowercases defensively, so this only ever bit a consumer that trusted the documented contract. syntax still records which form was written.

@fluixi/template-runtime

@fluixi/testing

  • Add the license field (MIT) and bundle a LICENSE file in every package, so npm shows the license and ships it in the tarball.

@fluixi/ts-plugin

  • Type element attributes inside html`` templates, and cache per file version. Completion and hover for a native element's attributes now come from IntrinsicElements in @fluixi/dom/attributes — the same tag → attributes map JSX checks against, so both authoring modes agree and neither needs the other's package. The editor's HTML service already offers standard attribute names from MDN data; what it can't know is the framework surface (classList, onClick, Reactive<T> value types), which is what this adds. Caching: the parsed template and the file's template list are keyed on the SourceFile object, which TypeScript replaces whenever the file changes — so a WeakMap gives exact invalidation with no version bookkeeping. Previously every entry point re-parsed the enclosing template and re-walked the file's AST on each keystroke, several times per keystroke. IntrinsicElements is resolved once per Program and attribute lists are memoised per tag.
  • Check templates on one program instead of two. Deep template checking ran a second ts.LanguageService. A second service means a second document registry, so lib.d.ts and every node_modules declaration — the expensive part — were parsed and bound twice. Now each file containing templates gets a shadow file added to the existing program: a copy of the source with html``replaced by typed helper calls. Locals The real file keeps real positions. Replacing its text — the way Volar does for .vue, where TypeScript can't read the source at all — would mean every language service API speaks generated coordinates, and a single unmapped one (getFormattingEditsForDocument, findRenameLocations) applies edits at the wrong offsets. Here only diagnostics explicitly requested on the shadow are mapped back. Shadow files are filtered out of references, rename locations, definitions, implementations and document highlights, and report no diagnostics of their own, so nothing about them reaches the editor.

0.1.0-alpha.1

@fluixi/api

  • New @fluixi/api/client entry provides a createClient<ApiRoutes>() function with typed get, post, put, patch, and delete methods, including typed params, query, body, and response, and throws ApiClientError containing status, code, message, and details, while supporting options such as baseUrl, headers, credentials, and fetch.
  • New describedBy(document, handler) adds the library's OpenAPI paths to the API document under the route's path, showing them instead of an undescribed catch-all route.
  • The route() function now accepts a new guard option that runs before input is read, passes its result to the handler as auth, and adds the appropriate security scheme and 401/403 responses to the OpenAPI document, using security: [] when no guard is set.
  • The new revalidates route option names cached data a success changes, sending an x-fx-revalidate header that the client applies to the router in the browser by default or to onRevalidate.
  • The library now offers apiSecurity() middleware that adds security headers, enforces CORS for listed origins, checks request origin on cookie writes, and applies per-client rate limits with 429 responses and Retry-After headers. Cross-origin calls are refused until origins are listed, and only paths under /api are touched.
  • The new postgresRateLimitStore(client, { table, schema, createTable }) shares rate-limit counts across all instances on any client using query(text, values). If the database fails, hits are counted in memory until it is back.

@fluixi/cdn

  • Three new files, min.js, templates.js and full.js, now load their corresponding import maps into the page when included with an ordinary script tag, allowing versioned maps to be used without manually embedding or fetching them.

@fluixi/head

  • New @fluixi/head — built-in reactive, SSR-first SEO/document-head engine. Typed title/meta/OG/Twitter/JSON-LD/canonical/hreflang/icons/verification, last-wins dedupe with nested layout inheritance, SSR serialize + client reconcile (reuses server tags by key, no hydration mismatch, signals update the document live), JSON-LD helpers, head components, and robots.txt/sitemap.xml generators. Re-exported as @fluixi/start/head (same pattern as @fluixi/start/router) so apps have one import surface.
  • Wire @fluixi/head into the framework (zero-config SEO). renderRequestAsync collects seo()/useHead metadata during SSR and carries it back; @fluixi/start lifts it into <head>/<html> for SSR + prerender. startClient mounts the head registry so it hydrates (server tags reused by key) and updates live, including on route transitions (seo() auto-disposes on owner unmount). Apps just call seo({...}) — no setup.

@fluixi/storage

@fluixi/template-parser

  • New package: a dependency-free tokenizer + recursive-descent parser for html`` templates. Produces a located, recoverable Template AST with diagnostics — the shared foundation the compiler, TypeScript plugin, and language server build on.

@fluixi/template-runtime

@fluixi/testing

  • Rewrite the reactive store to a proxy-write model — createStore drops from 13.8kb to ~3.7kb gzip (Solid parity), no cloning or diffing. Keep the store's path/array/produce helpers on the setter. Drop the legacy signal engine from the default @fluixi/reactive/signal entry: the unused operator modules move to @fluixi/reactive/operators and @fluixi/reactive/cached-resource subpaths, so /signal falls from 8.8kb to 4.7kb gzip and no longer bundles the old engine. Add @fluixi/testing — minimal helpers (render, flush, fireEvent) for testing components in jsdom.

@fluixi/ts-plugin

  • New package: a TypeScript language-service plugin that gives htmltemplates the JavaScript inside templates gets full inference, completion, hover, and error-checking — <li each=${items}>${(it) => it.label}</li>typesitas the element ofitems; @click=${(e) => …}typese` as the DOM event — with

0.1.0-alpha.0

@fluixi/cdn

  • The framework now includes pre-generated import maps in min.json, templates.json, and full.json to simplify loading it from a CDN without manually specifying every subpath.

@fluixi/storage

  • The new documentCookieAdapter from @fluixi/storage/browser uses the same encoding as cookieStorage, so server and browser read one value, and storage.keyPrefix now exposes the namespace prefix.
  • localStorageAdapter and sessionStorageAdapter now provide a unified browser storage API that is safe to import on the server and includes detailed quota and security error messages and cross-tab change notifications via subscribe.
  • The library now provides a new createStorage API, typed by a schema and supporting pluggable adapters, namespaces, expiry, versioned entries, migrations, prefix/glob/predicate search, management helpers (prune, usage, update, getOrSet, touch, snapshot, restore, copyStorage), a strict JSON serializer, and a memory adapter for safe imports in both browser and server environments.
  • createStorage({ encryption: { keyProvider } }) now returns an async storage where set(key, value, { encrypt: true }) stores the item encrypted with AES-256-GCM and get automatically decrypts it, while unencrypted items remain unchanged.
  • A ttl set through the storage now also sets the cookie's Expires on cookieStorage and documentCookieAdapter; copyStorage now accepts async and encrypted storages and returns a promise for them.
  • cookieStorage and requestStorage from @fluixi/storage/server now provide typed storage backed by request cookies, sending writes as Set-Cookie with secure defaults, enforcing a size limit, and isolating values per request.
  • Subscribers now hear writes made through any storage over the same adapter, with the cross-tab listener added once per adapter while something listens and removed after.
  • createSyncStorage is now exported as the synchronous storage by name, with JSDoc examples for the createStorage overloads, createSyncStorage, and createAsyncStorage.

@fluixi/template-runtime

  • The new @fluixi/template-runtime package compiles html and svg templates in the browser, with no build step, and @fluixi/compiler now includes a ./compile subpath that excludes node-specific dependencies.
  • A list no longer rebuilds every node when it changes, as the runtime now creates components itself instead of waiting for @fluixi/core to provide a way to create them.

0.0.1

@fluixi/babel-plugin-jsx

@fluixi/core

@fluixi/dom

@fluixi/jsx

@fluixi/reactive

@fluixi/utils