@raf-query/react 0.6.6 → 0.7.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 CHANGED
@@ -1,9 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.7.1](https://github.com/KATT/raf-query/compare/0.7.0...0.7.1) (2026-10-14)
4
+
5
+ * give overview code samples Twoslash like the homepage ([#90](https://github.com/KATT/raf-query/issues/90)) ([2b82a4a](https://github.com/KATT/raf-query/commit/2b82a4a0464d64de1156a3fb590c13c7cdf95968))
6
+
7
+ ## [0.7.0](https://github.com/KATT/raf-query/compare/0.6.6...0.7.0) (2026-10-14)
8
+
9
+ ### ⚠ BREAKING CHANGES
10
+
11
+ - **react:** tree-shake QueryDevtools at the call site ([#85](https://github.com/KATT/raf-query/issues/85))
12
+
13
+ ### Features
14
+
15
+ - **react:** tree-shake QueryDevtools at the call site ([#85](https://github.com/KATT/raf-query/issues/85)) ([b270fa3](https://github.com/KATT/raf-query/commit/b270fa3c86513bc7414aad7c8567a64258d14f7a))
16
+
3
17
  ## [0.6.6](https://github.com/KATT/raf-query/compare/0.6.5...0.6.6) (2026-10-14)
4
18
 
5
- * build on Vercel when the last deployed commit is gone (1/2) ([#88](https://github.com/KATT/raf-query/issues/88)) ([33737ca](https://github.com/KATT/raf-query/commit/33737ca7ead288c35f3d60d063bcee69d07b0491)), references [#80](https://github.com/KATT/raf-query/issues/80) [#84](https://github.com/KATT/raf-query/issues/84) [#85](https://github.com/KATT/raf-query/issues/85) [#84](https://github.com/KATT/raf-query/issues/84)
6
- * clean up with `using` instead of onTestFinished, and lint for it (2/2) ([#84](https://github.com/KATT/raf-query/issues/84)) ([731b0f3](https://github.com/KATT/raf-query/commit/731b0f3aec9f3e3cf2988788ca5203e92f0a0da8)), references [#79](https://github.com/KATT/raf-query/issues/79)
19
+ - build on Vercel when the last deployed commit is gone (1/2) ([#88](https://github.com/KATT/raf-query/issues/88)) ([33737ca](https://github.com/KATT/raf-query/commit/33737ca7ead288c35f3d60d063bcee69d07b0491)), references [#80](https://github.com/KATT/raf-query/issues/80) [#84](https://github.com/KATT/raf-query/issues/84) [#85](https://github.com/KATT/raf-query/issues/85) [#84](https://github.com/KATT/raf-query/issues/84)
20
+ - clean up with `using` instead of onTestFinished, and lint for it (2/2) ([#84](https://github.com/KATT/raf-query/issues/84)) ([731b0f3](https://github.com/KATT/raf-query/commit/731b0f3aec9f3e3cf2988788ca5203e92f0a0da8)), references [#79](https://github.com/KATT/raf-query/issues/79)
7
21
 
8
22
  ## [0.6.5](https://github.com/KATT/raf-query/compare/0.6.4...0.6.5) (2026-10-14)
9
23
 
package/README.md CHANGED
@@ -51,7 +51,7 @@ function PostPage() {
51
51
  | `@raf-query/react` | `QueryClient`, `QueryClientProvider`, `useQuery`, `useWaterfall`, `useIsFetching`, and all of core |
52
52
  | `@raf-query/react/tanstack-router` | [TanStack Start and Router](https://raf-query.katt.dev/docs/tanstack-start) SSR streaming |
53
53
  | `@raf-query/react/rsc` | [React Server Components](https://raf-query.katt.dev/docs/nextjs), such as the Next.js App Router |
54
- | `@raf-query/react/devtools` | The [devtools](https://raf-query.katt.dev/docs/devtools) panel, dropped from production builds |
54
+ | `@raf-query/react/devtools` | The [devtools](https://raf-query.katt.dev/docs/devtools) panel; omit the element to tree-shake it |
55
55
 
56
56
  ## License
57
57
 
@@ -1,8 +1,2 @@
1
- import { DevtoolsTheme, QueryDevtools as QueryDevtools$1, QueryDevtoolsPanel as QueryDevtoolsPanel$1, QueryDevtoolsPanelProps, QueryDevtoolsProps } from "./devtools-panel.mjs";
2
- //#region src/devtools.d.ts
3
- /** Toggle button plus docked panel. Renders nothing in production builds. */
4
- export declare const QueryDevtools: typeof QueryDevtools$1;
5
- /** The panel alone, to embed anywhere. Renders nothing in production builds. */
6
- export declare const QueryDevtoolsPanel: typeof QueryDevtoolsPanel$1;
7
- //#endregion
8
- export type { DevtoolsTheme, QueryDevtoolsPanelProps, QueryDevtoolsProps };
1
+ import { DevtoolsTheme, QueryDevtools, QueryDevtoolsPanel, QueryDevtoolsPanelProps, QueryDevtoolsProps } from "./devtools-panel.mjs";
2
+ export { type DevtoolsTheme, QueryDevtools, QueryDevtoolsPanel, type QueryDevtoolsPanelProps, type QueryDevtoolsProps };
package/dist/devtools.mjs CHANGED
@@ -1,12 +1,3 @@
1
1
  "use client";
2
- import { QueryDevtools as QueryDevtools$1, QueryDevtoolsPanel as QueryDevtoolsPanel$1 } from "./devtools-panel.mjs";
3
- //#region src/devtools.tsx
4
- function Nothing() {
5
- return null;
6
- }
7
- /** Toggle button plus docked panel. Renders nothing in production builds. */
8
- const QueryDevtools = process.env.NODE_ENV === "production" ? Nothing : QueryDevtools$1;
9
- /** The panel alone, to embed anywhere. Renders nothing in production builds. */
10
- const QueryDevtoolsPanel = process.env.NODE_ENV === "production" ? Nothing : QueryDevtoolsPanel$1;
11
- //#endregion
2
+ import { QueryDevtools, QueryDevtoolsPanel } from "./devtools-panel.mjs";
12
3
  export { QueryDevtools, QueryDevtoolsPanel };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raf-query/react",
3
- "version": "0.6.6",
3
+ "version": "0.7.1",
4
4
  "description": "React bindings for raf-query, a render-as-you-fetch query library",
5
5
  "keywords": [
6
6
  "query",
@@ -34,7 +34,6 @@
34
34
  "exports": {
35
35
  ".": "./dist/index.mjs",
36
36
  "./devtools": "./dist/devtools.mjs",
37
- "./devtools/production": "./dist/devtools-production.mjs",
38
37
  "./rsc": "./dist/rsc.mjs",
39
38
  "./tanstack-router": {
40
39
  "workerd": "./dist/tanstack-router.mjs",
@@ -47,7 +46,7 @@
47
46
  }
48
47
  },
49
48
  "dependencies": {
50
- "@raf-query/core": "0.6.6"
49
+ "@raf-query/core": "0.7.1"
51
50
  },
52
51
  "peerDependencies": {
53
52
  "@tanstack/react-router": "^1.170.0",
@@ -1,2 +0,0 @@
1
- import { DevtoolsTheme, QueryDevtools, QueryDevtoolsPanel, QueryDevtoolsPanelProps, QueryDevtoolsProps } from "./devtools-panel.mjs";
2
- export { type DevtoolsTheme, QueryDevtools, QueryDevtoolsPanel, type QueryDevtoolsPanelProps, type QueryDevtoolsProps };
@@ -1,3 +0,0 @@
1
- "use client";
2
- import { QueryDevtools, QueryDevtoolsPanel } from "./devtools-panel.mjs";
3
- export { QueryDevtools, QueryDevtoolsPanel };