@doswiftly/storefront-operations 22.9.0 → 22.10.0
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/AGENTS.md +1 -1
- package/CHANGELOG.md +20 -0
- package/llms-full.txt +1 -1
- package/operations.json +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -27,7 +27,7 @@ consumer's `codegen.ts` references this package's `.graphql` files as
|
|
|
27
27
|
live in the consumer's repo.
|
|
28
28
|
|
|
29
29
|
<!-- AUTOGEN:STATS:BEGIN — auto-regenerated, do not edit by hand -->
|
|
30
|
-
- **Schema version**: 22.
|
|
30
|
+
- **Schema version**: 22.10.0
|
|
31
31
|
- **Queries**: 52
|
|
32
32
|
- **Mutations**: 44
|
|
33
33
|
- **Fragments**: 105
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 22.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3961ca4: Attach the cart access secret (`x-cart-secret`) only to cart operations.
|
|
8
|
+
|
|
9
|
+
Previously the header was sent on every request whenever a cart cookie was
|
|
10
|
+
present, which kept public catalog reads (products, search, recommendations,
|
|
11
|
+
payment methods) off the shared response cache for any visitor who had a cart.
|
|
12
|
+
The secret is now attached only to cart-scoped operations, so those public
|
|
13
|
+
reads become cacheable again — faster responses, with no change needed in your
|
|
14
|
+
code.
|
|
15
|
+
|
|
16
|
+
A new `isCartScopedOperation` helper is exported, and `cartSecretMiddleware` /
|
|
17
|
+
`serverCartSecretMiddleware` accept an optional classifier as their second
|
|
18
|
+
argument. Cart operations are recognised by a `Cart` operation-name prefix. If
|
|
19
|
+
you issue custom cart queries through the SDK, name them with a `Cart` prefix,
|
|
20
|
+
or pass your own classifier:
|
|
21
|
+
`cartSecretMiddleware(getSecret, (operationName) => ...)`.
|
|
22
|
+
|
|
3
23
|
## 22.9.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
package/llms-full.txt
CHANGED
package/operations.json
CHANGED