Skip to content

Releases: TanStack/redact

v0.0.11 — vinext SSR/hydration compatibility

12 May 18:12

Choose a tag to compare

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.edge and react-dom/static.edge to @tanstack/redact/server so 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 so react-server-dom-webpack/client.edge can decode Flight H rows without crashing.
  • #9 renderToReadableStream now supports bootstrapScriptContent, 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 into document.head during 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).