@swell/apps-sdk 2.0.0-alpha.9 → 2.0.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/README.md CHANGED
@@ -10,7 +10,7 @@ applications, use [`swell-js`](https://github.com/swellstores/swell-js).
10
10
  ## Installation
11
11
 
12
12
  ```sh
13
- npm install @swell/apps-sdk@next swell-js@^5.9.2
13
+ npm install @swell/apps-sdk swell-js@^5.9.4
14
14
  ```
15
15
 
16
16
  Supports Node.js 22.22.2+ and Cloudflare Workers, with no Node compatibility flags
@@ -315,6 +315,10 @@ rotation during GET requests. A supplied writer may throw or skip a write; after
315
315
  its reader must still report the actual state. Writer return values are ignored.
316
316
  Persist cookies in writable route handlers or actions.
317
317
 
318
+ Let the reader return every Swell cookie, `swell-visitor` included: swell-js sends it
319
+ as `X-Visitor`, so a cart created on the server keeps its ad attribution. Record consent
320
+ with `swell.consent.set()` from the browser's swell-js; on the server it rejects.
321
+
318
322
  For API response caching, replace `storefront.request` before first use. The SDK
319
323
  leaves response caching to your application.
320
324
 
@@ -1 +1 @@
1
- export declare const USER_AGENT = "swell-apps-sdk/2.0.0-alpha.9";
1
+ export declare const USER_AGENT = "swell-apps-sdk/2.0.0";
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const USER_AGENT = "swell-apps-sdk/2.0.0-alpha.9";
1
+ export declare const USER_AGENT = "swell-apps-sdk/2.0.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Replaced with the package version by the build.
2
- export const USER_AGENT = 'swell-apps-sdk/2.0.0-alpha.9';
2
+ export const USER_AGENT = 'swell-apps-sdk/2.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swell/apps-sdk",
3
- "version": "2.0.0-alpha.9",
3
+ "version": "2.0.0",
4
4
  "description": "Server SDK for Swell apps.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -22,14 +22,14 @@
22
22
  "verify": "npm test && npm run typecheck && npm run test:package && npm run test:boundaries && npm run test:worker"
23
23
  },
24
24
  "peerDependencies": {
25
- "swell-js": ">=5.9.2"
25
+ "swell-js": ">=5.9.4"
26
26
  },
27
27
  "devDependencies": {
28
28
  "esbuild": "0.24.2",
29
29
  "happy-dom": "20.14.5",
30
30
  "miniflare": "5.20260911.1-alpha",
31
31
  "playwright": "1.63.0",
32
- "swell-js": "5.9.2",
32
+ "swell-js": "5.9.4",
33
33
  "typescript": "5.7.3"
34
34
  },
35
35
  "main": "./dist/index.js",