Journal des modifications
Chaque version des paquets Fluixi, de la plus récente à la plus ancienne. Les notes sont en anglais.
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/cdnpackage ships*.development.jsfiles 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
hydratablecompiler option (defaulttrue) can be set tofalsefor code that is never server rendered to omit hydration markers, producing smaller components and runtime.@fluixi/startapps withssr: falseget it automatically. - Components now compile to direct
createComponentcalls instead of a memo wrapper, and each read ofprops.childrenrebuilds the children; readprops.childrenonce into a local variable or usereadChildren(() => 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/cdnpackage ships*.development.jsfiles 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-fluixiattribute 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/cdnpackage ships*.development.jsfiles and corresponding map files that point to the development bundles. - The new
hydratablecompiler option (defaulttrue) can be set tofalsefor code that is never server rendered to omit hydration markers, producing smaller components and runtime.@fluixi/startapps withssr: falseget it automatically. - Components now compile to direct
createComponentcalls instead of a memo wrapper, and each read ofprops.childrenrebuilds the children; readprops.childrenonce into a local variable or usereadChildren(() => 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-fluixiattribute 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/devwith warnings and devtools reporting, whiledistremains the production build without them. insertnow typechecks mixed arrays of children, its marker argument acceptsnull, andcreateComponentis typed to return the component value instead of a thunk.- JSX event handlers now type
e.currentTargetas the element and, in input and change handlers on aninput,selectortextarea,e.targetas that control (elsewhereElement), andrefcan 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
createMemonow reaches the watcher. ref={el}now assigns the element to a let, var, or parameter variable, whereas previously the variable remained undefined.render()andhydrate()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/cdnpackage ships*.development.jsfiles 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/devwith warnings and devtools reporting, whiledistremains 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
createMemonow 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 letssetQueryaccept any string.
@fluixi/realtime
@fluixi/router
@fluixi/server
@fluixi/session
@fluixi/start
- The new
hydratablecompiler option (defaulttrue) can be set tofalsefor code that is never server rendered to omit hydration markers, producing smaller components and runtime.@fluixi/startapps withssr: falseget 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/startneed no change; elsewhere, import@fluixi/web-components/serverbefore 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/cdnpackage ships*.development.jsfiles 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) andsetnow types a write to the elements an index list, a range, or a wildcard selects as one element.
@fluixi/vite-plugin
- The new
hydratablecompiler option (defaulttrue) can be set tofalsefor code that is never server rendered to omit hydration markers, producing smaller components and runtime.@fluixi/startapps withssr: falseget 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
provideandconsumemethods are removed from class elements; useprovideContext(this, context, value)andconsumeContext(this, context)from@fluixi/web-componentsinstead. Update any code that callselement.provide(...)orelement.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/startneed no change; elsewhere, import@fluixi/web-components/serverbefore rendering on the server. - The development export now provides a dev build in
dist/devwith warnings and devtools reporting, whiledistremains 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.mdpointing coding assistants to the llms.txt of installed fluixi packages and listing the npm scripts, andCLAUDE.mdimports 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.txtwith coding assistant rules and a link to the docs, readable from node_modules.
@fluixi/cron
@fluixi/devtools
@fluixi/di
@fluixi/dom
@fluixi/head
HeadLinknow replaces theLinkcomponent exported from@fluixi/head. ImportHeadLinkfrom@fluixi/heador@fluixi/start/headinstead ofLink.
@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/corefetches 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
defineCustomElementnow accepts hot updates for it, and classes using#privatefields trigger a page reload on update. hotRewritenow accepts akeepStateoption, and files containing// @refresh resetstart fresh.- A module registering its element class with
customElements.definenow reloads the page on save. // @refresh reloadnow 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
hydratablecompiler option is no longer available. Remove anyhydratablesetting from your compiler configuration. - The Vite plugin now compiles JSX in an app's
.jsfiles, while leaving dependency.jsfiles untouched. - The
backendoption now accepts onlyimperative, 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
ifandeachtogether 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 theannounceprop on Router accepts a focus target orfalseto disable it. - Link now loads its target route code on hover, focus or touch (disable with
preload={false}), and a newusePreloadRoutehook lets you preload navigation without a link. @fluixi/corenow exportscreateUniqueIdandreadChildren.- The router now reloads the data of routes on screen when hot reload changes a route data loader.
load:interactionnow listens on the component's own nodes, and any interaction that occurred before the code arrived is replayed once it renders.isServerandisClientnow replaceisServerEnvironmentandisClientEnvironmentin@fluixi/core/server. Update imports to useisServerandisClientinstead of the removed names.- The default export's
VERSION,getFrameworkInfo()and the CDN global now report the published version instead of 0.0.1. SuspenseListnow coordinates itsSuspensechildren from compiled JSX, revealingforwardsin 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/diis first loaded by a route; before, it never ran and nothing said so.
@fluixi/dom
createHotModulenow keeps the state of signals and stores of a swapped component and its children, and disposes the old build on swap.@fluixi/dom/hotnow enables component hot reload in development.- The new
createUniqueIdgenerates an ID that is consistent between server render and the hydrated page for label-for and ARIA references. accessKeyandvaluenow accept an accessor, andclass/classNamenow accept a string, a list, a class map, or an accessor (ClassValue).createDynamicElementnow builds its children once, preventing multiple lazy evaluations per element.renderToStringwithhydrationKeysfalse writes dynamic elements without the hydration markers around their children.render()now adds version information towindow.Fluixi.versionsinstead of overwritingwindow.Fluixiwhen a CDN build already put its API there.- Island now reads its props once without a destructure.
- Server elements now have a
datasetandtoggleAttribute. - 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
combineSignalsnow emits each combined value once at the start and on each write, instead of once per source signal.- The library now exports
setHotStatewhich lets dev tooling choose the start value of new signals and stores. - The package descriptions now correctly state that
@fluixi/reactivedoes not claim RxJS interop,@fluixi/serverdoes not claim streaming, and@fluixi/vite-plugindoes not mention a JSX backend. - A store key now does not allocate a closure per key when hot reload is off.
startTransitionanduseTransitionnow keep the current resource value during a transition, showing no Suspense fallback whileisPendingis 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/reactivedoes not claim RxJS interop,@fluixi/serverdoes not claim streaming, and@fluixi/vite-plugindoes not mention a JSX backend.
@fluixi/session
@fluixi/start
- A page shell can now be a component (
src/document.tsx) that rendersHtml,Head,MainandScriptsfrom@fluixi/start/documentper request, allowing request-derived values likelangor a theme class, while only the app insideMainhydrates andindex.htmlremains 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
Imgcomponent from@fluixi/start/imagenow provides an unstyled<img>with srcset, width/height, sizes, priority, fill, quality, loader, and unoptimized options.createImageHandlermoves to@fluixi/start/image/server. - The dev server now reports when a document component replaces an existing
index.html. - The image endpoint now finds
sharpinstalled 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 requestqat the configured quality. - The build now includes a
static: trueprerender 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_URLorSECRETS(e.g.,GITHUB_TOKEN,STRIPE_API_KEY), whileTOKEN_ENDPOINTstill 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
ifandeachtogether 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
hotoption now keeps a swapped component's state whenkeepState: trueis 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
hotto 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/reactivedoes not claim RxJS interop,@fluixi/serverdoes not claim streaming, and@fluixi/vite-plugindoes not mention a JSX backend.
@fluixi/web-components
- Element renders now keep their state under
keepStateand 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.anyprop is now kept as is again. - On the server, an element that writes
dataset,style,classListor attributes from render now writes them into the HTML andattachInternalsis accepted.
create-fluixi
--documentnow starts the app with its page shell assrc/document.tsx(orsrc/document.tswith--html) instead ofindex.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 Torx() satisfies Tnow update whenxchanges. - An imported component that has a
load:and also a use withoutload:in the same file now treats both uses as eager, as with a resolve rule. A warning now appears whenload:neveris placed next to an eager use of the same component. Whenload:is used onNS.default, the message now names the namespace import. In HTML templates, a hole in aload:value is now refused like JSX, and usingload:on<${Chart}>now prompts a message to write the bare tag. load:nevernow 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.
propsdestructuring 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,!orsatisfiesare 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, andslotted(name)now render correctly on the server, and after hydration children placed between server-rendered tags appear whererender()puts them, with a newafterHydrationPass(fn)API available.
@fluixi/core
- fluixiRoutesPlugin, scanRoutes and generateRouteModule are now internal to
@fluixi/startand@fluixi/core/pluginsis removed. Importfluixifrom@fluixi/vite-plugininstead.@fluixi/coreno 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
setResponseStatusto set another;errorResponseStatus(error)returns the status the rule picks. provideAppInitializernow runs before the app renders, executing per request on the server and once in the browser before hydration, andbeforeFirstRendertasks 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 returnkeepServerContentwhile hydrating to preserve their slot content.- A page hydrated from the server now watches its
routeDepsand reloads its data when they change. load:nevernow 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
ErrorBoundarynow provides acaught()method that returns the error immediately and untracked. - A route whose
routeDatafails without anErrorBoundarynow shows a built-in error view in place of that route while keeping layouts, and the new Router optionerrorlets 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
provideAppInitializernow runs before the app renders, executing per request on the server and once in the browser before hydration, andbeforeFirstRendertasks 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, andrequestScope()andendRequestScope()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
setResponseStatusto set another;errorResponseStatus(error)returns the status the rule picks. provideAppInitializernow runs before the app renders, executing per request on the server and once in the browser before hydration, andbeforeFirstRendertasks 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 returnkeepServerContentwhile 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, andrequestScope()andendRequestScope()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.
Portalnow 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
routeDatafails without anErrorBoundarynow shows a built-in error view in place of that route while keeping layouts, and the new Router optionerrorlets 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, andslotted(name)now render correctly on the server, and after hydration children placed between server-rendered tags appear whererender()puts them, with a newafterHydrationPass(fn)API available.
@fluixi/head
seo()now restores<html>attributes such aslangandhtmlAttrsto 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 adata-fh-originalattribute.- 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
rescopeParamsconfig 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
ErrorBoundarynow provides acaught()method that returns the error immediately and untracked. - A route whose
routeDatafails without anErrorBoundarynow shows a built-in error view in place of that route while keeping layouts, and the new Router optionerrorlets you replace that view.
@fluixi/realtime
postgresBus.listennow accepts a function that creates a client, automatically reconnects with exponential back-off and reportsonGapwhen listening resumes, and the channel server sends a resync to every member on a gap and a server connection'sdrained()settles once its unsent bytes fall to a bound.- New:
createChannelClientcreates a client that subscribes to a channel with a handler andonResyncandonDeniedcallbacks, automatically rejoining with the last ID after a reconnect, andcreateChannelServercreates a server withauthorize,replay,bus,maxChannels, and endpoint options, offeringstart,publish,upgrade, andclosemethods, whilememoryBusandpostgresBusprovide bus implementations for messaging. - New package.
createWebSocket(url, options)returns signalsstatus,connected,data,error,info,bufferedand provides methodssend,subscribe,on,connect,close, anddisposewith reconnection backoff, timeout, heartbeat, queue limits and customizable serializers. Nothing connects during server rendering. createWebSocketServerandcreateChannelServernow accept amaxAgeoption that closes a connection withCLOSE_REAUTHENTICATE(4100) after the specified time, causing the client to reconnect and runauthenticateagain.- 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 whenauthenticateis null, 403 for invalid origins, 503 when exceedingmaxConnectionsor during shutdown, closes oversized messages with code 1009, sends protocol pings to drop silent connections, useskeepAliveto send a text heartbeat, and provideson('message')with text strings and binary bytes whileclose()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,closeor 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
provideAppInitializernow runs before the app renders, executing per request on the server and once in the browser before hydration, andbeforeFirstRendertasks 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, andrequestScope()andendRequestScope()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/serverpipes WebSocket upgrades under the specified prefix (default/api) to the target origin, setting the host to the target and forwarding the caller's IP viax-forwarded-for, while forwarding refusals, returning a 502 when unreachable, and closing both sides when either ends. fluixi startnow runs the default-exporteddefineServer({ start, upgrade, shutdown })fromsrc/server.ts, listening, handling upgrades, and shutting down on SIGTERM or SIGINT with a configurable timeout.fluixi devruns the same file, and a build withsrc/server.tsfails for a serverless adapter.provideAppInitializernow runs before the app renders, executing per request on the server and once in the browser before hydration, andbeforeFirstRendertasks are run once per request or page.- fluixiRoutesPlugin, scanRoutes and generateRouteModule are now internal to
@fluixi/startand@fluixi/core/pluginsis removed. Importfluixifrom@fluixi/vite-plugininstead.@fluixi/coreno longer lists the compiler, the Vite plugin or vite-plugin-node-polyfills as peers. - The build now refuses
publicEnv().Xorenv('X')in browser code for undeclared X even whenenv.publicis empty. ServerpublicEnv()now returns only declared names andVITE_names, never the fullprocess.env, and in production it uses the build values fromdist/server/public-env.json. @fluixi/startnow 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 neweventReplayoption (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 aslangandhtmlAttrsto 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 adata-fh-originalattribute.- A page hydrated from the server now watches its
routeDepsand 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.tsand 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, andrequestScope()andendRequestScope()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
addInterceptorordefineMiddlewarefrom@fluixi/startin 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 withoutload:in the same file now treats both uses as eager, as with a resolve rule. A warning now appears whenload:neveris placed next to an eager use of the same component. Whenload:is used onNS.default, the message now names the namespace import. In HTML templates, a hole in aload:value is now refused like JSX, and usingload: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 withslot="name"or those without a slot, to place inrender(). - 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, andslotted(name)now render correctly on the server, and after hydration children placed between server-rendered tags appear whererender()puts them, with a newafterHydrationPass(fn)API available.
create-fluixi
1.0.0-alpha.108
@fluixi/api
@fluixi/auth
@fluixi/babel-plugin-jsx
@fluixi/cdn
@fluixi/cli
fluixi workerruns the app's jobs module (default exportcreateJobsfromsrc/jobs.ts) andfluixi buildoutputs it todist/server/jobs.js(including API-only apps),--portanswers GET /health with a 503 status while starting or stopping, SIGTERM waitsworker.stopTimeoutSecondsfor running jobs,fluixi devruns the worker beside the server and restarts it when its files change, andworker.inlineruns it insidefluixi start.
@fluixi/compiler
- SVG primitives such as
linearGradient,radialGradient,stop,mask,pattern,filterand 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, whileforeignObjectcontent is treated as HTML.
@fluixi/core
redirect(to, { status }), thrown in a route'srouteData, answers a server render with that status andLocationbefore the page is sent, and replaces the address in the browser; a page already streaming redirects from itself.setResponseRedirectandtakeResponseRedirectin@fluixi/domlet 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.
defineScheduledeclares a five-field cron in an IANA time zone and the@fluixi/jobsjob it sends, and throws on a cron, zone or name it cannot read. createJobstakes schedules fromdefineSchedule, andjobs.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 atcreateJobs.
@fluixi/devtools
@fluixi/di
@fluixi/dom
redirect(to, { status }), thrown in a route'srouteData, answers a server render with that status andLocationbefore the page is sent, and replaces the address in the browser; a page already streaming redirects from itself.setResponseRedirectandtakeResponseRedirectin@fluixi/domlet 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.
defineJobdeclares a job with its schema, retries and timeout;createJobsruns jobs on an engine:sendchecks the data, akeymakes 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. createJobstakes schedules fromdefineSchedule, andjobs.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 atcreateJobs.send()starts the engine as a sender without any polling,work()starts it as a worker upgrading a sender in the same process, andJobEngine.startaccepts a{ worker }option.
@fluixi/jsx
@fluixi/oauth2
@fluixi/reactive
@fluixi/router
@fluixi/server
@fluixi/session
@fluixi/start
fluixi workerruns the app's jobs module (default exportcreateJobsfromsrc/jobs.ts) andfluixi buildoutputs it todist/server/jobs.js(including API-only apps),--portanswers GET /health with a 503 status while starting or stopping, SIGTERM waitsworker.stopTimeoutSecondsfor running jobs,fluixi devruns the worker beside the server and restarts it when its files change, andworker.inlineruns it insidefluixi start.send()starts the engine as a sender without any polling,work()starts it as a worker upgrading a sender in the same process, andJobEngine.startaccepts a{ worker }option.redirect(to, { status }), thrown in a route'srouteData, answers a server render with that status andLocationbefore the page is sent, and replaces the address in the browser; a page already streaming redirects from itself.setResponseRedirectandtakeResponseRedirectin@fluixi/domlet a host honour it.
@fluixi/storage
@fluixi/template-parser
- SVG primitives such as
linearGradient,radialGradient,stop,mask,pattern,filterand 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, whileforeignObjectcontent 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,contenteditableandaria-*attributes write booleans as the texttrueorfalsein templates andsetAttribute, and a function passed as the whole style value is tracked.
@fluixi/core
@fluixi/devtools
@fluixi/di
@fluixi/dom
draggable,spellcheck,contenteditableandaria-*attributes write booleans as the texttrueorfalsein templates andsetAttribute, 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-nodesymbol 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
spreadstill handles real spreads and the cases that cannot be bound one by one. New in@fluixi/dom:setDynamicStyleandsetDynamicClassList, the function branches ofspreadas standalone helpers. - The published builds replaced
process.env.NODE_ENVwith"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_ENVwith"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
spreadstill handles real spreads and the cases that cannot be bound one by one. New in@fluixi/dom:setDynamicStyleandsetDynamicClassList, the function branches ofspreadas standalone helpers. - The published builds replaced
process.env.NODE_ENVwith"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/reactivecreates the row index signal on first read and builds reactive node reports only when an observer is registered, and@fluixi/dombuilds 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_ENVwith"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/reactivecreates the row index signal on first read and builds reactive node reports only when an observer is registered, and@fluixi/dombuilds 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_ENVwith"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-fluixiattribute on the mount element is empty because the check readsprocess.env.NODE_ENVexactly as a bundler replaces it, while the previousprocess.env?.NODE_ENVsurvived the build and read asdevelopment.fluixi startsetsNODE_ENVtoproductionwhen 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-fluixiattribute on the mount element is empty because the check readsprocess.env.NODE_ENVexactly as a bundler replaces it, while the previousprocess.env?.NODE_ENVsurvived the build and read asdevelopment.fluixi startsetsNODE_ENVtoproductionwhen 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
Cardwith 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-fluixiattribute in place offluixi,fx-domandfx-reactive; its value is the release in development and empty in production.@fluixi/startwrites this attribute on the server so it appears in the page source, andwindow.Fluixiretains all three version strings. createThemeinitializes by callingloadwith 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-fluixiattribute in place offluixi,fx-domandfx-reactive; its value is the release in development and empty in production.@fluixi/startwrites this attribute on the server so it appears in the page source, andwindow.Fluixiretains 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-fluixiattribute in place offluixi,fx-domandfx-reactive; its value is the release in development and empty in production.@fluixi/startwrites this attribute on the server so it appears in the page source, andwindow.Fluixiretains 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. defineConfigaccepts adedupearray 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=createto 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 devandfluixi starttake the port from--port=<n>or--port <n>, then thePORTvariable, thenportinfluixi.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
oauthRoutestakes 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
formatcompiler option no longer accepts'lit'and accepts'html'(or'jsx'or'both'). The lit helpersisLitResult,isLitTemplateResult,getLitEventNameandisTemplateFactoryare removed: they detected lit-html objects, which no longer occur.
@fluixi/core
- The
formatcompiler option no longer accepts'lit'and accepts'html'(or'jsx'or'both'). The lit helpersisLitResult,isLitTemplateResult,getLitEventNameandisTemplateFactoryare removed: they detected lit-html objects, which no longer occur. fluixi generatein @fluixi/cli replaces the removedfluixi-generateandfluixi-runcommands.
@fluixi/devtools
@fluixi/di
@fluixi/dom
- The
formatcompiler option no longer accepts'lit'and accepts'html'(or'jsx'or'both'). The lit helpersisLitResult,isLitTemplateResult,getLitEventNameandisTemplateFactoryare 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/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@fluixi/storage, and Fluixi packages depend on each other through^ranges.
@fluixi/babel-plugin-jsx
@fluixi/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@fluixi/storage, and Fluixi packages depend on each other through^ranges.
@fluixi/cdn
@fluixi/cli
@fluixi/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@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/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@fluixi/storage, and Fluixi packages depend on each other through^ranges.
@fluixi/core
@fluixi/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@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 theRetry-Afterheader 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/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@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 toshare.jsonthat is placed in the<head>before any module script, and theshareoption in@fluixi/startadds this plugin and keeps those packages external in the server build, which needsnodeAdapter. @fluixi/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@fluixi/storage, and Fluixi packages depend on each other through^ranges.
@fluixi/storage
@fluixi/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@fluixi/storage, and Fluixi packages depend on each other through^ranges.
@fluixi/template-parser
@fluixi/template-runtime
@fluixi/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@fluixi/storage, and Fluixi packages depend on each other through^ranges.
@fluixi/testing
@fluixi/ts-plugin
@fluixi/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@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 toshare.jsonthat is placed in the<head>before any module script, and theshareoption in@fluixi/startadds this plugin and keeps those packages external in the server build, which needsnodeAdapter. @fluixi/oauth2installs@fluixi/authand@fluixi/sessiondirectly, so applications using@fluixi/oauth2may remove@fluixi/authfrom their dependencies if it's only used for OAuth2. Its peers include@fluixi/domand@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/serverand@fluixi/template-runtimeare peer dependencies, so an app that updates one package keeps a single runtime instance.
@fluixi/devtools
@fluixi/di
- The new
@fluixi/dipackage 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, detailedInjectionErrorwith resolution path,DestroyRefandINJECTOR,providePlatform, request-root disposal,provideAppInitializerandrunAppInitializers,isInInjectionContextandassertInInjectionContext, and the testing utilitiescreateTestInjectorandresetInjectionin@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,renderToStringandrenderToStringAsyncend the context they create, and@fluixi/serverre-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/dire-exports@fluixi/diand server functions and API routes end the request context they create, releasing request services;@fluixi/oauth2imports@fluixi/diinstead 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,renderToStringandrenderToStringAsyncend the context they create, and@fluixi/serverre-exports both.- The runtime packages of
@fluixi/start,@fluixi/core,@fluixi/serverand@fluixi/template-runtimeare 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/serverand@fluixi/template-runtimeare peer dependencies, so an app that updates one package keeps a single runtime instance. @fluixi/start/dire-exports@fluixi/diand server functions and API routes end the request context they create, releasing request services;@fluixi/oauth2imports@fluixi/diinstead of@fluixi/start/di.
@fluixi/storage
@fluixi/template-parser
@fluixi/template-runtime
- The runtime packages of
@fluixi/start,@fluixi/core,@fluixi/serverand@fluixi/template-runtimeare 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/startapps withssr: false, providing file routing, server functions, middleware, and fluixi dev/build/start instead of plain Vite, and the--spa --authflag wires authentication like an SSR app, with each template listing@fluixi/startand the runtime packages. --helpindicates that--authworks for both modes and displays the npm commandnpm create fluixi@alpha -- my-app --spa, and the README refers to SPA templates as@fluixi/startapps 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/serverinstalls its async store only when none is already present. In a built app, server functions ran outside the request context, sogetLocals()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/serverinstalls its async store only when none is already present. In a built app, server functions ran outside the request context, sogetLocals()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/corefrom this release on.
1.0.0-alpha.96
@fluixi/auth
- The
better-authpeer 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
Formis now namedActionForm(its props are nowActionFormProps). Update imports and JSX to useActionForminstead ofForm.
@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.cssand 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
cssvalue 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 setscss.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
cssvalue 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 setscss.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 instyleLiteralsand 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`.cssand theFluixiStyletype are now exported from@fluixi/core(and@fluixi/dom) alongsidehtmlandsvg. In an app,$html,$svgand$cssneed no import and compile like the other tags. The compiler no longer readscssfrom@fluixi-css/core.- In a library build (
build.lib), component styles are emitted as<name>.cssfiles alongside each module and imported relatively, with a matching<name>.css.jsloader, and a build will error if it would overwrite an existing<name>.cssfile. transformTemplatesnow extracts<style>and<style scoped>blocks from JSX, processes them with the host's CSS engine viastyles: { process(css, from) }, and returns the resulting styles while adding a deterministicdata-fx-sattribute 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 instyles, 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:xandclass:xupdate only their own property when its value changes, JSXclass:xandstyle:xon DOM elements work as in html``templates (JSX cannot parsestyle:--x, usestyle={{ '--x': ... }}),style={{ ... }}on a DOM element updates per property and removes keys missing from the new object, andstyle=together withstyle:xin 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 undercss.devSourcemapin development andbuild.sourcemapin builds. <style>in an htmltemplate now accepts CSS values by name, `${base}`, locally defined or imported from another module, refuses other values with the same JSX error message, and htmlstyle blocks now receive source maps back to the template lines.- The Vite plugin now compiles component
<style>blocks, resolvescss``` 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 ownloadandconfigureServer` instead of replacing them. - An edited
<style>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
,&,©, 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
cssand theFluixiStyletype are now exported from@fluixi/core(and@fluixi/dom) alongsidehtmlandsvg. In an app,$html,$svgand$cssneed no import and compile like the other tags. The compiler no longer readscssfrom@fluixi-css/core.
@fluixi/dom
cssand theFluixiStyletype are now exported from@fluixi/core(and@fluixi/dom) alongsidehtmlandsvg. In an app,$html,$svgand$cssneed no import and compile like the other tags. The compiler no longer readscssfrom@fluixi-css/core.- Custom properties in a style object (
--gap) now apply,style:xandclass:xupdate only their own property when its value changes, JSXclass:xandstyle:xon DOM elements work as in html``templates (JSX cannot parsestyle:--x, usestyle={{ '--x': ... }}),style={{ ... }}on a DOM element updates per property and removes keys missing from the new object, andstyle=together withstyle:xin a template no longer produces a duplicate key. - A dynamic child that hydrates empty now keeps its place among its siblings.
mergePropsnow 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, resolvescss``` 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 ownloadandconfigureServer` 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()andmember({ roles, permissions })guards are now available in@fluixi/auth/serverfor protecting@fluixi/apiroutes, withmember()providingauth.member.organizationIdand returning 403 errorsno_active_organizationornot_a_member, andAuthErrornow includes an optionalcode. - The cookie codec now resides at
@fluixi/utils/cookieand@fluixi/authre-exports it, so imports from@fluixi/authcontinue to work. Update any code that writes cookies to avoid invalid names, paths, or domains containing;or whitespace (which now throw aTypeError).SameSite=Nonenow always adds Secure, andparseCookieskeeps a malformed escape as raw text instead of throwing. effectandcreateEffectnow accept an optional{ name }third argument, which appears in the devtools graph like signals and memos.- New
remoteAuth({ url, basePath })in@fluixi/auth/server, fordefineAuthwhen 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 asmember()stay in the API.
@fluixi/babel-plugin-jsx
@fluixi/compiler
- The new
$cachedResourceintrinsic providescachedResourcewithout 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 supportingif,else,each, andkeyin JSX. You must moveeachto the parent element, converting<li each>to<ul each>with the<li>placed inside the render function. $storagestands foruseStorage,$asyncStoragestands foruseAsyncStorage, and$persistedstands forpersistedfrom@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.tsnow 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,$renderEffectand$computedthat can be used without importing them in a start app. thisin a component prop now keeps the enclosing method's value, allowing a custom element's render to passthis.xinto a component prop.
@fluixi/core
- The new
useAsyncStoragesupports awaited or encrypted storage with the same scopes asuseStorage, andStorageProvideraccepts an async storage. - The new
createColorSchemesupports system, light, and dark modes withresolvedandtoggle, and athemeColorfor the browser bars.ThemeProvider,ColorSchemeProvider,useThemeanduseColorSchemeare new, andcreateThemenow sends its before-paint script with the page during a render. composeProvidersnow nests multiple Providers in a single call andrequireContextthrows if no Provider is found instead of returning the default.- The library no longer includes
createConsumer,createContextWithProvider,composeProviders,useProvideor the object form ofcreateProvider. UseCtx.Provider,useContext, orcreateProvider(context, value, props)instead. revalidatenow accepts a list of names and the router appliesx-fx-revalidatefrom @fluixi/api/client responses.useStoragenow supports auto, local, session, request, and cookie scopes, includes aStorageProviderandhydrateStorage, reads the same value during server render and in the browser, setsSet-Cookieon the response for cookie scope, and isolates request-scoped values between requests.createThemenow stores the selected theme in a cookie and the server renders<html data-theme>from it, eliminating the flash, andcreateIsomorphicStore.persistcan accept a storage option.useStoragefrom@fluixi/core/storagenow replaces the removedstorageandcreateMemoryStorageexports. ImportuseStorageinstead of the old names.- The new
persistedfrom@fluixi/core/storagefollows 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
routeDepsexport now provides app-wide values thatrouteDatareceives asargs.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
ttlandstaleWhileRevalidate, whererevalidaterefreshes routes on screen without hiding the page andactiontakes aninvalidatesoption. - The new
storageCache(storage, { ttl })keeps acachedResourcein 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.
rtnow 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
Linkwithout 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
cachedResourcehandle supportsrefetch,invalidate, andmutate, accepts acacheoption, and carries server values to the browser. Remove any use ofcreateCachedResource,clearCachedResourceNamespace, orclearAllCachedResourcesand usecachedResourceandclearCachedResources(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, andhydrateChildren(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.streamDocumentnow returns aPromise<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, andappendResponseHeadertakes an optional request.event.currentTargetnow refers to the element the handler is attached to, matching addEventListener behavior, sonew FormData(event.currentTarget)works in onSubmit.- Components whose props extend
HTMLAttributesnow typecheck correctly when renderingprops.childrenalongside other children. - JSX now supports
if,else,each,keyand 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. ErrorBoundarynow 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-hkkeys instead of creation order, andrenderToStringgenerates static markup withhydrationKeys: 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
JSXCustomElementsinterface instead ofHTMLReactiveElementorFluixiElements. Rename any augmentations that referenceHTMLReactiveElementorFluixiElementsto useJSXCustomElements. - Custom elements declared in
JSXCustomElementsare now typed in JSX, providing typed props and event handlers.
@fluixi/reactive
- The new
depsoption ofcachedResourceuses accessor values as cache keys, so each user or organisation gets its own entry and a change switches to it. - The new
cachedResourcehandle supportsrefetch,invalidate, andmutate, accepts acacheoption, and carries server values to the browser. Remove any use ofcreateCachedResource,clearCachedResourceNamespace, orclearAllCachedResourcesand usecachedResourceandclearCachedResources(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, andreactiveScopeOfreport such a scope. effectandcreateEffectnow 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/storagewithlocalStoragein the browser and no storage on the server, adding a newstorageoption. 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/cookieand@fluixi/authre-exports it, so imports from@fluixi/authcontinue to work. Update any code that writes cookies to avoid invalid names, paths, or domains containing;or whitespace (which now throw aTypeError).SameSite=Nonenow always adds Secure, andparseCookieskeeps 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
$envnow compiles toenvfrom@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.tsnow declares each component that a resolve pattern rule reaches, generating one declaration per file in the directory matching the module path, and adds a newcomponentGlobalsoption for candidates.
@fluixi/core
@fluixi/dom
@fluixi/startnow 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
CanandProtectcan be used in a template. They declaredchildren: unknownand returned() => unknown, which JSX refuses: a component that cannot go in a template is not one. They now take and returnComponentChild, the same shape the control flow components use, so both JSX andhtmlaccept them. With nofallback, a denied guard yieldsnullrather thanundefined, which renders as nothing in one path and as a word in the other.
@fluixi/babel-plugin-jsx
@fluixi/compiler
- The
./builtins,./transformand./analyzemodules 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 elementis false untilcustomElements.defineruns, 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
./utilsis 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 elementis false untilcustomElements.defineruns, 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.
ElementOfbuilds the DOM interface forHTMLElementTagNameMap, soquerySelectorreturns something with the element's properties on it;ElementAttributesbuilds the JSX tag's attributes from the same prop schema, with a handler per dispatched event;ForeignElementAttributesdoes the same for an element someone else wrote. JSX augmentation moves to an interface namedHTMLReactiveElement, and the previousFluixiElementskeeps working. The web-component vocabulary is available alongside the framework's own:customElement,property,attribute,event,target,refandslotbind todefineElement,prop,createDispatchandcreateTargets.
@fluixi/reactive
@fluixi/server
seo()now adds its tags to the head of its own request when rendered concurrently.
@fluixi/session
@fluixi/session/serverholds a session the browser cannot read:createSessionCookieseals 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/oauth2seal tokens, over the same piece.@fluixi/oauth2/servernow 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/$resourceintrinsics, navigate with<Link>rather than<a href>, and ship afluixi.d.tsso an editor knows the intrinsics before the app has been run. The fluixi-css stylesheet now carries@fluixi base/utilities/componentsand its own@theme, so nofluixi.css.config.jsis generated.resource()accepts the single-fetcher form again: it borrowed its parameters fromcreateResource, 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
protectedRoutenow accepts anavigatoroption, e.g.,protectedRoute(Admin, { role: 'admin', navigator: { handler: useNavigate } }), and redirects via the app router instead of assigningwindow.location.
@fluixi/babel-plugin-jsx
@fluixi/compiler
setnow writes to the path it names using the provided step(s) and value, the server-functionscannow 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
Routernow keeps the current page visible until the new route can render, and you can control this with the newtransitionprop onRouterand thetransitionoption onnavigateanduseLinkNavigation.
@fluixi/dom
@fluixi/jsx
@fluixi/reactive
setnow writes to the path it names using the provided step(s) and value, the server-functionscannow 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
setnow writes to the path it names using the provided step(s) and value, the server-functionscannow 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
setnow writes to the path it names using the provided step(s) and value, the server-functionscannow 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-parserand@fluixi/template-runtimeship 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-parserand@fluixi/template-runtimeship 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-parserand@fluixi/template-runtimeship unminified, which their build configs had always asked for. @fluixi/cli,@fluixi/devtools,@fluixi/head,@fluixi/router,@fluixi/server, and@fluixi/startnow provide bundled builds with import resolving to a.mjsfile and a require condition resolving to a.cjsfile, and@fluixi/coreand@fluixi/compilernow 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-parserand@fluixi/template-runtimeship unminified, which their build configs had always asked for. @fluixi/cli,@fluixi/devtools,@fluixi/head,@fluixi/router,@fluixi/server, and@fluixi/startnow provide bundled builds with import resolving to a.mjsfile and a require condition resolving to a.cjsfile, and@fluixi/coreand@fluixi/compilernow include the copyright banner in their subpath exports.isServernow 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-parserand@fluixi/template-runtimeship 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-parserand@fluixi/template-runtimeship 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,contextandchildOwnerare now available without the create prefix alongsidesignal,memoandeffect.- 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-parserand@fluixi/template-runtimeship unminified, which their build configs had always asked for.
@fluixi/server
@fluixi/cli,@fluixi/devtools,@fluixi/head,@fluixi/router,@fluixi/server, and@fluixi/startnow provide bundled builds with import resolving to a.mjsfile and a require condition resolving to a.cjsfile, and@fluixi/coreand@fluixi/compilernow 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-parserand@fluixi/template-runtimeship 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-parserand@fluixi/template-runtimeship 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-parserand@fluixi/template-runtimeship unminified, which their build configs had always asked for.
1.0.0-alpha.83
@fluixi/auth
@fluixi/babel-plugin-jsx
@fluixi/compiler
jsxtags and elements now record their source positions, which are emitted beside the template string.@fluixi/compiler/analyzenow 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.analyzenow 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,classandstyledirectives now report their name, their element and the position they were written at.
@fluixi/core
isServeris now a function, and server mode is stored on the realm instead of a module variable. Replace any usage of theisServervariable with a call toisServer().createContextnow 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
isServeris now a function, and server mode is stored on the realm instead of a module variable. Replace any usage of theisServervariable with a call toisServer().- A hole now retains its recorded position during hydration when substituted by a wrapper, and
templateNodenow 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,classandstyledirectives 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 aclass, 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
createContextnow 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, andbound. 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,classandstyledirectives 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
onMountanduseEffectnow only run on the client, avoiding errors from accessingdocumentduring server-side rendering. Suspense no longer attempts to readprocess.env.FX_DEBUGduring 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 usingfluixior@fluixi/core/router-next, update your imports accordingly.
@fluixi/babel-plugin-jsx
@fluixi/compiler
- The new
@fluixi/template-runtimepackage compileshtmlandsvgtemplates in the browser, with no build step, and@fluixi/compilernow includes a./compilesubpath that excludes node-specific dependencies. - The package name remains
@fluixi/core, and the router subpath is now@fluixi/core/router— if you previously tried usingfluixior@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/coreto 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 usingfluixior@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/coreto provide a way to create them.
@fluixi/jsx
@fluixi/reactive
- The package now falls back to checking
window.__FLUIXI_PROD__whenprocessis 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 usingfluixior@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
fluixiinstead of@fluixi/core, with the same contents and subpaths; all other@fluixi/*packages retain their names. Replace@fluixi/corewithfluixiinpackage.jsonand all import statements, and update subpaths like@fluixi/core/servertofluixi/server.
@fluixi/babel-plugin-jsx
@fluixi/compiler
- The package is now named
fluixiinstead of@fluixi/core, with the same contents and subpaths; all other@fluixi/*packages retain their names. Replace@fluixi/corewithfluixiinpackage.jsonand all import statements, and update subpaths like@fluixi/core/servertofluixi/server. - The router subpath is now
fluixi/router; it was previously@fluixi/core/router-next. - The
rxsubpath is removed and replaced with@fluixi/reactivefor signals and effects, andfluixi/serverfor server-side primitives.
@fluixi/core
- The package is now named
fluixiinstead of@fluixi/core, with the same contents and subpaths; all other@fluixi/*packages retain their names. Replace@fluixi/corewithfluixiinpackage.jsonand all import statements, and update subpaths like@fluixi/core/servertofluixi/server. - The router subpath is now
fluixi/router; it was previously@fluixi/core/router-next. - The
rxsubpath is removed and replaced with@fluixi/reactivefor signals and effects, andfluixi/serverfor server-side primitives.
@fluixi/dom
@fluixi/jsx
@fluixi/reactive
@fluixi/server
@fluixi/session
- The package is now named
fluixiinstead of@fluixi/core, with the same contents and subpaths; all other@fluixi/*packages retain their names. Replace@fluixi/corewithfluixiinpackage.jsonand all import statements, and update subpaths like@fluixi/core/servertofluixi/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 thedeferred()binding takes its place, so the chunk splits like any other. Only when the name is used exclusively as a tag. JSX element names areJSXIdentifier, so anyIdentifierreference 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 aload:on the same name are two instructions that cannot both hold, and the directive is the more specific one.- Turn
propsDestructureon by default. A component can take its props apart the plain way and the bindings stay live reads;...restbecomes thesplitPropscall 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 — anexportsentry 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
resolverule supplies compiles to a reference to a name that does not exist, so the component renders nothing. Commenting one line out of aresolvemap 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.
- A capitalised tag nothing imports and no
@fluixi/core
@fluixi/dom
- Remove export subpaths that pointed at modules that were never there.
@fluixi/dom/dom,@fluixi/reactive/helpersand@fluixi/utils/{array,object,primitive,dom,functions}/typesall failed to resolve, so nothing could have been importing them. Also fixes@fluixi/dom/control-flowinpublishConfig.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-flowexport, 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,styleMapand the array helpers.
@fluixi/jsx
@fluixi/reactive
- Remove export subpaths that pointed at modules that were never there.
@fluixi/dom/dom,@fluixi/reactive/helpersand@fluixi/utils/{array,object,primitive,dom,functions}/typesall failed to resolve, so nothing could have been importing them. Also fixes@fluixi/dom/control-flowinpublishConfig.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/helpersand@fluixi/utils/{array,object,primitive,dom,functions}/typesall failed to resolve, so nothing could have been importing them. Also fixes@fluixi/dom/control-flowinpublishConfig.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:Each use compiles tofunction Hello({ name, tone = 'calm' }) { return <p data-tone={tone}>{name}</p>; }props.name, so the binding keeps its type and nothing else about the function changes....restbecomes thesplitPropscall you would have written, which carries the remaining props across as getters. Aliases, defaults and nested patterns work; a default still applies only toundefined. 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,$effectand$storecompile to the runtime calls they stand for, with the import added for whatever a module actually used:They are the runtime API under another spelling, not a second one —const count = $signal(0); // → signal(0), plus the import$signalcompiles tosignal, 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, soimport { signal as state }is recognised and a localfunction signal()is not. A module that binds a$name itself keeps its own meaning, and that is reported rather than rewritten. On by default:$signalis a reference error otherwise, so there is nothing for it to break.intrinsics: falseturns 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 throughinnerHTML. 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: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,const onClick = useLinkNavigation(); <article onClick={onClick} innerHTML={doc.html} />;target,download,rel="external",mailto:/tel:, another origin and an in-page hash are left to the browser;shouldNavigateopts 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,memoandeffect— the same primitives ascreateSignal,createMemoandcreateEffect, handed back as one object rather than a tuple:const count = signal(0); count(); // read count.set(1); // writesignalis the accessorcreateSignalreturns, with the setter attached — so a read is the same call it always was,countstill passes anywhere an accessor is expected, and only the write changes spelling.memoiscreateMemounder a shorter name, since a derived value has nothing to set.storecomes along too, as the state itself withseton it:const user = store({ name: 'Ada' }); user.name; // reads, and tracks that key user.set({ name: 'Grace' });resourcecomes along the same way — the accessor withrefetch/mutateon it, beside theloading/error/latestit 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,createEffectandcreateStoreare 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
LinkandFormduplicating element children on hydration. Both forwarded author attributes withObject.entries(props), which reads every prop — includingchildren, 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 iterateObject.keysand 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 buildnow 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 todist/server. The handler looks the path up and emitsmodulepreloadandstylesheetlinks 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/pluginsexportsscanRoutes, 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.UpdateValueand the path overload accept the readonly form now, andImmutable<T>is defined in terms of the sameDeepReadonly<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, anddist/index.mjsproves it — but the package still listed five@babel/*packages underdependencies, so importing@fluixi/compilerfor 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/builtinsand nothing else, was paying that.@babel/core,@babel/generator,@babel/helper-plugin-utilsand@babel/preset-typescriptare now optional peer dependencies. The packages that always run a Babel compile —@fluixi/vite-plugin,@fluixi/startand@fluixi/babel-plugin-jsx— depend on them for real, so no app config changes and nothing new has to be installed.@babel/typeswas listed and never imported; it is gone.no-babel-in-core.spec.tslocks the invariant in by walking the import graph from each Babel-free entry point (.and./builtins), following relative imports transitively and catchingimport 'x',import … from 'x',import('x')andrequire('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.tscarried a full second lowering — thecodegen: 'inline'path, plus thebackend: '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 advertisedinlineas the default it had stopped being. Meanwhile the two implementations had to agree aboutref,use:, spreads, control flow and template cloning, and when they disagreed it shipped:codegen: 'ir'went out as alpha.71 and broke three@fluixi/uipackages. Removed: 39 of the 46 functions inplugin.ts:898-2555(~1,400 lines) and thebackend,codegen,runtime,pragma,pragmaFrag,hoistStatics,useLitHTML,optimizeControlFlow,autoShowTransform,detectReactivity,delegatedEventsandoptimizeoptions that only fed them. JSX andhtml``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/jsxruntime is not: it is still what TypeScript'sjsxImportSourceresolves types through and what esbuild's automatic runtime targets. This compiler simply never emits ajsx()call. Also removed from@fluixi/compiler/integrations: a regex-basedtransform()that every adapter silently fell back to when@babel/corefailed 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()andserverFunctionsVitePlugin()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. Thenativeoption is gone — that is simply what the plugin does. Babel is kept for the case that needs it, the way Next keeps one: ababel.config.jswhose 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 onexamples/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.transformAsyncunconditionally, which made babel required for anyone not using vite. All four now go through onecompileModule, 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 ats/tsxloader rather thanjs: 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, anddist/index.mjsproves it — but the package still listed five@babel/*packages underdependencies, so importing@fluixi/compilerfor 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/builtinsand nothing else, was paying that.@babel/core,@babel/generator,@babel/helper-plugin-utilsand@babel/preset-typescriptare now optional peer dependencies. The packages that always run a Babel compile —@fluixi/vite-plugin,@fluixi/startand@fluixi/babel-plugin-jsx— depend on them for real, so no app config changes and nothing new has to be installed.@babel/typeswas listed and never imported; it is gone.no-babel-in-core.spec.tslocks the invariant in by walking the import graph from each Babel-free entry point (.and./builtins), following relative imports transitively and catchingimport 'x',import … from 'x',import('x')andrequire('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.tscarried a full second lowering — thecodegen: 'inline'path, plus thebackend: '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 advertisedinlineas the default it had stopped being. Meanwhile the two implementations had to agree aboutref,use:, spreads, control flow and template cloning, and when they disagreed it shipped:codegen: 'ir'went out as alpha.71 and broke three@fluixi/uipackages. Removed: 39 of the 46 functions inplugin.ts:898-2555(~1,400 lines) and thebackend,codegen,runtime,pragma,pragmaFrag,hoistStatics,useLitHTML,optimizeControlFlow,autoShowTransform,detectReactivity,delegatedEventsandoptimizeoptions that only fed them. JSX andhtml``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/jsxruntime is not: it is still what TypeScript'sjsxImportSourceresolves types through and what esbuild's automatic runtime targets. This compiler simply never emits ajsx()call. Also removed from@fluixi/compiler/integrations: a regex-basedtransform()that every adapter silently fell back to when@babel/corefailed 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.transformServerFnsfinds 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 totransform/server-fn-id.tsand 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. Onexamples/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 intolower/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 asTemplateHole— source text, whether the expression is reactive, and the two structural facts the lowering branches on (a single-expression arrow foreach, an object literal forclass). 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: trueon the Vite plugin compiles without babel. The plugin gains parity with the front-end it replaces: delegated events are registered, components aresolverule supplies are imported, lazy ones becomedeferred(() => import(…))bindings with their strategy, and@fluixi/core/rxis rewritten to@fluixi/reactive. Names already bound in the file win, as before. Onexamples/start-appthe 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-typescriptis 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 everyhtml`...`andsvg`...`, 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.hasBindinggives on the Program path.@babel/parserbecomes 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/generatorand@babel/helper-plugin-utilsstay optional peers belonging to the plugin front-end, andno-babel-in-core.spec.tsfails 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 whilecountis not, and whetherprops.childrencounts as a value to track, is a Fluixi decision. It was written against@babel/typesinsidebuild-ir.ts, which meant the rule could only be read — and only be tested — through a parser. It now lives in@fluixi/compiler'sanalyze/reactive-expr.tsasisReactiveShape(shape)over a four-caseExprShape(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.ExprShapeis deliberately narrow and must not grow into a JavaScript AST: every syntax the rule does not branch on collapses tocompound(reactive when a part is) oropaque. 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-appcompiles 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.
buildJsxIRmoves tolower/jsx.tsand readsnode.typeinstead of a parser's helpers, asking the caller for an expression's source throughcode()— 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:shapeOfinanalyze/expr-shape.tsreads 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 againstpath.scope.hasBindingover 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.transformTemplateshandles 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 throughtransformTemplatesnow; the two that stay on babel do so deliberately, and say why:compile-costmeasures both,templates.specis the differential between them.formatcomes 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.
compilePiecesgainshoistTemplates, which leaves the_tmpl$Nreferences in place and hands the templates back for a caller with a module scope to declare them in — matching what the plugin emits.compileTemplatestill inlines, having nowhere to hoist to. Bundle size is unchanged either way (templateCacheis 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-adminandstorefront, the whole@fluixi-uicomponent 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-uiplayground 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'sdelegateEventscall. 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, andtable.tsxemitted nodelegateEventsat 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 toInputthat 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 theresolverules should have supplied was simply left unbound. At runtime that is a ReferenceError the moment the branch renders.@fluixi-ui's playground has it inFormDemo:Input,SelectandCheckboxare used only inside render props, and none of the three was imported. The fix replaces the ad-hoc event set threaded throughgenExprwith 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-uiplayground 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-appdid 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.
Awaitwas imported from@fluixi/dom, which does not export it, andPortalfrom core rather than dom. The lists live inresolve/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$Nprefix 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 throughtransformTemplatesviatest/fixtures.ts, which lives outsidesrcso 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/coreno longer installs the build toolchain. It listed@fluixi/compiler,@fluixi/vite-pluginandvite-plugin-node-polyfillsunderdependencieswhile importing none of them fromsrc/— they exist for the@fluixi/core/pluginssubpath, which is build-time tooling. Declaring them as runtime dependencies of the runtime package meant every consumer of@fluixi/coreinstalled Vite plugins and a Babel toolchain (52 MB in this workspace) to render a component. Component libraries built on@fluixi/corewere passing that on to their own users. They are now optional peer dependencies: use@fluixi/core/pluginsand you need them, otherwise you do not.@fluixi/startreaches that subpath throughawait 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-pluginas 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/routesvirtual:fluixi-routesneeded an ambientdeclare moduleto be typed, which the plugin wrote into yoursrc/asfluixi-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: plaintsc, an editor, a test runner.@fluixi/core/routesis 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-routesstill resolves, so this is not a breaking change, and the plugin no longer writesfluixi-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/transformnow.@babel/corestill appears in them, to turn ESM into CJS sonew Functioncan 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 underr1and everyone after them gotr0, while the client, which preloads routes before hydrating, always counted fromr0. 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.ResourceOptionsgainstransport?: boolean.falseopts 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. BothcreateResourceimplementations take the option — the live one ingraph/resource.tsand the legacy@fluixi/reactive/signal-legacy— so the two cannot disagree about what an id means. LinkPropsaccepts whatLinkforwards.Linkforwards every prop it does not handle itself onto the<a>— id, style, title,aria-*,data-*, event handlers — deliberately allow-by-default so a polymorphicas={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 insideJSON.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.serializeResourceDatanow skips values JSON cannot represent, and decides whether to emit on the serialized payload rather than on the map — so a nestedundefined, or a class whosetoJSONreturns 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 underr1and everyone after them gotr0, while the client, which preloads routes before hydrating, always counted fromr0. 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.ResourceOptionsgainstransport?: boolean.falseopts 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. BothcreateResourceimplementations take the option — the live one ingraph/resource.tsand 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 underr1and everyone after them gotr0, while the client, which preloads routes before hydrating, always counted fromr0. 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.ResourceOptionsgainstransport?: boolean.falseopts 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. BothcreateResourceimplementations take the option — the live one ingraph/resource.tsand 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()andserverFunctionsVitePlugin()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. Thenativeoption is gone — that is simply what the plugin does. Babel is kept for the case that needs it, the way Next keeps one: ababel.config.jswhose 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 onexamples/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, anddist/index.mjsproves it — but the package still listed five@babel/*packages underdependencies, so importing@fluixi/compilerfor 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/builtinsand nothing else, was paying that.@babel/core,@babel/generator,@babel/helper-plugin-utilsand@babel/preset-typescriptare now optional peer dependencies. The packages that always run a Babel compile —@fluixi/vite-plugin,@fluixi/startand@fluixi/babel-plugin-jsx— depend on them for real, so no app config changes and nothing new has to be installed.@babel/typeswas listed and never imported; it is gone.no-babel-in-core.spec.tslocks the invariant in by walking the import graph from each Babel-free entry point (.and./builtins), following relative imports transitively and catchingimport 'x',import … from 'x',import('x')andrequire('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.tscarried a full second lowering — thecodegen: 'inline'path, plus thebackend: '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 advertisedinlineas the default it had stopped being. Meanwhile the two implementations had to agree aboutref,use:, spreads, control flow and template cloning, and when they disagreed it shipped:codegen: 'ir'went out as alpha.71 and broke three@fluixi/uipackages. Removed: 39 of the 46 functions inplugin.ts:898-2555(~1,400 lines) and thebackend,codegen,runtime,pragma,pragmaFrag,hoistStatics,useLitHTML,optimizeControlFlow,autoShowTransform,detectReactivity,delegatedEventsandoptimizeoptions that only fed them. JSX andhtml``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/jsxruntime is not: it is still what TypeScript'sjsxImportSourceresolves types through and what esbuild's automatic runtime targets. This compiler simply never emits ajsx()call. Also removed from@fluixi/compiler/integrations: a regex-basedtransform()that every adapter silently fell back to when@babel/corefailed 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
codegenback toinline1.0.0-alpha.71madeirthe default. Running a real component library against it found two separate defects:refwas 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 withinline, 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
reconcileArraysclones 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:cloneTemplatehands back the clone still inside its fragment, so every template-cloned element arrived with a non-null parent and was cloned again.cloneNodecopies 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 tooktemplateClone(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,codegendefaults to'ir'again.
@fluixi/core
@fluixi/dom
- Keep template-cloned elements when a hole receives an array
reconcileArraysclones 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:cloneTemplatehands back the clone still inside its fragment, so every template-cloned element arrived with a non-null parent and was cloned again.cloneNodecopies 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 tooktemplateClone(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,codegendefaults 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
refon the IR codegen pathref={mergeRefs(a, b)}is a call expression, which the IR path read as a reactive value and wrapped:ref: () => mergeRefs(a, b). The runtime callsref(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 oncecodegen: 'ir'became the default in1.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 setcodegen: '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
resolvelets a capitalised tag skip its import, but TypeScript still reportedCannot find namefor every one of them — the import only exists after compilation. The answer was a hand-written.d.tsper 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 tosrc/fluixi.d.tson config resolve. Setglobalsto another path, orfalseto 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 tofluixi.d.tsat the project root, which needs"fluixi.d.ts"in the tsconfigincludealongside"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 nameduse:tooltip, which the runtime does not dispatch on — so the directive never ran, and nothing said so. It worked inhtml``and undercodegen: 'ir', which is what made it look like it the runtime reads.codegennow 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. Setcodegen: 'inline'to keep the old path.
@fluixi/core
- Stamp the version attributes on every render path, not just core's
fluixi/fx-dom/fx-reactivewere stamped by@fluixi/core'srender, which an SSR app never calls:startClienthydrates through the DOM runtime's ownrender, 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/corecannot 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-reactivewere stamped by@fluixi/core'srender, which an SSR app never calls:startClienthydrates through the DOM runtime's ownrender, 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/corecannot 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/builtinsexports the names the compiler supplies without an import, and the module each comes from: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,import { builtinComponentMap, RESERVED_COMPONENTS, } from '@fluixi/compiler/builtins';@fluixi/ts-pluginkept 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 configuredresolverule now wins overRouter,Outlet,RedirectandLink. Those are only an auto-import, so a project defining its ownLinkpreviously 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,IndexandMatchemit their value prop as a getter, soeach={items()}re-reads instead of snapshotting once.RESERVED_COMPONENTSlists 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
IRComponentgainssource—{ 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, });originseparatesrulefrombuiltinbecause 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.unresolvedlists 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.Six strategies:<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 approacheager,idle,visible,interaction,media,never. A deferred component compiles todeferred(() => 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 onlazy()— it adds only the scheduling, reusing Suspense integration and the synchronous-when-preloaded hydration path unchanged.load:joins the existinguse:/prop:/attr:/bool:namespace, so it cannot collide with a real prop. Both syntaxes share one parser:load:visibleis already a validJSXNamespacedName, and the html``parser gains aLoadDirectivenode, 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, andload:visible={margin}is an error rather than a silent fallback. Seeexamples/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: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
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) );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
<div><Show/></div>compiled to a reference to an undefinedShow. 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 toemitComponentCall, 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 Undercodegen: '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 thehtml\`path.load:was also read as an ordinary attribute there, so the directive The IR path also emittedimport { 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
<Card header><span slot="header">…</span></Card>emitted theheaderkey 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
spreadAn element with only compile-time-constant attributes emittedspread({ element, props: { className: "card" } }).spreadwalks every prop checking for reactivity, events, refs, class/style objects and namespaces — none of which a constant needs. It now emitsel.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 onspread, where the namespace handling lives.
@fluixi/core
- Stop re-exporting
@fluixi/utilsfrom the main entryexport * from '@fluixi/utils'incore.tsput 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/utilswas 56% of a minimal app's source bytes, and a counter was also shippingthe router. A barrel re-exporting another barrel is not shakeable in practice, and sideEffects: falseon core does not help — it would also be wrong, sinceindex.tscallsensureIntegration()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/utilsis 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.Six strategies:<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 approacheager,idle,visible,interaction,media,never. A deferred component compiles todeferred(() => 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 onlazy()— it adds only the scheduling, reusing Suspense integration and the synchronous-when-preloaded hydration path unchanged.load:joins the existinguse:/prop:/attr:/bool:namespace, so it cannot collide with a real prop. Both syntaxes share one parser:load:visibleis already a validJSXNamespacedName, and the html``parser gains aLoadDirectivenode, 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, andload:visible={margin}is an error rather than a silent fallback. Seeexamples/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.FluixiThe mount element now carries which build of each package is running:and the same is available in the console:<div id="app" fluixi="1.0.0-alpha.68" fx-dom="1.0.0-alpha.68" fx-reactive="1.0.0-alpha.68" ></div>It replaceswindow.Fluixi; // { core: '…', dom: '…', reactive: '…' }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/domand@fluixi/reactiveeach exportVERSION.
@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: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
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) );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.FluixiThe mount element now carries which build of each package is running:and the same is available in the console:<div id="app" fluixi="1.0.0-alpha.68" fx-dom="1.0.0-alpha.68" fx-reactive="1.0.0-alpha.68" ></div>It replaceswindow.Fluixi; // { core: '…', dom: '…', reactive: '…' }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/domand@fluixi/reactiveeach exportVERSION.
@fluixi/jsx
@fluixi/reactive
- Report the running package versions on the mount element and
window.FluixiThe mount element now carries which build of each package is running:and the same is available in the console:<div id="app" fluixi="1.0.0-alpha.68" fx-dom="1.0.0-alpha.68" fx-reactive="1.0.0-alpha.68" ></div>It replaceswindow.Fluixi; // { core: '…', dom: '…', reactive: '…' }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/domand@fluixi/reactiveeach exportVERSION.
@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.resolvemakes 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
resolverules, behaviour is exactly as before.createComponentResolveris 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 purename -> { 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,SwitchandDynamicrendered their branches in the enclosing owner, so anything a branch registered withonCleanup— 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.Foralready disposed removed items correctly and is unchanged.Matchnow holds itschildrenlazily, likewhen. Read eagerly, every branch's children were built the moment theMatchnode was — beforeSwitchhad chosen one — so they were created outside the branch's scope, and non-matching branches were built for nothing.@fluixi/reactiveexportscreateChildOwner/disposeScopefor 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,openandoptgroup/optiondisabledreactive These six were left as plainbooleanwhile 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. Coversdetails/dialogopen,fieldset/optgroup/optiondisabled, andoptionselected.keygenandlinkkeep their non-reactivedisabled: both are obsolete.
@fluixi/jsx
@fluixi/reactive
- Dispose a control-flow branch when it is left
Show,SwitchandDynamicrendered their branches in the enclosing owner, so anything a branch registered withonCleanup— 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.Foralready disposed removed items correctly and is unchanged.Matchnow holds itschildrenlazily, likewhen. Read eagerly, every branch's children were built the moment theMatchnode was — beforeSwitchhad chosen one — so they were created outside the branch's scope, and non-matching branches were built for nothing.@fluixi/reactiveexportscreateChildOwner/disposeScopefor 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/NoSsrRenders children only in the browser, for subtrees that readwindow, a canvas, or produce time/locale-dependent output that would differ between the server and client passes and corrupt hydration. The swap tochildrenis 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 andfallbacknever appears.
@fluixi/dom
- Add
ClientOnly/NoSsrRenders children only in the browser, for subtrees that readwindow, a canvas, or produce time/locale-dependent output that would differ between the server and client passes and corrupt hydration. The swap tochildrenis 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 andfallbacknever 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
ComponentChildbeingany, which disabled type checking at every component boundary The union ended in| any, and a union containinganyisany. Every component return, everychildren, and every render prop's parameter was silently untyped —<Pressable>{(state) => ...}</Pressable>gavestate: any.FxElement(JSX.Element) is now the same type rather than a parallel copy that had drifted, and an html``TemplateResultis assignable to a renderable value. Build-time assertions keep both from regressing. Also:createDynamicElementinfers what it builds —'div'→HTMLDivElement,'circle'→SVGCircleElement, a component → its own return type — instead ofany.
@fluixi/dom
- Fix
ComponentChildbeingany, which disabled type checking at every component boundary The union ended in| any, and a union containinganyisany. Every component return, everychildren, and every render prop's parameter was silently untyped —<Pressable>{(state) => ...}</Pressable>gavestate: any.FxElement(JSX.Element) is now the same type rather than a parallel copy that had drifted, and an html``TemplateResultis assignable to a renderable value. Build-time assertions keep both from regressing. Also:createDynamicElementinfers what it builds —'div'→HTMLDivElement,'circle'→SVGCircleElement, a component → its own return type — instead ofany.
@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
createDynamicElementfrom@fluixi/dom. Building an element or component from a type known only at runtime is what a polymorphicasprop 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 anas-polymorphic component shouldn't have to depend on@fluixi/jsx. It did — which made@fluixi/jsxa runtime dependency of every component library built onas, 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 wayspreadandapplyPropsdid. - Type the remaining attributes as
Reactive<>. Thirteen attributes — includingid,title,href,src,disabled,checkedandplaceholder— were written by hand asT | Accessor<T>while every other attribute usesReactive<T>. The difference is thatReactive<T>permitsundefined, which is how an attribute is omitted reactively:() => (cond ? value : undefined)removes it, becausesetAttributealready drops an attribute onundefined/null/false. So the most commonly bound attributes were the ones that couldn't be omitted without a cast — the same gapstylehad. Widening only accepts more, so nothing that compiled before stops compiling.SVGAttributeshad the same split inside one interface: its presentation attributes were alreadyReactive<>, but the coreid,className,style,langbeside them were not — so an SVG could animate itsfillwhile being unable to compute itsid.stylethere also had no accessor form at all.
@fluixi/head
@fluixi/jsx
- Export
createDynamicElementfrom@fluixi/dom. Building an element or component from a type known only at runtime is what a polymorphicasprop 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 anas-polymorphic component shouldn't have to depend on@fluixi/jsx. It did — which made@fluixi/jsxa runtime dependency of every component library built onas, 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 wayspreadandapplyPropsdid.
@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 reactiveclassa render effect.SuspenseListwas 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 — whileSuspenseandAwait, which sit beside it in core, worked. Surfaced by building the language-service map against these sets.setClassNamewrapped a function-valued class increateEffect, whereasspreadalready wraps class increateRenderEffectand every other attribute binding uses a render effect. A class forwarded throughapplyProps— 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-outconsole.logand a dead alternative implementation left in that function.
@fluixi/core
- Add
createDebouncedSignalandcreateDebouncedResource; stopcreateDebouncetouching 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);flushandcancelare 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.createDebouncedResourceis search-as-you-type as one primitive, and keeps the two waiting states apart:pendingis "still typing",resource.loadingis "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;shouldFetchoverrides that rule. Behaviour change:createDebounceinspected its last argument and, if it looked like aninput/textareaor 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
styleasReactive<>, like every other attribute. It wasstring | CSSProperties | Accessor<string | CSSProperties>, so an accessor could not returnundefined— makingstylethe one attribute that couldn't be omitted reactively.setStylealready removes it onnull/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 reactiveclassa render effect.SuspenseListwas 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 — whileSuspenseandAwait, which sit beside it in core, worked. Surfaced by building the language-service map against these sets.setClassNamewrapped a function-valued class increateEffect, whereasspreadalready wraps class increateRenderEffectand every other attribute binding uses a render effect. A class forwarded throughapplyProps— 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-outconsole.logand a dead alternative implementation left in that function.
@fluixi/head
@fluixi/jsx
@fluixi/reactive
- Add
createDebouncedSignalandcreateDebouncedResource; stopcreateDebouncetouching 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);flushandcancelare 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.createDebouncedResourceis search-as-you-type as one primitive, and keeps the two waiting states apart:pendingis "still typing",resource.loadingis "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;shouldFetchoverrides that rule. Behaviour change:createDebounceinspected its last argument and, if it looked like aninput/textareaor 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 annotatedComponent<T>but returnscontext.Provider({…})— the rendered output, not a component. So the documented wrapper pattern failed to type-check:Now returnsconst ThemeProvider = (p) => createProvider(ThemeCtx, 'dark', p); <ThemeProvider>…</ThemeProvider>; // TS2786: not a valid JSX elementComponentChild, the framework's renderable type from@fluixi/dom, which keeps core free of any JSX-authoring dependency —htmltemplates 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 andSVGAttributesdescribe the DOM, not JSX syntax, but they only existed inside@fluixi/jsx'sJSXnamespace. The framework supports both JSX and htmlauthoring, 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/jsxre-exports every one of them into theJSXnamespace, soJSX.HTMLAttributes<T>and friends keep working unchanged.JSX.ElementandJSX.IntrinsicElementsstay in@fluixi/jsx— those are the JSX contract. - Accept a reactive
styleinapplyProps.spreadwrapped a function-valuedstylein a render effect, butapplyPropscalledsetStylewith it directly, so the accessor was stringified once and never updated.classandclassListon the same path already unwrapped an accessor, which is why this went unnoticed.applyPropsis the path taken whenever a component forwards a computed value through a props object rather than as a compiled JSX attribute — every polymorphic/aswrapper 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 andSVGAttributesdescribe the DOM, not JSX syntax, but they only existed inside@fluixi/jsx'sJSXnamespace. The framework supports both JSX and htmlauthoring, 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/jsxre-exports every one of them into theJSXnamespace, soJSX.HTMLAttributes<T>and friends keep working unchanged.JSX.ElementandJSX.IntrinsicElementsstay in@fluixi/jsx— those are the JSX contract. - Make
JSX.CSSPropertiescatch 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 ofCSSStyleDeclarationrather than excludinglengthandparentRuleby name, which additionally drops its methods and numeric index (getPropertyValuewas 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
isReactiveArrayoninsert()soaccessorcould 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.
spreadandapplyPropsread 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 wrotevalue={() => sig()...}to make the value itself a function). Both paths now re-readprops[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 thevalue/checked/selectspecial 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. themeColornow accepts a list of{ color, media }objects for light and dark browser bar colours, andcolorSchemenow accepts an accessor.
@fluixi/jsx
- Make intrinsic
refbivariant, and widen SVG attributes to reactive.- ref: the intrinsic
refnow uses a bivariant callback plus a base-element (HTMLElement/SVGElement) object form. This lets a component whose props extendHTMLAttributes<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 specificul/p/h1–h6/pre/dltypings 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 toReactive<>so SVG geometry can bind reactive accessors, matchingHTMLAttributes/AriaAttributes. (Supersedes the earlierjsx-specific-list-text-refschangeset — the specificity stays, the ref variance is what's fixed.)
- ref: the intrinsic
@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,preanddlintrinsics with their specific DOM element (HTMLUListElement,HTMLParagraphElement,HTMLHeadingElement,HTMLPreElement,HTMLDListElement) instead of the genericHTMLElement, matchingdiv/li/oland React. Previously a component whose props extendedHTMLAttributes<HTMLUListElement>couldn't spread{...others}onto its own<ul>(the props'ref: Ref<HTMLUListElement>wasn't assignable to the generic intrinsic'sref: 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
Linknow forwards arbitrary author attributes onto its<a>. PreviouslyLinkonly appliedhref,slot,class/classNameand theactive/activeClasspair — every other prop (id,style,title,role,data-*,aria-*, …) was silently dropped. That broke any component composed viaas={Link}(polymorphic): e.g.@fluixi-ui's<SidenavLink as={Link}>lost itsdata-sidenav-linkstyling hook and inline styles, so it rendered unstyled with no hover.Linknow forwards the rest onto the<a>(matching howFormalready 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
onMountruns (e.g. a<Portal>inside a<Show>that closes in the same tick). The queued mount callback ran against the already-disposed owner: itsonCleanupre-created the owner's nulled cleanups array on a scope that never tears down again, so document listeners attached inonMountstayed live forever. Owners now carry adisposedflag (set by final teardown, not by an effect's between-run cleanup). The lifecycle flush skips a disposed owner (matching Solid: an unmounted component'sonMountdoesn't run), andonCleanupon 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
onMountruns (e.g. a<Portal>inside a<Show>that closes in the same tick). The queued mount callback ran against the already-disposed owner: itsonCleanupre-created the owner's nulled cleanups array on a scope that never tears down again, so document listeners attached inonMountstayed live forever. Owners now carry adisposedflag (set by final teardown, not by an effect's between-run cleanup). The lifecycle flush skips a disposed owner (matching Solid: an unmounted component'sonMountdoesn't run), andonCleanupon 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
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies.
@fluixi/babel-plugin-jsx
- Drop the unused
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies.
@fluixi/compiler
- html`` templates: full feature support, and @fluixi/lit folded into @fluixi/dom.
fluixi()now compiles both JSX and html``by default (noformatoption).- Directives: if/else, each/key, bind:, class:, style: (+ class/style object syntax), ref, use/use:, html= raw, boolean/property bindings.
- Events: native
on:clickplus modifiers (.capture/.once/.passive/.prevent/ .stop/.self);@click/onClickstay delegated. - Components: dynamic
<${Comp}/>, named slots (slot="name"→props.name),<component is=${C}>(→ Dynamic), and a newAwaitcomponent. html/svgmarkers and their types now live in @fluixi/dom and are re-exported from @fluixi/core; the separate@fluixi/litpackage is removed.
- JSX now supports the Solid-style directives
use:andoncapture:, closing the gap with the html`` template surface.use:name/use:name={opts}→ normalized to a singleuseprop ([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:eventhandlers pass through to the native-listener dispatch and are no longer wired reactively (aprops.onXhandler 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 (returningundefined) 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
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies. - Compile lit
html`...`templates through the shared JSX IR. A newformat: 'jsx' | 'lit' | 'both'option (default'jsx', unchanged) routeshtml/svgtagged 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 insidehtml), mixed static+hole attribute values, HTML comments, raw-text elements, and nestedhtmlcomposition (${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 deadlitrxruntime 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 (noformatoption).- Directives: if/else, each/key, bind:, class:, style: (+ class/style object syntax), ref, use/use:, html= raw, boolean/property bindings.
- Events: native
on:clickplus modifiers (.capture/.once/.passive/.prevent/ .stop/.self);@click/onClickstay delegated. - Components: dynamic
<${Comp}/>, named slots (slot="name"→props.name),<component is=${C}>(→ Dynamic), and a newAwaitcomponent. html/svgmarkers and their types now live in @fluixi/dom and are re-exported from @fluixi/core; the separate@fluixi/litpackage is removed.
- Remove the lit-html runtime bridge from the framework — no
litdependency remains anywhere.@fluixi/coreno longer lazilyimport('lit')to register a lit renderer on the client (this was also the "Lit is in dev mode" console warning);@fluixi/domdropsregisterLitRender/renderLitToNodesand the_$litType$/_$litDirective$insert-path branches;@fluixi/domand@fluixi/jsxdrop their remaining lit type imports (TemplateResult/SVGTemplateResult/DirectiveResult, which were redundant in the render-type unions). Authoring withhtml`` templates now goes through the compiled path (@fluixi/lit+ the compiler'sformat: 'lit'), not a runtime renderer.
@fluixi/dom
- Forced binding directives
prop:,attr:andbool:(Solid parity), on both JSX and html`` surfaces.prop:namealways assigns the DOM property (element[name] = value), bypassing the property-vs-attribute heuristic.attr:namealways sets the attribute viasetAttribute.bool:nametoggles 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 runtimespread/applyPropsdispatch, 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 (noformatoption).- Directives: if/else, each/key, bind:, class:, style: (+ class/style object syntax), ref, use/use:, html= raw, boolean/property bindings.
- Events: native
on:clickplus modifiers (.capture/.once/.passive/.prevent/ .stop/.self);@click/onClickstay delegated. - Components: dynamic
<${Comp}/>, named slots (slot="name"→props.name),<component is=${C}>(→ Dynamic), and a newAwaitcomponent. html/svgmarkers and their types now live in @fluixi/dom and are re-exported from @fluixi/core; the separate@fluixi/litpackage is removed.
- Remove the lit-html runtime bridge from the framework — no
litdependency remains anywhere.@fluixi/coreno longer lazilyimport('lit')to register a lit renderer on the client (this was also the "Lit is in dev mode" console warning);@fluixi/domdropsregisterLitRender/renderLitToNodesand the_$litType$/_$litDirective$insert-path branches;@fluixi/domand@fluixi/jsxdrop their remaining lit type imports (TemplateResult/SVGTemplateResult/DirectiveResult, which were redundant in the render-type unions). Authoring withhtml`` templates now goes through the compiled path (@fluixi/lit+ the compiler'sformat: 'lit'), not a runtime renderer. - Drop the unused
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies. - 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 newanchorflag oncreateTextNodeso 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:andbool:(Solid parity), on both JSX and html`` surfaces.prop:namealways assigns the DOM property (element[name] = value), bypassing the property-vs-attribute heuristic.attr:namealways sets the attribute viasetAttribute.bool:nametoggles 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 runtimespread/applyPropsdispatch, so JSX (namespaced attribute) and html``(plain-attribute fallback)
- JSX now supports the Solid-style directives
use:andoncapture:, closing the gap with the html`` template surface.use:name/use:name={opts}→ normalized to a singleuseprop ([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:eventhandlers pass through to the native-listener dispatch and are no longer wired reactively (aprops.onXhandler 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 (returningundefined) instead of an object — the accessor body is now parenthesized.
- Remove the lit-html runtime bridge from the framework — no
litdependency remains anywhere.@fluixi/coreno longer lazilyimport('lit')to register a lit renderer on the client (this was also the "Lit is in dev mode" console warning);@fluixi/domdropsregisterLitRender/renderLitToNodesand the_$litType$/_$litDirective$insert-path branches;@fluixi/domand@fluixi/jsxdrop their remaining lit type imports (TemplateResult/SVGTemplateResult/DirectiveResult, which were redundant in the render-type unions). Authoring withhtml`` templates now goes through the compiled path (@fluixi/lit+ the compiler'sformat: 'lit'), not a runtime renderer. - Drop the unused
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies. - Add
JSX.CSSProperties— a typed style-object: known camelCase CSS properties (autocompleted from the DOMCSSStyleDeclaration), custom--*properties, plus a string fallback, with string-or-number values.styleis retypedstring | CSSProperties | Accessor<string | CSSProperties>.
@fluixi/reactive
- Drop the unused
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies.
@fluixi/server
@fluixi/session
- Drop the unused
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies.
@fluixi/utils
- Drop the unused
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies.
@fluixi/vite-plugin
- Drop the unused
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies.
1.0.0-alpha.55
@fluixi/auth
@fluixi/babel-plugin-jsx
- Add a
descriptionfield 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
.npmrcinstall 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
.npmrcinstall 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
descriptionfield 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
.npmrcinstall 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
descriptionfield 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
.npmrcinstall instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.
@fluixi/reactive
- Add a
descriptionfield 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
.npmrcinstall instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.
@fluixi/server
- Add a
descriptionfield 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
.npmrcinstall 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
descriptionfield 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
.npmrcinstall 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
.npmrcinstall 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
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/babel-plugin-jsx
- Add the
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/compiler
- Add the
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/core
- Add the
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/dom
- Add the
licensefield (MIT) and bundle aLICENSEfile 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
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/reactive
- Add the
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/server
- Add the
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/session
- Add the
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/utils
- Add the
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
@fluixi/vite-plugin
- Add the
licensefield (MIT) and bundle aLICENSEfile 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
i18nt()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 —
createStoredrops 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/signalentry: the unused operator modules move to@fluixi/reactive/operatorsand@fluixi/reactive/cached-resourcesubpaths, so/signalfalls 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 asimport { renderToString } from '@fluixi/dom') and lives on the@fluixi/dom/serversubpath. Added asideEffectsfield so bundlers can drop what a client app doesn't use. Also removed dead code: the unusedReactiveDOMexport/module and the unusedautoInitializeexport.
@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 asimport { renderToString } from '@fluixi/dom') and lives on the@fluixi/dom/serversubpath. Added asideEffectsfield so bundlers can drop what a client app doesn't use. Also removed dead code: the unusedReactiveDOMexport/module and the unusedautoInitializeexport.
@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 throughinsert()(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 skipsinsert()'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/startnow provide bundled builds with import resolving to a.mjsfile and a require condition resolving to a.cjsfile, and@fluixi/coreand@fluixi/compilernow 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/headcarries 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 viainjectAppAndHead. The prod adapter and prerender did this, but the dev server used plaininjectApp, 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 usesinjectAppAndHead, so the marker is lifted into<head>/<html>exactly like prod. As a safety net for streaming/custom servers,stripHeadMarkerdrops any stray leadingfh: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
PortalPropsand handle the ref onPortalcreateRootmethod. So consumer components could bind ref to have the nativePortalwrapper. 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 insidemergeProps(...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() => exprthunks thatspreadconsumes, so wrapping them added a redundantget 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 tocreateMemo(() => 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() }, likechildren), 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 tocreateMemo(() => 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() }, likechildren), 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 (likechildren), and the runtime reads them through a sharedresolveReactiveProphelper 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.componentandPortal.mountare intentionally left as-is (a component is indistinguishable from an accessor;mountis 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 (likechildren), and the runtime reads them through a sharedresolveReactiveProphelper 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.componentandPortal.mountare intentionally left as-is (a component is indistinguishable from an accessor;mountis 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
Showtypes 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
Showtypes 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
Showtypes 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
Showtypes 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
Showtypes 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
Showtypes 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
Showtypes 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
Showtypes 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
Showtypes 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
Showtypes 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
Showtypes 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 returnsundefined(T | undefined | Accessor<T | undefined>), so a conditionally-omitted attribute likearia-disabled={() => (disabled() ? 'true' : undefined)}type-checks without a cast — setAttribute already removes the attr on undefined/null/false. Also typed the native form attributesrequired,readonly/readOnly,min,max,step,maxlength/maxLength,minlength/minLength,multiple,size,patternasReactive<>on input/textarea/select, matchingdisabled.
@fluixi/reactive
- Isolate each context Provider in its own owner scope.
Ctx.Providerstamped 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
onXevent handlers. Handlers for non-bubbling events (focus,blur,pointerenter,pointerleave,mouseenter,mouseleave,load,error, …) were stored but never attached, so they silently dropped.addDelegatedEventListenernow 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/tabIndextoT | Accessor<T>so a reactive() => …type-checks without a cast (asclass/stylealready 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 orPortalwrapper worked because the wrapper's owninsertgave the child its own effect.flattenArraynow defers a reactive array member to a per-slot marker and wires a fine-grainedinsert()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
setAttributenow removes the attribute fornull/undefined/falseinstead of rendering="undefined". Anundefined/nullvalue fell through toelement.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 throughsetDynamicAttribute→setAttribute, this hit any conditional attribute. Now, matching Solid's dom-expressions semantics:null/undefined/falseremove the attribute,truesets it to the empty string, objects serialize to JSON, and everything else stringifies.
@fluixi/head
@fluixi/jsx
- Allow reactive accessors on
aria-*androleJSX attributes.class,id,href,style, etc. already acceptT | Accessor<T>, but ARIA attributes were typed as plain values, forcing a cast to bind a reactive one. Everyaria-*attribute androlenow acceptsT | Accessor<T>(via aReactive<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'sundefinedno longer clobbers an earlier defined value — it falls through to it (Solid's contract). PreviouslymergeProps(defaults, props)lostdefaultswheneverprops.xwasundefined, and since the compiler emitsmergeProps(...spreads, baseProps)for JSX spreads,<div {...a} {...b} />withb.x === undefinedwipeda.x. It's now a lazy Proxy (likesplitProps): 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; // 2Componenttyping (dom):Component<P>is now a proper function type —(props: P) => …— so you can annotate it and havepropsactually typed:Previouslyconst Greeting: Component<{ name: string }> = (props) => ( <h1>{props.name}</h1> );Component<P>wasComponentFn<P> | ComponentChild(which includesany), erasing all prop checking. Fluixi-branded helper types:FxComponent/FxC(aliases ofComponent),FxParent/FxParentProps(optional children),FxVoid/FxVoidProps(no children),FxFlow/FxFlowProps(required children), andComponentOrElementfor the loose "function-or-rendered-node" shape some internals pass around.@fluixi/corere-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/domfor them.@fluixi/cli:fluixi generate component <Name>now scaffolds a typed component — a<Name>Propstype and aComponent<<Name>Props>annotation (was an untypedexport 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. PassnotFound(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.A catch-all file route (<Router routes={routes} notFound={NotFound} />[...slug].tsx→*) still takes precedence — use that when the 404 should render inside your layout;notFoundis 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'sundefinedno longer clobbers an earlier defined value — it falls through to it (Solid's contract). PreviouslymergeProps(defaults, props)lostdefaultswheneverprops.xwasundefined, and since the compiler emitsmergeProps(...spreads, baseProps)for JSX spreads,<div {...a} {...b} />withb.x === undefinedwipeda.x. It's now a lazy Proxy (likesplitProps): 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; // 2Componenttyping (dom):Component<P>is now a proper function type —(props: P) => …— so you can annotate it and havepropsactually typed:Previouslyconst Greeting: Component<{ name: string }> = (props) => ( <h1>{props.name}</h1> );Component<P>wasComponentFn<P> | ComponentChild(which includesany), erasing all prop checking. Fluixi-branded helper types:FxComponent/FxC(aliases ofComponent),FxParent/FxParentProps(optional children),FxVoid/FxVoidProps(no children),FxFlow/FxFlowProps(required children), andComponentOrElementfor the loose "function-or-rendered-node" shape some internals pass around.@fluixi/corere-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/domfor them.@fluixi/cli:fluixi generate component <Name>now scaffolds a typed component — a<Name>Propstype and aComponent<<Name>Props>annotation (was an untypedexport 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).
spreaddecided property-vs-attribute from the compile-timeisSVGflag, but the codegen only flags some SVG elements (<svg>,<defs>) and misses nested ones (<linearGradient>,<stop>). For a real SVG node a key likex1ISin element(a read-onlySVGAnimatedLength), so it took the property branch and threwCannot 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 whosedata-*bindings never wired up).spreadnow detects SVG by the element's realnamespaceURI, so SVG attributes always go throughsetAttribute. 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. startClienttakes aroutesoption and awaitspreloadRoutesbefore hydrating. Passingroutesalso 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 smallseo()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/startapp 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/domaddsrunWithoutHydration, and Suspense instantiates its fallback off the hydration cursor.startClientauto-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.
- Inline-JSX component props compile to lazy getters (like
@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/startapp 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/domaddsrunWithoutHydration, and Suspense instantiates its fallback off the hydration cursor.startClientauto-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.
- Inline-JSX component props compile to lazy getters (like
@fluixi/dom
- fix: support a static (non-function)
innerHTMLprop. The client handler always called the value as an accessor (val()), so a plain string likeinnerHTML="<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/jsxtypesinnerHTMLasstring | (() => string)to match. - Fix whole-app hydration duplicating the tree (rendering it 2–3×) for nested Router/Suspense/Outlet apps — the shape every
@fluixi/startapp 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/domaddsrunWithoutHydration, and Suspense instantiates its fallback off the hydration cursor.startClientauto-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.
- Inline-JSX component props compile to lazy getters (like
@fluixi/head
@fluixi/jsx
- fix: support a static (non-function)
innerHTMLprop. The client handler always called the value as an accessor (val()), so a plain string likeinnerHTML="<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/jsxtypesinnerHTMLasstring | (() => 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 — breakingfluixi buildfor every SSR app. It now usesprocess.getBuiltinModule('node:async_hooks')(Node 20.16+/22+) for synchronous, import-free, build-safe access (still preferring a globalAsyncLocalStorageon 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/serverno longer statically importsnode:async_hooks(which made the module fail to load on edge runtimes). It now acquiresAsyncLocalStorageat runtime: prefer a global one (Cloudflare Workers withnodejs_compat, Deno, Bun all expose it), else dynamically importnode: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 anAsyncLocalStorageis 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-srcthat 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.parseround-trips the escapes back. The client reads it through a singlegetServerData()helper (prefers a pre-setglobalThis.__FX_DATA__for back-compat, else parses the JSON block) — used by hydration, i18n locale seeding, and isomorphic state. Confidentiality is still handled bysetDataRedactor(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).
- CSP-friendly — it works under a strict
@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-srcthat 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.parseround-trips the escapes back. The client reads it through a singlegetServerData()helper (prefers a pre-setglobalThis.__FX_DATA__for back-compat, else parses the JSON block) — used by hydration, i18n locale seeding, and isomorphic state. Confidentiality is still handled bysetDataRedactor(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).
- CSP-friendly — it works under a strict
@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-srcthat 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.parseround-trips the escapes back. The client reads it through a singlegetServerData()helper (prefers a pre-setglobalThis.__FX_DATA__for back-compat, else parses the JSON block) — used by hydration, i18n locale seeding, and isomorphic state. Confidentiality is still handled bysetDataRedactor(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).
- CSP-friendly — it works under a strict
@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, NOTuseContext, 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 viaIntl.NumberFormat/Intl.DateTimeFormat. Nested and flat dotted keys,{param}interpolation, fallback-locale, and adetectLocale(acceptLanguage, locales)helper.@fluixi/start— translation auto-discovery + config.fluixi.config'si18noption (defaultsrc/i18n, orfalseto disable, or{ dir, defaultLocale, locales }) makes the build scan<dir>/<locale>.jsonand expose them asvirtual:fluixi-i18n({ messages, locales, defaultLocale }) — feed it tocreateI18nin one line. The virtual modules' TypeScript declarations (virtual:fluixi-i18nANDvirtual:fluixi-server-fns) are now auto-generated intosrc/fluixi-start-env.d.ts(like the routes plugin'sfluixi-env.d.ts), so apps never hand-write adeclare moduleblock.
- 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
- i18n: typed translation keys.
t('…')now autocompletes the valid keys from yourmessagesand the editor flags typos — derived with aMessageKey<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]).createI18ninfers the message shape (aconsttype parameter), so no annotation oras constis needed. Backward compatible —tstill accepts anystringfor 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|startnow load.envfiles intoprocess.envfor server code (loaders,"use server"functions). Security model is Vite-aligned: onlyVITE_-prefixed vars reach the client (import.meta.env, inlined into the browser bundle); everything else is server-only viaprocess.envand 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-fnsnow re-exports the dispatcher (isServerFnRequest/handleServerFn), andfluixi devroutes/_serverthrough it directly. So a"use server"function just works — no need to manuallyexport { isServerFnRequest, handleServerFn }fromentry-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 builtentry-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/sessioncreateSession:access— role → permission map OR a resolver(user) => permissions(derive straight from user fields, no matrix). Addsroles(),permissions(),can(query). Generic over your permission shape; multi-role merge supported. Pluggablematchmatcher socan()takes a predicate by default, or a declarative query (can('products:edit'), an object, a CASL ability, or a user-field check) —matchreceives the permission set, the query, and the user.unauthorized— react to a server 401 (expired session).createFetchGuardwraps a fetch you pass to your SDK (no global mutation);installGlobalFetchGuardis 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/clientcreateAuthHooks:usePermissions(),useCan(), and<Can perform>/<Protect>components, driven by the session's access config.protectedRoutenow gates onroles[]and apermissionpredicate, not just a singlerolestring. 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/sessioncreateSession:access— role → permission map OR a resolver(user) => permissions(derive straight from user fields, no matrix). Addsroles(),permissions(),can(query). Generic over your permission shape; multi-role merge supported. Pluggablematchmatcher socan()takes a predicate by default, or a declarative query (can('products:edit'), an object, a CASL ability, or a user-field check) —matchreceives the permission set, the query, and the user.unauthorized— react to a server 401 (expired session).createFetchGuardwraps a fetch you pass to your SDK (no global mutation);installGlobalFetchGuardis 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/clientcreateAuthHooks:usePermissions(),useCan(), and<Can perform>/<Protect>components, driven by the session's access config.protectedRoutenow gates onroles[]and apermissionpredicate, not just a singlerolestring. 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 acreateEffectto mirror their store into the auth hooks (useUser/protectedRoute/useSignInderive fromsession.user/login/logout).- Cookie API (from
@fluixi/auth/server) —parseCookies,serializeCookie(secure-by-default: HttpOnly, Secure, SameSite=Lax, Path=/),deleteCookie, and request-scopedgetCookie/getCookies. fluixi generate auth— scaffoldsauth.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/authpackage — 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 intolocals.authvia the request-locals bridge),mountAuthRoutes(), and request-context helpersrequireUser/optionalUser/requireRole/requirePermission(no token parsing; work in loaders and server functions)./client—createAuthHooks(client)→useUser/useSession/useAuth/useSignIn/useSignOutandprotectedRoute(authed /guestOnly/role). The session is acreateIsomorphicStore: server-resolved fromlocals.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
localsseam + the middleware→render bridge.RequestEventnow carries alocalsbag (initialized bycreateRequestContext), with an augmentableRequestLocalsinterface and agetLocals()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, sogetRequestLocals(request)exposes a per-request locals bag (aWeakMap, request-keyed → concurrency-isolated, GC-friendly). Middleware writesgetRequestLocals(request).x = …;createRequestContextadopts that same bag when the app forwardsrequeston the render event (renderRequestAsync(App, { url, request })).@fluixi/startre-exportsgetRequestLocals/getLocalsand now passesrequestto 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/servertoo.
@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/sessionpackage (createSession).createTheme— the theme workflow as a primitive so apps stop rewriting it: detect (stored value orprefers-color-scheme) → persist → apply adata-*attribute →toggle()across an arbitrary theme list. Optional asyncloadper theme drivesisLoading(), withonChange/onLoading/onLoadedhooks, andheadScript()returns an inline<head>script that sets the attribute before first paint (no theme flash on SSR). Built on the universalstorage/env, so it's SSR-safe.@fluixi/session—createSession— the client-side session lifecycle. You provide a small backend adapter (login,fetchUser, optionallogout/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/authpackage.)
@fluixi/dom
@fluixi/head
@fluixi/jsx
@fluixi/reactive
@fluixi/server
@fluixi/session
- Add
createTheme(@fluixi/core) and the new@fluixi/sessionpackage (createSession).createTheme— the theme workflow as a primitive so apps stop rewriting it: detect (stored value orprefers-color-scheme) → persist → apply adata-*attribute →toggle()across an arbitrary theme list. Optional asyncloadper theme drivesisLoading(), withonChange/onLoading/onLoadedhooks, andheadScript()returns an inline<head>script that sets the attribute before first paint (no theme flash on SSR). Built on the universalstorage/env, so it's SSR-safe.@fluixi/session—createSession— the client-side session lifecycle. You provide a small backend adapter (login,fetchUser, optionallogout/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/authpackage.)
@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 ofcreateIsomorphicState, 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 asyncclientresolver 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
persistlocalStorage mirror on every write. Server-resolve / serialize / client-seed flow through the existingcreateIsomorphicStatemachinery, so@fluixi/serverneeds no changes. Universal env utilities — so app modules stop touching raw globals that don't exist under SSR: storage— thelocalStorageAPI; reallocalStorageon the client, an ephemeral in-memory store on the server (no moreglobalThis.localStorage = …shims, no module-eval crash when a store readsstorage.getItem(...)at import time).isServer/isClientflags,createMemoryStorage().env.window/env.document— lazy, typed accessors returning the real global on the client andundefinedon the server (guard with?.; deliberately not faked, to avoid hydration mismatches).clientOnly(fn, fallback?)— run only on the client.
- per-field reactive accessors (
@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.
preloadServerStatenow catches a throwing isomorphicserverresolver (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/renderToBodyStreamno longercontroller.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,startClientdoes 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
createIsomorphicStatefrom the public barrel. It was added tolib/index.ts, but the package entry re-exportslib/core.ts, soalpha.20shipped the implementation without exposing it on@fluixi/core. Re-exported fromlib/core.tsso 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).Wiring:// 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@fluixi/dom'srenderToStringAsyncgains apreloadoption that runs inside the request context before the render.@fluixi/server'srenderRequestAsyncpassespreloadServerState, which walks the registered states, runs eachserver(event)resolver, sets the signal, and stashes the value into the request data (it ships inwindow.__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).Wiring:// 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@fluixi/dom'srenderToStringAsyncgains apreloadoption that runs inside the request context before the render.@fluixi/server'srenderRequestAsyncpassespreloadServerState, which walks the registered states, runs eachserver(event)resolver, sets the signal, and stashes the value into the request data (it ships inwindow.__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):
createResourcelost its return type. The compatcreateResourcehad only the permissive(source: unknown, fetcherFn?: unknown)implementation signature, so every call site inferredResourceReturn<{}>and the accessor came back as{}. Restored the two typed overloads (createResource<T>(fetcher)andcreateResource<T, S>(source, fetcher)) soTis inferred from the fetcher's return, as before.createContext().Providerreturnedunknown. A component whose body isreturn Ctx.Provider(…)(e.g.<Router>) was therefore typedunknown, which isn't a valid JSX element →TS2786: 'X' cannot be used as a JSX component. Changed the Provider return type toany(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).Wiring:// 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@fluixi/dom'srenderToStringAsyncgains apreloadoption that runs inside the request context before the render.@fluixi/server'srenderRequestAsyncpassespreloadServerState, which walks the registered states, runs eachserver(event)resolver, sets the signal, and stashes the value into the request data (it ships inwindow.__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
$SIGNALoncreateMemoaccessors. The compatcreateMemoonly marked its accessor with$MEMO, not$SIGNAL, soisSignal(memo)returnedfalse(the legacycreateMemostamped both). The DOM runtime'sinsert()relies onisSignalto 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/compilerimperative-fixtures failures. - Fix resource reactivity/detection on the TC39 signal core: stamp
$RESOURCEand$SIGNALoncreateResourceaccessors. The compatcreateResourcestamped neither marker, soisResource()andisSignal()both returnedfalse(the legacycreateResourcestamps both). The DOM runtime/control-flow use these:isResourcegatesShowon a resource's.loading, andisSignalletsinsert()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 thecreateMemo$SIGNALfix; 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/domintegration bridge to framework glue only. Reactive signal primitives are no longer wrapped by the integration bridge — they are imported straight from@fluixi/reactive/signaland unified across separately bundled packages via the graph'sglobalThissingleton.dom/integration.tsnow carries only the non-core glue (createComponent+ bridge/store plumbing).@fluixi/domre-exports the reactive primitives from the core, so existingimport { … } 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/domintegration bridge to framework glue only. Reactive signal primitives are no longer wrapped by the integration bridge — they are imported straight from@fluixi/reactive/signaland unified across separately bundled packages via the graph'sglobalThissingleton.dom/integration.tsnow carries only the non-core glue (createComponent+ bridge/store plumbing).@fluixi/domre-exports the reactive primitives from the core, so existingimport { … } 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. Adoptsignal-nextto run on the new core; when a nativeglobalThis.Signal` ships, L0 becomes a thin polyfill swap under the same surface.
- L0 graph core (
@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
oauthRoutesanswers POST<basePath>/backchannel-logout, the URL to register as the client'sbackchannel_logout_uri, allowing a valid logout token to end the matching session insessionLocals,/meand/refresh, with logouts kept in memory by default and shared between instances by passing aLogoutStoreaslogouts.- requestAuth() now reports
unreachable: truewhen a session exists but the provider cannot be reached, and the login route now redirects back to the app with?auth_error=provider_unreachablewhen 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.tokenAuthMethodnow accepts RFC names as values, allowing presets orauthFromEnvclients to spread into a browser config without a type error.navigatenow accepts the routeruseNavigatewithout a type error.
@fluixi/testing
1.0.0-alpha.4
@fluixi/oauth2
oauthRoutesandsessionLocalsacceptdpop: trueanddpopAlgorithm. The session's DPoP key is stored in the encrypted session cookie. WithauthFromEnv,AUTH_DPOP=trueturns it on.
@fluixi/testing
- Drop the unused
tslibdependency.importHelpersis on in tsconfig, but these packages ship esbuild-bundled output that inlines the TS helpers — nothing in the published code importstslib, so it was dead weight independencies.
1.0.0-alpha.3
@fluixi/oauth2
authModule(auth)registers the service and client tokens fromsrc/app.config.ts, andauthServerModule(config)mountsoauthRoutesandsessionLocalsfromsrc/app.config.server.ts.
1.0.0-alpha.2
@fluixi/oauth2
1.0.0-alpha.1
@fluixi/oauth2
createApiGuardandrolesFromnow generate the 401 response with a WWW-Authenticate header, matching whatbrowser.tsreads.authFromEnvon@fluixi/oauth2/envnow readsVITE_AUTH_*into a preset and client config.createAuthServicereturns the guards as well as the session:protectedRoute,Can,Protect,useAuth,useUseranduseCancome back on the service, so an app declares its authentication once instead of wiringcreateAuthHooksto it in a second file.navigate,loginPath,homePathandforbiddenPathmove onto the same options object.@fluixi/oauth2/callbacknow providesOAuthCallbackanduseOAuthCallback.- Three shapes that most deployments end up needing.
createServiceClienton@fluixi/oauth2/serviceasks for a token with theclient_credentialsgrant, 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), andlogout()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.issueron the verifier and the introspector accepts a list, for a provider that names itself more than one way. Google publishes bothaccounts.google.comandhttps://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: trueon a browser config generates a key per client, signs a proof for every token and resource request, presents the token under theDPoPscheme rather thanBearer, 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: trueoncreateTokenVerifieris the other half, and one without the other is worse than neither. It refuses a token carrying nocnf.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. credentialsFromEnvandexplainCredentialsnow resolve secrets or private keys from environment variables.- First release. OAuth2 and OIDC for a Fluixi app, split in two: an
AuthClientthat drives the protocol (PKCE, the authorization redirect, the code exchange, refresh and end-session) and anAuthServicebuilt on@fluixi/sessionthat 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 shapecreateAuthHookstakes, soprotectedRouteand the rest work on top of it unchanged. - The subpath
@fluixi/oauth2/rolesnow exportsrolesFrom, so importing./presetsor./envno 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 lackprivate_key_jwtwhile two other paths had it: a method was added where it was demanded instead of once. Every authenticated call now sharesclient-auth.ts, sooauthRoutescan authenticate with a signed assertion and a method added later reaches all of them. The methods take their names fromtoken_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 shorterbasicandbodystill 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 oncreateServiceClientandcreateTokenIntrospector, withprivateKeyas 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 freshjtiso it cannot be replayed there, and lives one minute.@fluixi/oauth2/presetsnow 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 intokens: 'server'did nothing at all: the browser holds a cookie and no token, and there was no route to ask.oauthRoutesnow serves/revoke, which opens the cookie and revokes what is inside, andlogoutrevokes 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. sessionLocalsreuses 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.userCacheMssets the window and0turns 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.createTokenIntrospectorverifies 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 ascreateTokenVerifier, 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, socacheMsdefaults 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 carriesintrospection_endpointonEndpoints.@fluixi/oauth2/verifychecks an access token at the service that receives it.createTokenVerifier({ issuer, audience })returns a function taking a token or aRequestand 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 isjose'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, andauthorizedPartyfor a provider that puts noaudon its access tokens and names the client inazpinstead, which is what Keycloak does until an audience mapper is configured.userInfosays where the user comes from when it is not the provider's OIDC userinfo.urlpoints at an app's own endpoint,mapturns whatever it returns into the shape the app wants, andheaders,credentialsandmethodcover an API with its own requirements. ReplacingfetchUserwholesale 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 nosubto compare, so applying it there would reject every custom endpoint.authorizedPartyreadsclient_idas well asazp. Some providers name the client a token was issued to inclient_idrather than the OIDC claim, Cognito among them, and those tokens carry noaudeither, 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
fetchreports 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, givingendpointsdirectly or resolving them on a server. - A token request refused for want of a DPoP proof now says what that means.
invalid_dpop_proofanduse_dpop_noncecarry 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 bystorageKeywhen 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 anAuthorizationheader for providers that require it, rather than in the form.sessionLocalsputs the signed-in user on request locals fortokens: '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.
paramsFromUrlreadlocation.href, which does not exist on the server, so the route threw before the browser could finish the exchange. It now returns nothing there, andcomplete()says plainly that it runs in the browser, where the authorization code and the PKCE verifier both are. - Only
invalid_granterrors 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.safeReturnTonow 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,//hostand\\hostwhich a browser reads as one, any non-http scheme sojavascript:cannot be reached, a control character used to smuggle past a check, a bare word, and a lookalike such ashttps://app.example.com.evil.test.allowedReturnOriginsnames 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/serverholds a session the browser cannot read:createSessionCookieseals 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/oauth2seal tokens, over the same piece.@fluixi/oauth2/servernow 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-Authenticateinstead 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. AddsRequestContext.nextIslandNamespace/withResourceScopeand ahydrate(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 islandprops.)
@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:The RPC dispatcher runs the function insideimport { getRequestEvent } from '@fluixi/server'; const whoami = async () => { 'use server'; const req = getRequestEvent()?.request as Request; return req.headers.get('user-agent'); };@fluixi/server's request context (wired by a server-only@fluixi/start/server-fn-setupbridge thatvirtual:fluixi-server-fnsimports, keeping the@fluixi/start/server-fnruntime 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.
serverFunctionsVitePluginprovidesvirtual:fluixi-server-fns— side-effect imports of every module containing a"use server"directive (found by scanningsrc/). 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 viauseSubmission:The markup carries<Form action={save}> <input name="title" /> <button>Save</button> </Form>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('')frominsert) 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>readchildrenonce — the compiler'schildrengetter builds fresh nodes on every access, so reading it twice produced duplicate nodes. New@fluixi/domexports:captureHydrationCursor,runHydrationAt. Auto-hydration of SSR'd apps stays opt-in pending a remaining component-children duplication.
- Lazy-route hydration — a
- 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 (<form>…) — breaking the element and the hydration cursor. They now build a real element via the runtime (serverServerNode/ client DOM).@fluixi/start:/* @vite-ignore */on the runtime dynamic imports (config/entry-server/middleware) to silence Vite's import-analysis warnings indev.
@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, orundefinedto omit the entry (the client then refetches that resource). A throwing redactor omits rather than leaks. Exported from@fluixi/domand@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 ofstartClient(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.(The// page (SSR): <Island name="Counter" component={Counter} props={{ start: 0 }} /> // client entry: import { hydrateIslands } from '@fluixi/core'; hydrateIslands({ Counter });IndexSSR 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('')frominsert) 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>readchildrenonce — the compiler'schildrengetter builds fresh nodes on every access, so reading it twice produced duplicate nodes. New@fluixi/domexports:captureHydrationCursor,runHydrationAt. Auto-hydration of SSR'd apps stays opt-in pending a remaining component-children duplication.
- Lazy-route hydration — a
- Fix hydration duplicating native children that follow a void element when passed
through a component.
hydrateElementdescended 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 tonextSiblinginstead 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, orundefinedto omit the entry (the client then refetches that resource). A throwing redactor omits rather than leaks. Exported from@fluixi/domand@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/createREADME. (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+transformServerFunctionsapply 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-fnruntime (registry + stub + dispatcher) and a/_serverRPC endpoint wired intodevandstart(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). SetjsxImportSource: "@fluixi/jsx"in tsconfig (was@fluixi/core) and add@fluixi/jsxto app deps; the/jsx-runtime+/jsx-dev-runtimesubpaths are unchanged.- All remaining
kettleidentifiers/contracts →fluixi:KettleJS→Fluixi,KettleElement→FluixiElement,kettleRoutesPlugin→fluixiRoutesPlugin,virtual:kettle-routes→virtual:fluixi-routes,__KETTLE_HYDRATION__→__FLUIXI_HYDRATION__, thekettle-jsroot attribute →fluixi-js, thekettle-generate/kettle-runbins →fluixi-generate/fluixi-run. - The
@fluixi/kettlejs-testtest 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 lazyimport('react')), dropping thereact/react-dom/@types/reactdev deps.@fluixi/jsxno 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). SetjsxImportSource: "@fluixi/jsx"in tsconfig (was@fluixi/core) and add@fluixi/jsxto app deps; the/jsx-runtime+/jsx-dev-runtimesubpaths are unchanged.- All remaining
kettleidentifiers/contracts →fluixi:KettleJS→Fluixi,KettleElement→FluixiElement,kettleRoutesPlugin→fluixiRoutesPlugin,virtual:kettle-routes→virtual:fluixi-routes,__KETTLE_HYDRATION__→__FLUIXI_HYDRATION__, thekettle-jsroot attribute →fluixi-js, thekettle-generate/kettle-runbins →fluixi-generate/fluixi-run. - The
@fluixi/kettlejs-testtest 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 lazyimport('react')), dropping thereact/react-dom/@types/reactdev deps.@fluixi/jsxno 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 nowpeerDependenciesof the runtime extensions (@fluixi/jsx,@fluixi/lit,@fluixi/server), and@fluixi/reactiveis a peer of@fluixi/dom. They're provided once by@fluixi/core(or by installing@fluixi/dom+@fluixi/reactivedirectly). 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 definedwhen SSR-rendering / prod-serving an app (e.g. via@fluixi/start). The real culprit was the file-routing codegen:kettleRoutesPluginemittedimport { lazy, runWithOwner } from '@fluixi/kettlejs/router'(the old, lit-coupled router) intovirtual:kettle-routes. That statically pulled@fluixi/lit→lit, whichextends HTMLElementat module init, so the server bundle threw on import — and because lit was static in the graph, the lazyimport('lit')elsewhere couldn't be split out either. Codegen now importslazyfromrouter-next(lit-free); the unusedrunWithOwneris dropped. Also scrubbed the remaining lit pulls from the core entries so lit lives only in@fluixi/lit:@fluixi/kettlejsmain entry +lib/indexbarrel: removed thehtml/svg/nothing/litRender/LitElement/$show/$for/$switch/$portal/$if/$each/$classMap/$styleMap/litrx/createReactiveJSXre-exports;Router/Link/etc. now come fromrouter-next;render/indexlazily imports lit client-only.@fluixi/jsx-runtime: dropped the$/$if/litrxre-export and the unusedhtml/svg/nothingvalue imports (→import type); removed the dead@fluixi/lit+@lit-labs/ssrdependencies.@fluixi/dom:TemplateResultis now a type-only import. BREAKING: import lit symbols (html,svg,nothing,LitElement,$show/$for/$switch/$portal/$if/$each,$classMap/$styleMap,litrx) from@fluixi/litdirectly instead of from@fluixi/kettlejs.
- Retire the old
@fluixi/kettlejs/router.router-next(the framework-agnostic@fluixi/routercore + 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 importedhtmlfrom@fluixi/lit), so removing it takes lit fully out of the router path too. Changes:- Removed the
./router,./router/index, and./router.jspackage exports and therouter/{router,rt,fs-router,index}.tsimplementation. - Moved the shared route-data layer to
router-next/data.ts(it's re-exported from@fluixi/kettlejs/router-next); added arunWithOwnerre-export there for parity. BREAKING: import routing from@fluixi/kettlejs/router-nextinstead of@fluixi/kettlejs/router. The declarative<Routes>/<Route>JSX is replaced by theroutesprop:<Router routes={routes} />(wrap in<Suspense>for lazy routes). The deadcreateFileRoutes/fs-router helper is gone (file routing is thekettleRoutesPlugin virtual:kettle-routes).
- Removed the
@fluixi/dom
- Keep lit fully out of the core module graph — fixes
HTMLElement is not definedwhen SSR-rendering / prod-serving an app (e.g. via@fluixi/start). The real culprit was the file-routing codegen:kettleRoutesPluginemittedimport { lazy, runWithOwner } from '@fluixi/kettlejs/router'(the old, lit-coupled router) intovirtual:kettle-routes. That statically pulled@fluixi/lit→lit, whichextends HTMLElementat module init, so the server bundle threw on import — and because lit was static in the graph, the lazyimport('lit')elsewhere couldn't be split out either. Codegen now importslazyfromrouter-next(lit-free); the unusedrunWithOwneris dropped. Also scrubbed the remaining lit pulls from the core entries so lit lives only in@fluixi/lit:@fluixi/kettlejsmain entry +lib/indexbarrel: removed thehtml/svg/nothing/litRender/LitElement/$show/$for/$switch/$portal/$if/$each/$classMap/$styleMap/litrx/createReactiveJSXre-exports;Router/Link/etc. now come fromrouter-next;render/indexlazily imports lit client-only.@fluixi/jsx-runtime: dropped the$/$if/litrxre-export and the unusedhtml/svg/nothingvalue imports (→import type); removed the dead@fluixi/lit+@lit-labs/ssrdependencies.@fluixi/dom:TemplateResultis now a type-only import. BREAKING: import lit symbols (html,svg,nothing,LitElement,$show/$for/$switch/$portal/$if/$each,$classMap/$styleMap,litrx) from@fluixi/litdirectly instead of from@fluixi/kettlejs.
@fluixi/jsx
- Keep lit fully out of the core module graph — fixes
HTMLElement is not definedwhen SSR-rendering / prod-serving an app (e.g. via@fluixi/start). The real culprit was the file-routing codegen:kettleRoutesPluginemittedimport { lazy, runWithOwner } from '@fluixi/kettlejs/router'(the old, lit-coupled router) intovirtual:kettle-routes. That statically pulled@fluixi/lit→lit, whichextends HTMLElementat module init, so the server bundle threw on import — and because lit was static in the graph, the lazyimport('lit')elsewhere couldn't be split out either. Codegen now importslazyfromrouter-next(lit-free); the unusedrunWithOwneris dropped. Also scrubbed the remaining lit pulls from the core entries so lit lives only in@fluixi/lit:@fluixi/kettlejsmain entry +lib/indexbarrel: removed thehtml/svg/nothing/litRender/LitElement/$show/$for/$switch/$portal/$if/$each/$classMap/$styleMap/litrx/createReactiveJSXre-exports;Router/Link/etc. now come fromrouter-next;render/indexlazily imports lit client-only.@fluixi/jsx-runtime: dropped the$/$if/litrxre-export and the unusedhtml/svg/nothingvalue imports (→import type); removed the dead@fluixi/lit+@lit-labs/ssrdependencies.@fluixi/dom:TemplateResultis now a type-only import. BREAKING: import lit symbols (html,svg,nothing,LitElement,$show/$for/$switch/$portal/$if/$each,$classMap/$styleMap,litrx) from@fluixi/litdirectly 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
litoption from router-next's<Link>(and its top-levelimport { html } from '@fluixi/lit'), and remove the dead@lit-labs/ssr+@lit-labs/ssr-clientdependencies (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
kettleRoutesPluginnow acceptspolyfills?: boolean(defaulttrue, back-compat). The injectedvite-plugin-node-polyfillsshims break SSR (resolution + CJS-in-ESM); SSR-first setups passpolyfills: false.@fluixi/startdoes 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:
hydrateMarkerwarns (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
serializeNodeinside the render root's owner. Previously these ran aftercreateRootreturned (withOwnerreset 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 increateHtmlDocumentby default; toggle witheventReplay: false) that records discrete events (click/input/change/submit/keydown) fired before hydration intowindow.__FX_REPLAY__. AfterdomHydrate(),startClientreplays 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 thereforeuseNavigate/useParams/useLocation) returns a no-op stub instead of throwing when noRouterContextis on the owner chain. This happens during a late/detached re-render — e.g. a slow data resource settling afterrenderToStringAsyncalready 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 insiderenderToStringAsync). 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 insiderenderToStringAsync). 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/>.propagateDirtynow 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; andrenderToStringAsyncprobe-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/>.propagateDirtynow 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; andrenderToStringAsyncprobe-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
- Remove the unused experimental vinxi integration: the
internal/vinxi/*app/runtime, thesrc/preset/vinxi.tsstub, the@fluixi/kettlejs/appexport it backed, and thevinxi+@vinxi/server-functionsdependencies. It was never wired up or used by any app. (A future meta-framework will be built fresh on@fluixi/server+@fluixi/vite-plugin@fluixi/router, not on vinxi.)
- @fluixi/[email protected]
- @fluixi/[email protected]
- @fluixi/[email protected]
- @fluixi/[email protected]
- @fluixi/[email protected]
- @fluixi/[email protected]
- @fluixi/[email protected]
- @fluixi/[email protected]
@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,keyArrayandindexArray(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 owncreateRoot, so list items have a stable, disposable owner scope.<For>/<Index>are now thin wrappers over these (and a stray debugconsole.login the keyed<For>path is gone). Exported from@fluixi/reactive/signaland re-exported from@fluixi/dom.
@fluixi/jsx
@fluixi/reactive
- Add the keyed list-reconciliation primitives
mapArray,keyArrayandindexArray(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 owncreateRoot, so list items have a stable, disposable owner scope.<For>/<Index>are now thin wrappers over these (and a stray debugconsole.login the keyed<For>path is gone). Exported from@fluixi/reactive/signaland re-exported from@fluixi/dom.
@fluixi/utils
@fluixi/vite-plugin
0.4.0-next.1
@fluixi/babel-plugin-jsx
@fluixi/compiler
@fluixi/core
createProvidergets a lazy-safe overload so a provider can wrap an<Outlet/>without losing context under SSR. The old formcreateProvider({ context, value, children })readschildrenwhen 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 getundefinedfromuseContext. New form readschildrenthrough a getter, inside the stamped scope:The oldfunction ThemeProvider(props) { return createProvider(ThemeContext, theme, props); // children stays lazy }{ 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>. InternalcreateContextWithProvider/composeProvidersnow 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 usingfluixi()/createVitePlugin()without an explicitbackendnow compile straight into@fluixi/domruntime calls (createNativeElement/spread/insert/…) instead of the interpretedjsx()/jsxs()runtime. Thejsxbackend remains available viabackend: 'jsx'(unchanged when opted in). Apps already onbackend: '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()}causedhistory.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:.childrenmember access compiled to a reactive() => props.childrenthunk, which fully unwrapped the child's Suspense/memo to a static node and severed the reactive binding. It's now non-reactive, soinsertbinds the child's own memo (like a directly-rendered<Outlet/>).- JSX whitespace between elements (e.g.
<Shell>\n <Suspense/>\n</Shell>) was kept as a" "text node, turningprops.childreninto 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.insertExpressionadopts server nodes already in place. All changes are behindisHydrating, so the normal client render path is unchanged. - Resource-data transport for hydration (no flash).
renderToStringAsyncnow serializes resolvedcreateResourcevalues into an inline<script>window.__FX_DATA__=…</script>; on the clienthydrate()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 ofruntime.tsinto a dedicatedhydration.ts. - Hydration now works for
For(andShow) control-flow. Hydrating a server- rendered list used to add duplicate/extra nodes and break reconciliation: eachForitem'screateNativeElementdescended into its node, but nothing ascended the hydration cursor between siblings, so items 2+ were rebuilt fresh.Fornow advances the cursor past each rendered item (hydrateAdvancePast, no-op outside hydration), so server list items are reused and stay reactive.Showalready worked; both are covered by tests. (IndexSSR has a separate, pre-existing extra-node bug — tracked separately.) - Hydration now works for
Indextoo (same fix asForin the previous release): each item ascends the hydration cursor past its rendered node so server list items are reused instead of rebuilt.IndexSSR 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 viaprocess.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'sdecrement(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 andupdateComputationskips disposed nodes, so a disposed computation never re-runs. - Resource-data transport for hydration (no flash).
renderToStringAsyncnow serializes resolvedcreateResourcevalues into an inline<script>window.__FX_DATA__=…</script>; on the clienthydrate()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 ofruntime.tsinto a dedicatedhydration.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/domnow has a universal string renderer: under server mode the leaf factories build a serializableServerNodetree thatrenderToStringturns into HTML — the same imperative runtime (insert/spread/Show/For/createComponent), no jsdom. The client path is unchanged (theisServerbranch + duck-typed node guards).renderToString/renderToStringAsync— sync render-once and async (awaitscreateResource/Suspense data before serializing, via an injectable resource tracker in@fluixi/reactive).- Request scoping (the module-global SSR concurrency hazard): a pluggable
RequestStoreshaped likeAsyncLocalStorage—runWithRequestContext,getRequestEvent, per-requestrouteData/nextId.@fluixi/domnever importsnode:async_hooks, so browser bundles stay clean. - New
@fluixi/serverpackage: the Node-side home that injects a realAsyncLocalStorage(concurrency-safe out of the box) and addsrenderRequest/renderRequestAsync/startServer/createHtmlDocument. @fluixi/kettlejsSSR now renders through@fluixi/server.splitPropsadded to@fluixi/dom(reactive-preserving, Solid-style).- Resource
saveToCacheno longer throws whenlocalStorageis absent (SSR).
@fluixi/jsx
@fluixi/reactive
@fluixi/utils
@fluixi/vite-plugin
0.3.0-next.13
@fluixi/server
- Add
renderToBodyStream(app, event)— a webReadableStream<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/startflushingindex.html's head first). The content includes the__FX_DATA__resource-transport script, so hydration still seeds without refetch. Also exposed asstartServer(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 increateHtmlDocumentby default; toggle witheventReplay: false) that records discrete events (click/input/change/submit/keydown) fired before hydration intowindow.__FX_REPLAY__. AfterdomHydrate(),startClientreplays 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— webReadableStream<Uint8Array>SSR that works on edge/ worker runtimes (Cloudflare Workers, Deno, Bun, Node 18+), plusstartServer(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.createHtmlDocumentis 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
srcin the published tarball (like the other@fluixi/*packages). Consumers that resolve@fluixi/*via thedevelopmentexport condition (the TypeScript source — used in dev to keep a single reactive instance) were failing on@fluixi/router/@fluixi/utilswith "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/kettlejsno longer re-exportsdefineElement,wrapElement,KettleElement,KettleLitElement,KettleController,createComponent(createJsxComponent), orkettleElementPlugin. Import them from@fluixi/element(and@fluixi/element/plugin) directly.@fluixi/elementand@fluixi/webuiare 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/domnow has a universal string renderer: under server mode the leaf factories build a serializableServerNodetree thatrenderToStringturns into HTML — the same imperative runtime (insert/spread/Show/For/createComponent), no jsdom. The client path is unchanged (theisServerbranch + duck-typed node guards).renderToString/renderToStringAsync— sync render-once and async (awaitscreateResource/Suspense data before serializing, via an injectable resource tracker in@fluixi/reactive).- Request scoping (the module-global SSR concurrency hazard): a pluggable
RequestStoreshaped likeAsyncLocalStorage—runWithRequestContext,getRequestEvent, per-requestrouteData/nextId.@fluixi/domnever importsnode:async_hooks, so browser bundles stay clean. - New
@fluixi/serverpackage: the Node-side home that injects a realAsyncLocalStorage(concurrency-safe out of the box) and addsrenderRequest/renderRequestAsync/startServer/createHtmlDocument. @fluixi/kettlejsSSR now renders through@fluixi/server.splitPropsadded to@fluixi/dom(reactive-preserving, Solid-style).- Resource
saveToCacheno longer throws whenlocalStorageis 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, andreactiveScopeOfreport 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/coreinstead of externalizing it, so@fluixi/core/routesreaches the routes plugin and an installed app gets its route tree rather than the "did not replace it" stub.@fluixi/devtoolspublishes its./pluginssubpath, 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/startnow provide bundled builds with import resolving to a.mjsfile and a require condition resolving to a.cjsfile, and@fluixi/coreand@fluixi/compilernow 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.
createTimelinenow 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.
createDetailPanelnow shows one commit in full, dragged and resized.graphToJson/exportGraphnow 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/devtoolsnow 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/devtoolsnow 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
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
0.2.0-alpha.1
@fluixi/devtools
- Fix control flow
Showtypes 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 instrumentedcreateSignal/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/startnow provide bundled builds with import resolving to a.mjsfile and a require condition resolving to a.cjsfile, and@fluixi/coreand@fluixi/compilernow include the copyright banner in their subpath exports.
0.1.2-alpha.3
@fluixi/router
- Add a
descriptionfield 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
.npmrcinstall 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
licensefield (MIT) and bundle aLICENSEfile in every package, so npm shows the license and ships it in the tarball.
0.1.2-alpha.1
@fluixi/router
- Fix control flow
Showtypes 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/bto/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
srcin the published tarball (like the other@fluixi/*packages). Consumers that resolve@fluixi/*via thedevelopmentexport condition (the TypeScript source — used in dev to keep a single reactive instance) were failing on@fluixi/router/@fluixi/utilswith "Failed to resolve entry".
0.1.0
@fluixi/babel-plugin-jsx
- KettleJS compiled fine-grained architecture.
- New
@fluixi/compilerpackage: 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-jsxis now a thin re-export). - Imperative codegen backend — compiles JSX straight into
@fluixi/domruntime calls (createNativeElement/spread/insert/createComponent) instead of thejsx()automatic runtime. Selectable via the plugin/vite-plugin optionsbackend: 'jsx' | 'imperative'andcodegen: 'inline' | 'ir'(jsx stays the default). Theirpath recurses into JSX nested in expressions. - New
@fluixi/litpackage: the lit renderer extracted out of@fluixi/dom, so the core runtime is usable without lit. The@fluixi/dombarrel is now lit-free. - New
@fluixi/vite-plugin: the canonical Vite integration (fluixi()). @fluixi/jsx-runtimenow instantiates components through the framework's registeredcreateComponent(unifying the jsx and imperative paths).- Runtime fixes surfaced by hardening: per-child reactive
insertfor multi-child elements,Switch/Matchwith compiler-wrapped children, andclassListsupport.
- New
@fluixi/compiler
- KettleJS compiled fine-grained architecture.
- New
@fluixi/compilerpackage: 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-jsxis now a thin re-export). - Imperative codegen backend — compiles JSX straight into
@fluixi/domruntime calls (createNativeElement/spread/insert/createComponent) instead of thejsx()automatic runtime. Selectable via the plugin/vite-plugin optionsbackend: 'jsx' | 'imperative'andcodegen: 'inline' | 'ir'(jsx stays the default). Theirpath recurses into JSX nested in expressions. - New
@fluixi/litpackage: the lit renderer extracted out of@fluixi/dom, so the core runtime is usable without lit. The@fluixi/dombarrel is now lit-free. - New
@fluixi/vite-plugin: the canonical Vite integration (fluixi()). @fluixi/jsx-runtimenow instantiates components through the framework's registeredcreateComponent(unifying the jsx and imperative paths).- Runtime fixes surfaced by hardening: per-child reactive
insertfor multi-child elements,Switch/Matchwith compiler-wrapped children, andclassListsupport.
- New
@fluixi/core
- KettleJS compiled fine-grained architecture.
- New
@fluixi/compilerpackage: 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-jsxis now a thin re-export). - Imperative codegen backend — compiles JSX straight into
@fluixi/domruntime calls (createNativeElement/spread/insert/createComponent) instead of thejsx()automatic runtime. Selectable via the plugin/vite-plugin optionsbackend: 'jsx' | 'imperative'andcodegen: 'inline' | 'ir'(jsx stays the default). Theirpath recurses into JSX nested in expressions. - New
@fluixi/litpackage: the lit renderer extracted out of@fluixi/dom, so the core runtime is usable without lit. The@fluixi/dombarrel is now lit-free. - New
@fluixi/vite-plugin: the canonical Vite integration (fluixi()). @fluixi/jsx-runtimenow instantiates components through the framework's registeredcreateComponent(unifying the jsx and imperative paths).- Runtime fixes surfaced by hardening: per-child reactive
insertfor multi-child elements,Switch/Matchwith compiler-wrapped children, andclassListsupport.
- New
- Framework-agnostic router (
@fluixi/router) + kettlejsrouter-nextadapter.- New
@fluixi/routerpackage: pure routing core —matchRoutes/matchPath, history adapters, and acreateRouterstate 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 adataloader gate on resolved data, souseRouteData()works without a Suspense boundary.
- New
@fluixi/dom
- KettleJS compiled fine-grained architecture.
- New
@fluixi/compilerpackage: 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-jsxis now a thin re-export). - Imperative codegen backend — compiles JSX straight into
@fluixi/domruntime calls (createNativeElement/spread/insert/createComponent) instead of thejsx()automatic runtime. Selectable via the plugin/vite-plugin optionsbackend: 'jsx' | 'imperative'andcodegen: 'inline' | 'ir'(jsx stays the default). Theirpath recurses into JSX nested in expressions. - New
@fluixi/litpackage: the lit renderer extracted out of@fluixi/dom, so the core runtime is usable without lit. The@fluixi/dombarrel is now lit-free. - New
@fluixi/vite-plugin: the canonical Vite integration (fluixi()). @fluixi/jsx-runtimenow instantiates components through the framework's registeredcreateComponent(unifying the jsx and imperative paths).- Runtime fixes surfaced by hardening: per-child reactive
insertfor multi-child elements,Switch/Matchwith compiler-wrapped children, andclassListsupport.
- New
@fluixi/jsx
- KettleJS compiled fine-grained architecture.
- New
@fluixi/compilerpackage: 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-jsxis now a thin re-export). - Imperative codegen backend — compiles JSX straight into
@fluixi/domruntime calls (createNativeElement/spread/insert/createComponent) instead of thejsx()automatic runtime. Selectable via the plugin/vite-plugin optionsbackend: 'jsx' | 'imperative'andcodegen: 'inline' | 'ir'(jsx stays the default). Theirpath recurses into JSX nested in expressions. - New
@fluixi/litpackage: the lit renderer extracted out of@fluixi/dom, so the core runtime is usable without lit. The@fluixi/dombarrel is now lit-free. - New
@fluixi/vite-plugin: the canonical Vite integration (fluixi()). @fluixi/jsx-runtimenow instantiates components through the framework's registeredcreateComponent(unifying the jsx and imperative paths).- Runtime fixes surfaced by hardening: per-child reactive
insertfor multi-child elements,Switch/Matchwith compiler-wrapped children, andclassListsupport.
- New
@fluixi/reactive
@fluixi/router
- Framework-agnostic router (
@fluixi/router) + kettlejsrouter-nextadapter.- New
@fluixi/routerpackage: pure routing core —matchRoutes/matchPath, history adapters, and acreateRouterstate 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 adataloader gate on resolved data, souseRouteData()works without a Suspense boundary.
- New
@fluixi/utils
@fluixi/vite-plugin
- KettleJS compiled fine-grained architecture.
- New
@fluixi/compilerpackage: 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-jsxis now a thin re-export). - Imperative codegen backend — compiles JSX straight into
@fluixi/domruntime calls (createNativeElement/spread/insert/createComponent) instead of thejsx()automatic runtime. Selectable via the plugin/vite-plugin optionsbackend: 'jsx' | 'imperative'andcodegen: 'inline' | 'ir'(jsx stays the default). Theirpath recurses into JSX nested in expressions. - New
@fluixi/litpackage: the lit renderer extracted out of@fluixi/dom, so the core runtime is usable without lit. The@fluixi/dombarrel is now lit-free. - New
@fluixi/vite-plugin: the canonical Vite integration (fluixi()). @fluixi/jsx-runtimenow instantiates components through the framework's registeredcreateComponent(unifying the jsx and imperative paths).- Runtime fixes surfaced by hardening: per-child reactive
insertfor multi-child elements,Switch/Matchwith compiler-wrapped children, andclassListsupport.
- New
0.1.0-next.8
@fluixi/cli
- Redesigned CLI experience. A gradient
fluixiwordmark and a clean, colored layout across the toolchain (zero new dependencies — hand-rolled ANSI that degrades to plain text when not a TTY / underNO_COLOR):fluixi devnow prints a proper "ready" panel — timing plusLocalandNetworkURLs — instead of a singlelocalhost:PORTline.fluixi buildshows a wordmark header, per-step lines, and a timedbuiltsummary.fluixi --help/generateuse the wordmark, colored commands, and ✓/✗ markers.npm create @fluixigets 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/uiexport (shared color/wordmark/panel helpers) honoringNO_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/createREADME. (The root README's package list + architecture were also corrected.)
@fluixi/start
- Redesigned CLI experience. A gradient
fluixiwordmark and a clean, colored layout across the toolchain (zero new dependencies — hand-rolled ANSI that degrades to plain text when not a TTY / underNO_COLOR):fluixi devnow prints a proper "ready" panel — timing plusLocalandNetworkURLs — instead of a singlelocalhost:PORTline.fluixi buildshows a wordmark header, per-step lines, and a timedbuiltsummary.fluixi --help/generateuse the wordmark, colored commands, and ✓/✗ markers.npm create @fluixigets 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/uiexport (shared color/wordmark/panel helpers) honoringNO_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:The RPC dispatcher runs the function insideimport { getRequestEvent } from '@fluixi/server'; const whoami = async () => { 'use server'; const req = getRequestEvent()?.request as Request; return req.headers.get('user-agent'); };@fluixi/server's request context (wired by a server-only@fluixi/start/server-fn-setupbridge thatvirtual:fluixi-server-fnsimports, keeping the@fluixi/start/server-fnruntime 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/createREADME. (The root README's package list + architecture were also corrected.) - Server functions in lazy routes now register reliably.
serverFunctionsVitePluginprovidesvirtual:fluixi-server-fns— side-effect imports of every module containing a"use server"directive (found by scanningsrc/). 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 (<form>…) — breaking the element and the hydration cursor. They now build a real element via the runtime (serverServerNode/ client DOM).@fluixi/start:/* @vite-ignore */on the runtime dynamic imports (config/entry-server/middleware) to silence Vite's import-analysis warnings indev.
0.1.0-next.5
@fluixi/cli
- Add
fluixi generate <kind> <name>(aliasg): scaffold acomponent(→src/components/<Name>.tsx), a file-basedroute(→src/routes/<path>.tsx, dynamic segments likeblog/[id]supported), ormiddleware(→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+transformServerFunctionsapply 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-fnruntime (registry + stub + dispatcher) and a/_serverRPC endpoint wired intodevandstart(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/routersubpath, 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:Framework primitives (Suspense, lazy, signals, components) still come fromimport { Router, Outlet, createMemoryHistory } from '@fluixi/start/router';@fluixi/kettlejs; only routing lives here.
0.1.0-next.2
@fluixi/cli
@fluixi/start
- Add request middleware / guards. A
src/middleware.tsthat default-exportsdefineMiddleware([...])runs a(request, next) => Responsechain before SSR, in bothfluixi devandfluixi start. A middleware can short-circuit (return a Response without callingnext— auth redirects, 401s, rewrites) or callnext()and adjust the downstream response (headers, etc.). Runtime-neutral (WebRequest/Response).- New
defineMiddleware/composeMiddleware/normalizeMiddleware+Middleware/MiddlewareNexttypes, exported from@fluixi/start. fluixi buildemitsdist/server/middleware.jswhensrc/middleware.tsexists;createProdHandlercomposes it around the renderer. Dev loads it per request viassrLoadModuleso edits hot-reload. Middleware errors become a 500 (guarded).- New
middlewareconfig option (defaultsrc/middleware.ts).
- New
- Streaming SSR. If
src/entry-server.tsexportsrenderStream(url, request)(a webReadableStream<Uint8Array>of the app body — e.g. via@fluixi/server'srenderToBodyStream),fluixi devandfluixi startstream the response: theindex.htmlhead 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 stringrenderexport whenrenderStreamisn't present, and composes with middleware. AddssplitTemplate/streamDocument/StreamRenderFn. - Support
fluixi.config.ts(TypeScript config).loadConfignow probesfluixi.config.{ts,mts,mjs,js}and bundles a TypeScript config on the fly with esbuild (bare imports kept external soimport { 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
fluixiwordmark and a clean, colored layout across the toolchain (zero new dependencies — hand-rolled ANSI that degrades to plain text when not a TTY / underNO_COLOR):fluixi devnow prints a proper "ready" panel — timing plusLocalandNetworkURLs — instead of a singlelocalhost:PORTline.fluixi buildshows a wordmark header, per-step lines, and a timedbuiltsummary.fluixi --help/generateuse the wordmark, colored commands, and ✓/✗ markers.npm create @fluixigets 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/uiexport (shared color/wordmark/panel helpers) honoringNO_COLOR/FORCE_COLOR.
- Fix the SSR template's
tsconfig.json: it referencedfluixi.config.mjsand a non-existentvite.config.tsininclude(the template shipsfluixi.config.ts), and declaredtypes: ["node"]without@types/nodeinstalled. Theincludenow matches the scaffolded files and@types/nodeis 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 SSRFetchHandlerfrom afluixi buildoutput (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
Adapterinterface with two reference implementations:nodeAdapter(listen + static) andwebAdapter({ fetch }export for edge/Bun/Deno/Cloudflare; assets served by the platform).fluixi startis now justserveNode(withStaticFiles(createProdHandler(), dist/client)).devandbuildare validated end-to-end; the productionstartpath is blocked on a separate SSR/web-components issue (router-nextpulls@fluixi/lit, which referencesHTMLElementat 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/createREADME. (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/startis the runtime that sits on top of@fluixi/kettlejs:dev(Vite-middleware SSR dev server with shared-HMR + crash guards),build(client + server bundles), andstart(production SSR server). All rendering flows through a runtime-neutral WebRequest → Responsehandler (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 exposesdefineConfig/loadConfig+ conventions (src/entry-server.ts, index.html with<div id="root">).@fluixi/cliis thefluixicommand-line tool (fluixi dev|build|start) that delegates to it.
@fluixi/start
- Add the Fluixi meta-framework (walking skeleton).
@fluixi/startis the runtime that sits on top of@fluixi/kettlejs:dev(Vite-middleware SSR dev server with shared-HMR + crash guards),build(client + server bundles), andstart(production SSR server). All rendering flows through a runtime-neutral WebRequest → Responsehandler (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 exposesdefineConfig/loadConfig+ conventions (src/entry-server.ts, index.html with<div id="root">).@fluixi/cliis thefluixicommand-line tool (fluixi dev|build|start) that delegates to it.
create-fluixi
- New
@fluixi/create— scaffold a Fluixi app withnpm create @fluixi <dir>(orpnpm 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 brokenkettle-generatetemplates.
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/serverinstalls its async store only when none is already present. In a built app, server functions ran outside the request context, sogetLocals()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-installto skip);@fluixi/cli/scaffoldexposes the generators' code with no dependencies and afluixi.configwithout an env block receives one. fluixi checknow validates editor env/auth rules in CI and exits with code 1 on error, with--stricttreating warnings as errors.fluixi envreports whichenv.publicnames are set, detects .env.example drift, warns about secrets that would ship, and writes environment types.fluixi doctornow reports when the same @fluixi package is installed twice, when ts-plugin is missing from tsconfig, and other environment problems.fluixi infonow displays versions, adapter, modules, pages, and API routes.
- The
g envgenerator now picks environment variables fromenv.publicusingpickEnv. - The
g modulegenerator now registers modules insrc/app.config.ts(or.server.ts) and creates the file if it does not exist. - The
g servicegenerator now creates a class, a token, and a module. - The
g api --rolegenerator now creates a route guarded bycreateApiGuard. - The
g server-fngenerator now creates a server function file. - The
g auth oauth2generator 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/authinstead ofsrc/routes/api/auth.
- The
@fluixi/start
fluixi devandfluixi buildnow writesrc/api.gen.tswith anApiRoutesinterface that maps each API path template to the type of its route file. Commit it:createClient<ApiRoutes>()from@fluixi/api/clienttypes its calls from it.- New
clientAddress(request)returns the caller's address as seen by the platform, orundefinedwhen 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: truenow runs an app with only src/api routes and returns a JSON 404 for paths outside the API.streamDocumentnow returns aPromise<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, andappendResponseHeadertakes an optional request.- New
trustProxyconfig option: it gives the number of reverse proxies, andclientAddress()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.tsfollows without a restart. - fluixi dev now sends
/apirequests 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-Cookieheader 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.
apiRoutesnow 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()andgetSession()correctly recognize a valid session cookie.
0.1.0-alpha.82
@fluixi/cli
@fluixi/start
fluixi checknow validates editor env/auth rules in CI and exits with code 1 on error, with--stricttreating warnings as errors.fluixi envreports whichenv.publicnames are set, detects .env.example drift, warns about secrets that would ship, and writes environment types.fluixi doctornow reports when the same @fluixi package is installed twice, when ts-plugin is missing from tsconfig, and other environment problems.fluixi infonow 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 fromenv.publicand.envand generated intosrc/fluixi-env-vars.d.ts.pickEnvnow builds a typed, frozen config object from environment variables with defaults, optional fields and parsers, reporting all missing or invalid variables at once, andenv()on the server also reads theVITE_spelling.@fluixi/startnow 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 fromenv.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 inenv.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-componentemits each component named in awebComponentsconfig block as a self-contained file: a page loads it with a<script type="module">and needs no Fluixi package installed.--format=fluixiemits the same elements with the runtime left as imports, so an app running several of them shares one copy. An app that declareswebComponentsalso gets the files beside its own bundles on a normal build.- The CLI now warns when it runs a different
@fluixi/startthan the one the app resolves.
@fluixi/start
publicEnv()now finds a declared name under itsVITE_spelling when @fluixi/start is imported from node_modules on a server.
0.1.0-alpha.77
@fluixi/cli
@fluixi/start
env.publicinfluixi.confignow declares which variables are exposed to the browser andpublicEnv/serverEnvread 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 oneVITE_API_SECRETputs 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 containingSECRET,PASSWORD,PRIVATE_KEYorCREDENTIALSfail the build, across every env file an app may carry, with the unprefixed form to use instead.TOKENis deliberately not one of them:VITE_TOKEN_ENDPOINTis a URL.fluixi devwarns rather than stopping, so the mistake is caught while writing.FLUIXI_ALLOW_PUBLIC_SECRETS=trueallows a name that only reads like a secret. ssrNoExternalaccepts 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/appexportsdefineModuleanddefineApp; start registerssrc/app.config.tson both client and server andsrc/app.config.server.tson the server, and replacesprovideRootcalls 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.pathsnow resolve in the bundler as well as the type checker. TypeScript'spathsonly 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, followingextendsand honouringbaseUrl, with the longest prefix winning so a short alias cannot swallow a longer one. fluixi build --format=web-componentemits each component named in awebComponentsconfig block as a self-contained file: a page loads it with a<script type="module">and needs no Fluixi package installed.--format=fluixiemits the same elements with the runtime left as imports, so an app running several of them shares one copy. An app that declareswebComponentsalso 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/apionly when the server entry re-exports the handlers; without it every/apirequest 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
ssrNoExternalwhen that option bundles every @fluixi dependency. @fluixi/start/envis now listed inpublishConfig.exports, so it can be imported from the package.fluixi devandfluixi startnow exit with an error naming the port when it cannot be listened on, and serveNode now accepts anonListenErrorcallback.- 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. withStaticFilesnow rejects requests whose path resolves outside the served directory.
0.1.0-alpha.76
@fluixi/cli
- The
@fluixi/startroot export now is safe to import from a browser bundle. ImportloadConfig,serveNode, adapters, orcreateImageHandlerfrom their subpaths instead of the package root.
@fluixi/start
- SSR now bundles
@fluixi/coreinstead of externalizing it, so@fluixi/core/routesreaches the routes plugin and an installed app gets its route tree rather than the "did not replace it" stub.@fluixi/devtoolspublishes its./pluginssubpath, 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/startnow provide bundled builds with import resolving to a.mjsfile and a require condition resolving to a.cjsfile, and@fluixi/coreand@fluixi/compilernow include the copyright banner in their subpath exports.
@fluixi/start
- fluixi.config.ts now accepts the new options
vitePluginandplugins, allowing configuration of the fluixi Vite plugin options and additional Vite plugins. - The
@fluixi/startroot export now is safe to import from a browser bundle. ImportloadConfig,serveNode, adapters, orcreateImageHandlerfrom 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/startnow provide bundled builds with import resolving to a.mjsfile and a require condition resolving to a.cjsfile, and@fluixi/coreand@fluixi/compilernow include the copyright banner in their subpath exports.
0.1.0-alpha.73
@fluixi/cli
@fluixi/start
fluixiPluginsnow composesfluixi()instead ofcreateVitePlugin()to correctly set up the reactive graph, source marks, and /__fluixi/graph endpoint.createVitePluginis the bare compiler integration and the graph is composed on top of it byfluixi(), so no@fluixi/startapp 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 usingfluixior@fluixi/core/router-next, update your imports accordingly.
0.1.0-alpha.69
@fluixi/cli
@fluixi/start
- The package is now named
fluixiinstead of@fluixi/core, with the same contents and subpaths; all other@fluixi/*packages retain their names. Replace@fluixi/corewithfluixiinpackage.jsonand all import statements, and update subpaths like@fluixi/core/servertofluixi/server.
0.1.0-alpha.68
@fluixi/cli
- Let an SSR app configure component resolution, and stop making people hand-write it.
fluixi.config.tshad 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.resolveis a config field now and reaches the compiler. The scaffolded apps carry one pattern rule coveringsrc/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 componentprints 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.tshad 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.resolveis a config field now and reaches the compiler. The scaffolded apps carry one pattern rule coveringsrc/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 componentprints 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.cssURL 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
buildhook that runs after the client build, the server build and prerendering:writes deploy cloudflareAdapterdist/client/_worker.js+_routes.jsonpublish dist/clientnetlifyAdapter.netlify/functions-internal/fluixi-server.mjspublish dist/clientvercelAdapter.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 ASSETSbinding, Netlify throughpreferStatic, Vercel through afilesystemroute ahead of the function — so a prerendered page stays a file.createHandlerFromsplits the handler from the filesystem.createProdHandlerreads index.htmloff disk and imports the server entry by path; a worker can doneither. 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.jsis written into the directory you publish, so a split chunk would be apublicly 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 thepackage root, so import { defineMiddleware } from '@fluixi/start'could reach the devserver — and an adapter, which inlines everything its entry can reach, carried vite into the worker bundle. @fluixi/cliimports 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 buildnow 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 todist/server. The handler looks the path up and emitsmodulepreloadandstylesheetlinks 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/pluginsexportsscanRoutes, 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.htmlfor 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/serverwas 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.Adaptergains abundlemode —'external'onnodeAdapter,'inline'onwebAdapter— andfluixi buildfollows the adapter named influixi.config.ts:Onimport { defineConfig } from '@fluixi/start/config'; import { nodeAdapter } from '@fluixi/start/adapter'; export default defineConfig({ adapter: nodeAdapter });examples/start-appthat isentry-server.jsat 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 startserves 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 strictnode_moduleslayout 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 itsexportsmap publishes, because Vite only honours an exact id inssr.external— a bare package name leaves deep imports bundled, and@fluixi/coreexternal next to@fluixi/core/router-nextinlined is two routers with two sets of module state in one server.ssrNoExternalstill 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()andserverFunctionsVitePlugin()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. Thenativeoption is gone — that is simply what the plugin does. Babel is kept for the case that needs it, the way Next keeps one: ababel.config.jswhose 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 onexamples/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
buildhook that runs after the client build, the server build and prerendering:writes deploy cloudflareAdapterdist/client/_worker.js+_routes.jsonpublish dist/clientnetlifyAdapter.netlify/functions-internal/fluixi-server.mjspublish dist/clientvercelAdapter.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 ASSETSbinding, Netlify throughpreferStatic, Vercel through afilesystemroute ahead of the function — so a prerendered page stays a file.createHandlerFromsplits the handler from the filesystem.createProdHandlerreads index.htmloff disk and imports the server entry by path; a worker can doneither. 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.jsis written into the directory you publish, so a split chunk would be apublicly 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 thepackage root, so import { defineMiddleware } from '@fluixi/start'could reach the devserver — and an adapter, which inlines everything its entry can reach, carried vite into the worker bundle. @fluixi/cliimports them from the new subpath. - Import the generated server-fn and API tables from real modules
virtual:fluixi-server-fnsandvirtual:fluixi-apicould only be typed by an ambientdeclare module, which@fluixi/startwrote into yoursrc/asfluixi-start-env.d.ts.Named- 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';api-routesbecause@fluixi/start/apiis already the API plumbing you call directly. Both virtual specifiers still resolve. i18n deliberately keeps its generated declaration.virtual:fluixi-i18ntypesmessagesoff your own JSON (typeof import('./i18n/en.json')) andlocalesas a literal tuple — that is what makest()keys autocomplete, and no static package entry can express it. Moving it would have quietly downgraded those types toRecord<string, unknown>. Sofluixi-start-env.d.tsnow 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, anddist/index.mjsproves it — but the package still listed five@babel/*packages underdependencies, so importing@fluixi/compilerfor 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/builtinsand nothing else, was paying that.@babel/core,@babel/generator,@babel/helper-plugin-utilsand@babel/preset-typescriptare now optional peer dependencies. The packages that always run a Babel compile —@fluixi/vite-plugin,@fluixi/startand@fluixi/babel-plugin-jsx— depend on them for real, so no app config changes and nothing new has to be installed.@babel/typeswas listed and never imported; it is gone.no-babel-in-core.spec.tslocks the invariant in by walking the import graph from each Babel-free entry point (.and./builtins), following relative imports transitively and catchingimport 'x',import … from 'x',import('x')andrequire('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.jsondoes not exclude, so a prerendered page woke it just to hand the file back through theASSETSbinding. 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/coreno longer installs the build toolchain. It listed@fluixi/compiler,@fluixi/vite-pluginandvite-plugin-node-polyfillsunderdependencieswhile importing none of them fromsrc/— they exist for the@fluixi/core/pluginssubpath, which is build-time tooling. Declaring them as runtime dependencies of the runtime package meant every consumer of@fluixi/coreinstalled Vite plugins and a Babel toolchain (52 MB in this workspace) to render a component. Component libraries built on@fluixi/corewere passing that on to their own users. They are now optional peer dependencies: use@fluixi/core/pluginsand you need them, otherwise you do not.@fluixi/startreaches that subpath throughawait 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-pluginas 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.htmlsits 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,preferStaticon Netlify, the filesystem phase on Vercel. Every other route was already correct — nothing exists at/aboutunless 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.htmlis 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 asdist/server/template.htmlbefore 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 WebRequest→Responsehandler you mount as an API route: it resizes and re-encodes images (AVIF/WebP byAcceptnegotiation), 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 usessharpwhen installed, otherwise streams the source through unchanged, so@fluixi/startnever hard-depends on a native module.imageLoader({ path })produces a matching loader for@fluixi-ui/image'sloaderprop.
0.1.0-alpha.48
@fluixi/cli
@fluixi/start
0.1.0-alpha.47
@fluixi/cli
fluixi generateemits html`` components/routes (plain.ts) when the project is JSX projects still generate.tsxas before.
@fluixi/start
0.1.0-alpha.46
@fluixi/cli
- Update READMEs for public npm: drop the GitHub Packages
.npmrcinstall instructions (no auth needed on public npm) and replace the GitHub Packages registry badge with an npm version badge.
@fluixi/start
- Re-export
htmlandsvgfrom@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
licensefield (MIT) and bundle aLICENSEfile 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
.npmrcinstall 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
licensefield (MIT) and bundle aLICENSEfile 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/headcarries 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 viainjectAppAndHead. The prod adapter and prerender did this, but the dev server used plaininjectApp, 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 usesinjectAppAndHead, so the marker is lifted into<head>/<html>exactly like prod. As a safety net for streaming/custom servers,stripHeadMarkerdrops any stray leadingfh: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
Showtypes 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
Showtypes 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'sundefinedno longer clobbers an earlier defined value — it falls through to it (Solid's contract). PreviouslymergeProps(defaults, props)lostdefaultswheneverprops.xwasundefined, and since the compiler emitsmergeProps(...spreads, baseProps)for JSX spreads,<div {...a} {...b} />withb.x === undefinedwipeda.x. It's now a lazy Proxy (likesplitProps): 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; // 2Componenttyping (dom):Component<P>is now a proper function type —(props: P) => …— so you can annotate it and havepropsactually typed:Previouslyconst Greeting: Component<{ name: string }> = (props) => ( <h1>{props.name}</h1> );Component<P>wasComponentFn<P> | ComponentChild(which includesany), erasing all prop checking. Fluixi-branded helper types:FxComponent/FxC(aliases ofComponent),FxParent/FxParentProps(optional children),FxVoid/FxVoidProps(no children),FxFlow/FxFlowProps(required children), andComponentOrElementfor the loose "function-or-rendered-node" shape some internals pass around.@fluixi/corere-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/domfor them.@fluixi/cli:fluixi generate component <Name>now scaffolds a typed component — a<Name>Propstype and aComponent<<Name>Props>annotation (was an untypedexport 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/authrule throws, and the failure is logged to the TypeScript server. @fluixi/ts-plugin/rulesexportsenvAuthDiagnostics, 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. startClienttakes aroutesoption and awaitspreloadRoutesbefore hydrating. Passingroutesalso 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 smallseo()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 viaapiDir) 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 WebResponse(or any value → JSON). Static routes beat dynamic beat catch-all; a wrong method is405, an unknown/api/*path is404. Dev auto-wires it; prod dispatches via the entry-server re-exportexport { isApiRequest, handleApiRequest } from 'virtual:fluixi-api'. New@fluixi/start/apientry 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, andfetchWithInterceptorsis exported for your own data fetching.addInterceptorreturns a remover;clearInterceptorsresets. - Static Site Generation. Set
prerenderinfluixi.configandfluixi buildrenders routes to static HTML indist/client(deploy to any static host; pages hydrate on the client).trueprerenders/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 whatfluixi startserves — assets,__FX_DATA__, hydration markers and all. Also exportedprerender()for programmatic use.
@fluixi/ts-plugin
0.1.0-alpha.21
@fluixi/cli
@fluixi/head
- Add the
licensefield (MIT) and bundle aLICENSEfile 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, NOTuseContext, 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 viaIntl.NumberFormat/Intl.DateTimeFormat. Nested and flat dotted keys,{param}interpolation, fallback-locale, and adetectLocale(acceptLanguage, locales)helper.@fluixi/start— translation auto-discovery + config.fluixi.config'si18noption (defaultsrc/i18n, orfalseto disable, or{ dir, defaultLocale, locales }) makes the build scan<dir>/<locale>.jsonand expose them asvirtual:fluixi-i18n({ messages, locales, defaultLocale }) — feed it tocreateI18nin one line. The virtual modules' TypeScript declarations (virtual:fluixi-i18nANDvirtual:fluixi-server-fns) are now auto-generated intosrc/fluixi-start-env.d.ts(like the routes plugin'sfluixi-env.d.ts), so apps never hand-write adeclare moduleblock.
- 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
- i18n auto-discovery now emits typed
virtual:fluixi-i18ndeclarations. The generatedsrc/fluixi-start-env.d.tstypesmessagesoff the actual files —(typeof import('./i18n/en.json'))['default']per locale, plus a literallocalestuple anddefaultLocale— so translation keys flow all the way fromsrc/i18n/*.jsonintocreateI18n({ messages })andt('…')autocompletes them. Falls back to the openRecord<string, unknown>shape when no JSON files exist yet (or a configured locale has no file). Relies onresolveJsonModule(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/startnow 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(withdeps) /useExisting; tree-shakable tokenfactory(≈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.
runInInjectionContextto resolve outside a component (e.g. inside a server function).- Client-safe (imports only
@fluixi/core+@fluixi/dom's puregetRequestContext). 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/_serverserver functions. Same app code either way — flip the flag to choose where first paint happens.dev/build/startall 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|startnow load.envfiles intoprocess.envfor server code (loaders,"use server"functions). Security model is Vite-aligned: onlyVITE_-prefixed vars reach the client (import.meta.env, inlined into the browser bundle); everything else is server-only viaprocess.envand 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-fnsnow re-exports the dispatcher (isServerFnRequest/handleServerFn), andfluixi devroutes/_serverthrough it directly. So a"use server"function just works — no need to manuallyexport { isServerFnRequest, handleServerFn }fromentry-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 builtentry-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 acreateEffectto mirror their store into the auth hooks (useUser/protectedRoute/useSignInderive fromsession.user/login/logout).- Cookie API (from
@fluixi/auth/server) —parseCookies,serializeCookie(secure-by-default: HttpOnly, Secure, SameSite=Lax, Path=/),deleteCookie, and request-scopedgetCookie/getCookies. fluixi generate auth— scaffoldsauth.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/headcarries 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 viainjectAppAndHead. The prod adapter and prerender did this, but the dev server used plaininjectApp, 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 usesinjectAppAndHead, so the marker is lifted into<head>/<html>exactly like prod. As a safety net for streaming/custom servers,stripHeadMarkerdrops any stray leadingfh: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/reactiveto devDependencies on@fluixi/headand 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
localsseam + the middleware→render bridge.RequestEventnow carries alocalsbag (initialized bycreateRequestContext), with an augmentableRequestLocalsinterface and agetLocals()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, sogetRequestLocals(request)exposes a per-request locals bag (aWeakMap, request-keyed → concurrency-isolated, GC-friendly). Middleware writesgetRequestLocals(request).x = …;createRequestContextadopts that same bag when the app forwardsrequeston the render event (renderRequestAsync(App, { url, request })).@fluixi/startre-exportsgetRequestLocals/getLocalsand now passesrequestto 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/servertoo.
@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-plugincontinues 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,$svgand$cssfrom the start.
0.1.0-alpha.14
@fluixi/cli
@fluixi/head
@fluixi/start
@fluixi/template-runtime
@fluixi/ts-plugin
create-fluixi
$storagestands foruseStorage,$asyncStoragestands foruseAsyncStorage, and$persistedstands forpersistedfrom@fluixi/core/storage.- New apps now ignore the
.fluixifolder thatfluixi buildgenerates. - The new app's
fluixi.d.tsnow 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-fluixinow allows SSR apps to start with authentication using--auth=oauth2|better-auth|nonetogether with--providerand--tokens, and new apps include TypeScript sofluixi checkruns.
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.cssthat 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'sflx.basereset outranks the@fluixi-uicomponents it belongs under. - Generated apps use the
$signal/$resourceintrinsics, navigate with<Link>rather than<a href>, and ship afluixi.d.tsso an editor knows the intrinsics before the app has been run. The fluixi-css stylesheet now carries@fluixi base/utilities/componentsand its own@theme, so nofluixi.css.config.jsis generated.resource()accepts the single-fetcher form again: it borrowed its parameters fromcreateResource, 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.cssbefore 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
vitePluginandplugins, allowing configuration of the fluixi Vite plugin options and additional Vite plugins.
0.1.0-alpha.9
@fluixi/cli
@fluixi/head
- Fix control flow
Showtypes 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.tshad 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.resolveis a config field now and reaches the compiler. The scaffolded apps carry one pattern rule coveringsrc/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 componentprints 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
adapterunset, sofluixi buildfell back to Vite's own bundling rather thannodeAdapter's'external'— the framework was copied intodist/serverinstead of staying an import next tonode_modules, which is the wrong trade for the Node process the template's ownstartscript runs. The config namesnodeAdapternow 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 htmlvariant is JSX-free: plain.tssources and a tsconfig withoutjsx, useful when dependencies now track thealphadist-tag.
0.1.0-alpha.6
@fluixi/head
@fluixi/template-runtime
@fluixi/ts-plugin
create-fluixi
- Add the
licensefield (MIT) and bundle aLICENSEfile 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
Showtypes 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/builtinsexports the names the compiler supplies without an import, and the module each comes from: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,import { builtinComponentMap, RESERVED_COMPONENTS, } from '@fluixi/compiler/builtins';@fluixi/ts-pluginkept 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 configuredresolverule now wins overRouter,Outlet,RedirectandLink. Those are only an auto-import, so a project defining its ownLinkpreviously 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,IndexandMatchemit their value prop as a getter, soeach={items()}re-reads instead of snapshotting once.RESERVED_COMPONENTSlists 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 withoutisIncomplete, 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
resolverule Typing<Stackinsidehtml`…`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 aresolverule 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 asexport import Stack = ns.Stackand 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
dirnarrows todirectioninstead 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 singlehtml`\`\` …`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. startClienttakes aroutesoption and awaitspreloadRoutesbefore hydrating. Passingroutesalso 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 smallseo()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.Six strategies:<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 approacheager,idle,visible,interaction,media,never. A deferred component compiles todeferred(() => 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 onlazy()— it adds only the scheduling, reusing Suspense integration and the synchronous-when-preloaded hydration path unchanged.load:joins the existinguse:/prop:/attr:/bool:namespace, so it cannot collide with a real prop. Both syntaxes share one parser:load:visibleis already a validJSXNamespacedName, and the html``parser gains aLoadDirectivenode, 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, andload:visible={margin}is an error rather than a silent fallback. Seeexamples/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 literalhtml\`` 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 theSourceFile. 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.2added shadow files to the program by patchinggetScriptFileNames, 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 —eachitems,refelements, 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 (<For each=${items}>) and a render-prop child is a function on purpose, so neither is touched.
create-fluixi
- Fix
create-fluixihanging after scaffolding in interactive mode. The app-mode select menu callsemitKeypressEvents(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/--ssrruns 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
imgwith noalt, anawith nohref, aniframewith notitle, a positivetabindex, 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 withaccessibility: false.EventBindingNode.nameis now the DOM event name whatever the spelling. It was documented as lowercased but only was for@clickandon:click—onMouseDownproducedMouseDown. Compilation was unaffected because lowering lowercases defensively, so this only ever bit a consumer that trusted the documented contract.syntaxstill records which form was written.
@fluixi/template-runtime
@fluixi/testing
- Add the
licensefield (MIT) and bundle aLICENSEfile 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
IntrinsicElementsin@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 theSourceFileobject, which TypeScript replaces whenever the file changes — so aWeakMapgives 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.IntrinsicElementsis 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, solib.d.tsand everynode_modulesdeclaration — 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/cliententry provides acreateClient<ApiRoutes>()function with typed get, post, put, patch, and delete methods, including typed params, query, body, and response, and throwsApiClientErrorcontaining 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 newguardoption that runs before input is read, passes its result to the handler asauth, and adds the appropriate security scheme and 401/403 responses to the OpenAPI document, usingsecurity: []when no guard is set. - The new
revalidatesroute option names cached data a success changes, sending anx-fx-revalidateheader that the client applies to the router in the browser by default or toonRevalidate. - 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/apiare touched. - The new
postgresRateLimitStore(client, { table, schema, createTable })shares rate-limit counts across all instances on any client usingquery(text, values). If the database fails, hits are counted in memory until it is back.
@fluixi/cdn
- Three new files,
min.js,templates.jsandfull.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 —
createStoredrops 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/signalentry: the unused operator modules move to@fluixi/reactive/operatorsand@fluixi/reactive/cached-resourcesubpaths, so/signalfalls 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 html
templates 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, andfull.jsonto simplify loading it from a CDN without manually specifying every subpath.
@fluixi/storage
- The new
documentCookieAdapterfrom@fluixi/storage/browseruses the same encoding ascookieStorage, so server and browser read one value, andstorage.keyPrefixnow exposes the namespace prefix. localStorageAdapterandsessionStorageAdapternow 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
createStorageAPI, 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 whereset(key, value, { encrypt: true })stores the item encrypted with AES-256-GCM andgetautomatically decrypts it, while unencrypted items remain unchanged.- A ttl set through the storage now also sets the cookie's Expires on
cookieStorageanddocumentCookieAdapter;copyStoragenow accepts async and encrypted storages and returns a promise for them. cookieStorageandrequestStoragefrom@fluixi/storage/servernow provide typed storage backed by request cookies, sending writes asSet-Cookiewith 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-runtimepackage compileshtmlandsvgtemplates in the browser, with no build step, and@fluixi/compilernow includes a./compilesubpath 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/coreto provide a way to create them.