@scayle/storefront-country-detection
2.0.1
Patch Changes
- Removed module declaration for the now unused
shop:change
hook.
2.0.0
Major Changes
- [Code Style] Replaced the
shop:change
hook with themarkShopAsSwitched
function fromuseCountryDetection
. This change improves code maintainability by making the interaction withuseCountryDetection
state more explicit and traceable.
Migration steps
You will need to update your application code to call the callback when the shop is changed.
1.2.0
Minor Changes
- Update to
@nuxt/module-builder@1
. This version of Nuxt Module Builder is ESM-only, so CommonJS (.cjs
) files will no longer be built or distributed with the package. However as of Nuxt 3, only esm is used so this should not have any impact as this module does not support Nuxt 2.
1.1.1
Patch Changes
- Added
vue@>=3.5.13
topeerDependencies
.
1.1.0
Minor Changes
- Do not prompt the user if they have already switched shops.
1.0.2
Patch Changes
- Ensure the module meta has the correct package version
1.0.1
Patch Changes
- We've updated to
[email protected]
1.0.0
Major Changes
- This release introduces
@scayle/storefront-country-detection
package for SCAYLE Storefront Boilerplate-based projects, providing composables and utilities for automatic Country Detection, enhancing the customer journey by automatically suggesting the most relevant online shop based on their location.
This new package can be easily integrated into both new and existing Storefront projects, allowing you to seamlessly benefit from this feature and provide a more tailored shopping experience to your customers.
Upon visiting the site, customers will be presented with the option to switch to their local shop version or continue browsing the global site. This surfaces localized products, offers, and information right from the start.
The feature leverages the customer's web browser timezone by default to determine their location, ensuring a seamless and non-intrusive implementation. - This release requires
@scayle/[email protected]
or higher. Support for@scayle/[email protected]
has been discontinued. Please update your dependencies accordingly. ThepeerDependency
range has been updated to^8.0.0
.
0.3.0
Minor Changes
- Allow Storefront Nuxt v8 as a peer dependency
0.2.0
Minor Changes
- Expose
UseCountryDetectionReturn
type externally. Furthermore, all exposed properties are now immutable (computed
orreadonly
).
0.1.2
Patch Changes
- Change imports from
'#storefront-country-detection/composables'
to'#storefront-country-detection'
to have consistent import for all SFC feature packages.
0.1.1
Patch Changes
- Resolve issue where
suggestionActive
incorrectly set to true when no suggestedShops were found.
0.1.0
Minor Changes
- Initial release of
@scayle/storefront-country-detection