@scayle/storefront-nuxt 7.49.0 → 7.50.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/module.json +2 -2
  3. package/dist/module.mjs +3 -3
  4. package/dist/runtime/composables/core/useIDP.d.ts +1 -1
  5. package/dist/runtime/composables/core/useRpc.d.ts +1 -1
  6. package/dist/runtime/composables/core/useUser.d.ts +1 -1
  7. package/dist/runtime/composables/storefront/useBasket.d.ts +1 -1
  8. package/dist/runtime/composables/storefront/useBrand.d.ts +1 -1
  9. package/dist/runtime/composables/storefront/useBrands.d.ts +1 -1
  10. package/dist/runtime/composables/storefront/useCategories.d.ts +1 -1
  11. package/dist/runtime/composables/storefront/useCurrentPromotions.d.ts +1 -1
  12. package/dist/runtime/composables/storefront/useFacet.d.ts +4 -4
  13. package/dist/runtime/composables/storefront/useFilters.d.ts +1 -1
  14. package/dist/runtime/composables/storefront/useNavigationTree.d.ts +1 -1
  15. package/dist/runtime/composables/storefront/useNavigationTrees.d.ts +1 -1
  16. package/dist/runtime/composables/storefront/useOrder.d.ts +1 -1
  17. package/dist/runtime/composables/storefront/useOrderConfirmation.d.ts +1 -1
  18. package/dist/runtime/composables/storefront/useProduct.d.ts +1 -1
  19. package/dist/runtime/composables/storefront/useProducts.d.ts +1 -1
  20. package/dist/runtime/composables/storefront/useProductsByIds.d.ts +1 -1
  21. package/dist/runtime/composables/storefront/useProductsCount.d.ts +1 -1
  22. package/dist/runtime/composables/storefront/usePromotions.d.ts +1 -1
  23. package/dist/runtime/composables/storefront/usePromotionsByIds.d.ts +1 -1
  24. package/dist/runtime/composables/storefront/useShopConfiguration.d.ts +1 -1
  25. package/dist/runtime/composables/storefront/useUserAddresses.d.ts +1 -1
  26. package/dist/runtime/composables/storefront/useVariant.d.ts +1 -1
  27. package/dist/runtime/composables/storefront/useWishlist.d.ts +1 -1
  28. package/package.json +21 -19
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 7.50.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Update to `nuxt@3.9.1` and `vue@3.4.7` (_For detailed changes see [Blog post: Nuxt 3.9](https://nuxt.com/blog/v3-9) and [Blog post: Announcing Vue 3.4](https://blog.vuejs.org/posts/vue-3-4)_)
8
+
9
+ **Please note that `@scayle/storefront-nuxt` is now compatible with `nuxt@9.0.0` or higher!**
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+ - @scayle/h3-session@0.3.5
15
+
3
16
  ## 7.49.0
4
17
 
5
18
  ### Minor Changes
package/dist/module.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "configKey": "storefront",
4
4
  "compatibility": {
5
- "nuxt": "^3.7.0"
5
+ "nuxt": "^3.9.0"
6
6
  },
7
- "version": "7.48.2"
7
+ "version": "7.49.0"
8
8
  }
package/dist/module.mjs CHANGED
@@ -45,7 +45,7 @@ const module = defineNuxtModule({
45
45
  name: PACKAGE_NAME,
46
46
  configKey: "storefront",
47
47
  compatibility: {
48
- nuxt: "^3.7.0"
48
+ nuxt: "^3.9.0"
49
49
  }
50
50
  },
51
51
  // Default configuration options of the Nuxt module
@@ -148,8 +148,8 @@ const module = defineNuxtModule({
148
148
  }
149
149
  if (nuxt.options.runtimeConfig.storefront.shopSelector === "path") {
150
150
  const stores = Array.isArray(nuxt.options.runtimeConfig.storefront.stores) ? nuxt.options.runtimeConfig.storefront.stores : Object.values(nuxt.options.runtimeConfig.storefront.stores);
151
- stores.forEach((s) => {
152
- const base = `/${s.path}${apiBasePath}`;
151
+ stores.forEach((iteratedStore) => {
152
+ const base = `/${iteratedStore.path}${apiBasePath}`;
153
153
  addCacheServerHandlers(base);
154
154
  addRPCServerHandlers(base);
155
155
  });
@@ -4,7 +4,7 @@ export declare const useIDP: () => Promise<{
4
4
  }>;
5
5
  fetching: import("vue").Ref<boolean>;
6
6
  fetch: () => Promise<void>;
7
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
7
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
8
8
  status: import("vue").Ref<import("../core/useRpc").Status>;
9
9
  handleIDPLoginCallback: (params: string) => Promise<{
10
10
  message: string;
@@ -11,7 +11,7 @@ export declare const useRpc: <N extends RpcMethodName, P extends RpcMethodParame
11
11
  data: import("vue").Ref<TResult>;
12
12
  fetching: import("vue").Ref<boolean>;
13
13
  fetch: () => Promise<void>;
14
- error: import("vue").Ref<NuxtError | undefined>;
14
+ error: import("vue").Ref<NuxtError<unknown> | undefined>;
15
15
  status: import("vue").Ref<Status>;
16
16
  }>;
17
17
  export {};
@@ -11,6 +11,6 @@ export declare function useUser({ autoFetch, lazy, key, }?: ExtendedUseUserParam
11
11
  forceRefresh: () => Promise<void>;
12
12
  updateUser: (payload: Partial<ShopUser>) => Promise<void>;
13
13
  updatePassword: (payload: UpdatePasswordParams) => Promise<void>;
14
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
14
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
15
15
  status: import("vue").Ref<import("./useRpc").Status>;
16
16
  }>;
@@ -49,7 +49,7 @@ export declare function useBasket({ params, options, key, }?: UseBasketOptions):
49
49
  fromBasketKey: string;
50
50
  toBasketKey: string;
51
51
  }) => Promise<any>;
52
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
52
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
53
53
  status: import("vue").Ref<import("../core/useRpc").Status>;
54
54
  }>;
55
55
  export {};
@@ -10,7 +10,7 @@ export declare function useBrand({ params, options, key, }?: Options): Promise<{
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").Brand>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -10,7 +10,7 @@ export declare function useBrands({ params, options, key, }?: Options): Promise<
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").BrandsEndpointResponseData>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -13,7 +13,7 @@ export declare function useCategories({ params, options, key, }?: Options): Prom
13
13
  }>;
14
14
  fetching: import("vue").Ref<boolean>;
15
15
  fetch: () => Promise<void>;
16
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
16
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
17
17
  status: import("vue").Ref<import("../core/useRpc").Status>;
18
18
  getCategoryById: (id: number, includeHidden?: true) => Promise<import("@scayle/storefront-core").Category>;
19
19
  }>;
@@ -10,7 +10,7 @@ export declare function useCurrentPromotions({ params, options, key, }?: Options
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").PromotionsResponseData>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -16,22 +16,22 @@ export declare function useFacet({ key, params, }?: Options): Promise<{
16
16
  filtersFetching: import("vue").Ref<boolean>;
17
17
  unfilteredCount: import("vue").ComputedRef<number>;
18
18
  filterStatus: import("vue").Ref<import("../core/useRpc").Status>;
19
- filterError: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
19
+ filterError: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
20
20
  productCountData: import("vue").Ref<import("@scayle/storefront-core").FetchProductsCountResponse>;
21
21
  refreshProductCount: ({ where, }?: FilterParams) => Promise<void>;
22
22
  productCountFetching: import("vue").Ref<boolean>;
23
- productCountError: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
23
+ productCountError: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
24
24
  productCountStatus: import("vue").Ref<import("../core/useRpc").Status>;
25
25
  products: import("vue").ComputedRef<import("@scayle/storefront-core").Product[]>;
26
26
  pagination: import("vue").ComputedRef<import("@scayle/storefront-core").Pagination>;
27
27
  productsFetching: import("vue").Ref<boolean>;
28
28
  filterProducts: ({ where, page, sort, orFiltersOperator, }: FilterParams) => Promise<void>;
29
- productError: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
29
+ productError: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
30
30
  productStatus: import("vue").Ref<import("../core/useRpc").Status>;
31
31
  categories: import("vue").ComputedRef<import("@scayle/storefront-core").Category | import("@scayle/storefront-core").Category[]>;
32
32
  selectedCategory: import("vue").ComputedRef<import("@scayle/storefront-core").Category | undefined>;
33
33
  categoriesFetching: import("vue").Ref<boolean>;
34
- categoriesError: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
34
+ categoriesError: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
35
35
  categoriesStatus: import("vue").Ref<import("../core/useRpc").Status>;
36
36
  fetchProducts: ({ path, page, perPage, where, sort, pricePromotionKey, cache, orFiltersOperator, }: FilterParams & {
37
37
  path: string;
@@ -10,7 +10,7 @@ export declare function useFilters({ params, options, key, }?: Options): Promise
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").FetchFiltersResponse>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -10,7 +10,7 @@ export declare function useNavigationTree({ params, options, key, }?: Options):
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").NavigationTree>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -10,7 +10,7 @@ export declare function useNavigationTrees({ params, options, key, }?: Options):
10
10
  data: import("vue").Ref<import("@aboutyou/backbone").NavigationAllEndpointResponseData>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -83,7 +83,7 @@ export declare function useOrder<P = {
83
83
  }>;
84
84
  fetching: import("vue").Ref<boolean>;
85
85
  fetch: () => Promise<void>;
86
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
86
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
87
87
  status: import("vue").Ref<import("../core/useRpc").Status>;
88
88
  }>;
89
89
  export {};
@@ -83,7 +83,7 @@ export declare function useOrderConfirmation<P = {
83
83
  }>;
84
84
  fetching: import("vue").Ref<boolean>;
85
85
  fetch: () => Promise<void>;
86
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
86
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
87
87
  status: import("vue").Ref<import("../core/useRpc").Status>;
88
88
  }>;
89
89
  export {};
@@ -10,7 +10,7 @@ export declare function useProduct({ params, options, key, }?: Options): Promise
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").Product>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -14,7 +14,7 @@ export declare function useProducts({ params, options, key, }?: Options): Promis
14
14
  })>;
15
15
  fetching: import("vue").Ref<boolean>;
16
16
  fetch: () => Promise<void>;
17
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
17
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
18
18
  status: import("vue").Ref<import("../core/useRpc").Status>;
19
19
  }>;
