@scayle/storefront-nuxt 8.37.0 → 8.38.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.38.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 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.
8
+
9
+ ### Patch Changes
10
+
11
+ **Dependencies**
12
+
13
+ **@scayle/storefront-core v8.38.0**
14
+
15
+ - Minor
16
+ - 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.
17
+ - 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.
18
+
3
19
  ## 8.37.0
4
20
 
5
21
  ### 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.0",
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.0";
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.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -90,7 +90,7 @@
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",
93
+ "@scayle/storefront-core": "8.38.0",
94
94
  "@scayle/unstorage-compression-driver": "1.0.0"
95
95
  },
96
96
  "devDependencies": {
@@ -118,7 +118,7 @@
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
123
  "@scayle/unstorage-scayle-kv-driver": "1.0.2"
124
124
  },