@raf-query/react 0.10.4 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -2
- package/dist/use-query.d.mts +4 -3
- package/dist/use-query.mjs +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.1](https://github.com/KATT/raf-query/compare/0.11.0...0.11.1) (2026-10-17)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **core:** take throwOnError from the query's options (2/2) ([#214](https://github.com/KATT/raf-query/issues/214)) ([ef1f0fd](https://github.com/KATT/raf-query/commit/ef1f0fd8eda2a73f4c4c268e8a3a5cf91a0ba0d8)), references [#448](https://github.com/KATT/raf-query/issues/448)
|
|
8
|
+
|
|
9
|
+
## [0.11.0](https://github.com/KATT/raf-query/compare/0.10.4...0.11.0) (2026-10-16)
|
|
10
|
+
|
|
11
|
+
### ⚠ BREAKING CHANGES
|
|
12
|
+
|
|
13
|
+
- **core:** enabled replaces ssr, as a boolean like TanStack Query's ([#204](https://github.com/KATT/raf-query/issues/204))
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
- **core:** enabled replaces ssr, as a boolean like TanStack Query's ([#204](https://github.com/KATT/raf-query/issues/204)) ([b7e543b](https://github.com/KATT/raf-query/commit/b7e543b9d1d34e02061740f749f2ddabcdee2ad2))
|
|
18
|
+
|
|
3
19
|
## [0.10.4](https://github.com/KATT/raf-query/compare/0.10.3...0.10.4) (2026-10-16)
|
|
4
20
|
|
|
5
21
|
### Bug Fixes
|
|
6
22
|
|
|
7
|
-
|
|
8
|
-
|
|
23
|
+
- **core:** keep pages written during a paged refetch ([#215](https://github.com/KATT/raf-query/issues/215)) ([b6a5946](https://github.com/KATT/raf-query/commit/b6a5946e806e12e9b7df40e80ef0e532c0871b25)), references [#75](https://github.com/KATT/raf-query/issues/75)
|
|
24
|
+
- **react:** read promise queryFns as plain data on a client with a layer (1/2) ([#205](https://github.com/KATT/raf-query/issues/205)) ([a9b156e](https://github.com/KATT/raf-query/commit/a9b156edfa18b1e41e9ea929afc412252a61b83c))
|
|
9
25
|
|
|
10
26
|
## [0.10.3](https://github.com/KATT/raf-query/compare/0.10.2...0.10.3) (2026-10-16)
|
|
11
27
|
|
package/dist/use-query.d.mts
CHANGED
|
@@ -13,9 +13,10 @@ export type UseQueryResultWithData<TFactory extends QueryFactory, TThrow extends
|
|
|
13
13
|
* const post = use(postPromise);
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* For an Effect `queryFn` (typed {@link ErrorOf}), with
|
|
17
|
-
*
|
|
18
|
-
* is a `Result` instead — `use()`
|
|
16
|
+
* For an Effect `queryFn` (typed {@link ErrorOf}), with `throwOnError: false`
|
|
17
|
+
* (the call's, else the query's, else the client's, which is the default
|
|
18
|
+
* when it has a `layer`), the first slot is a `Result` instead — `use()`
|
|
19
|
+
* never throws:
|
|
19
20
|
*
|
|
20
21
|
* ```tsx
|
|
21
22
|
* const [issueResult, issueState] = useQuery(issueQuery, loaderData.issue);
|
package/dist/use-query.mjs
CHANGED
|
@@ -42,7 +42,7 @@ function useQuery(factory, handle, options = {}) {
|
|
|
42
42
|
]);
|
|
43
43
|
QueryObserver.trackProp(observer, "promise");
|
|
44
44
|
const controls = promiseControls(QueryObserver.trackResult(observer, result));
|
|
45
|
-
const throwOnError = throwsOnError(query, options.throwOnError
|
|
45
|
+
const throwOnError = throwsOnError(query, options.throwOnError, client.throwOnError);
|
|
46
46
|
const withData = "data" in handle;
|
|
47
47
|
if (!throwOnError) {
|
|
48
48
|
const resultPromise = resultThenable(result.promise);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raf-query/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "React bindings for raf-query, a render-as-you-fetch query library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"query",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@raf-query/core": "0.
|
|
51
|
+
"@raf-query/core": "0.11.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@tanstack/react-router": "^1.170.0",
|