@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 +8 -0
- package/README.md +5 -5
- package/package.json +1 -1
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
|
|
287
|
-
|
|
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-
|
|
291
|
+
keyHeaders: ["X-Workspace-Preview"],
|
|
292
292
|
});
|
|
293
293
|
|
|
294
294
|
rq(listTodos).queryOptions({
|
|
295
|
-
headers: { "X-
|
|
295
|
+
headers: { "X-Workspace-Preview": "workspace-1", Authorization: "Bearer ..." },
|
|
296
296
|
});
|
|
297
297
|
// queryKey: ["beignet", "todos", "listTodos", "GET /todos",
|
|
298
|
-
// { headers: { "x-
|
|
298
|
+
// { headers: { "x-workspace-preview": "workspace-1" } }]
|
|
299
299
|
```
|
|
300
300
|
|
|
301
301
|
Only whitelisted header names are included. Names are matched
|