@scayle/storefront-nuxt 8.61.0 → 8.61.2
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-V7.md +3 -11
- package/CHANGELOG.md +240 -255
- package/dist/module.json +1 -1
- package/dist/module.mjs +95 -39
- package/dist/runtime/api/rpcHandler.js +1 -4
- package/dist/runtime/cached.js +1 -6
- package/dist/runtime/campaignKey.js +15 -15
- package/dist/runtime/composables/core/useIDP.js +11 -13
- package/dist/runtime/composables/core/useSession.js +1 -3
- package/dist/runtime/composables/core/useUser.js +24 -30
- package/dist/runtime/composables/storefront/useBasket.d.ts +1 -1
- package/dist/runtime/composables/storefront/useBasket.js +32 -45
- package/dist/runtime/composables/storefront/useBrand.js +1 -6
- package/dist/runtime/composables/storefront/useBrands.js +1 -6
- package/dist/runtime/composables/storefront/useCampaign.js +1 -6
- package/dist/runtime/composables/storefront/useCategories.js +12 -19
- package/dist/runtime/composables/storefront/useCategoryById.js +1 -6
- package/dist/runtime/composables/storefront/useCategoryByPath.js +1 -6
- package/dist/runtime/composables/storefront/useCurrentPromotions.js +7 -12
- package/dist/runtime/composables/storefront/useFilters.js +1 -6
- package/dist/runtime/composables/storefront/useNavigationTree.js +2 -12
- package/dist/runtime/composables/storefront/useNavigationTrees.js +1 -6
- package/dist/runtime/composables/storefront/useProduct.js +1 -6
- package/dist/runtime/composables/storefront/useProducts.js +1 -6
- package/dist/runtime/composables/storefront/useProductsByIds.js +1 -6
- package/dist/runtime/composables/storefront/useProductsByReferenceKeys.js +1 -6
- package/dist/runtime/composables/storefront/useProductsCount.js +1 -6
- package/dist/runtime/composables/storefront/usePromotions.js +1 -6
- package/dist/runtime/composables/storefront/usePromotionsByIds.js +1 -6
- package/dist/runtime/composables/storefront/useShopConfiguration.js +1 -6
- package/dist/runtime/composables/storefront/useUserAddresses.js +1 -6
- package/dist/runtime/composables/storefront/useVariant.js +1 -6
- package/dist/runtime/composables/storefront/useWishlist.d.ts +1 -1
- package/dist/runtime/composables/storefront/useWishlist.js +11 -25
- package/dist/runtime/context.js +2 -10
- package/dist/runtime/nitro/plugins/configValidation.js +6 -4
- package/dist/runtime/nitro/plugins/nitroStorageConfig.js +1 -4
- package/dist/runtime/server/middleware/bootstrap.js +3 -14
- package/dist/runtime/server/middleware/redirects.js +1 -3
- package/dist/runtime/utils/storage.js +1 -4
- package/dist/runtime/utils/zodSchema.js +33 -25
- package/package.json +9 -8
package/CHANGELOG-V7.md
CHANGED
|
@@ -486,8 +486,7 @@ For more details on `useAsyncData` usage check out the [Nuxt Docs](https://nuxt.
|
|
|
486
486
|
|
|
487
487
|
### Patch Changes
|
|
488
488
|
|
|
489
|
-
-
|
|
490
|
-
- Updated dependencies
|
|
489
|
+
- - Updated dependencies
|
|
491
490
|
- @scayle/storefront-core@7.64.0
|
|
492
491
|
|
|
493
492
|
## 7.84.2
|
|
@@ -570,7 +569,6 @@ For more details on `useAsyncData` usage check out the [Nuxt Docs](https://nuxt.
|
|
|
570
569
|
- Support enabling or disabling optional server-side plugins
|
|
571
570
|
|
|
572
571
|
Plugins with optional behavior can now be disabled at build time through `env` variables.
|
|
573
|
-
|
|
574
572
|
- `SFC_PLUGIN_CONFIG_VALIDATION_ENABLED` This plugin executes during app startup and validates the runtime config, exiting with an error if a problem is found. It is enabled by default and can be disabled by setting this variable to `false`.
|
|
575
573
|
- `SFC_PLUGIN_POWERED_BY_ENABLED` This plugin sets the `X-Powered-By-Header` on every HTTP response to include SCAYLE. It is enabled by default and can be disabled by setting this variable to `false`.
|
|
576
574
|
- `SFC_PLUGIN_RUNTIME_PERFORMANCE_ENABLED` This plugin improves performance by computing the runtime configuration at startup rather than for every request. It is enabled by default and can be disabled by setting this variable to `false`.
|
|
@@ -774,7 +772,6 @@ For more details on `useAsyncData` usage check out the [Nuxt Docs](https://nuxt.
|
|
|
774
772
|
Composables which are simply wrappers around `useRpc` also inherit this new behavior. They accept the same options as `useAsyncData`, return the same properties (and possibly some additional ones) and are optionally awaitable.
|
|
775
773
|
|
|
776
774
|
This includes the following composables:
|
|
777
|
-
|
|
778
775
|
- `useBrand`
|
|
779
776
|
- `useBrands`
|
|
780
777
|
- `useCategories`
|
|
@@ -1054,9 +1051,8 @@ For more details on `useAsyncData` usage check out the [Nuxt Docs](https://nuxt.
|
|
|
1054
1051
|
}
|
|
1055
1052
|
|
|
1056
1053
|
// Refresh basket if the user changes quantity or removes an item at checkout
|
|
1057
|
-
useEventListener(
|
|
1058
|
-
|
|
1059
|
-
(event) => onCheckoutUpdate(event, fetching.value, fetch),
|
|
1054
|
+
useEventListener('message', (event) =>
|
|
1055
|
+
onCheckoutUpdate(event, fetching.value, fetch),
|
|
1060
1056
|
)
|
|
1061
1057
|
```
|
|
1062
1058
|
|
|
@@ -1082,7 +1078,6 @@ For more details on `useAsyncData` usage check out the [Nuxt Docs](https://nuxt.
|
|
|
1082
1078
|
This release adds the beginning of native instrumentation to the `@scayle/storefront-nuxt` package.
|
|
1083
1079
|
|
|
1084
1080
|
If you are using the OpenTelemetry SDK in your application, a `Span` will now be created for calls to RPC methods. The `Span` will be named `storefront-nuxt.rpc/[method]` and have the following attributes:
|
|
1085
|
-
|
|
1086
1081
|
- `rpc.method` the method name
|
|
1087
1082
|
- `rpc.server` `'storefront-nuxt.rpc'`
|
|
1088
1083
|
- `rpc.payload` the payload passed to the RPC
|
|
@@ -2294,7 +2289,6 @@ There is an `unwrap` function exported by this package (>=7.55.0) that can be us
|
|
|
2294
2289
|
|
|
2295
2290
|
_NOTE: Due to the changes of the NPM package scope from `@aboutyou` to `@scayle`,
|
|
2296
2291
|
it is required to change the consuming projects local `.npmrc` file as follows:_
|
|
2297
|
-
|
|
2298
2292
|
- Before:
|
|
2299
2293
|
|
|
2300
2294
|
```text
|
|
@@ -2315,7 +2309,6 @@ There is an `unwrap` function exported by this package (>=7.55.0) that can be us
|
|
|
2315
2309
|
### Major Changes
|
|
2316
2310
|
|
|
2317
2311
|
- **Changed NPM package names**
|
|
2318
|
-
|
|
2319
2312
|
- **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-nuxt` to `@scayle/storefront-nuxt2`
|
|
2320
2313
|
- **Breaking**: Change package scope and name of `@aboutyou/sfc-nuxt3` to `@scayle/storefront-nuxt`
|
|
2321
2314
|
- **Breaking**: Change package scope and name of `@aboutyou/scayle-sfc-lib` to `@scayle/storefront-core``
|
|
@@ -2324,7 +2317,6 @@ There is an `unwrap` function exported by this package (>=7.55.0) that can be us
|
|
|
2324
2317
|
|
|
2325
2318
|
Due to the changes of the NPM package scope from `@aboutyou` to `@scayle`,
|
|
2326
2319
|
it is required to change the consuming projects local `.npmrc` file as follows:
|
|
2327
|
-
|
|
2328
2320
|
- Before: `@aboutyou:registry=https://gitlab.com/api/v4/packages/npm/`
|
|
2329
2321
|
- After: `@scayle:registry=https://gitlab.com/api/v4/packages/npm/`
|
|
2330
2322
|
|