20
20
  export {};
@@ -10,7 +10,7 @@ export declare function useProductsByIds({ params, options, key, }?: Options): P
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").Product[]>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -10,7 +10,7 @@ export declare function useProductsCount({ params, options, key, }?: Options): P
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").FetchProductsCountResponse>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -10,7 +10,7 @@ export declare function usePromotions({ params, options, key, }?: Options): Prom
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").PromotionsResponseData>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -10,7 +10,7 @@ export declare function usePromotionsByIds({ params, options, key, }?: Options):
10
10
  data: import("vue").Ref<import("@scayle/storefront-core").PromotionsResponseData>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -7,7 +7,7 @@ export declare function useShopConfiguration({ options, key, }?: Options): Promi
7
7
  data: import("vue").Ref<import("@aboutyou/backbone/endpoints/shopconfiguration/shopconfiguration").ShopConfigurationResponseData>;
8
8
  fetching: import("vue").Ref<boolean>;
9
9
  fetch: () => Promise<void>;
10
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
10
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
11
11
  status: import("vue").Ref<import("../core/useRpc").Status>;
12
12
  }>;
13
13
  export {};
@@ -7,7 +7,7 @@ export declare function useUserAddresses({ options, key, }?: Options): Promise<{
7
7
  data: import("vue").Ref<import("@scayle/storefront-core").ShopUserAddress[]>;
8
8
  fetching: import("vue").Ref<boolean>;
9
9
  fetch: () => Promise<void>;
10
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
10
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
11
11
  status: import("vue").Ref<import("../core/useRpc").Status>;
12
12
  }>;
