From 0de2888d493d11e66b5df6a95eff7b54e2cc00ae Mon Sep 17 00:00:00 2001 From: Dawid Ziobro Date: Wed, 28 Aug 2024 12:36:51 +0200 Subject: [PATCH 1/2] fix(ust-1709): change @vue-storefront/sdk from dependency to peerDependency --- .changeset/loud-bobcats-laugh.md | 6 ++++++ packages/next/package.json | 2 +- packages/nuxt/package.json | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/loud-bobcats-laugh.md diff --git a/.changeset/loud-bobcats-laugh.md b/.changeset/loud-bobcats-laugh.md new file mode 100644 index 0000000000..f96b6e00a7 --- /dev/null +++ b/.changeset/loud-bobcats-laugh.md @@ -0,0 +1,6 @@ +--- +"@vue-storefront/next": patch +"@vue-storefront/nuxt": patch +--- + +[CHANGED] the package `@vue-storefront/sdk` is now a peer dependency instead of dependency diff --git a/packages/next/package.json b/packages/next/package.json index b7baa800f5..6871aa34ae 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -43,7 +43,6 @@ "test:unit": "vitest run" }, "dependencies": { - "@vue-storefront/sdk": "^3.2.0", "zustand": "^4.5.4" }, "devDependencies": { @@ -57,6 +56,7 @@ "next": "^13.4.7 || ^14.0.0" }, "peerDependencies": { + "@vue-storefront/sdk": "^3.2.0", "react": "^18.2.0", "next": "^13.4.7 || ^14.0.0" }, diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 93760750b8..31e491f17b 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -31,7 +31,6 @@ "@nuxt/kit": "^3.7.4", "@nuxt/schema": "^3.7.4", "@pinia/nuxt": "^0.5.1", - "@vue-storefront/sdk": "^3.2.0", "defu": "^6.0.0", "knitwork": "^1.0.0", "pinia": "^2.1.7" @@ -45,5 +44,8 @@ "nuxt": "3.12.2", "start-server-and-test": "^2.0.3", "vitest": "1.6.0" + }, + "peerDependencies": { + "@vue-storefront/sdk": "^3.2.0" } } From be66a587cf8060a9852171ae8eea3048a01ec509 Mon Sep 17 00:00:00 2001 From: Dawid Ziobro Date: Wed, 28 Aug 2024 12:49:42 +0200 Subject: [PATCH 2/2] fix: add dev deps --- packages/next/package.json | 3 ++- packages/nuxt/package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/next/package.json b/packages/next/package.json index 6871aa34ae..ef0cb918f0 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -48,6 +48,7 @@ "devDependencies": { "@types/react": "^18.2.31", "@types/react-dom": "^18.2.14", + "@vue-storefront/sdk": "^3.1.0", "react-dom": "^18.2.0", "start-server-and-test": "^2.0.3", "tsup": "8.0.1", @@ -56,7 +57,7 @@ "next": "^13.4.7 || ^14.0.0" }, "peerDependencies": { - "@vue-storefront/sdk": "^3.2.0", + "@vue-storefront/sdk": "^3.1.0", "react": "^18.2.0", "next": "^13.4.7 || ^14.0.0" }, diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 31e491f17b..1e2db446fa 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -40,12 +40,13 @@ "@nuxt/devtools": "1.3.3", "@nuxt/module-builder": "0.7.1", "@nuxt/test-utils": "3.13.1", + "@vue-storefront/sdk": "^3.1.0", "@vue-storefront/unified-data-model": "^2.0.0", "nuxt": "3.12.2", "start-server-and-test": "^2.0.3", "vitest": "1.6.0" }, "peerDependencies": { - "@vue-storefront/sdk": "^3.2.0" + "@vue-storefront/sdk": "^3.1.0" } }