@shopware/nuxt-module 1.3.0 → 1.3.1
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.
- package/README.md +6 -12
- package/package.json +7 -7
- package/plugin.ts +4 -4
package/README.md
CHANGED
|
@@ -125,18 +125,12 @@ More about Nuxt configuration can be found [HERE](https://nuxt.com/docs/getting-
|
|
|
125
125
|
|
|
126
126
|
Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/nuxt-module/CHANGELOG.md)
|
|
127
127
|
|
|
128
|
-
### Latest changes: 1.3.
|
|
129
|
-
|
|
130
|
-
### Minor Changes
|
|
131
|
-
|
|
132
|
-
- [#1602](https://github.com/shopware/frontends/pull/1602) [`bb7d1cb`](https://github.com/shopware/frontends/commit/bb7d1cbc4204ff1d48f77416f94f550bc235e5ed) Thanks [@patzick](https://github.com/patzick)! - Package `@shopware-pwa/nuxt3-module` is deprecated. Use [@shopware/nuxt-module](https://www.npmjs.com/package/@shopware/nuxt-module) instead.
|
|
133
|
-
|
|
134
|
-
- [#1602](https://github.com/shopware/frontends/pull/1602) [`bb7d1cb`](https://github.com/shopware/frontends/commit/bb7d1cbc4204ff1d48f77416f94f550bc235e5ed) Thanks [@patzick](https://github.com/patzick)! - Switch from `@shopware-pwa/helpers-next` to `@shopware/helpers` package.
|
|
135
|
-
|
|
136
|
-
- [#1602](https://github.com/shopware/frontends/pull/1602) [`bb7d1cb`](https://github.com/shopware/frontends/commit/bb7d1cbc4204ff1d48f77416f94f550bc235e5ed) Thanks [@patzick](https://github.com/patzick)! - Switch from `@shopware-pwa/cms-base` to `@shopware/cms-base-layer` package.
|
|
128
|
+
### Latest changes: 1.3.1
|
|
137
129
|
|
|
138
130
|
### Patch Changes
|
|
139
131
|
|
|
140
|
-
-
|
|
141
|
-
|
|
142
|
-
|
|
132
|
+
- [#1628](https://github.com/shopware/frontends/pull/1628) [`a22588f`](https://github.com/shopware/frontends/commit/a22588f12393309d356c5d2f1a16526591f4e3d5) Thanks [@mkucmus](https://github.com/mkucmus)! - Read private shopware config only in SSR context.
|
|
133
|
+
|
|
134
|
+
- Updated dependencies [[`7324620`](https://github.com/shopware/frontends/commit/7324620a3f39c1b62f7cc294192a3e8b8b336d09)]:
|
|
135
|
+
- @shopware/api-client@1.2.1
|
|
136
|
+
- @shopware/composables@1.8.1
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopware/nuxt-module",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Nuxt 3 module for Shopware Frontends",
|
|
5
5
|
"author": "Shopware",
|
|
6
6
|
"repository": {
|
|
@@ -34,17 +34,17 @@
|
|
|
34
34
|
"index.cjs"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nuxt/kit": "3.
|
|
37
|
+
"@nuxt/kit": "3.15.4",
|
|
38
38
|
"defu": "6.1.4",
|
|
39
39
|
"js-cookie": "3.0.5",
|
|
40
|
-
"@shopware/composables": "1.8.
|
|
41
|
-
"@shopware/
|
|
42
|
-
"@shopware/
|
|
40
|
+
"@shopware/composables": "1.8.1",
|
|
41
|
+
"@shopware/helpers": "1.4.0",
|
|
42
|
+
"@shopware/api-client": "1.2.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@biomejs/biome": "1.8.3",
|
|
46
|
-
"@nuxt/schema": "3.
|
|
47
|
-
"nuxt": "3.
|
|
46
|
+
"@nuxt/schema": "3.15.4",
|
|
47
|
+
"nuxt": "3.15.4",
|
|
48
48
|
"typescript": "5.6.3",
|
|
49
49
|
"unbuild": "2.0.0",
|
|
50
50
|
"tsconfig": "0.0.0"
|
package/plugin.ts
CHANGED
|
@@ -32,7 +32,8 @@ export default defineNuxtPlugin((NuxtApp) => {
|
|
|
32
32
|
runtimeConfig.public?.shopware?.shopwareEndpoint;
|
|
33
33
|
|
|
34
34
|
const shopwareEndpointSSR =
|
|
35
|
-
runtimeConfig.shopware?.endpoint
|
|
35
|
+
(NuxtApp.ssrContext && runtimeConfig.shopware?.endpoint) ||
|
|
36
|
+
shopwareEndpointCSR;
|
|
36
37
|
|
|
37
38
|
const shopwareEndpoint = import.meta.server
|
|
38
39
|
? shopwareEndpointSSR
|
|
@@ -63,10 +64,9 @@ export default defineNuxtPlugin((NuxtApp) => {
|
|
|
63
64
|
contextToken: shouldUseSessionContextInServerRender
|
|
64
65
|
? contextTokenFromCookie
|
|
65
66
|
: "",
|
|
66
|
-
defaultHeaders:
|
|
67
|
-
runtimeConfig.apiClientConfig?.headers
|
|
67
|
+
defaultHeaders:
|
|
68
|
+
(NuxtApp.ssrContext && runtimeConfig.apiClientConfig?.headers) ||
|
|
68
69
|
runtimeConfig.public?.apiClientConfig?.headers,
|
|
69
|
-
),
|
|
70
70
|
});
|
|
71
71
|
|
|
72
72
|
apiClient.hook("onContextChanged", (newContextToken) => {
|