13
13
  export {};
@@ -10,7 +10,7 @@ export declare function useVariant({ params, options, key, }?: Options): Promise
10
10
  data: import("vue").Ref<import("@aboutyou/backbone/endpoints/variants/variantsByIds").VariantDetail[]>;
11
11
  fetching: import("vue").Ref<boolean>;
12
12
  fetch: () => Promise<void>;
13
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
13
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
14
14
  status: import("vue").Ref<import("../core/useRpc").Status>;
15
15
  }>;
16
16
  export {};
@@ -42,7 +42,7 @@ export declare function useWishlist({ params, options, key, }?: Options): Promis
42
42
  } | {
43
43
  productId: number;
44
44
  }) => boolean;
45
- error: import("vue").Ref<import("nuxt/app").NuxtError | undefined>;
45
+ error: import("vue").Ref<import("nuxt/app").NuxtError<unknown> | undefined>;
46
46
  status: import("vue").Ref<import("../core/useRpc").Status>;
47
47
  }>;
48
48
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "7.49.0",
4
+ "version": "7.50.0",
5
5
  "description": "Nuxt integration for the SCAYLE Commerce Engine and Storefront API",
6
6
  "author": "SCAYLE Commerce Engine",
7
7
  "license": "MIT",
@@ -60,15 +60,15 @@
60
60
  "test:watch": "vitest watch"
