@buoy-gg/react-query 7.0.36 → 7.0.39

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/README.md CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@buoy-gg/react-query?style=flat-square&labelColor=1c1c1c&color=10B981)](https://www.npmjs.com/package/@buoy-gg/react-query) [![npm downloads](https://img.shields.io/npm/dm/@buoy-gg/react-query?style=flat-square&labelColor=1c1c1c&color=10B981)](https://www.npmjs.com/package/@buoy-gg/react-query)
4
4
 
5
- **Full TanStack Query devtools on the device — inspect the cache, simulate loading and error states, and flip your app offline with one tap.**
5
+ Inspect the TanStack Query cache used by your app. Refetch or invalidate a query and simulate states while checking the screen that consumes it.
6
6
 
7
- Part of [Buoy](https://github.com/Buoy-gg/buoy) — devtools that live inside your React Native app. Install it and it auto-appears in the floating menu from [`@buoy-gg/core`](https://www.npmjs.com/package/@buoy-gg/core).
7
+ Part of [Buoy](https://github.com/Buoy-gg/buoy). Install the package, complete account setup, and follow the integration steps below.
8
8
 
9
9
  ![React Query DevTools demo](https://github.com/user-attachments/assets/258e892d-3eaf-41f8-9fae-d7d2dcd6c39d)
10
10
 
@@ -16,6 +16,24 @@ npm install @buoy-gg/core @buoy-gg/react-query
16
16
 
17
17
  Requires `@tanstack/react-query` as a peer — you already have it if you use React Query.
18
18
 
19
+ ## Before you start
20
+
21
+ Use a development build with `@buoy-gg/core` and a Free or Pro Buoy account key. From your app’s directory, sign in:
22
+
23
+ ```bash
24
+ npx --package=@buoy-gg/core buoy login
25
+ ```
26
+
27
+ For Expo, initialize Buoy before rendering the menu:
28
+
29
+ ```tsx
30
+ import { Buoy } from "@buoy-gg/core";
31
+
32
+ Buoy.init({ licenseKey: process.env.EXPO_PUBLIC_BUOY_KEY });
33
+ ```
34
+
35
+ The login command writes the Expo key to `.env.local`. For React Native CLI, pass the key from your app’s environment configuration; React Native does not load `.env.local` automatically. Mount `FloatingDevTools` inside the same providers as your screens and restart the development server after installation. The [Quick Start](https://buoy.gg/buoy/latest/docs/quick-start) shows the complete root component setup.
36
+
19
37
  ## Quick start
20
38
 
21
39
  Render `FloatingDevTools` inside your `QueryClientProvider`. The tool picks up your `QueryClient` from context and connects automatically — no extra call needed.
@@ -38,6 +56,10 @@ export default function App() {
38
56
 
39
57
  That's it. The React Query tool (and a WiFi toggle) appear in the floating menu.
40
58
 
59
+ ## Check the integration
60
+
61
+ Open a known query, refetch it, and check the screen that uses it. Restore any simulated state after testing. The offline toggle changes TanStack Query’s online state; query behavior still depends on its `networkMode` and configuration.
62
+
41
63
  ## What you get
42
64
 
43
65
  - **Cache inspection** — browse every query, drill into cached data with an interactive JSON tree, and edit values in place
@@ -50,11 +72,11 @@ That's it. The React Query tool (and a WiFi toggle) appear in the floating menu.
50
72
 
51
73
  ## Desktop & AI
52
74
 
53
- The same live session streams to [Buoy Desktop](https://github.com/Buoy-gg/Buoy-Desktop) (free, macOS/Windows/Linux) and to Claude Code or Cursor via the [Buoy MCP server](https://buoy.gg/buoy/latest/docs/mcp).
75
+ To connect a React Native app to [Buoy Desktop](https://github.com/Buoy-gg/Buoy-Desktop) or MCP, install `@buoy-gg/external-sync` and follow the [Desktop connection guide](https://buoy.gg/buoy/latest/docs/desktop). Sign in to Desktop separately. [MCP setup](https://buoy.gg/buoy/latest/docs/mcp) also requires a process account and Pro access. Available remote actions depend on the tool and app integration.
54
76
 
55
- ## Free vs Pro
77
+ ## Account and plan requirements
56
78
 
57
- Every tool is free. [Pro](https://buoy.gg/pricing) unlocks production builds, the MCP server, and unlimited capture. Every weekend, Pro features unlock free for anyone holding a key — including a free one (`npx buoy login`).
79
+ Use a Free or Pro Buoy account. History limits and paid features vary by tool; see [pricing](https://buoy.gg/pricing). Production access requires Pro where supported. Development-only hooks and actions remain unavailable in release builds.
58
80
 
59
81
  ---
60
82
 
@@ -14,10 +14,8 @@ var _jsxRuntime = require("react/jsx-runtime");
14
14
  function TanstackLogo({
15
15
  size = 24
16
16
  }) {
17
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.ReactQueryIcon, {
18
- size: size,
19
- colorPreset: "red",
20
- variant: "circuit"
17
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_sharedUi.QueryIcon, {
18
+ size: size
21
19
  });
22
20
  }
23
21
 
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
 
3
- import { ReactQueryIcon, CheckCircle as SharedCheckCircle, Activity as SharedActivity, Pause as SharedPause, XCircle as SharedXCircle, buoyColors } from "@buoy-gg/shared-ui";
3
+ import { QueryIcon, CheckCircle as SharedCheckCircle, Activity as SharedActivity, Pause as SharedPause, XCircle as SharedXCircle, buoyColors } from "@buoy-gg/shared-ui";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  /** React Query brand mark used across the dev tools UI. */
6
6
  export function TanstackLogo({
7
7
  size = 24
8
8
  }) {
9
- return /*#__PURE__*/_jsx(ReactQueryIcon, {
10
- size: size,
11
- colorPreset: "red",
12
- variant: "circuit"
9
+ return /*#__PURE__*/_jsx(QueryIcon, {
10
+ size: size
13
11
  });
14
12
  }
15
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buoy-gg/react-query",
3
- "version": "7.0.36",
3
+ "version": "7.0.39",
4
4
  "description": "TanStack Query devtools inside your React Native app — cache inspection, refetch & invalidate, offline toggle. Part of Buoy devtools.",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -29,8 +29,8 @@
29
29
  "**/snapshotProvider.ts"
30
30
  ],
31
31
  "dependencies": {
32
- "@buoy-gg/shared-ui": "^7.0.36",
33
- "@buoy-gg/floating-tools-core": "^7.0.36"
32
+ "@buoy-gg/floating-tools-core": "^7.0.39",
33
+ "@buoy-gg/shared-ui": "^7.0.39"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@tanstack/react-query": ">=5.0.0",