Releases: TanStack/redact
Releases · TanStack/redact
v0.0.11 — vinext SSR/hydration compatibility
First batch of community contributions targeting vinext (Vite RSC App Router) compatibility, plus minor cleanups.
What's new
vinext compatibility (Steve Faulkner)
- #8 Vite plugin now aliases
react-dom/server.edgeandreact-dom/static.edgeto@tanstack/redact/serverso edge SSR entrypoints resolve correctly. - #11 Exposed
__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE(no-op stub) on the dom entry soreact-server-dom-webpack/client.edgecan decode FlightHrows without crashing. - #9
renderToReadableStreamnow supportsbootstrapScriptContent, retries root-level suspension (App Router commonly suspends at the root while resolving the RSC stream), and normalizes top-level head tags emitted before<html>. - #10 Project top-level
<meta>/<title>/<link>elements intodocument.headduring render and hydration. Emit empty<head>when missing on SSR.
Cleanups (Wonsuk Choi)
- #12 Renamed internal
__tdom*scroll-guard window globals to__redact*. - #13 Fixed an out-of-date wire-format comment in
bootstrap-script.ts.
Size
dom-client and variants grew ~400 B gzip to accommodate the document-head projection logic and DOM internals stub.
Tests
728/728 pass (6 new tests covering the vinext-compat paths).