@scayle/storefront-nuxt 8.37.0 → 8.38.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,34 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.38.1
4
+
5
+ ### Patch Changes
6
+
7
+ **Dependencies**
8
+
9
+ - Updated dependency to @scayle/unstorage-compression-driver@1.0.1
10
+
11
+ **@scayle/storefront-core v8.38.1**
12
+
13
+ - Patch
14
+ - Resolved an issue where `Pagination` was not exported correctly as a `type`.
15
+
16
+ ## 8.38.0
17
+
18
+ ### Minor Changes
19
+
20
+ - Refined the `ContextWithoutSession` type to accurately represent actual data: `wishlistKey`, `basketKey`, and `sessionId` are now typed as `string` instead of `undefined`, since even logged-out users have these values set.
21
+
22
+ ### Patch Changes
23
+
24
+ **Dependencies**
25
+
26
+ **@scayle/storefront-core v8.38.0**
27
+
28
+ - Minor
29
+ - Refined the `ContextWithoutSession` type to accurately represent actual data: `wishlistKey`, `basketKey`, and `sessionId` are now typed as `string` instead of `undefined`, since even logged-out users have these values set.
30
+ - Made `getCheckoutToken` callable by logged-in and not logged-in users. When called by a not logged-in user, the RPC returns only the `checkoutJWT`. For logged-in users, it continues to return both the `checkoutJWT` and a refreshed `accessToken` as before.
31
+
3
32
  ## 8.37.0
4
33
 
5
34
  ### Minor Changes
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.37.0",
3
+ "version": "8.38.1",
4
4
  "configKey": "storefront",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.9.0"
package/dist/module.mjs CHANGED
@@ -54,7 +54,7 @@ export default {
54
54
  }`;
55
55
  }
56
56
  const PACKAGE_NAME = "@scayle/storefront-nuxt";
57
- const PACKAGE_VERSION = "8.37.0";
57
+ const PACKAGE_VERSION = "8.38.1";
58
58
  const logger = createConsola({
59
59
  fancy: true,
60
60
  formatOptions: {
@@ -38,7 +38,7 @@ declare const _default: import("h3").EventHandler<import("h3").EventHandlerReque
38
38
  } | import("@scayle/storefront-api").ShopConfiguration | {
39
39
  user?: import("@scayle/storefront-core").ShopUser;
40
40
  } | import("@scayle/storefront-api").Wishlist | import("@scayle/storefront-core").ShopUserAddress[] | {
41
- accessToken: string;
41
+ accessToken: string | undefined;
42
42
  checkoutJwt: string;
43
43
  } | import("@scayle/storefront-api").VariantDetail[] | import("@scayle/storefront-api").NavigationAllEndpointResponseData | import("@scayle/storefront-api").NavigationTree | {
44
44
  success: boolean;
@@ -84,9 +84,9 @@ const rpcContextFactory = Factory.define(({ transientParams }) => {
84
84
  updateUser: () => Promise.resolve(),
85
85
  updateTokens: () => Promise.resolve()
86
86
  } : {
87
- wishlistKey: void 0,
88
- basketKey: void 0,
89
- sessionId: void 0,
87
+ wishlistKey: "logged-out-wishlist-key",
88
+ basketKey: "logged-out-basket-key",
89
+ sessionId: "logged-out-session-id",
90
90
  user: void 0,
91
91
  accessToken: void 0,
92
92
  refreshToken: void 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.37.0",
4
+ "version": "8.38.1",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -90,13 +90,13 @@
90
90
  "utility-types": "^3.11.0",
91
91
  "vue-router": "^4.4.0",
92
92
  "zod": "^4.0.0",
93
- "@scayle/storefront-core": "8.37.0",
94
- "@scayle/unstorage-compression-driver": "1.0.0"
93
+ "@scayle/storefront-core": "8.38.1",
94
+ "@scayle/unstorage-compression-driver": "1.0.1"
95
95
  },
96
96
  "devDependencies": {
97
97
  "@arethetypeswrong/cli": "0.18.2",
98
98
  "@eslint/eslintrc": "3.3.1",
99
- "@nuxt/eslint": "1.7.0",
99
+ "@nuxt/eslint": "1.7.1",
100
100
  "@nuxt/eslint-config": "1.4.1",
101
101
  "@nuxt/kit": "3.17.7",
102
102
  "@nuxt/module-builder": "1.0.1",
@@ -118,9 +118,9 @@
118
118
  "unbuild": "3.5.0",
119
119
  "vitest": "3.2.4",
120
120
  "vue-tsc": "3.0.3",
121
- "@scayle/eslint-config-storefront": "4.6.1",
121
+ "@scayle/eslint-config-storefront": "4.7.0",
122
122
  "@scayle/eslint-plugin-vue-composable": "0.2.1",
123
- "@scayle/unstorage-scayle-kv-driver": "1.0.2"
123
+ "@scayle/unstorage-scayle-kv-driver": "1.0.3"
124
124
  },
125
125
  "volta": {
126
126
  "node": "22.17.1"