v11.23.0
Added 2
- Support @tanstack/react-query 5.105 types in react-query and tanstack-react-query
- Add query handles with $ helpers in tanstack-react-query: unstable_$prefetch, unstable_$ensure, unstable_$fetch, and unstable_$fromHandle
Changed 1
- Rename unstable_localLink to localLink on the client
Fixed 7
- Always inject the cursor field in infinite queries in react-query
- Make the proxy type usable for createTRPCReact<AnyTRPCRouter>
- Set the Allow header on 405 responses on the server
- Let a caller's Content-Type header replace the default on the client
- Accept a standalone basePath without a trailing slash on the server
- Keep the connection state idle after wsClient.close() on the client
- Query handles in tanstack-react-query no longer carry data
From tRPC
What's Changed
- fix(react-query): always inject cursor field in infinite queries by @Zelys-DFKH in https://github.com/trpc/trpc/pull/7361
- fix(react-query): usable proxy type for createTRPCReact by @momomuchu in https://github.com/trpc/trpc/pull/7428
- feat(react-query,tanstack-react-query): support @tanstack/react-query 5.105 types by @KATT in https://github.com/trpc/trpc/pull/7760
- fix(server): set the allow header on 405 responses by @10kartik in https://github.com/trpc/trpc/pull/7769
- fix(client): let a caller's Content-Type header replace the default by @10kartik in https://github.com/trpc/trpc/pull/7780
- fix(server): accept a standalone basePath without a trailing slash by @10kartik in https://github.com/trpc/trpc/pull/7781
- feat(client): rename
unstable_localLinktolocalLinkby @KATT in https://github.com/trpc/trpc/pull/7777 - feat(tanstack-react-query): query handles with
$helpers (unstable_$prefetch,unstable_$ensure,unstable_$fetch,unstable_$fromHandle) by @KATT in https://github.com/trpc/trpc/pull/7759 - fix(client): keep the connection state idle after wsClient.close() by @MindOfqc in https://github.com/trpc/trpc/pull/7733
- fix(tanstack-react-query): query handles carry no data by @KATT in https://github.com/trpc/trpc/pull/7822
New Contributors
- @Zelys-DFKH made their first contribution in https://github.com/trpc/trpc/pull/7361
- @momomuchu made their first contribution in https://github.com/trpc/trpc/pull/7428
- @Emmanuelzyronis made their first contribution in https://github.com/trpc/trpc/pull/7609
- @10kartik made their first contribution in https://github.com/trpc/trpc/pull/7769
Full Changelog: https://github.com/trpc/trpc/compare/v11.22.1...v11.23.0