diff --git a/.changeset/itchy-cycles-act.md b/.changeset/itchy-cycles-act.md deleted file mode 100644 index 7ee93244d0..0000000000 --- a/.changeset/itchy-cycles-act.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@vue-storefront/nuxt": major ---- - -[BREAKING]: Added functionality that automatically configures the proper URLs for SSR & SPA modes when mutlistore mode is enabled. Left your environment variables like in normal mode, just set `NUXT_PUBLIC_ALOKAI_MULTISTORE_ENABLED` to `true`. diff --git a/.changeset/selfish-knives-admire.md b/.changeset/selfish-knives-admire.md deleted file mode 100644 index dd1555af8a..0000000000 --- a/.changeset/selfish-knives-admire.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -"@vue-storefront/next": minor ---- - -[CHANGE]: Added the `resolveSdkOptions` helper that automatically setup proper SSR & SPA URLs for middleware when multistore option is enabled. To use it, change your SDK configuration: - -```diff --import type { CreateSdkOptions } from '@vue-storefront/next'; -+import { resolveSdkOptions } from '@vue-storefront/next'; - --const options: CreateSdkOptions = { -+const options = resolveSdkOptions({ - middleware: { - apiUrl, - cdnCacheBustingId, - ssrApiUrl, - }, - multistore: { - enabled: isMultiStoreEnabled, - }, -}); -``` diff --git a/packages/next/CHANGELOG.md b/packages/next/CHANGELOG.md index 9b3ecc73cc..941e0e6ae6 100644 --- a/packages/next/CHANGELOG.md +++ b/packages/next/CHANGELOG.md @@ -1,5 +1,28 @@ # Change log +## 4.1.0 + +### Minor Changes + +- **[CHANGE]**: Added the `resolveSdkOptions` helper that automatically setup proper SSR & SPA URLs for middleware when multistore option is enabled. To use it, change your SDK configuration: + +```diff +-import type { CreateSdkOptions } from '@vue-storefront/next'; ++import { resolveSdkOptions } from '@vue-storefront/next'; + +-const options: CreateSdkOptions = { ++const options = resolveSdkOptions({ + middleware: { + apiUrl, + cdnCacheBustingId, + ssrApiUrl, + }, + multistore: { + enabled: isMultiStoreEnabled, + }, +}); +``` + ## 4.0.0 ### Major Changes diff --git a/packages/next/package.json b/packages/next/package.json index 5c00810196..b7baa800f5 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -2,7 +2,7 @@ "name": "@vue-storefront/next", "description": "Vue Storefront dedicated features for Next.js", "license": "MIT", - "version": "4.0.0", + "version": "4.1.0", "exports": { ".": { "import": "./dist/index.mjs", diff --git a/packages/nuxt/CHANGELOG.md b/packages/nuxt/CHANGELOG.md index b15e7fbd26..7b50bc695d 100644 --- a/packages/nuxt/CHANGELOG.md +++ b/packages/nuxt/CHANGELOG.md @@ -1,5 +1,11 @@ # Change log +## 6.0.0 + +### Major Changes + +- **[BREAKING]**: Added functionality that automatically configures the proper URLs for SSR & SPA modes when mutlistore mode is enabled. Left your environment variables like in normal mode, just set `NUXT_PUBLIC_ALOKAI_MULTISTORE_ENABLED` to `true`. + ## 5.0.0 ### Major Changes diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 77373bf6d0..93760750b8 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@vue-storefront/nuxt", - "version": "5.0.0", + "version": "6.0.0", "description": "Vue Storefront dedicated features for Nuxt", "license": "MIT", "type": "module",