@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 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.9.0
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
@@ -1,6 +1,6 @@
1
1
  # DoSwiftly Storefront Operations — Full Reference
2
2
 
3
- > Schema version: **22.9.0**
3
+ > Schema version: **22.10.0**
4
4
  > 52 queries · 44 mutations · 105 fragments
5
5
 
6
6
  Auto-generated from `.graphql` source files. Do not edit by hand — this file is
package/operations.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "schemaVersion": "22.9.0",
2
+ "schemaVersion": "22.10.0",
3
3
  "queries": [
4
4
  {
5
5
  "name": "Shop",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doswiftly/storefront-operations",
3
- "version": "22.9.0",
3
+ "version": "22.10.0",
4
4
  "description": "GraphQL operations for DoSwiftly Storefront - SSOT from backend",
5
5
  "homepage": "https://doswiftly.pl",
6
6
  "publishConfig": {