@scayle/storefront-nuxt 8.61.1 → 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.
Files changed (42) hide show
  1. package/CHANGELOG-V7.md +3 -11
  2. package/CHANGELOG.md +227 -255
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +95 -39
  5. package/dist/runtime/api/rpcHandler.js +1 -4
  6. package/dist/runtime/cached.js +1 -6
  7. package/dist/runtime/campaignKey.js +15 -15
  8. package/dist/runtime/composables/core/useIDP.js +11 -13
  9. package/dist/runtime/composables/core/useSession.js +1 -3
  10. package/dist/runtime/composables/core/useUser.js +24 -30
  11. package/dist/runtime/composables/storefront/useBasket.d.ts +1 -1
  12. package/dist/runtime/composables/storefront/useBasket.js +32 -45
  13. package/dist/runtime/composables/storefront/useBrand.js +1 -6
  14. package/dist/runtime/composables/storefront/useBrands.js +1 -6
  15. package/dist/runtime/composables/storefront/useCampaign.js +1 -6
  16. package/dist/runtime/composables/storefront/useCategories.js +12 -19
  17. package/dist/runtime/composables/storefront/useCategoryById.js +1 -6
  18. package/dist/runtime/composables/storefront/useCategoryByPath.js +1 -6
  19. package/dist/runtime/composables/storefront/useCurrentPromotions.js +7 -12
  20. package/dist/runtime/composables/storefront/useFilters.js +1 -6
  21. package/dist/runtime/composables/storefront/useNavigationTree.js +2 -12
  22. package/dist/runtime/composables/storefront/useNavigationTrees.js +1 -6
  23. package/dist/runtime/composables/storefront/useProduct.js +1 -6
  24. package/dist/runtime/composables/storefront/useProducts.js +1 -6
  25. package/dist/runtime/composables/storefront/useProductsByIds.js +1 -6
  26. package/dist/runtime/composables/storefront/useProductsByReferenceKeys.js +1 -6
  27. package/dist/runtime/composables/storefront/useProductsCount.js +1 -6
  28. package/dist/runtime/composables/storefront/usePromotions.js +1 -6
  29. package/dist/runtime/composables/storefront/usePromotionsByIds.js +1 -6
  30. package/dist/runtime/composables/storefront/useShopConfiguration.js +1 -6
  31. package/dist/runtime/composables/storefront/useUserAddresses.js +1 -6
  32. package/dist/runtime/composables/storefront/useVariant.js +1 -6
  33. package/dist/runtime/composables/storefront/useWishlist.d.ts +1 -1
  34. package/dist/runtime/composables/storefront/useWishlist.js +11 -25
  35. package/dist/runtime/context.js +2 -10
  36. package/dist/runtime/nitro/plugins/configValidation.js +6 -4
  37. package/dist/runtime/nitro/plugins/nitroStorageConfig.js +1 -4
  38. package/dist/runtime/server/middleware/bootstrap.js +3 -14
  39. package/dist/runtime/server/middleware/redirects.js +1 -3
  40. package/dist/runtime/utils/storage.js +1 -4
  41. package/dist/runtime/utils/zodSchema.js +33 -25
  42. package/package.json +4 -3
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
- 'message',
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