61
61
  },
62
62
  "dependencies": {
63
- "@nuxt/kit": "3.8.2",
64
- "@scayle/h3-session": "0.3.4",
63
+ "@nuxt/kit": "3.9.1",
64
+ "@scayle/h3-session": "0.3.5",
65
65
  "@scayle/storefront-core": "7.36.0",
66
66
  "@scayle/unstorage-compression-driver": "0.1.1",
67
67
  "@vueuse/core": "10.7.1",
68
68
  "consola": "3.2.3",
69
69
  "core-js": "3.35.0",
70
70
  "defu": "6.1.4",
71
- "h3": "1.9.0",
71
+ "h3": "1.10.0",
72
72
  "jose": "4.15.4",
73
73
  "knitwork": "1.0.0",
74
74
  "nitropack": "2.8.1",
@@ -81,36 +81,38 @@
81
81
  },
82
82
  "devDependencies": {
83
83
  "@nuxt/module-builder": "0.5.5",
84
- "@nuxt/schema": "3.8.2",
84
+ "@nuxt/schema": "3.9.1",
85
85
  "@nuxt/test-utils": "3.9.0",
86
86
  "@scayle/eslint-config-storefront": "3.2.6",
87
87
  "@scayle/prettier-config-storefront": "2.0.2",
88
- "@types/node": "20.10.7",
88
+ "@types/node": "20.10.8",
89
89
  "eslint": "8.56.0",
90
90
  "eslint-formatter-gitlab": "5.1.0",
91
91
  "node-mocks-http": "1.14.1",
92
- "nuxt": "3.8.2",
92
+ "nuxt": "3.9.1",
93
93
  "prettier": "3.0.0",
94
94
  "publint": "0.2.7",
95
95
  "vitest": "1.1.3",
96
96
  "vue-tsc": "1.8.27"
97
97
  },
98
98
  "peerDependencies": {
99
- "nuxt": ">=3.8.1",
99
+ "nuxt": ">=3.9.1",
100
100
  "unstorage": ">= 1.10.1",
101
- "vue": ">=3.3.0"
101
+ "vue": ">=3.4.7"
102
102
  },
103
103
  "resolutions": {
104
- "@vue/compiler-core": "3.3.12",
105
- "@vue/shared": "3.3.12",
106
- "@vue/compiler-dom": "3.3.12",
107
- "@vue/compiler-sfc": "3.3.12",
108
- "@vue/compiler-ssr": "3.3.12",
109
- "@vue/reactivity-transform": "3.3.12",
110
- "@vue/reactivity": "3.3.12",
111
- "@vue/runtime-core": "3.3.12",
112
- "@vue/runtime-dom": "3.3.12",
113
- "@vue/server-renderer": "3.3.12"
104
+ "h3": "1.10.1",
105
+ "@vue/compiler-core": "3.4.7",
106
+ "@vue/shared": "3.4.7",
107
+ "@vue/compiler-dom": "3.4.7",
108
+ "@vue/compiler-sfc": "3.4.7",
109
+ "@vue/compiler-ssr": "3.4.7",
110
+ "@vue/reactivity": "3.4.7",
111
+ "@vue/runtime-core": "3.4.7",
112
+ "@vue/runtime-dom": "3.4.7",
113
+ "@vue/server-renderer": "3.4.7",
114
+ "@nuxt/kit": "3.9.1",
115
+ "@nuxt/schema": "3.9.1"
114
116
  },
115
117
  "volta": {
116
118
  "node": "20.10.0"