@shopware/nuxt-module 1.4.2 → 1.4.3

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.
Files changed (3) hide show
  1. package/README.md +9 -5
  2. package/dist/index.mjs +10 -3
  3. package/package.json +12 -11
package/README.md CHANGED
@@ -161,11 +161,15 @@ Import your custom types from local files and export them as shown above. This a
161
161
 
162
162
  Full changelog for stable version is available [here](https://github.com/shopware/frontends/blob/main/packages/nuxt-module/CHANGELOG.md)
163
163
 
164
- ### Latest changes: 1.4.2
164
+ ### Latest changes: 1.4.3
165
165
 
166
166
  ### Patch Changes
167
167
 
168
- - Updated dependencies [[`87771c3`](https://github.com/shopware/frontends/commit/87771c3b7a4521fcdba43cb4c967b61f5db01b3e), [`22ff62e`](https://github.com/shopware/frontends/commit/22ff62e354f024599d64ea8096af57695248851c), [`a44d871`](https://github.com/shopware/frontends/commit/a44d8712d9ae5ee196c03ac8b894f3d1392d0e68), [`e43d9b7`](https://github.com/shopware/frontends/commit/e43d9b7f559af21be8b66f2021cea2d14940e4aa), [`2cbda25`](https://github.com/shopware/frontends/commit/2cbda257a1056454e12f2fba9052f83eecb6d986), [`2cbda25`](https://github.com/shopware/frontends/commit/2cbda257a1056454e12f2fba9052f83eecb6d986), [`7fe2ef9`](https://github.com/shopware/frontends/commit/7fe2ef96a9d9d156683b85d31f0a660458c9fbfd), [`70dcf95`](https://github.com/shopware/frontends/commit/70dcf95d4370c63964d877a5cab113a53f93ca19), [`56cd178`](https://github.com/shopware/frontends/commit/56cd178e25fe2399b7170ccac3044e980621f041), [`c647baf`](https://github.com/shopware/frontends/commit/c647baf93e7174b849f5961ee5803add99d78602), [`e1fae3e`](https://github.com/shopware/frontends/commit/e1fae3eb6430e5c8e133456fbaf7f215f80c36f6), [`c647baf`](https://github.com/shopware/frontends/commit/c647baf93e7174b849f5961ee5803add99d78602), [`c77daa6`](https://github.com/shopware/frontends/commit/c77daa6a11e96c7f3688b16f7da010b54c7f5e8b)]:
169
- - @shopware/composables@1.10.0
170
- - @shopware/helpers@1.6.0
171
- - @shopware/api-client@1.4.0
168
+ - [#2232](https://github.com/shopware/frontends/pull/2232) [`f52c2da`](https://github.com/shopware/frontends/commit/f52c2da685c0c5085e6579aea37f86b6ce1d8281) Thanks [@patzick](https://github.com/patzick)! - bump h3 version after security audit
169
+
170
+ - [#2321](https://github.com/shopware/frontends/pull/2321) [`5a785cc`](https://github.com/shopware/frontends/commit/5a785ccff72c4fe95ec3f774eeb7053e8b1e55fa) Thanks [@mkucmus](https://github.com/mkucmus)! - Auto-inject `#shopware` types via `addTypeTemplate`, skip if project provides own `shopware.d.ts`
171
+
172
+ - Updated dependencies [[`9604f22`](https://github.com/shopware/frontends/commit/9604f22678150d04c3c3156fd8ee2ce440c8c8bf), [`b40305f`](https://github.com/shopware/frontends/commit/b40305f9e2ec51f29c279650e411bb773438faed), [`432dd24`](https://github.com/shopware/frontends/commit/432dd246571dfa8c149293da97d5bb16f505e54c), [`b5f7e2a`](https://github.com/shopware/frontends/commit/b5f7e2a20c9dfdde1690e9006252d847f732bc0a), [`b5f7e2a`](https://github.com/shopware/frontends/commit/b5f7e2a20c9dfdde1690e9006252d847f732bc0a), [`9604f22`](https://github.com/shopware/frontends/commit/9604f22678150d04c3c3156fd8ee2ce440c8c8bf), [`a871c7b`](https://github.com/shopware/frontends/commit/a871c7b6256b75c2e40d93fc0354ba1971420062), [`c9bde38`](https://github.com/shopware/frontends/commit/c9bde38d497d5c6c2fbd97700a362eb44ce8881f)]:
173
+ - @shopware/api-client@1.5.0
174
+ - @shopware/composables@1.11.0
175
+ - @shopware/helpers@1.7.0
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
+ import { existsSync } from 'node:fs';
2
+ import { dirname, resolve } from 'node:path';
1
3
  import { addCustomTab } from '@nuxt/devtools-kit';
2
- import { defineNuxtModule, useLogger, createResolver, addPlugin } from '@nuxt/kit';
4
+ import { defineNuxtModule, useLogger, createResolver, addPlugin, addTypeTemplate } from '@nuxt/kit';
3
5
  import { defu } from 'defu';
4
- import 'node:fs';
5
- import { dirname, resolve } from 'node:path';
6
6
  import { fileURLToPath } from 'node:url';
7
7
 
8
8
  const distDir = dirname(fileURLToPath(import.meta.url));
@@ -42,6 +42,13 @@ const index = defineNuxtModule({
42
42
  addPlugin({
43
43
  src: resolver.resolve("../plugin.ts")
44
44
  });
45
+ const projectShopwareTypes = resolve(nuxt.options.rootDir, "shopware.d.ts");
46
+ if (!existsSync(projectShopwareTypes)) {
47
+ addTypeTemplate({
48
+ filename: "shopware.d.ts",
49
+ src: resolver.resolve("../shopware.d.ts")
50
+ });
51
+ }
45
52
  addCustomTab({
46
53
  name: "shopware-frontends",
47
54
  title: "Shopware Frontends",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopware/nuxt-module",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Nuxt 3 module for Shopware Frontends",
5
5
  "author": "Shopware",
6
6
  "repository": {
@@ -34,20 +34,21 @@
34
34
  "index.cjs"
35
35
  ],
36
36
  "dependencies": {
37
- "@nuxt/kit": "4.2.1",
37
+ "@nuxt/kit": "4.2.2",
38
38
  "defu": "6.1.4",
39
- "h3": "1.15.4",
39
+ "h3": "1.15.9",
40
40
  "js-cookie": "3.0.5",
41
- "@shopware/composables": "1.10.0",
42
- "@shopware/helpers": "1.6.0",
43
- "@shopware/api-client": "1.4.0"
41
+ "@shopware/composables": "1.11.0",
42
+ "@shopware/helpers": "1.7.0",
43
+ "@shopware/api-client": "1.5.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@biomejs/biome": "1.8.3",
47
- "@nuxt/schema": "4.2.1",
48
- "nuxt": "4.2.1",
49
- "typescript": "5.9.3",
47
+ "@nuxt/schema": "4.2.2",
48
+ "@typescript/native-preview": "7.0.0-dev.20260111.1",
49
+ "nuxt": "4.2.2",
50
50
  "unbuild": "2.0.0",
51
+ "vitest": "4.0.18",
51
52
  "tsconfig": "0.0.0"
52
53
  },
53
54
  "scripts": {
@@ -55,7 +56,7 @@
55
56
  "dev": "unbuild --stub",
56
57
  "lint": "biome check .",
57
58
  "lint:fix": "biome check . --write && pnpm run typecheck",
58
- "typecheck": "tsc --noEmit",
59
- "test": "echo \"Warn: no test specified yet\""
59
+ "typecheck": "tsgo --noEmit",
60
+ "test": "vitest run"
60
61
  }
61
62
  }