@raf-query/react 0.4.5 → 0.5.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,8 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.1](https://github.com/KATT/raf-query/compare/0.5.0...0.5.1) (2026-10-14)
4
+
5
+ ### Features
6
+
7
+ * raf-query logo, brand colors, and a system / light / dark switcher ([#68](https://github.com/KATT/raf-query/issues/68)) ([9ae09c6](https://github.com/KATT/raf-query/commit/9ae09c63b4f60f4109a8fa6389b8b4f7adfd2ab8))
8
+
9
+ ## [0.5.0](https://github.com/KATT/raf-query/compare/0.4.5...0.5.0) (2026-10-14)
10
+
11
+ ### ⚠ BREAKING CHANGES
12
+
13
+ - type options by a bag instead of positional type arguments ([#69](https://github.com/KATT/raf-query/issues/69))
14
+
15
+ ### Features
16
+
17
+ - type options by a bag instead of positional type arguments ([#69](https://github.com/KATT/raf-query/issues/69)) ([df7ef81](https://github.com/KATT/raf-query/commit/df7ef816d33039166686cfe1113333bb6c444a27))
18
+
3
19
  ## [0.4.5](https://github.com/KATT/raf-query/compare/0.4.4...0.4.5) (2026-10-14)
4
20
 
5
- * trim the READMEs, give each package its own, and warn that raf-query is early on the docs site ([#70](https://github.com/KATT/raf-query/issues/70)) ([2c06462](https://github.com/KATT/raf-query/commit/2c0646291f5fc45d2d64bc43c52f3e089c46ce05))
21
+ - trim the READMEs, give each package its own, and warn that raf-query is early on the docs site ([#70](https://github.com/KATT/raf-query/issues/70)) ([2c06462](https://github.com/KATT/raf-query/commit/2c0646291f5fc45d2d64bc43c52f3e089c46ce05))
6
22
 
7
23
  ## [0.4.4](https://github.com/KATT/raf-query/compare/0.4.3...0.4.4) (2026-10-14)
8
24
 
package/dist/client.d.mts CHANGED
@@ -27,7 +27,7 @@ export declare class QueryClient<TServices = never> {
27
27
  * The cache entry for a factory call, created if missing. Doesn't fetch.
28
28
  * For bindings; apps use the verbs.
29
29
  */
30
- getQuery<TFactory extends QueryFactory<TServices>>(factory: TFactory, ...args: InputArgs<TFactory>): Query.Of<TFactory>;
30
+ getQuery<TFactory extends QueryFactory<TServices>>(factory: TFactory, ...args: InputArgs<TFactory>): Query.Query<TFactory>;
31
31
  /**
32
32
  * Start a query without waiting and return its handle. Fresh data is
33
33
  * reused; stale data refetches in the background (in the browser only).
@@ -8,30 +8,32 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region src/devtools-panel.tsx
9
9
  const palettes = {
10
10
  dark: {
11
- accent: "#38bdf8",
11
+ accent: "#978bff",
12
12
  background: "#0f172a",
13
- boolean: "#c084fc",
13
+ boolean: "#f472b6",
14
14
  border: "#334155",
15
15
  muted: "#94a3b8",
16
16
  number: "#fbbf24",
17
17
  raised: "#1e293b",
18
- selected: "#1e3a5f",
18
+ selected: "#2b2653",
19
19
  string: "#4ade80",
20
20
  text: "#e2e8f0"
21
21
  },
22
22
  light: {
23
- accent: "#0369a1",
23
+ accent: "#6c48ea",
24
24
  background: "#ffffff",
25
- boolean: "#7e22ce",
25
+ boolean: "#be185d",
26
26
  border: "#cbd5e1",
27
27
  muted: "#64748b",
28
28
  number: "#b45309",
29
29
  raised: "#f1f5f9",
30
- selected: "#dbeafe",
30
+ selected: "#e9e8ff",
31
31
  string: "#15803d",
32
32
  text: "#0f172a"
33
33
  }
34
34
  };
35
+ /** The logo's gradient: blue through violet to coral. */
36
+ const brandGradient = "linear-gradient(135deg, #3b8eea, #7b5cff, #ff4d6d)";
35
37
  const statusColors = {
36
38
  error: "#dc2626",
37
39
  fetching: "#2563eb",
@@ -766,7 +768,7 @@ function DockedDevtools(props) {
766
768
  children: [/* @__PURE__ */ jsx("span", {
767
769
  "aria-hidden": true,
768
770
  style: {
769
- background: palette.accent,
771
+ background: brandGradient,
770
772
  borderRadius: 999,
771
773
  height: 8,
772
774
  width: 8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raf-query/react",
3
- "version": "0.4.5",
3
+ "version": "0.5.1",
4
4
  "description": "React bindings for raf-query, a render-as-you-fetch query library",
5
5
  "keywords": [
6
6
  "query",
@@ -47,7 +47,7 @@
47
47
  }
48
48
  },
49
49
  "dependencies": {
50
- "@raf-query/core": "0.4.5"
50
+ "@raf-query/core": "0.5.1"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "@tanstack/react-router": "^1.170.0",