@doswiftly/storefront-operations 22.1.0 → 22.2.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.1.0
30
+ - **Schema version**: 22.2.0
31
31
  - **Queries**: 52
32
32
  - **Mutations**: 44
33
33
  - **Fragments**: 105
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 22.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 27934d1: Server `getStorefrontClient`: forwarded-IP signing is now **opt-in** via `getBuyerIp`.
8
+
9
+ Previously the server client auto-read the buyer IP through `next/headers` on every
10
+ request. That is a dynamic API and is illegal in statically-generated / ISR routes —
11
+ it crashed such pages with "Page changed from static to dynamic at runtime".
12
+
13
+ Forwarded-IP is now wired only when you pass `getBuyerIp`, which you should do **only
14
+ on routes that are already dynamic** (per-request rendered). Without it the client is
15
+ a fully static-safe, inert pass-through.
16
+
17
+ Migration — to keep forwarding the buyer IP, pass `getBuyerIp` on your dynamic routes:
18
+
19
+ ```typescript
20
+ import { headers } from "next/headers";
21
+
22
+ getStorefrontClient({
23
+ apiUrl,
24
+ shopSlug,
25
+ getBuyerIp: async () => (await headers()).get("cf-connecting-ip"),
26
+ });
27
+ ```
28
+
3
29
  ## 22.1.0
4
30
 
5
31
  ### Minor Changes
package/llms-full.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # DoSwiftly Storefront Operations — Full Reference
2
2
 
3
- > Schema version: **22.1.0**
3
+ > Schema version: **22.2.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.1.0",
2
+ "schemaVersion": "22.2.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.1.0",
3
+ "version": "22.2.0",
4
4
  "description": "GraphQL operations for DoSwiftly Storefront - SSOT from backend",
5
5
  "homepage": "https://doswiftly.pl",
6
6
  "publishConfig": {