@scayle/storefront-nuxt 8.43.4 → 8.44.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,30 @@
1
1
  # @scayle/storefront-nuxt
2
2
 
3
+ ## 8.44.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Use latest `nuxt@3.19.2` for build. Compatibility with previous version has not changed and is specified via package `peerDependencies` and Nuxt `compatibility` flag.
8
+
9
+ **Dependencies**
10
+
11
+ **@scayle/storefront-core v8.44.1**
12
+
13
+ - No changes in this release.
14
+
15
+ ## 8.44.0
16
+
17
+ ### Patch Changes
18
+
19
+ **Dependencies**
20
+
21
+ - Updated dependency to @scayle/unstorage-compression-driver@1.2.1
22
+
23
+ **@scayle/storefront-core v8.44.0**
24
+
25
+ - Minor
26
+ - Export `unwrap`, `generateBasketKey`, `generateWishlistKey` and `UnstorageCache`.
27
+
3
28
  ## 8.43.4
4
29
 
5
30
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
4
4
  export { extendPromise } from '../dist/runtime/utils/promise.js';
5
5
  export * from '../dist/runtime/utils/seo.js';
6
6
  export * from '@scayle/storefront-core';
7
- export { unwrap } from '@scayle/storefront-core/dist/utils/response';
7
+ export { unwrap } from '@scayle/storefront-core';
8
8
  import '@nuxt/schema';
9
9
 
