@raf-query/react 0.10.3 → 0.11.0

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 CHANGED
@@ -1,10 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.11.0](https://github.com/KATT/raf-query/compare/0.10.4...0.11.0) (2026-10-16)
4
+
5
+ ### ⚠ BREAKING CHANGES
6
+
7
+ * **core:** enabled replaces ssr, as a boolean like TanStack Query's ([#204](https://github.com/KATT/raf-query/issues/204))
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+ ## [0.10.4](https://github.com/KATT/raf-query/compare/0.10.3...0.10.4) (2026-10-16)
14
+
15
+ ### Bug Fixes
16
+
17
+ - **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)
18
+ - **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))
19
+
3
20
  ## [0.10.3](https://github.com/KATT/raf-query/compare/0.10.2...0.10.3) (2026-10-16)
4
21
 
5
22
  ### Features
6
23
 
7
- * **core:** add QueryBinding, a framework-free useQuery for bindings ([#197](https://github.com/KATT/raf-query/issues/197)) ([4865802](https://github.com/KATT/raf-query/commit/48658024f4d21d43ce8274de379a19c8898b6173)), references [#194](https://github.com/KATT/raf-query/issues/194)
24
+ - **core:** add QueryBinding, a framework-free useQuery for bindings ([#197](https://github.com/KATT/raf-query/issues/197)) ([4865802](https://github.com/KATT/raf-query/commit/48658024f4d21d43ce8274de379a19c8898b6173)), references [#194](https://github.com/KATT/raf-query/issues/194)
8
25
 
9
26
  ## [0.10.2](https://github.com/KATT/raf-query/compare/0.10.1...0.10.2) (2026-10-16)
10
27
 
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { useQueryClient } from "./provider.mjs";
3
3
  import { assertSent } from "./query-provider/browser-requests.mjs";
4
- import { Query, QueryBinding, QueryObserver, promiseControls, resultThenable } from "@raf-query/core";
4
+ import { Query, QueryBinding, QueryObserver, promiseControls, resultThenable, throwsOnError } from "@raf-query/core";
5
5
  import { use, useEffect, useState, useSyncExternalStore } from "react";
6
6
  //#region src/use-query.ts
7
7
  function storeFor(query, options) {
@@ -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 = options.throwOnError ?? client.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.10.3",
3
+ "version": "0.11.0",
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.10.3"
51
+ "@raf-query/core": "0.11.0"
52
52
  },
53
53
  "peerDependencies": {
54
54
  "@tanstack/react-router": "^1.170.0",