@tanstack/solid-start-server@1.167.41

TanStack/router@tanstack/solid-start-server@1.167.41Sep 16, 2026by github-actions[bot]

Upgrading?

AI Summary

This release implements core streaming and SSR improvements, including handling large deferred payloads and canceling discarded streams. It also updates Solid SSR to align with React and Vue behaviors.

Key Highlights

  • Stream large deferred SSR hydration payloads through a backpressure-aware router transport
  • Cancel discarded middleware and HEAD response bodies
  • Solid SSR now renders late lazy errors through route boundaries
  • Solid `<Await>` without a fallback no longer holds the streamed shell

Breaking Changes

  • The JSON wire shape of a `RawStream` server-function argument changed
  • The frame-protocol constants moved from the root to the client-rpc subpath
  • Router requests with incompatible Accept headers now receive 406 Not Acceptable instead of 500

New Features

  • Stream large deferred SSR hydration payloads through a backpressure-aware router transport
  • Fail known setup errors before response creation
  • Close cancelled or expired transforms safely
  • SSR Query integrations now keep request cleanup and stream ownership aligned with the router lifecycle

Full Release Notes

### Patch Changes

-   [#8204](https://github.com/TanStack/router/pull/8204) [`cbbfbe3`](https://github.com/TanStack/router/commit/cbbfbe37ab1dbe328c343cb437c5660769cc9f26) - Stream large deferred SSR hydration payloads through a backpressure-aware router transport, fail known setup errors before response creation, and close cancelled or expired transforms safely.

    Start now cancels discarded middleware and HEAD response bodies, including plain streams and derived branches.

    Server-function raw streams share one ordered response. Arbitrary or sequential consumption can require potentially unbounded buffering of unread data on the client. Cancelling one raw stream discards it locally, while aborting the whole call cancels the response and server work. Consume streams concurrently, cancel unused streams promptly, or use separate calls when independent backpressure is required. A raw stream that exceeds its unread-byte limit now fails alone; sibling streams and the JSON result keep flowing.

    The JSON wire shape of a `RawStream` server-function argument changed. Clients and servers must run matching versions for requests that pass a `RawStream`.

    The frame-protocol constants (`FRAME_TYPE_*`, `MAX_FRAME_PAYLOAD_SIZE`, `MAX_FRAMED_STREAMS`) moved from the `@tanstack/start-client-core` root to the `@tanstack/start-client-core/client-rpc` subpath.

    Router requests whose `Accept` header allows neither `text/html` nor `*/*` now receive `406 Not Acceptable` instead of `500`.

    Framework adapters share the body `<Scripts>` composition (`getSsrBodyScriptParts`, `composeSsrBodyScripts`) and the eager HTML response wrapper (`renderSsrHtmlResponse`) from `@tanstack/router-core`.

    Solid SSR now emits one document type and renders late lazy errors through route boundaries. A Solid `<Await>` without a `fallback` no longer holds the streamed shell; it renders inside the nearest `<Suspense>` boundary like React and Vue, and now renders falsy resolved values.

    Static server functions decode cached `RawStream` values with the client deserializer plugins.

    SSR Query integrations now keep request cleanup and stream ownership aligned with the router lifecycle.

-   Updated dependencies \[[`bc80866`](https://github.com/TanStack/router/commit/bc80866f6d6eb3e6f152ee3682eb783c96403e83), [`e561fa1`](https://github.com/TanStack/router/commit/e561fa1d7118e3d29267cc3b6ce1130d6581f387), [`cbbfbe3`](https://github.com/TanStack/router/commit/cbbfbe37ab1dbe328c343cb437c5660769cc9f26), [`a1c8d1a`](https://github.com/TanStack/router/commit/a1c8d1aa759c227eae9601a030321ac4c53c24bd), [`cbbfbe3`](https://github.com/TanStack/router/commit/cbbfbe37ab1dbe328c343cb437c5660769cc9f26), [`a0b2ad9`](https://github.com/TanStack/router/commit/a0b2ad99aee64af08d16b0e4ff26b3ba42a99f0a), [`1ca361b`](https://github.com/TanStack/router/commit/1ca361ba52a627d2f76ab33323bd83d1d0aa65a3)]:
    -   @tanstack/router-core@1.171.31
    -   @tanstack/solid-router@1.170.35
    -   @tanstack/start-server-core@1.169.36

Related Repositories