10
10
  interface RpcMethodsStorefront {
package/dist/index.mjs CHANGED
@@ -2,4 +2,4 @@ export { rpcCall } from '../dist/runtime/rpc/rpcCall.js';
2
2
  export { extendPromise } from '../dist/runtime/utils/promise.js';
3
3
  export * from '../dist/runtime/utils/seo.js';
4
4
  export * from '@scayle/storefront-core';
5
- export { unwrap } from '@scayle/storefront-core/dist/utils/response';
5
+ export { unwrap } from '@scayle/storefront-core';
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
- "version": "8.43.4",
3
+ "version": "8.44.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.43.4";
57
+ const PACKAGE_VERSION = "8.44.1";
58
58
  const logger = createConsola({
59
59
  fancy: true,
60
60
  formatOptions: {
@@ -1,4 +1,4 @@
1
- import { unwrap } from "@scayle/storefront-core/dist/utils/response";
1
+ import { unwrap } from "@scayle/storefront-core";
2
2
  import { useNuxtApp, useAsyncData } from "nuxt/app";
3
3
  import { useCoreLog } from "../useCoreLog.js";
4
4
  import { useCurrentShop } from "./useCurrentShop.js";
@@ -1,10 +1,8 @@
1
- import { generateBasketKey } from '@scayle/storefront-core/dist/utils/keys';
2
- import type { AddOrUpdateItemType, RpcMethodParameters, BasketResponseData, BasketItem, Product, BasketTotalPrice } from '@scayle/storefront-core';
3
- import { ExistingItemHandling } from '@scayle/storefront-core';
1
+ import type { AddOrUpdateItemType, RpcMethodParameters, BasketResponseData, BasketItem, Product, BasketTotalPrice, BasketItemUpdateData } from '@scayle/storefront-core';
2
+ import { ExistingItemHandling, generateBasketKey } from '@scayle/storefront-core';
4
3
  import type { NormalizedRpcResponse, UseRpcReturn } from '../core/useRpc.js';
5
4
  import type { MaybeRefOrGetter, ComputedRef, Ref } from 'vue';
6
5
  import type { BasketKey, BasketPackageInformation } from '@scayle/storefront-api';
7
- import type { BasketItemUpdateData } from '@scayle/storefront-core/dist/rpc/methods/index';
8
6
  /**
9
7
  * Representation of options for configuring the `useBasket` composable.
10
8
  */
@@ -1,12 +1,10 @@
1
- import { generateBasketKey } from "@scayle/storefront-core/dist/utils/keys";
2
1
  import {
3
2
  AddToBasketFailureKind,
4
3
  ExistingItemHandling,
5
- getShippingDates
6
- } from "@scayle/storefront-core";
7
- import {
4
+ getShippingDates,
5
+ generateBasketKey,
8
6
  wasAddedWithReducedQuantity
9
- } from "@scayle/storefront-core/dist/utils/basket";
7
+ } from "@scayle/storefront-core";
10
8
  import { extendPromise } from "../../utils/promise.js";
11
9
  import { useRpc } from "../core/useRpc.js";
12
10
  import { useRpcCall } from "../core/useRpcCall.js";
@@ -1,16 +1,14 @@
1
1
  import { getRequestIP, getRequestHeaders } from "h3";
2
2
  import {
3
3
  createAndPurifyHeaders,
4
- StorefrontAPIClient
5
- } from "@scayle/storefront-core";
6
- import {
4
+ StorefrontAPIClient,
5
+ unwrap,
7
6
  generateBasketKey,
8
7
  generateWishlistKey
9
- } from "@scayle/storefront-core/dist/utils/keys";
8
+ } from "@scayle/storefront-core";
10
9
  import { useNitroApp } from "nitropack/runtime";
11
10
  import { getCachedFunction } from "./cached.js";
12
11
  import { getApiBasePath } from "./server/middleware/bootstrap-utils.js";
13
- import { unwrap } from "@scayle/storefront-core/dist/utils/response";
14
12
  import { fetchCampaignKey } from "./campaignKey.js";
15
13
  async function getWishlistKey(appKeys, session, $log, $shopConfig) {
16
14
  return session.data.user ? await generateWishlistKey({
@@ -1,4 +1,4 @@
1
- import { unwrap } from "@scayle/storefront-core/dist/utils/response";
1
+ import { unwrap } from "@scayle/storefront-core";
2
2
  export const rpcCall = (nuxtApp, method, shop) => {
3
3
  const fetch = nuxtApp.ssrContext?.event.context.$fetchWithContext ?? $fetch;
4
4
  return async (params = void 0) => {
@@ -1,5 +1,5 @@
1
1
  import { sendRedirect, getRequestURL } from "h3";
2
- import { UnstorageCache } from "@scayle/storefront-core/dist/cache/providers/unstorage";
2
+ import { UnstorageCache } from "@scayle/storefront-core";
3
3
  import { getRedirectLookupUrls, getTargetLocation } from "./redirects.utils.js";
4
4
  import { useRuntimeConfig } from "#imports";
5
5
  const REDIS_REDIRECT_PREFIX = ":REDIRECT";
@@ -1,5 +1,5 @@
1
1
  import type { Log } from '@scayle/storefront-core';
2
- import { UnstorageCache } from '@scayle/storefront-core/dist/cache/providers/unstorage';
2
+ import { UnstorageCache } from '@scayle/storefront-core';
3
3
  import type { SessionStore } from '@scayle/h3-session';
4
4
  import type { SessionConfig } from '../../../index.js';
5
5
  export declare const STORAGE_MOUNT_BASE = "storefront";
@@ -1,4 +1,4 @@
1
- import { UnstorageCache } from "@scayle/storefront-core/dist/cache/providers/unstorage";
1
+ import { UnstorageCache } from "@scayle/storefront-core";
2
2
  import { UnstorageSessionStore } from "@scayle/h3-session";
3
3
  import { useStorage } from "nitropack/runtime/storage";
4
4
  export const STORAGE_MOUNT_BASE = "storefront";
@@ -5,7 +5,7 @@ import * as hookable from 'hookable';
5
5
  import * as _scayle_storefront_core from '@scayle/storefront-core';
6
6
  import { RpcContext, StorefrontAPIClient, Log, RuntimeConfiguration, ContextWithoutSession, ContextWithSession } from '@scayle/storefront-core';
7
7
  import { RouteLocationNormalizedLoadedGeneric } from 'vue-router';
8
- export * from '@scayle/storefront-core/dist/test/factories';
8
+ export * from '@scayle/storefront-core/test/factories';
9
9
 
10
10
  interface ModuleOptionsFactoryParams {
11
11
  shops: ShopConfig[];
@@ -1,6 +1,6 @@
1
1
  import { Factory } from 'fishery';
2
2
  import { HashAlgorithm, Log, StorefrontAPIClient } from '@scayle/storefront-core';
3
- export * from '@scayle/storefront-core/dist/test/factories';
3
+ export * from '@scayle/storefront-core/test/factories';
4
4
 
5
5
  const moduleOptionsFactory = Factory.define(({ transientParams }) => {
6
6
  return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@scayle/storefront-nuxt",
3
3
  "type": "module",
4
- "version": "8.43.4",
4
+ "version": "8.44.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,38 +90,38 @@
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.43.4",
94
- "@scayle/unstorage-compression-driver": "1.2.0"
93
+ "@scayle/storefront-core": "8.44.1",
94
+ "@scayle/unstorage-compression-driver": "1.2.1"
95
95
  },
96
96
  "devDependencies": {
97
97
  "@arethetypeswrong/cli": "0.18.2",
98
98
  "@eslint/eslintrc": "3.3.1",
99
99
  "@nuxt/eslint": "1.9.0",
100
100
  "@nuxt/eslint-config": "1.9.0",
101
- "@nuxt/kit": "3.19.0",
101
+ "@nuxt/kit": "3.19.2",
102
102
  "@nuxt/module-builder": "1.0.2",
103
- "@nuxt/schema": "3.19.0",
103
+ "@nuxt/schema": "3.19.2",
104
104
  "@nuxt/test-utils": "3.19.2",
105
- "@types/node": "22.18.0",
105
+ "@types/node": "22.18.3",
106
106
  "@vitest/coverage-v8": "3.2.4",
107
- "dprint": "0.50.1",
107
+ "dprint": "0.50.2",
108
108
  "eslint-formatter-gitlab": "6.0.1",
109
- "eslint": "9.34.0",
109
+ "eslint": "9.35.0",
110
110
  "fishery": "2.3.1",
111
111
  "h3": "1.15.4",
112
112
  "nitro-test-utils": "0.9.2",
113
- "nitropack": "2.12.5",
113
+ "nitropack": "2.12.6",
114
114
  "node-mocks-http": "1.17.2",
115
- "nuxt": "3.19.0",
115
+ "nuxt": "3.19.2",
116
116
  "publint": "0.3.12",
117
117
  "typescript": "5.9.2",
118
118
  "unbuild": "3.6.1",
119
119
  "vitest": "3.2.4",
120
- "vue-tsc": "3.0.6",
121
- "@scayle/eslint-config-storefront": "4.7.7",
120
+ "vue-tsc": "3.0.7",
121
+ "@scayle/eslint-config-storefront": "4.7.8",
122
122
  "@scayle/eslint-plugin-vue-composable": "0.2.1",
123
123
  "@scayle/vitest-config-storefront": "1.0.0",
124
- "@scayle/unstorage-scayle-kv-driver": "2.0.3"
124
+ "@scayle/unstorage-scayle-kv-driver": "2.0.4"
125
125
  },
126
126
  "volta": {
127
127
  "node": "22.19.0"