@beignet/react-query 0.0.23 → 0.0.24

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,5 +1,13 @@
1
1
  # @beignet/react-query
2
2
 
3
+ ## 0.0.24
4
+
5
+ ### Patch Changes
6
+
7
+ - 91bc9b5: Harden framework security defaults for generated tenancy, auth secrets, CORS,
8
+ body limits, uploads, devtools, OpenAPI, rate-limit IP sources, public storage,
9
+ and Meilisearch query fields.
10
+
3
11
  ## 0.0.23
4
12
 
5
13
  ### Patch Changes
package/README.md CHANGED
@@ -283,19 +283,19 @@ const rq = createReactQuery(apiClient);
283
283
 
284
284
  Headers are **excluded from generated query keys by default** because persisted
285
285
  caches would otherwise store credentials such as `Authorization` tokens. When a
286
- header changes response data — a tenant or workspace header, for example — opt
287
- that specific header into keys with `keyHeaders`:
286
+ non-secret request-shaping header changes response data, opt that specific
287
+ header into keys with `keyHeaders`:
288
288
 
289
289
  ```ts
290
290
  const rq = createReactQuery(apiClient, {
291
- keyHeaders: ["X-Tenant-Id"],
291
+ keyHeaders: ["X-Workspace-Preview"],
292
292
  });
293
293
 
294
294
  rq(listTodos).queryOptions({
295
- headers: { "X-Tenant-Id": "tenant-1", Authorization: "Bearer ..." },
295
+ headers: { "X-Workspace-Preview": "workspace-1", Authorization: "Bearer ..." },
296
296
  });
297
297
  // queryKey: ["beignet", "todos", "listTodos", "GET /todos",
298
- // { headers: { "x-tenant-id": "tenant-1" } }]
298
+ // { headers: { "x-workspace-preview": "workspace-1" } }]
299
299
  ```
300
300
 
301
301
  Only whitelisted header names are included. Names are matched
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beignet/react-query",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "type": "module",
5
5
  "description": "TanStack Query integration for Beignet",
6
6
  "main": "./dist/index.js",