Features
- Add
Env.PREVIEW, theVITE_MINIFYandREFLEX_NO_AUTOPREFIXERenvironment variables, aminify/cssMinifyoption on the vite config template, and aREFLEX_NO_AUTOPREFIXERtoggle in the generatedpostcss.config.jsto support the newpreviewrun mode. (#6663) - Add a staged
Plugin.register_routehook withadd_pageandhas_app_pagecapabilities that runs once per app before its first compilation, andrx.plugins.get_plugin()to look up the configured plugin instance by type (raisingConfigErroron ambiguous matches). (#6728)
Bug Fixes
- Preserve runtime value types for unannotated
@rx.memocomponent parameters. (#6659) - Compare timezone-aware datetime Vars by their instants instead of their serialized UTC offsets. (#6767)
- In python 3.13+, the EventProcessor loop was not catching asyncio.QueueShutdown resulting in uncaught exceptions during shutdown. (#6773)
- Prevented edits to unloaded routes from poisoning React Router's browser-side HMR queue and blocking all later hot updates until a full page reload. (#6774)
- Drain queued same-token events during graceful event processor shutdown. (#6791)
- Custom attributes on a
Fieldare now carried onto the rebuilt field by reference instead of deep copy, so stateful callable markers keep their identity and markers holding non-copyable values (locks, clients) no longer crash state class creation. (#6809)
Miscellaneous
-
Bumped bundled frontend dependency pins to their current releases:
react/react-dom: 19.2.6 → 19.2.8react-router,react-router-dom,@react-router/node,@react-router/dev,@react-router/fs-routes: 7.15.0 → 7.18.2isbot: 5.1.40 → 5.2.1universal-cookie: 7.2.2 → 8.1.2postcss: 8.5.14 → 8.5.23autoprefixer: 10.5.0 → 10.5.4vite: 8.0.16 → 8.2.0@tailwindcss/typography: 0.5.19 → 0.5.20- Bun: 1.3.13 → 1.3.14
Also raised the
richupper bound to<16(adopting rich 15). Replaced the now-redundantcookiepackage.jsonoverride (universal-cookie8 andreact-routerresolvecookieto 1.x on their own) with apostcssoverride pinning it to 8.5.23 (also satisfyingvite8.2.0's^8.5.23) so transitive resolutions stay on a patched release (>= 8.5.18) for a security advisory.(#6678)
-
Remove the unused
REFLEX_USE_TURBOPACKenvironment variable. Turbopack is a Next.js bundler; the flag has had no effect since Reflex moved to React Router and Vite in 0.8. (#6803)