@shopware/nuxt-module 1.5.0 → 1.5.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 CHANGED
@@ -7,11 +7,11 @@
7
7
 
8
8
  Nuxt [module](https://nuxt.com/docs/guide/going-further/modules) that allows you to set up a Nuxt 3 project with Shopware Frontends. It provides the composables and api-client packages.
9
9
 
10
- If you want to use these packages with a different Vue.js framework, see [the guide](https://frontends.shopware.com/getting-started/templates/custom-vue-project.html) for using Shopware Frontends in a custom project.
10
+ If you want to use these packages with a different Vue.js framework, see [the guide](https://developer.shopware.com/frontends/introduction/templates/custom-vue-project.html) for using Shopware Frontends in a custom project.
11
11
 
12
12
  ## Features
13
13
 
14
- - Business logic covered by [Composables](https://npmjs.com/package/@shopware/composables) package. Registering all composable functions globally. [See the reference](https://frontends.shopware.com/packages/composables.html).
14
+ - Business logic covered by [Composables](https://npmjs.com/package/@shopware/composables) package. Registering all composable functions globally. [See the reference](https://developer.shopware.com/frontends/packages/composables.html).
15
15
  - Shopware context shared in Nuxt application.
16
16
  - Configured [API Client](https://npmjs.com/package/@shopware/api-client) package.
17
17
 
@@ -67,7 +67,7 @@ Now you can use any composable function you need without extra import:
67
67
  <script setup>
68
68
  const { login } = useUser();
69
69
  const { refreshSessionContext } = useSessionContext();
70
- refreshSessionContext();
70
+ await refreshSessionContext();
71
71
  </script>
72
72
  ```
73
73
 
@@ -149,34 +149,25 @@ The API Client instance is aware of your custom API types thanks to declaring `#
149
149
 
150
150
  ## Links
151
151
 
152
- - [📘 Documentation](https://frontends.shopware.com)
152
+ - [📘 Documentation](https://developer.shopware.com/frontends)
153
153
 
154
154
  - [📦 API Gen - Types Generator for Shopware 6 OpenAPI Schema](https://npmjs.com/@shopware/api-gen)
155
155
 
156
156
  - [📦 API Client - REST API Client for Shopware 6](https://npmjs.com/@shopware/api-client)
157
157
 
158
158
  - [👥 Community](https://discord.com/channels/1308047705309708348/1405501315160739951) (`#composable-frontend`)
159
+
159
160
  <!-- AUTO GENERATED CHANGELOG -->
160
161
 
161
162
  ## Changelog
162
163
 
163
164
  Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/nuxt-module/CHANGELOG.md)
164
165
 
165
- ### Latest changes: 1.5.0
166
-
167
- ### Minor Changes
168
-
169
- - [#2473](https://github.com/shopware/frontends/pull/2473) [`22611e5`](https://github.com/shopware/frontends/commit/22611e542b8f42a4f34dce5186f628f9a17f457b) Thanks [@mkucmus](https://github.com/mkucmus)! - Add an opt-in `cacheableReads` flag that routes anonymous Store API reads through their cacheable GET variants instead of POST. Criteria is compressed into the `_criteria` query param via `encodeForQuery` from `@shopware/api-client/helpers`, which lets CDNs / reverse proxies / the browser cache the responses.
170
-
171
- Disabled by default — fully backwards compatible. Enable it in `nuxt.config` (`shopware: { cacheableReads: true }`) or via `createShopwareContext(app, { cacheableReads: true })` for non-Nuxt setups. It is surfaced on the Shopware context and read by the affected composables; public composable signatures are unchanged.
172
-
173
- Affected composables: `useNavigation`, `useNavigationSearch`, `useCountries`, `useUser` (country + salutation lookups), `useSalutations`, `useInternationalization`, `useProductConfigurator`, `useProductSearch`, and `useCategorySearch.advancedSearch`.
174
-
175
- `useListing` (product-listing), single-category `useCategorySearch.search`, and `useLandingSearch` remain POST for now: the generated Store API schema does not type `_criteria` on those GET routes (a Shopware OpenAPI gap). The backend does honor `_criteria` on product-listing GET at runtime, so that one can be migrated later once the types are augmented.
166
+ ### Latest changes: 1.5.1
176
167
 
177
168
  ### Patch Changes
178
169
 
179
- - [#2488](https://github.com/shopware/frontends/pull/2488) [`c56b89e`](https://github.com/shopware/frontends/commit/c56b89e16a9fbd9283e40a4e2c0f7cc6034226a1) Thanks [@mkucmus](https://github.com/mkucmus)! - Register the `#shopware` types in every TypeScript context (app, server/nitro, node, shared) instead of only the app one. This fixes `Cannot find module '#shopware'` in server-side code (e.g. `server/` routes and API builders) when a project uses the Nuxt 4 project-references `tsconfig.json` layout. Projects that ship their own `shopware.d.ts` are referenced in place so their relative imports keep resolving.
180
-
181
- - Updated dependencies [[`8be060d`](https://github.com/shopware/frontends/commit/8be060de825ca799f98a8f045a5e7fea61f5d1a2), [`5678fb0`](https://github.com/shopware/frontends/commit/5678fb008cbd86eaddd061e004de89e6f45bb7ec), [`22611e5`](https://github.com/shopware/frontends/commit/22611e542b8f42a4f34dce5186f628f9a17f457b)]:
182
- - @shopware/composables@1.12.0
170
+ - Updated dependencies [[`6315350`](https://github.com/shopware/frontends/commit/6315350add0464abef153343897d42f5808f2003), [`b767721`](https://github.com/shopware/frontends/commit/b767721847bf3391f9067eca7a045089fb22fce0), [`f16c5a0`](https://github.com/shopware/frontends/commit/f16c5a0785d6187b73c3edcf37feab7c90bd7988), [`978b02c`](https://github.com/shopware/frontends/commit/978b02c969ca4b16f5fc1d7a953ec4cce3d98173), [`6572aa8`](https://github.com/shopware/frontends/commit/6572aa84431e1f4a34d6cf04e549037692d638a6), [`744833b`](https://github.com/shopware/frontends/commit/744833b9d7d2f8ea1f5dfe65be3fa554dbe4a09f), [`e03c91b`](https://github.com/shopware/frontends/commit/e03c91be172374894d90b7a0111855b76719fee1), [`33facb1`](https://github.com/shopware/frontends/commit/33facb178792c8cb26b47ab984ac48c08ab4b72b), [`9137475`](https://github.com/shopware/frontends/commit/91374753cedb2034385f642e6af11314f2971caa), [`474d3fe`](https://github.com/shopware/frontends/commit/474d3fed346816135b0c7c797990b215a8b691c0), [`38379a5`](https://github.com/shopware/frontends/commit/38379a5d52ab09008774533ef417ebe2cde3f7fd)]:
171
+ - @shopware/composables@1.12.1
172
+ - @shopware/api-client@1.5.1
173
+ - @shopware/helpers@1.7.2
package/dist/index.mjs CHANGED
@@ -87,7 +87,7 @@ const index = defineNuxtModule({
87
87
  icon: "fa6-brands:shopware",
88
88
  view: {
89
89
  type: "iframe",
90
- src: "https://frontends.shopware.com/"
90
+ src: "https://developer.shopware.com/frontends/"
91
91
  }
92
92
  });
93
93
  addCustomTab({
@@ -96,7 +96,7 @@ const index = defineNuxtModule({
96
96
  icon: "carbon:assembly-cluster",
97
97
  view: {
98
98
  type: "iframe",
99
- src: "https://frontends.shopware.com/getting-started/cms/"
99
+ src: "https://developer.shopware.com/frontends/guides/cms/"
100
100
  }
101
101
  });
102
102
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@shopware/nuxt-module",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Nuxt 3 module for Shopware Frontends",
5
5
  "author": "Shopware",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/shopware/frontends.git"
9
9
  },
10
- "homepage": "https://frontends.shopware.com/framework/internal-structure.html#nuxt-module",
10
+ "homepage": "https://developer.shopware.com/frontends/concepts/internal-structure.html#nuxt-module",
11
11
  "keywords": [
12
12
  "Nuxt",
13
13
  "Shopware",
@@ -38,16 +38,16 @@
38
38
  "defu": "6.1.7",
39
39
  "h3": "1.15.11",
40
40
  "js-cookie": "3.0.7",
41
- "@shopware/composables": "1.12.0",
42
- "@shopware/helpers": "1.7.1",
43
- "@shopware/api-client": "1.5.0"
41
+ "@shopware/composables": "1.12.1",
42
+ "@shopware/helpers": "1.7.2",
43
+ "@shopware/api-client": "1.5.1"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@nuxt/schema": "4.4.8",
47
47
  "@typescript/native-preview": "7.0.0-dev.20260205.1",
48
48
  "nuxt": "4.4.8",
49
49
  "unbuild": "3.6.1",
50
- "vitest": "4.1.9",
50
+ "vitest": "4.1.10",
51
51
  "tsconfig": "0.0.0"
52
52
  },
53
53
  "scripts": {