@scayle/storefront-core (v7)
@scayle/storefront-core
This changelog contains all changes of @scayle/storefront-core above v6.0.0 and below v7.0.0.
7.69.3
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.69.2
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.69.1
Patch Changes
- Extend
FetchProductsByCategoryParamstype to supporttrackSearchAnalyticsEvent?: boolean - Allow passing of the
trackSearchAnalyticsEventparameter into thegetProductsByCategoryRPC method.NOTE: To prevent logging the search term on every page request when when paginating with thepageparameter, thetrackSearchAnalyticsEventparameter is only passed on the first page (page === 1).
For more details on how to utilize this, check the SCAYLE Search Analytics section in the SCAYLE Resource Center.
7.69.0
Minor Changes
- Move test factories to separate entry point. They are now available via
@scayle/storefront-core/dist/test/factories(or@scayle/storefront-core/test/factorieswhenmoduleResolutionis set toBundler.
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.68.0
Minor Changes
- Set
sapiClientinRpcContextas required to improve the updatability of RPC methods.
7.67.1
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.67.0
Minor Changes
- Expose Storefront API test factories externally
7.66.7
Patch Changes
- Updated dependency
@scayle/[email protected]to@scayle/[email protected]
7.66.6
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.66.5
Patch Changes
- Merging wishlists now retains the
variantId,itemGroupandcustomDatawhen present on the source wishlist item.
7.66.4
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.66.3
Patch Changes
- Response objects with an error status code should not be cached
7.66.2
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.66.1
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.66.0
Minor Changes
- Add
fetchNavigationTreeByNamerpc.
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.65.11
Patch Changes
- Export
NavigationItemSuggestiontypeDependencies - Updated dependency to @scayle/[email protected]
7.65.10
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.65.9
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.65.8
Patch Changes
- Fixed an issue with handling the deprecated MD5 hash support, e.g. used for generating a user-specific basket hash, resulting in a potential application crash
7.65.7
Patch Changes
- Delete
refreshTokenif it fails to refresh the access token
7.65.6
Patch Changes
- Resolved an issue where the
cachevalue from parameters was being unintentionally overwritten by the default value forgetProductsByCategoryrpc.
7.65.5
Patch Changes
- Support passing an internal access header
- Make
getProductsCount,getFiltersandgetProductsByCategoryRPC methods handle their parameters consistentlyDependencies - Updated dependency to @scayle/[email protected]
7.65.4
Patch Changes
- Restore filtered list of error status codes in
oauthLogin(400, 404)oauthRegister(400, 409, 422) andoauthGuestLogin(400, 409)
7.65.3
Patch Changes
- Fix the
getFiltersRPC method not consideringincludeSellableForFreewhen calculating the product count
7.65.2
Patch Changes
Dependencies
- Updated dependency to @scayle/[email protected]
7.65.1
Patch Changes
- Fix regression in product RPC methods where the categoryId may not be resolved from the category path
7.65.0
Minor Changes
- Improves the handling of
getOrderDataByCbdRPC to return descriptive errors in case the validation of the token fails.
In case the token can't be validated using the Checkout Secret, this is now returned and a warning on the server is logged.
If the token has expired, this is now also returned and logged on the server. - Support passing
categoryIdas an alternative to the category path ingetProductsByCategoryandgetFilters
Patch Changes
- Fixed cached fallback ttl to be used only if passed
option.ttlis undefined
7.64.4
Patch Changes
- Replaced
radashutils with custom native implementations
7.64.3
Patch Changes
- Add support for
orderCustomDataon the basket endpoints - Updated dependencies
- @scayle/[email protected]
7.64.2
Patch Changes
- Add more specific return type for
getFlattenedMaterialComposition
7.64.1
Patch Changes
- Updated dependencies
- @scayle/[email protected]
7.64.0
Minor Changes
- Resolve a issue that prevents filters from working as expected on the search page
Patch Changes
- Updated dependencies
- @scayle/[email protected]
7.63.1
Patch Changes
- Updated dependencies
- @scayle/[email protected]
7.63.0
Minor Changes
- Deprecate
RpcContext.storeCampaignKeyword
7.62.0
Minor Changes
- Return
ErrorResponsefrom RPC when Session is missing
7.61.0
Minor Changes
- Add
sapiClient: StorefrontAPIClienttoRpcContext
DeprecatebapiClientin favour ofsapiClient
7.60.1
Patch Changes
- Updated dependencies
- @scayle/[email protected]
7.60.0
Minor Changes
- Instead of throwing errors, RPCs will now return an
ErrorResponseobject conforming to RFC9457.
In addition to this change, existing RPCs have been reviewed and updated to return more accurate and descriptive HTTP status codes.
This change allows us to provide more informative error messages and utilize standardized HTTP status codes for better context. TheErrorResponseobject can include additional details about the error, making it easier to identify and address root causes.
Action Required:
Code that previously made direct RPC calls (calling the function directly instead of viauseRpcorrpcCall) and relied ontry {} catch {}blocks for error handling needs to be updated. Moving forward, please check the status of the RPC response directly.
Patch Changes
- Updated dependencies
- @scayle/[email protected]
7.59.2
Patch Changes
- Resolved a memory leak within the
timeoututil wheresetTimeoutmight not have been garbage collected if the promise had been resolved/rejected before the timeout itself
7.59.1
Patch Changes
- Updated dependencies
- @scayle/[email protected]
7.59.0
Minor Changes
- Add
storefront:afterLoginandstorefront:afterLogouthooks to the respective RPC.
AddcallHook,callHookParallelandcallHookWithtypes toRpcContext
7.58.3
Patch Changes
- Upgrades to the new Wishlist from @scayle/storefront-api
getDefaultFractionDigitswill return 2 ifmaximumFractionDigitsis not defined- Updated dependencies
- @scayle/[email protected]
7.58.2
Patch Changes
- Adds the
X-Shop-Idheader to the request when revoking an access token.
7.58.1
Patch Changes
- Fixed an issue by respecting
forceTokenRefreshflag when calling thegetAccessTokenRPC
7.58.0
Minor Changes
- Deprecate
storefrontAccessTokenofUserAuthentication. UsegetAccessTokenRPC to get a valid access token instead.
DeprecatedloginShopId.loginShopIdis no longer needed, because each shop now has its own session cookie. - Add
getAccessTokenRPC to retrieve refreshed access tokens
7.57.0
Minor Changes
- Expose
propertieswith option for each category RPC method payload
7.56.0
Minor Changes
- Add refresh token logic to customer API client
Patch Changes
- Ensure
user.storefrontAccessTokenis up to date when calling thegetUserRPC
7.55.0
Minor Changes
- Allow disabling the
HashAlgorithmby setting its value tononewithin a shop config. - Added exports for
ProductSortConfigtype and enumsAPISortOptionandAPISortOrder.
7.54.0
Minor Changes
- Add new function
purifySensitiveValuetosanitizationHelpersto purify specific value. - Introduced a new parameter
showFirstAndLastCharto bothpurifySensitiveValueandpurifySensitiveData.
7.53.0
Minor Changes
- Deprecate
isCmsPreviewflag inRpcContext. This flag indicated that the current session is or has been inside of a CMS editor. With the the introduction of 'Live Preview' for the cms provider 'contentful' and 'storyblok' this flag is no longer necessary.
Patch Changes
- Removes option
considerItemGroupForUniquenessfromaddItemsToBasketsince this is now enabled by default. - Updated dependencies
- @scayle/[email protected]
7.52.1
Patch Changes
- Fix
getWishlistfalling back to basketwithParamsinstead of wishlistwithParams
7.52.0
Minor Changes
- Add
getCheckoutTokenRPC, which provides access token and checkout JWT needed by the checkout web component.
7.51.1
Patch Changes
- Update ``ShopConfiguration types
- Updated dependencies
- @scayle/[email protected]
7.51.0
Minor Changes
- Allow extending the
RpcContexttype by augmenting theAdditionalRpcContextinterface.
7.50.1
Patch Changes
- Add missing
BuyXGetYEffectandAutomaticDiscountEffectexports - Updated dependencies
- @scayle/[email protected]
7.50.0
Minor Changes
- Upgraded to
@scayle/[email protected]and replaced@aboutyou/backbone
Noticeable changes are:- Rename
BapiClienttoStorefrontAPIClient - Removed basic auth support from
initBapi
- Rename
7.49.4
Patch Changes
- Deprecate the
getBadgeLabelfunction since this is application specific code and translations should be handled per project
7.49.3
Patch Changes
- Updated dependencies
- @aboutyou/[email protected]
7.49.2
Patch Changes
- Fixed a bug where the
addItemToWishlistRPC method returned an empty response upon failure. - Updated dependencies
- @aboutyou/[email protected]
7.49.1
Patch Changes
- Fix accidental rename of
getFlattenedVariantCrosssellingsin the previous release
7.49.0
Minor Changes
- Add optional
stateattribute to order address for US addresses
Patch Changes
- Add better type support for
getFlattenedVariantCrosssellingswith generic type
7.48.2
Patch Changes
- Fixes an issue where the
refreshTokenwas not exposed on theRPCContexteven if the user is logged in.
7.48.1
Patch Changes
- Updated
purifySensitiveDatato ensure that empty secrets are logged as empty strings, enhancing clarity in logged configurations.
7.48.0
Minor Changes
- Add support for dynamically adding query parameters to the IDP redirect callback URLs to be read back when the user returns from the IDP.
Please note thatcodeandstateare not supported as these are used by the SCAYLE Authentication API.
Patch Changes
- Added merge basket and merge wishlist functionality after login with IDP
- Updated dependencies
- @aboutyou/[email protected]
7.47.0
Minor Changes
- Add
resolveSearchandgetSearchSuggestionsRPC methods
7.46.1
Patch Changes
- Revert breaking change in
handleIDPLoginCallbacksignature
7.46.0
Minor Changes
- Add new RPC method
getProductsByReferenceKeys
7.45.0
Minor Changes
- Improve typing of RPC methods by using
satisfiesinstead of assertions. Thesatisfiesoperator validates that an expression matches a type without changing the type of that expression. For RPC methods it can be used to enforce that a function conforms to the spec of an RPC method, without affecting the more specific inferred type of the function.
You can use this pattern in your own custom RPC methods as well.
For example:
In the first case,customwill be typed asRpcHandler<{shop: number}>or essentially a function takes no parameters and returns{ shop: number } | Response<{shop: number}>. In the second case, it will be typed as a function which takes no parameters and returns{ shop: number }which is more specific. The more specific typing may be useful if you are calling the custom RPC function as both a registered RPC method and regular function.
7.44.1
Patch Changes
- Updated dependencies
- @aboutyou/[email protected]
7.44.0
Minor Changes
- Expose the
loginWithIDPfunction from theuseSessioncomposable. - Changes the signature of
handleIDPLoginCallbackto receive an object with the code inside instead of just the code for improved logging behavior.
7.43.0
Minor Changes
- Add
createAndPurifyHeaderssanitization helper
7.42.1
Patch Changes
- Fix usage of the same cache key prefix for
getCategoryByPath
7.42.0
Minor Changes
- Add
getCategoryByPathRPC method
7.41.3
Patch Changes
- Fix lost session if user refresh is called while not logged in
7.41.2
Patch Changes
- Updated dependencies
- @aboutyou/[email protected]
7.41.1
Patch Changes
- Fixes an issue where we were trying to read siblings information from a product where the data was not available
7.41.0
Minor Changes
- Add
purifySensitiveDatasanitization helper
7.40.1
Patch Changes
- patch accessToken on refreshUser RPC Method
7.40.0
Minor Changes
- Export Campaign types from @aboutyou/backbone
7.39.1
Patch Changes
- Persist accessToken to user.authentication
7.39.0
Minor Changes
- Add
sortableoption togroupFilterableValuesByKeyfilter helper - Add
sortableoption togetGroupedFilterableValuesto provide the ability for custom sorting implementation for specific filtersGroups - Authentication RPC methods include status codes in error cases
7.38.1
Patch Changes
- Fix potential empty user after login
7.38.0
Minor Changes
- Allow the session of an
RpcContextto be undefined
BREAKING: This changes the structure of theRpcContext, so it may be a breaking change if you have written custom RPC methods.
The affected properties on theRpcContextaresessionId,wishlistKeyandbasketKeyand the affected methods aredestroySession,createUserBoundSession,updateUser, andupdateTokens. If you use these methods or properties in a custom RPC method, make sure that you handle the case where they might be undefined. TypeScript will also catch these cases if you havestrictNullChecksenabled.
You can checkcontext.sessionId(or another session-dependent property) to determine if the session is present. If one of these properties is present, all will be. Alternatively, you can callassertSession(context)before referencing any properties on the context. If the session is not present, an error will be thrown. For any usage ofcontextafterassertSessionis called, TypeScript will understand that the session properties are present.
7.37.0
Minor Changes
- Update dependency
joseto the latest5.2.0version
7.36.0
Minor Changes
- Support
Responsereturns in RPC methods - Handle 401 from CO and delete session
7.35.0
Minor Changes
- Change
oauthForgetPasswordpayload signature to acceptemailonly
7.34.1
Patch Changes
- Fix type errors
7.34.0
Minor Changes
- We added support for Identity Provider (IDP), enhancing our authentication and identity management capabilities.
7.33.0
Minor Changes
- Previously the caching time for product RPCs was one hour which could easily lead to outdated product information for a long time.
ThegetProductByIdandgetProductsByIdsRPCs are now cached for 5 Minutes andgetProductsByCategoryis now cached for 15 Minutes.
7.32.0
Minor Changes
- Use new password change API when oauth is enabled
7.31.0
Minor Changes
- Update SAPI SDK to v16
Patch Changes
- Fix filter helper to not return null values
7.30.0
Minor Changes
- Allow
nullvalues forpromotionIdwithin the basket payload
7.29.0
Minor Changes
- Remove basic
gzipcompression in customunstoragecaching interface in favor of custom@scayle/unstorage-compression-driver
7.28.2
Patch Changes
fetchUserandrefreshUserare now proper RPC methods- Fix parsing error from authentication service
- Use a common API client for interacting with Checkout Customer API
7.28.1
Patch Changes
- Types: shop_id should be optional in updatePasswordByHash
7.28.0
Minor Changes
- Use native fetch instead of axios
7.27.0
Minor Changes
- Introduce gzip-based compression for unstorage cache interface
- Upgrade package
@aboutyou/backbonetov15.14.3
7.26.0
Minor Changes
- Don't return oauth tokens from RPC methods
7.25.1
Patch Changes
- Cache purging should not remove unrelated keys
7.25.0
Minor Changes
- Add
PromotionEffectTypeconstant and type
7.24.1
Patch Changes
- Forbid saving
nullandundefinedresults to the cache
7.24.0
Minor Changes
- Remove
sanitizehelper function and jsdom dependency
7.23.0
Minor Changes
- Add
runtimeConfigurationproperty to theRPCContext
7.22.1
Patch Changes
- Add license file
7.22.0
Minor Changes
- Upgrade package
@aboutyou/backbonetov15.14.1
7.21.0
Minor Changes
- Add
promotionRPC methods and types - Add promotion data within the basket payloads
Patch Changes
- Fix product URL generation, remove additional special characters that can break routing
7.20.0
Minor Changes
- Upgrade backbone to the
v15.12.1
7.19.1
Patch Changes
- The
authconfig is optional
7.19.0
Minor Changes
- Support setting default
withparams in the module options
7.18.0
Minor Changes
- Expose error codes from BAPI for the basket rpc methods
7.17.0
Minor Changes
- Limit perPage for getBrands and getProductsByCategory to 100
7.16.0
Minor Changes
- Support expiring CBD tokens
7.15.1
Patch Changes
- Remove unnecessary dependencies
7.15.0
Minor Changes
- Support importing all dist/ files directly
7.14.3
Patch Changes
- Import fix
7.14.2
Patch Changes
- Make redis an optional dependency
7.14.1
Patch Changes
- Remove unused body-parser dependency
7.14.0
Minor Changes
- Read OAuth settings from the RpcContext
7.13.0
Minor Changes
- Save user to session during login/register process. This will fix wrong wishlist/basket keys, in the RpcContext, after the login/registering.
- Safe user to session during login process. This will fix wrong wishlist/basket keys , in the RpcContext, after the login.
7.12.2
Patch Changes
- Replace crypto with uncrypto
7.12.1
Patch Changes
- Export BapiClient and Redirect from BAPI
7.12.0
Minor Changes
toprop ofBreadcrumbItemreturned fromgetBreadcrumbsFromPathnow start with/
7.11.0
Minor Changes
- Move
deserializeFiltersandserializeFiltersto@scayle/storefront-core
7.10.2
Patch Changes
- encodeBase64 and decodeBase64 should be able to be run in browser environments
7.10.1
Patch Changes
- Get accessToken from getUserRequest on client side.
Merge basket and wishlist after login/register to logged in user.
7.10.0
Minor Changes
- Add the possibility to use Token based authentication.
7.9.0
Minor Changes
- Add unstorage cache provider
Patch Changes
- Fix crypto-js imports needed for basked/wishlist key generation.
7.8.0
Minor Changes
- provide exports of package as ESM and CJS format
- Migrate helpers to core package
Patch Changes
- Add
initBapifunction to initialize a BapiClient
7.7.1
Patch Changes
- orFiltersOperator should be optional in FetchProductsByCategoryParams and FetchProductsCountParams
7.7.0
Minor Changes
- Update @aboutyou/backbone package and add support for
onFiltersOperatorBAPI parameter
7.6.1
Patch Changes
- Move keys utils to core package
7.6.0
Minor Changes
- Set the domain property in the rpc context
7.5.0
Minor Changes
refresh()ofuseUser()anduseUserFacet()will now clear the session and user state if the checkout returnsHTTP 403 Forbidden.- Breaking
destroySessionis now async.
7.4.0
Minor Changes
- Add option
includeSellableForFreetouseFacetanduseProductsto include free products.
7.3.1
Patch Changes
- Move RpcMethodsStorefront type to the nuxt2 package so it's accessible to shops
7.3.0
Minor Changes
- Add rpcMethods
getBrandandgetBrands& corresponding composables, to make bapi-sdk brand endpoints available.
7.2.1
Patch Changes
- Added ability to add basket groups by accepting
itemGroupin the payload for the rpc methodaddItemsToBasket
7.2.0
Minor Changes
- Replaced
enumswith the companion object pattern approach. - Replaced
HttpStatusMessagenumber values with the actual message - Exposed
HashAlgorithmconstant with its type and move it to the core- Breaking: If you are importing
HashAlgorithmfrom@scayle/storefront-nuxt2change to importing it from@scayle/storefront-core
- Breaking: If you are importing
7.1.0
Minor Changes
- Fix
fetchAllFiltersForCategorycaching issue by returning the cached value. - Fix
fetchAllFiltersForCategorycaching issue by returning the cached value.
7.0.0
Major Changes
- Changes to basket and wishlist functions
- Going forward, the only way to specify
withandpricePromotionKeyfor the basket is by passing them touseBasketWithParams().
They can no longer be overridden when callingbasket.addItem(),basket.removeItem()orbasket.fetch(). - The only way to specify
pricePromotionKeyfor the wishlist is by to passing them touseWishlistWithParams().
They can no longer be overridden when callingwishlist.addItem(),wishlist.removeItem(),wishlist.toggleItem()orwishlist.fetch().
- Going forward, the only way to specify
- Removed deprecated functions and values
- Removal:
user.fetch()- user is fetched automatically. If you want to refresh the user, use
user.refresh()
- user is fetched automatically. If you want to refresh the user, use
- Removal:
user.forceRefreshUser()- instead use
user.refresh()
- instead use
- Removal:
useUser()- instead use
useUserWithParams()
- instead use
- Removal:
useBasket()- instead use
useBasketWithParams()
- instead use
- Removal:
useWishlist()- instead use
useWishlistWithParams()
- instead use
- Removal:
ShopUser.emailHash- instead hash the email address on shop side
- Removal:
wishlist.contains()- instead use
wishlist.findItem()
- instead use
- Removal:
applyFilter()- instead use
applyFilters()
- instead use
- Removal:
Log.attachToNuxtContext()- instead use
inject('log', log)in your plugin
- instead use
- Removal:
Log.attachToWindow()- instead use
Log.default = log
- instead use
- Removal:
sortingValues- instead use
getSortingValues()
- instead use
- Removal:
- Changed NPM package names
- Breaking: Change package scope and name of
@aboutyou/scayle-sfc-nuxtto@scayle/storefront-nuxt2 - Breaking: Change package scope and name of
@aboutyou/sfc-nuxt3to@scayle/storefront-nuxt - Breaking: Change package scope and name of
@aboutyou/scayle-sfc-libto@scayle/storefront-core - Breaking: Change package scope and name of
@aboutyou/eslint-config-sfcto@scayle/eslint-config-storefront - Breaking: Change package scope and name of
@aboutyou/prettier-config-sfcto@scayle/prettier-config-storefront
NOTE: Due to the changes of the NPM package scope from@aboutyouto@scayle,
&#xNAN;it is required to change the consuming projects local.npmrcfile as follows:- Before:
- After:
- Breaking: Change package scope and name of
- Removal:
isEmpty,isEqual,pluckandcopyToobject helpers are removed.NOTE: We recommend to use native utilities orradashwithin your project! - Removal: Remove the deprecated pino-based logger.NOTE: For more information, please check out the "Logging"-section in
README.md. - Changes to hash utils:
hmac,verifyToken,buildSignaturefunctions are now async- hash functions are no longer exported from
utils/index. They must be imported fromutils/hash sha256function added
- Breaking: Minimum
nodeversion raised to18.15.0 sha256is used for default cache keys instead ofmd5- Breaking: Remove the BasicAuth module
- Support sha256 for basket and wishlist keys
TheappKeys.isHashedconfig option has been renamed toappKeys.hashAlgorithm. Instead of a boolean, there are now three options.'sha256'Use thesha256function for hashing basket and wishlist keys'md5'Use themd5function for hashing basket and wishlist keys (Equivalent toisHashed: truein v6)nullDo not hash basket and wishlist keys (Equivalent toisHashed: falsein v6)
- Redis optimizations
Reduce memory usage by replacingwith parametersfrom fetching all attributes and fetching minimum attributes required to run the demo shop.NOTE: As this is a breaking change, in order to upgrade you will need to pass thewith parametersrequired by the shop to function correctly!
Minor Changes
- Support optionally dropping MD5 and the crypto-js dependency
Whenprocess.env.SFC_OMIT_MD5istrue, the md5 function will be replaced with an empty stub. If you do not use the MD5 hash at all this can be used to reduce bundle sizes.
Innuxt.config.jsadd
or if you want to control it from a.env - Improvement: Overall code enhancement within
storefront-corepackage in favor of reducing the cognitive complexity and increasing maintainability- Introduce
autobindhelper - Refactor
cachedfile
- Introduce
Patch Changes
- Bugfix: Resolve incompatibility with Webpack 4-based build processes
7.0.0-alpha.3
Major Changes
- Changes to hash utils:
hmac,verifyToken,buildSignaturefunctions are now async- hash functions are no longer exported from
utils/index. They must be imported fromutils/hash sha256function added
sha256is used for default cache keys instead ofmd5- Support sha256 for basket and wishlist keys
TheappKeys.isHashedconfig option has been renamed toappKeys.hashAlgorithm. Instead of a boolean, there are now three options.'sha256'Use thesha256function for hashing basket and wishlist keys'md5'Use themd5function for hashing basket and wishlist keys (Equivalent toisHashed: truein v6)nullDo not hash basket and wishlist keys (Equivalent toisHashed: falsein v6)
Minor Changes
- Support optionally dropping MD5 and the crypto-js dependency
Whenprocess.env.SFC_OMIT_MD5istrue, the md5 function will be replaced with an empty stub. If you do not use the MD5 hash at all this can be used to reduce bundle sizes.
Innuxt.config.jsadd
or if you want to control it from a.env
7.0.0-alpha.2
Patch Changes
- Bugfix: Resolve incompatibility with Webpack 4-based build processes
7.0.0-alpha.1
Major Changes
- Redis optimizations
Reduce memory usage by replacingwith parametersfrom fetching all attributes and fetching minimum attributes required to run the demo shop.NOTE: As this is a breaking change, in order to upgrade you will need to pass thewith parametersrequired by the shop to function correctly!
Minor Changes
- Improvement: Overall code enhancement within
storefront-corepackage in favor of reducing the cognitive complexity and increasing maintainability- Introduce
autobindhelper - Refactor
cachedfile
- Introduce
7.0.0-alpha.0
Major Changes
- Changes to basket and wishlist functions
Going forward, the only way to specifywithandpricePromotionKeyfor the basket is pass them touseBasketWithParams().
They can no longer be overridden when callingbasket.addItem(),basket.removeItem()andbasket.fetch().
The only way to specifypricePromotionKeyfor the wishlist is to pass them touseWishlistWithParams().
They can no longer be overridden when callingwishlist.addItem(),wishlist.removeItem(),wishlist.toggleItem()andwishlist.fetch(). - Removed deprecated functions and values
user.fetch()User is fetched automatically. If you want to refresh the user, useuser.refresh()user.forceRefreshUser()Useuser.refresh()instead.useUser()UseuseUserWithParams()instead.useBasket()UseuseBasketWithParams()instead.useWishlist()UseuseWishlistWithParams()instead.ShopUser.emailHashHash the email on shop side instead.wishlist.contains()Usewishlist.findItem()instead.applyFilter()UseapplyFilters()instead.Log.attachToNuxtContext()Useinject('log', log)in your plugin instead.Log.attachToWindow()UseLog.default = loginstead.sortingValuesUsegetSortingValues()instead.
- Changed NPM package names
- Breaking: Change package scope and name of
@aboutyou/scayle-sfc-nuxtto@scayle/storefront-nuxt2 - Breaking: Change package scope and name of
@aboutyou/sfc-nuxt3to@scayle/storefront-nuxt - Breaking: Change package scope and name of
@aboutyou/scayle-sfc-libto `@scayle/storefront-core`` - Breaking: Change package scope and name of
@aboutyou/eslint-config-sfcto@scayle/eslint-config-storefront - Breaking: Change package scope and name of
@aboutyou/prettier-config-sfcto@scayle/prettier-config-storefront
Due to the changes of the NPM package scope from@aboutyouto@scayle,
it is required to change the consuming projects local.npmrcfile as follows:- Before:
@aboutyou:registry=https://gitlab.com/api/v4/packages/npm/ - After:
@scayle:registry=https://gitlab.com/api/v4/packages/npm/
- Breaking: Change package scope and name of
isEmpty,isEqual,pluckandcopyToobject helpers are removed. (Recommendation: It would be good to use native utils orradashwithin the project locally)- Remove the deprecated pino-based logger. For more information, please check out the "Logging"-section in README.md.
- Minimum node version is 18.15.0
- Remove the basic auth module