diff --git a/.changeset/pre.json b/.changeset/pre.json index d751615a9f..13785baaf0 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -46,8 +46,10 @@ "solid-hydration-data-consumption", "solid-query-flight-metadata", "solid-query-native-rewrite", + "solid-query-public-hydration-api", "solid-rc-6-floor", "solid-rc-upgrade", + "solid-rc9", "solid-removed-query-not-rebuilt", "sour-balloons-nail", "whole-coins-count" diff --git a/examples/solid/astro/package.json b/examples/solid/astro/package.json index 0e82a1e183..01fd3accfe 100644 --- a/examples/solid/astro/package.json +++ b/examples/solid/astro/package.json @@ -15,8 +15,8 @@ "@astrojs/solid-js": "^5.0.7", "@astrojs/tailwind": "^6.0.2", "@astrojs/vercel": "^8.1.3", - "@tanstack/solid-query": "^6.0.0-rc.4", - "@tanstack/solid-query-devtools": "^6.0.0-rc.4", + "@tanstack/solid-query": "^6.0.0-rc.5", + "@tanstack/solid-query-devtools": "^6.0.0-rc.5", "astro": "^5.5.6", "@solidjs/web": "^2.0.0-rc.13", "solid-js": "^2.0.0-rc.13", diff --git a/examples/solid/basic-graphql-request/package.json b/examples/solid/basic-graphql-request/package.json index 8d6cbed638..a5d1a6e776 100644 --- a/examples/solid/basic-graphql-request/package.json +++ b/examples/solid/basic-graphql-request/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^6.0.0-rc.4", - "@tanstack/solid-query-devtools": "^6.0.0-rc.4", + "@tanstack/solid-query": "^6.0.0-rc.5", + "@tanstack/solid-query-devtools": "^6.0.0-rc.5", "graphql": "^16.9.0", "graphql-request": "^7.1.2", "@solidjs/web": "^2.0.0-rc.13", diff --git a/examples/solid/basic/package.json b/examples/solid/basic/package.json index bf7d909204..e9aaa35640 100644 --- a/examples/solid/basic/package.json +++ b/examples/solid/basic/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^6.0.0-rc.4", - "@tanstack/solid-query-devtools": "^6.0.0-rc.4", + "@tanstack/solid-query": "^6.0.0-rc.5", + "@tanstack/solid-query-devtools": "^6.0.0-rc.5", "@solidjs/web": "^2.0.0-rc.13", "solid-js": "^2.0.0-rc.13" }, diff --git a/examples/solid/default-query-function/package.json b/examples/solid/default-query-function/package.json index a72acd745a..760be2e0c2 100644 --- a/examples/solid/default-query-function/package.json +++ b/examples/solid/default-query-function/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^6.0.0-rc.4", - "@tanstack/solid-query-devtools": "^6.0.0-rc.4", + "@tanstack/solid-query": "^6.0.0-rc.5", + "@tanstack/solid-query-devtools": "^6.0.0-rc.5", "@solidjs/web": "^2.0.0-rc.13", "solid-js": "^2.0.0-rc.13" }, diff --git a/examples/solid/offline/package.json b/examples/solid/offline/package.json index 0e267ce3df..a1f503aba0 100644 --- a/examples/solid/offline/package.json +++ b/examples/solid/offline/package.json @@ -9,9 +9,9 @@ }, "dependencies": { "@tanstack/query-async-storage-persister": "^5.101.4", - "@tanstack/solid-query": "^6.0.0-rc.4", - "@tanstack/solid-query-devtools": "^6.0.0-rc.4", - "@tanstack/solid-query-persist-client": "^6.0.0-rc.4", + "@tanstack/solid-query": "^6.0.0-rc.5", + "@tanstack/solid-query-devtools": "^6.0.0-rc.5", + "@tanstack/solid-query-persist-client": "^6.0.0-rc.5", "msw": "^2.6.6", "@solidjs/web": "^2.0.0-rc.13", "solid-js": "^2.0.0-rc.13" diff --git a/examples/solid/simple/package.json b/examples/solid/simple/package.json index 769d9fe228..7b48e1ca47 100644 --- a/examples/solid/simple/package.json +++ b/examples/solid/simple/package.json @@ -8,8 +8,8 @@ "preview": "vite preview" }, "dependencies": { - "@tanstack/solid-query": "^6.0.0-rc.4", - "@tanstack/solid-query-devtools": "^6.0.0-rc.4", + "@tanstack/solid-query": "^6.0.0-rc.5", + "@tanstack/solid-query-devtools": "^6.0.0-rc.5", "@solidjs/web": "^2.0.0-rc.13", "solid-js": "^2.0.0-rc.13" }, diff --git a/examples/solid/solid-start-streaming/package.json b/examples/solid/solid-start-streaming/package.json index 926dd799a0..e48e978711 100644 --- a/examples/solid/solid-start-streaming/package.json +++ b/examples/solid/solid-start-streaming/package.json @@ -12,8 +12,8 @@ "@solidjs/meta": "^0.29.4", "@solidjs/router": "^0.15.3", "@solidjs/start": "^1.1.3", - "@tanstack/solid-query": "^6.0.0-rc.4", - "@tanstack/solid-query-devtools": "^6.0.0-rc.4", + "@tanstack/solid-query": "^6.0.0-rc.5", + "@tanstack/solid-query-devtools": "^6.0.0-rc.5", "@solidjs/web": "^2.0.0-rc.13", "solid-js": "^2.0.0-rc.13", "vinxi": "^0.5.3" diff --git a/packages/solid-query-devtools/CHANGELOG.md b/packages/solid-query-devtools/CHANGELOG.md index 4b98b573bb..fbd2473e6c 100644 --- a/packages/solid-query-devtools/CHANGELOG.md +++ b/packages/solid-query-devtools/CHANGELOG.md @@ -1,5 +1,20 @@ # @tanstack/solid-query-devtools +## 6.0.0-rc.5 + +### Patch Changes + +- [#11751](https://github.com/TanStack/query/pull/11751) [`8a13b15`](https://github.com/TanStack/query/commit/8a13b15c349dde3b6bc9ff0f2f0caf7ae602a6b1) - Move off Solid's internal `sharedConfig` onto its public hydration API. The hydrating-mount checks read `isHydrating()`, the server cache stream writes through `getHydrationWriter()` gated on `isHydratable()` (so `` is still respected), and `useQuery` consumes its streamed entry with `takeHydrationValue()`. `sharedConfig` is internal in Solid 2.0 and absent from the published `solid-js` declarations, so the previous imports no longer type-check. + + These APIs ship in Solid `2.0.0-rc.13`, so the `solid-js` / `@solidjs/web` peer floor is now `>=2.0.0-rc.13`. + +- [#11543](https://github.com/TanStack/query/pull/11543) [`cb63f07`](https://github.com/TanStack/query/commit/cb63f070726a4798be5ef63aba442147ffd11a8e) - Follow Solid 2.0.0-rc.9. The packages build with `@solidjs/babel-plugin` (the Solid 2.0 compiler, matching the rc.9 runtime's delegated-event contract) and test under vite 8; the `solid-js` / `@solidjs/web` peer floor is `2.0.0-rc.9`. + + `useQuery`'s setup-time snapshots (the meta projection's seed, the mount counts) now read the cache directly instead of through the hook's version signal. Under hydration, priming writes that signal during setup, and a write made during the hydration pass is held: a computation in the pass that reads it — tracked or not — is served the pre-write value and replays when the pass ends. For the hook's own derived nodes that replay is the takeover; for the computation instantiating the component (a `` boundary's children) it was a remount, re-creating the hydrated component as a client render and letting cache writes reach the DOM while the stream was still open. + +- Updated dependencies [[`8a13b15`](https://github.com/TanStack/query/commit/8a13b15c349dde3b6bc9ff0f2f0caf7ae602a6b1), [`cb63f07`](https://github.com/TanStack/query/commit/cb63f070726a4798be5ef63aba442147ffd11a8e)]: + - @tanstack/solid-query@6.0.0-rc.5 + ## 6.0.0-rc.4 ### Patch Changes diff --git a/packages/solid-query-devtools/package.json b/packages/solid-query-devtools/package.json index e62c96d5cb..10fdec672e 100644 --- a/packages/solid-query-devtools/package.json +++ b/packages/solid-query-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query-devtools", - "version": "6.0.0-rc.4", + "version": "6.0.0-rc.5", "description": "Developer tools to interact with and visualize the TanStack/solid-query Query cache", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/solid-query-persist-client/CHANGELOG.md b/packages/solid-query-persist-client/CHANGELOG.md index 6229b1ee5e..704ca2303a 100644 --- a/packages/solid-query-persist-client/CHANGELOG.md +++ b/packages/solid-query-persist-client/CHANGELOG.md @@ -1,5 +1,20 @@ # @tanstack/solid-query-persist-client +## 6.0.0-rc.5 + +### Patch Changes + +- [#11751](https://github.com/TanStack/query/pull/11751) [`8a13b15`](https://github.com/TanStack/query/commit/8a13b15c349dde3b6bc9ff0f2f0caf7ae602a6b1) - Move off Solid's internal `sharedConfig` onto its public hydration API. The hydrating-mount checks read `isHydrating()`, the server cache stream writes through `getHydrationWriter()` gated on `isHydratable()` (so `` is still respected), and `useQuery` consumes its streamed entry with `takeHydrationValue()`. `sharedConfig` is internal in Solid 2.0 and absent from the published `solid-js` declarations, so the previous imports no longer type-check. + + These APIs ship in Solid `2.0.0-rc.13`, so the `solid-js` / `@solidjs/web` peer floor is now `>=2.0.0-rc.13`. + +- [#11543](https://github.com/TanStack/query/pull/11543) [`cb63f07`](https://github.com/TanStack/query/commit/cb63f070726a4798be5ef63aba442147ffd11a8e) - Follow Solid 2.0.0-rc.9. The packages build with `@solidjs/babel-plugin` (the Solid 2.0 compiler, matching the rc.9 runtime's delegated-event contract) and test under vite 8; the `solid-js` / `@solidjs/web` peer floor is `2.0.0-rc.9`. + + `useQuery`'s setup-time snapshots (the meta projection's seed, the mount counts) now read the cache directly instead of through the hook's version signal. Under hydration, priming writes that signal during setup, and a write made during the hydration pass is held: a computation in the pass that reads it — tracked or not — is served the pre-write value and replays when the pass ends. For the hook's own derived nodes that replay is the takeover; for the computation instantiating the component (a `` boundary's children) it was a remount, re-creating the hydrated component as a client render and letting cache writes reach the DOM while the stream was still open. + +- Updated dependencies [[`8a13b15`](https://github.com/TanStack/query/commit/8a13b15c349dde3b6bc9ff0f2f0caf7ae602a6b1), [`cb63f07`](https://github.com/TanStack/query/commit/cb63f070726a4798be5ef63aba442147ffd11a8e)]: + - @tanstack/solid-query@6.0.0-rc.5 + ## 6.0.0-rc.4 ### Patch Changes diff --git a/packages/solid-query-persist-client/package.json b/packages/solid-query-persist-client/package.json index cff4903e33..22d862edb2 100644 --- a/packages/solid-query-persist-client/package.json +++ b/packages/solid-query-persist-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query-persist-client", - "version": "6.0.0-rc.4", + "version": "6.0.0-rc.5", "description": "Solid.js bindings to work with persisters in TanStack/solid-query", "author": "tannerlinsley", "license": "MIT", diff --git a/packages/solid-query/CHANGELOG.md b/packages/solid-query/CHANGELOG.md index 9b8f689c6d..8f97c5107e 100644 --- a/packages/solid-query/CHANGELOG.md +++ b/packages/solid-query/CHANGELOG.md @@ -1,5 +1,17 @@ # @tanstack/solid-query +## 6.0.0-rc.5 + +### Patch Changes + +- [#11751](https://github.com/TanStack/query/pull/11751) [`8a13b15`](https://github.com/TanStack/query/commit/8a13b15c349dde3b6bc9ff0f2f0caf7ae602a6b1) - Move off Solid's internal `sharedConfig` onto its public hydration API. The hydrating-mount checks read `isHydrating()`, the server cache stream writes through `getHydrationWriter()` gated on `isHydratable()` (so `` is still respected), and `useQuery` consumes its streamed entry with `takeHydrationValue()`. `sharedConfig` is internal in Solid 2.0 and absent from the published `solid-js` declarations, so the previous imports no longer type-check. + + These APIs ship in Solid `2.0.0-rc.13`, so the `solid-js` / `@solidjs/web` peer floor is now `>=2.0.0-rc.13`. + +- [#11543](https://github.com/TanStack/query/pull/11543) [`cb63f07`](https://github.com/TanStack/query/commit/cb63f070726a4798be5ef63aba442147ffd11a8e) - Follow Solid 2.0.0-rc.9. The packages build with `@solidjs/babel-plugin` (the Solid 2.0 compiler, matching the rc.9 runtime's delegated-event contract) and test under vite 8; the `solid-js` / `@solidjs/web` peer floor is `2.0.0-rc.9`. + + `useQuery`'s setup-time snapshots (the meta projection's seed, the mount counts) now read the cache directly instead of through the hook's version signal. Under hydration, priming writes that signal during setup, and a write made during the hydration pass is held: a computation in the pass that reads it — tracked or not — is served the pre-write value and replays when the pass ends. For the hook's own derived nodes that replay is the takeover; for the computation instantiating the component (a `` boundary's children) it was a remount, re-creating the hydrated component as a client render and letting cache writes reach the DOM while the stream was still open. + ## 6.0.0-rc.4 ### Patch Changes diff --git a/packages/solid-query/package.json b/packages/solid-query/package.json index 4fd76a80ea..1964995aaf 100644 --- a/packages/solid-query/package.json +++ b/packages/solid-query/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/solid-query", - "version": "6.0.0-rc.4", + "version": "6.0.0-rc.5", "description": "Primitives for managing, caching and syncing asynchronous and remote data in Solid", "author": "tannerlinsley", "license": "MIT", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f72ac2c87d..033516bc24 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1610,10 +1610,10 @@ importers: specifier: ^2.0.0-rc.13 version: 2.0.0-rc.13(solid-js@2.0.0-rc.13) '@tanstack/solid-query': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query-devtools astro: specifier: ^5.5.6 @@ -1634,10 +1634,10 @@ importers: specifier: ^2.0.0-rc.13 version: 2.0.0-rc.13(solid-js@2.0.0-rc.13) '@tanstack/solid-query': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query-devtools solid-js: specifier: ^2.0.0-rc.13 @@ -1659,10 +1659,10 @@ importers: specifier: ^2.0.0-rc.13 version: 2.0.0-rc.13(solid-js@2.0.0-rc.13) '@tanstack/solid-query': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query-devtools graphql: specifier: ^16.9.0 @@ -1690,10 +1690,10 @@ importers: specifier: ^2.0.0-rc.13 version: 2.0.0-rc.13(solid-js@2.0.0-rc.13) '@tanstack/solid-query': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query-devtools solid-js: specifier: ^2.0.0-rc.13 @@ -1718,13 +1718,13 @@ importers: specifier: ^5.101.4 version: link:../../../packages/query-async-storage-persister '@tanstack/solid-query': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query-devtools '@tanstack/solid-query-persist-client': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query-persist-client msw: specifier: ^2.6.6 @@ -1749,10 +1749,10 @@ importers: specifier: ^2.0.0-rc.13 version: 2.0.0-rc.13(solid-js@2.0.0-rc.13) '@tanstack/solid-query': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query-devtools solid-js: specifier: ^2.0.0-rc.13 @@ -1786,10 +1786,10 @@ importers: specifier: ^2.0.0-rc.13 version: 2.0.0-rc.13(solid-js@2.0.0-rc.13) '@tanstack/solid-query': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query '@tanstack/solid-query-devtools': - specifier: ^6.0.0-rc.4 + specifier: ^6.0.0-rc.5 version: link:../../../packages/solid-query-devtools solid-js: specifier: ^2.0.0-rc.13