@scayle/storefront-nuxt 8.64.0 → 8.65.1

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 CHANGED
@@ -1,5 +1,39 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.65.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependency `@vercel/nft@1.11.12` to `@vercel/nft@1.11.18`
8
+
9
+ **Dependencies**
10
+
11
+ **@scayle/storefront-core v8.65.1**
12
+
13
+ - Patch
14
+ - Fixed customers being signed out when their access token expired and the `refreshUser` RPC method ran, for example through `useUser().forceRefresh()`. The SDK refreshed the tokens, then retried the `/me` request with the expired token that `refreshUser` had passed in. The Customer Account API used to accept that token on the retry and now rejects it, so the SDK got a second 403 and ended the session.
15
+
16
+ `CustomerAPIClient.getMe` now ignores its `accessToken` argument when it is the same as the access token stored in the session, and uses the stored one. The retry after a token refresh therefore sends the refreshed token. A different token, such as a new login token that is not stored yet, is sent unchanged. Your Storefront Application needs no code change.
17
+
18
+ ## 8.65.0
19
+
20
+ ### Minor Changes
21
+
22
+ - Aligned the Nuxt version ranges of `@scayle/storefront-nuxt` with the Nuxt versions the module supports. Nuxt 4 support has started at `4.2.0` since `8.58.0`, and the `nuxt` peer dependency has required `>=3.15.0 || >=4.2.2` since `8.62.8`. The module still declared `>=3.13` as its Nuxt compatibility, and both peer ranges matched every Nuxt 4 release, `4.0.0` to `4.2.1` included.
23
+
24
+ ## Affected Nuxt versions
25
+ - The module compatibility and the `nuxt` peer dependency are now `>=3.15.0 <4.0.0 || >=4.2.2`. The `@nuxt/kit` peer dependency is now `>=3.15.0 <4.0.0 || >=4.2.0`.
26
+ - On Nuxt `3.13`, `3.14` or `4.0.0` to `4.2.1`, Nuxt now disables the module at build time and logs that `@scayle/storefront-nuxt` is disabled due to incompatibility issues. Its composables, RPC methods and sessions then stop working. With `experimental.enforceModuleCompatibility` enabled, the build fails instead. pnpm also reports a peer dependency warning on install.
27
+ - Before you update to this release, update Nuxt to `3.15.0` or later on Nuxt 3, or to `4.2.2` or later on Nuxt 4.
28
+
29
+ ### Patch Changes
30
+
31
+ **Dependencies**
32
+
33
+ **@scayle/storefront-core v8.65.0**
34
+
35
+ - No changes in this release.
36
+
3
37
  ## 8.64.0
4
38
 
5
39
  ### Minor Changes
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.64.0",
3
+ "version": "8.65.1",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
- "nuxt": ">=3.13"
6
+ "nuxt": ">=3.15.0 <4.0.0 || >=4.2.2"
7
7
  },
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.4",
package/dist/module.mjs CHANGED
@@ -57,7 +57,7 @@ export default {
57
57
  }`;
58
58
  }
59
59
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
60
- const PACKAGE_VERSION = "8.64.0";
60
+ const PACKAGE_VERSION = "8.65.1";
61
61
  const logger = createConsola({
62
62
  fancy: true,
63
63
  formatOptions: {
@@ -345,7 +345,7 @@ const module$1 = defineNuxtModule({
345
345
  version: PACKAGE_VERSION,
346
346
  configKey: "storefront",
347
347
  compatibility: {
348
- nuxt: ">=3.13"
348
+ nuxt: ">=3.15.0 <4.0.0 || >=4.2.2"
349
349
  }
350
350
  },
351
351
  // Default configuration options of the Nuxt module
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.64.0",
4
+ "version": "8.65.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -67,21 +67,21 @@
67
67
  "node": ">= 22.0.0"
68
68
  },
69
69
  "peerDependencies": {
70
- "@nuxt/kit": ">=3.15.0 || >=4.2.0",
70
+ "@nuxt/kit": ">=3.15.0 <4.0.0 || >=4.2.0",
71
71
  "@scayle/storefront-api": "^19.9.0",
72
72
  "fishery": "^2.2.2",
73
73
  "h3": "^1.10.0",
74
74
  "nitropack": "^2.9.7",
75
- "nuxt": ">=3.15.0 || >=4.2.2",
75
+ "nuxt": ">=3.15.0 <4.0.0 || >=4.2.2",
76
76
  "unstorage": "^1.10.1",
77
77
  "vue": "^3.4.0"
78
78
  },
79
79
  "dependencies": {
80
80
  "@opentelemetry/api": "^1.9.1",
81
81
  "@scayle/h3-session": "0.7.2",
82
- "@scayle/storefront-core": "8.64.0",
82
+ "@scayle/storefront-core": "8.65.1",
83
83
  "@scayle/unstorage-compression-driver": "1.6.3",
84
- "@vercel/nft": "1.11.12",
84
+ "@vercel/nft": "1.11.18",
85
85
  "@vueuse/core": "15.0.0",
86
86
  "consola": "^3.4.2",
87
87
  "core-js": "^3.49.0",
@@ -114,8 +114,8 @@
114
114
  "@scayle/unstorage-scayle-kv-driver": "^3.0.0",
115
115
  "@scayle/vitest-config-storefront": "1.0.0",
116
116
  "@types/node": "^24",
117
- "@vitest/coverage-v8": "5.1.1",
118
- "eslint": "10.15.0",
117
+ "@vitest/coverage-v8": "5.1.2",
118
+ "eslint": "10.16.0",
119
119
  "eslint-formatter-gitlab": "7.2.0",
120
120
  "fishery": "2.4.0",
121
121
  "h3": "1.15.11",
@@ -127,7 +127,7 @@
127
127
  "publint": "0.3.25",
128
128
  "typescript": "6.0.3",
129
129
  "unbuild": "3.6.1",
130
- "vitest": "5.1.1",
130
+ "vitest": "5.1.2",
131
131
  "vue-tsc": "3.3.14"
132
132
  },
133
133
  "scripts": {