@shopbite-de/storefront 1.23.1 → 1.23.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.
@@ -12,7 +12,7 @@ jobs:
12
12
 
13
13
  steps:
14
14
  - name: Checkout repository
15
- uses: actions/checkout@v6
15
+ uses: actions/checkout@v7
16
16
 
17
17
  - name: Set up Docker Buildx
18
18
  uses: docker/setup-buildx-action@v4
@@ -60,12 +60,12 @@ jobs:
60
60
  id-token: write
61
61
  steps:
62
62
  - name: Checkout repository
63
- uses: actions/checkout@v6
63
+ uses: actions/checkout@v7
64
64
 
65
65
  - name: Install pnpm
66
- uses: pnpm/action-setup@v5
66
+ uses: pnpm/action-setup@v6
67
67
  with:
68
- version: 10.34.4
68
+ version: 10.34.5
69
69
 
70
70
  - name: Install Node.js
71
71
  uses: actions/setup-node@v6
@@ -21,11 +21,11 @@ jobs:
21
21
  if: github.event.pull_request.draft == false
22
22
  runs-on: ubuntu-latest
23
23
  steps:
24
- - uses: actions/checkout@v6
24
+ - uses: actions/checkout@v7
25
25
 
26
- - uses: pnpm/action-setup@v5
26
+ - uses: pnpm/action-setup@v6
27
27
  with:
28
- version: 10.34.4
28
+ version: 10.34.5
29
29
 
30
30
  - uses: actions/setup-node@v6
31
31
  with:
@@ -65,11 +65,11 @@ jobs:
65
65
  timeout-minutes: 5
66
66
  runs-on: ubuntu-latest
67
67
  steps:
68
- - uses: actions/checkout@v6
68
+ - uses: actions/checkout@v7
69
69
 
70
- - uses: pnpm/action-setup@v5
70
+ - uses: pnpm/action-setup@v6
71
71
  with:
72
- version: 10.34.4
72
+ version: 10.34.5
73
73
 
74
74
  - uses: actions/setup-node@v6
75
75
  with:
@@ -98,11 +98,11 @@ jobs:
98
98
  timeout-minutes: 10
99
99
  runs-on: ubuntu-latest
100
100
  steps:
101
- - uses: actions/checkout@v6
101
+ - uses: actions/checkout@v7
102
102
 
103
- - uses: pnpm/action-setup@v5
103
+ - uses: pnpm/action-setup@v6
104
104
  with:
105
- version: 10.34.4
105
+ version: 10.34.5
106
106
 
107
107
  - uses: actions/setup-node@v6
108
108
  with:
package/.nuxtrc CHANGED
@@ -1 +1 @@
1
- setups.@nuxt/test-utils="4.0.3"
1
+ setups.@nuxt/test-utils="4.3.2"
@@ -12,18 +12,17 @@ const { apiClient } = useShopwareContext();
12
12
 
13
13
  const breadcrumbJsonLd = ref<object | null>(null);
14
14
 
15
- useHead(() => {
16
- if (!breadcrumbJsonLd.value) return {};
17
- return {
18
- script: [
19
- {
20
- key: "jsonld-breadcrumb",
21
- type: "application/ld+json",
22
- children: JSON.stringify(breadcrumbJsonLd.value),
23
- },
24
- ],
25
- };
26
- });
15
+ useHead(() => ({
16
+ script: breadcrumbJsonLd.value
17
+ ? [
18
+ {
19
+ key: "jsonld-breadcrumb",
20
+ type: "application/ld+json",
21
+ innerHTML: JSON.stringify(breadcrumbJsonLd.value),
22
+ },
23
+ ]
24
+ : [],
25
+ }));
27
26
 
28
27
  const cacheKey = computed(() => `breadcrumb-${categoryId.value}`);
29
28
 
@@ -33,8 +33,8 @@ const links = ref<ButtonProps[]>([
33
33
  </script>
34
34
 
35
35
  <template>
36
- <!-- Show loading spinner while fetching order data -->
37
36
  <UContainer v-if="isLoadingData">
37
+ <!-- Show loading spinner while fetching order data -->
38
38
  <UPageHeader headline="BESTELLUNG" title="Lädt..." />
39
39
  <UPageBody>
40
40
  <div class="flex flex-col items-center justify-center py-16 gap-4">
@@ -67,3 +67,10 @@ src; the `undefined` cloud URL is gone.
67
67
  - Upstream issue candidate: `defu` in `useRegistryScript` silently
68
68
  prefers inlined build-time options (even empty strings) over
69
69
  `runtimeConfig.public.scripts.*` — arguably a regression vs 0.13.2.
70
+
71
+ ## Addendum 2026-09-07
72
+
73
+ `@nuxt/scripts` 1.x deprecates the `true` shorthand. The registry entry is
74
+ now `matomoAnalytics: { trigger: "onNuxtReady" }` (what `true` normalised to);
75
+ only `scriptOptions` is inlined, so runtime config still wins. Re-verified on
76
+ a production build — see `docs/notes/2026-09-07-dependency-update.md`.
@@ -0,0 +1,113 @@
1
+ # Dependency update — 2026-09-07
2
+
3
+ Date: 2026-09-07 · Branch: `chore/updates`
4
+
5
+ All dependencies were bumped to their latest versions with two deliberate
6
+ exceptions (see "Held back"). Everything below is what broke, why, and how it
7
+ was fixed, so the next round of updates does not have to rediscover it.
8
+
9
+ ## Major bumps
10
+
11
+ | Package | From | To |
12
+ | --- | --- | --- |
13
+ | nuxt | 4.4.8 | 4.5.2 |
14
+ | @unhead/vue | 2.1.15 | 3.4.0 (required by Nuxt 4.5) |
15
+ | @nuxt/scripts | 0.13.4 | 1.3.8 |
16
+ | @pinia/nuxt | 0.11.3 | 1.0.2 |
17
+ | nuxt-vitalizer | 2.0.0 | 3.0.0 |
18
+ | @nuxt/content | 3.12.0 | 3.16.0 |
19
+ | vitest / @vitest/ui | 4.1.10 | 5.0.0 |
20
+ | jsdom | 29 | 30 |
21
+ | uuid | 13 | 14 |
22
+ | @types/node | 25 | 26 |
23
+
24
+ Everything else was a minor or patch bump.
25
+
26
+ ## Held back
27
+
28
+ - **typescript stays on 6.x.** `@typescript-eslint/*` 8.70 declares
29
+ `typescript >=4.8.4 <6.1.0`, so TypeScript 7 (the Go compiler) is not usable
30
+ until typescript-eslint supports it.
31
+ - **@nuxt/devtools-kit stays on 3.x.** Its npm `latest` tag currently points
32
+ at `4.0.0-alpha.17`; `pnpm update --latest` would have installed an alpha.
33
+
34
+ ## What broke and how it was fixed
35
+
36
+ ### Nuxt 4.5: `$fetch` is now an auto-import
37
+
38
+ Nuxt 4.5 generates `#build/fetch.mjs` (`export const $fetch = globalThis.$fetch`)
39
+ and auto-imports `$fetch` from it. Composables therefore no longer read the
40
+ global at call time, and `vi.stubGlobal("$fetch", mock)` in tests silently
41
+ stops intercepting (the real fetch hits the h3 test server → 404s).
42
+
43
+ Fix: `mockNuxtImport("$fetch", () => mockFetch)` from
44
+ `@nuxt/test-utils/runtime` (see `test/nuxt/useCategoryListing.test.ts`,
45
+ `test/nuxt/useProductConfigurator.test.ts`).
46
+
47
+ ### Nuxt UI 4.11: clicking the hidden checkbox input no longer toggles v-model
48
+
49
+ `UCheckbox` renders a `button[role="checkbox"]` plus an `aria-hidden` native
50
+ input that only mirrors state. Triggering `click` on that input used to flip
51
+ the model; now it only flips the input's own `checked`. Tests must click the
52
+ button (`acceptDataProtection()` helper in `test/nuxt/RegistrationForm.test.ts`).
53
+
54
+ ### @nuxt/scripts 1.x: registry config
55
+
56
+ - `registry.matomoAnalytics: true` is deprecated. The 1.x equivalent is
57
+ `{ trigger: "onNuxtReady" }` (that is exactly what `true` normalised to).
58
+ Only `scriptOptions` is inlined into the build, so the #259 constraint
59
+ (never inline `matomoUrl`/`siteId`, let runtime config win) still holds.
60
+ Verified on a production build with env vars set: the payload contains
61
+ `matomoUrl:"https://analytics.veliu.net/"` and `siteId:3`, and the preload
62
+ points at `https://analytics.veliu.net/matomo.js`.
63
+ - Build-time warning
64
+ `env var NUXT_PUBLIC_SCRIPTS_MATOMO_ANALYTICS_SITE_ID does not match any option`
65
+ is a false positive: the module's own env-var validator only knows the
66
+ fields in its `envDefaults` (for Matomo just `matomoUrl`). Nuxt's generic
67
+ runtime-config env override still applies because `siteId` is declared in
68
+ `runtimeConfig.public.scripts.matomoAnalytics`. Safe to ignore.
69
+
70
+ ### unhead 3: `children` → `innerHTML`
71
+
72
+ `children` on head script entries is deprecated (still rendered, but the type
73
+ now requires `innerHTML`/`textContent`). `Category/Breadcrumb.vue` switched to
74
+ `innerHTML`, matching `useCategorySeo`.
75
+
76
+ ### eslint-plugin-vue 10.11: comments at the template root
77
+
78
+ `vue/no-multiple-template-root` now flags an HTML comment placed before the
79
+ root element. The comment in `pages/bestellung/[id]/index.vue` moved inside
80
+ the element.
81
+
82
+ ### `pnpm typecheck` was not runnable at all
83
+
84
+ - `vue-tsc` was never a devDependency, so the script bailed out immediately.
85
+ It is now a devDependency (pinned to the `@vue/typescript-plugin` version).
86
+ - `tsconfig.json` had a trailing comma that the newer `@nuxt/cli` (fetched by
87
+ `pnpx`) rejects. Removed.
88
+
89
+ With those fixed, typecheck runs but still reports errors that pre-date this
90
+ update (typecheck is not part of CI): 7 in test files and the Shopware layer
91
+ sources, tracked in #248. New since the update, all inside third-party layer
92
+ sources we cannot fix here:
93
+
94
+ - `@shopware/nuxt-module/plugin.ts`: `declare module "#app" { interface NuxtApp }`
95
+ augmentation now trips "Type 'NuxtApp' recursively references itself" with
96
+ Nuxt 4.5's `interface NuxtApp extends _NuxtApp`. The file is unchanged
97
+ between 1.5.0 and 1.5.1, so this is a Nuxt 4.5 + Shopware module issue.
98
+ - `@shopware/composables` 1.12.1 `useCartItem.ts`: new `as LineItemPayloadWithOptions`
99
+ cast rejected by TS2352.
100
+
101
+ Conversely, 7 `@click` handler type errors (handlers returning non-void) in our
102
+ components disappeared with Nuxt UI 4.11.
103
+
104
+ ## Verification performed
105
+
106
+ - `pnpm test:unit`: 25 files / 132 tests green (same count as before).
107
+ - `pnpm eslint`, `pnpm prettier`: clean.
108
+ - `pnpm build`: green.
109
+ - `pnpm test:e2e` (not in CI, commented out there): passes against the
110
+ production build served with `.env.test` on port 3005. Playwright 1.63 needs
111
+ `pnpm playwright install chromium` (headless shell build 1243).
112
+ - Production server smoke test: `/` and `/speisekarte/pizza/` render, JSON-LD
113
+ scripts (category + breadcrumb) present, Matomo config correct.
package/nuxt.config.ts CHANGED
@@ -241,10 +241,10 @@ export default defineNuxtConfig({
241
241
  $production: {
242
242
  scripts: {
243
243
  registry: {
244
- // `true` enables the script without inlining option values into the
245
- // build; the actual config comes from runtimeConfig.public.scripts
244
+ // Only the trigger is set here so no option values get inlined into
245
+ // the build; the actual config comes from runtimeConfig.public.scripts
246
246
  // above (env-overridable at runtime, see #259).
247
- matomoAnalytics: true,
247
+ matomoAnalytics: { trigger: "onNuxtReady" },
248
248
  },
249
249
  },
250
250
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopbite-de/storefront",
3
- "version": "1.23.1",
3
+ "version": "1.23.3",
4
4
  "main": "nuxt.config.ts",
5
5
  "description": "Shopware storefront for food delivery shops",
6
6
  "keywords": [
@@ -20,55 +20,56 @@
20
20
  "dependencies": {
21
21
  "@headlessui/vue": "^1.7.23",
22
22
  "@heroicons/vue": "^2.2.0",
23
- "@iconify-json/lucide": "^1.2.116",
24
- "@iconify-json/simple-icons": "^1.2.88",
25
- "@nuxt/content": "3.12.0",
26
- "@nuxt/image": "^2.0.0",
27
- "@nuxt/scripts": "0.13.4",
28
- "@nuxt/ui": "^4.9.0",
29
- "@nuxtjs/robots": "^6.1.2",
30
- "@pinia/nuxt": "0.11.3",
31
- "@sentry/nuxt": "^10.63.0",
32
- "@shopware/api-client": "^1.5.0",
33
- "@shopware/api-gen": "^1.5.0",
34
- "@shopware/composables": "^1.12.0",
35
- "@shopware/helpers": "^1.7.1",
36
- "@shopware/nuxt-module": "^1.5.0",
37
- "@unhead/vue": "^2.1.15",
23
+ "@iconify-json/lucide": "^1.2.130",
24
+ "@iconify-json/simple-icons": "^1.2.95",
25
+ "@nuxt/content": "3.16.0",
26
+ "@nuxt/image": "^2.1.0",
27
+ "@nuxt/scripts": "1.3.8",
28
+ "@nuxt/ui": "^4.11.1",
29
+ "@nuxtjs/robots": "^6.2.0",
30
+ "@pinia/nuxt": "1.0.2",
31
+ "@sentry/nuxt": "^10.73.0",
32
+ "@shopware/api-client": "^1.5.1",
33
+ "@shopware/api-gen": "^1.5.1",
34
+ "@shopware/composables": "^1.12.1",
35
+ "@shopware/helpers": "^1.7.2",
36
+ "@shopware/nuxt-module": "^1.5.1",
37
+ "@unhead/vue": "^3.4.0",
38
38
  "@vite-pwa/nuxt": "^1.1.1",
39
- "@vueuse/core": "^14.3.0",
39
+ "@vueuse/core": "^14.4.0",
40
40
  "dotenv": "^17.4.2",
41
41
  "fflate": "^0.8.3",
42
- "nuxt": "^4.4.8",
43
- "nuxt-vitalizer": "2.0.0",
44
- "uuid": "^13.0.2"
42
+ "nuxt": "^4.5.2",
43
+ "nuxt-vitalizer": "3.0.0",
44
+ "uuid": "^14.0.2"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@iconify-json/heroicons": "^1.2.3",
48
- "@iconify-json/hugeicons": "^1.2.30",
48
+ "@iconify-json/hugeicons": "^1.2.34",
49
49
  "@nuxt/devtools-kit": "^3.2.4",
50
- "@nuxt/eslint": "^1.16.0",
51
- "@nuxt/hints": "1.0.3",
52
- "@nuxt/test-utils": "^4.0.3",
53
- "@playwright/test": "^1.61.1",
54
- "@types/node": "^25.9.4",
55
- "@typescript-eslint/eslint-plugin": "^8.62.1",
56
- "@typescript-eslint/parser": "^8.62.1",
57
- "@vitejs/plugin-vue": "^6.0.7",
58
- "@vitest/ui": "4.1.9",
59
- "@vue/compiler-dom": "^3.5.39",
60
- "@vue/server-renderer": "^3.5.39",
61
- "@vue/test-utils": "^2.4.11",
62
- "@vue/typescript-plugin": "^3.3.6",
63
- "eslint": "^10.6.0",
50
+ "@nuxt/eslint": "^1.17.0",
51
+ "@nuxt/hints": "1.1.4",
52
+ "@nuxt/test-utils": "^4.3.2",
53
+ "@playwright/test": "^1.63.0",
54
+ "@types/node": "^26.5.0",
55
+ "@typescript-eslint/eslint-plugin": "^8.70.0",
56
+ "@typescript-eslint/parser": "^8.70.0",
57
+ "@vitejs/plugin-vue": "^6.0.8",
58
+ "@vitest/ui": "5.0.0",
59
+ "@vue/compiler-dom": "^3.5.42",
60
+ "@vue/server-renderer": "^3.5.42",
61
+ "@vue/test-utils": "^2.5.0",
62
+ "@vue/typescript-plugin": "^3.3.11",
63
+ "eslint": "^10.10.0",
64
64
  "eslint-config-prettier": "^10.1.8",
65
- "happy-dom": "^20.10.6",
66
- "jsdom": "^29.1.1",
67
- "playwright-core": "^1.61.1",
68
- "prettier": "^3.9.4",
69
- "tailwindcss": "^4.3.2",
65
+ "happy-dom": "^20.14.0",
66
+ "jsdom": "^30.0.1",
67
+ "playwright-core": "^1.63.0",
68
+ "prettier": "^3.9.6",
69
+ "tailwindcss": "^4.3.3",
70
70
  "typescript": "^6.0.3",
71
- "vitest": "^4.1.9"
71
+ "vitest": "^5.0.0",
72
+ "vue-tsc": "3.3.11"
72
73
  },
73
74
  "scripts": {
74
75
  "build": "nuxt build",
@@ -1,6 +1,7 @@
1
1
  import { describe, it, expect, vi, beforeEach } from "vitest";
2
2
  import { ref, nextTick } from "vue";
3
3
  import { mountSuspended, mockNuxtImport } from "@nuxt/test-utils/runtime";
4
+ import { DOMWrapper, type VueWrapper } from "@vue/test-utils";
4
5
  import RegistrationForm from "~/components/User/RegistrationForm.vue";
5
6
  import { ApiClientError } from "@shopware/api-client";
6
7
 
@@ -49,6 +50,18 @@ mockNuxtImport("useRuntimeConfig", () => () => ({
49
50
  },
50
51
  }));
51
52
 
53
+ // UCheckbox renders the clickable control as `button[role="checkbox"]` next to
54
+ // an aria-hidden native input that only mirrors the state, so the button is
55
+ // what has to be clicked to toggle the v-model.
56
+ async function acceptDataProtection(wrapper: VueWrapper) {
57
+ const hiddenInput = wrapper.find('input[name="acceptedDataProtection"]');
58
+ const button = hiddenInput.element.parentElement!.querySelector(
59
+ 'button[role="checkbox"]',
60
+ )!;
61
+ await new DOMWrapper(button).trigger("click");
62
+ await new Promise((resolve) => setTimeout(resolve, 0));
63
+ }
64
+
52
65
  describe("RegistrationForm", () => {
53
66
  beforeEach(() => {
54
67
  vi.clearAllMocks();
@@ -145,9 +158,7 @@ describe("RegistrationForm", () => {
145
158
  .setValue("12345678");
146
159
 
147
160
  // Accept data protection
148
- const dpCheckbox = wrapper.find('input[name="acceptedDataProtection"]');
149
- await dpCheckbox.trigger("click");
150
- await new Promise((resolve) => setTimeout(resolve, 0));
161
+ await acceptDataProtection(wrapper);
151
162
 
152
163
  // Submit
153
164
  await wrapper.find("form").trigger("submit");
@@ -196,7 +207,7 @@ describe("RegistrationForm", () => {
196
207
  await wrapper
197
208
  .find('input[name="billingAddress.phoneNumber"]')
198
209
  .setValue("12345678");
199
- await wrapper.find('input[name="acceptedDataProtection"]').trigger("click");
210
+ await acceptDataProtection(wrapper);
200
211
 
201
212
  await wrapper.find("form").trigger("submit");
202
213
  await new Promise((resolve) => setTimeout(resolve, 100));
@@ -238,7 +249,7 @@ describe("RegistrationForm", () => {
238
249
  await wrapper
239
250
  .find('input[name="billingAddress.phoneNumber"]')
240
251
  .setValue("12345678");
241
- await wrapper.find('input[name="acceptedDataProtection"]').trigger("click");
252
+ await acceptDataProtection(wrapper);
242
253
 
243
254
  await wrapper.find("form").trigger("submit");
244
255
  await new Promise((resolve) => setTimeout(resolve, 100));
@@ -294,7 +305,7 @@ describe("RegistrationForm", () => {
294
305
  await wrapper
295
306
  .find('input[name="billingAddress.phoneNumber"]')
296
307
  .setValue("12345678");
297
- await wrapper.find('input[name="acceptedDataProtection"]').trigger("click");
308
+ await acceptDataProtection(wrapper);
298
309
 
299
310
  await wrapper.find("form").trigger("submit");
300
311
  await new Promise((resolve) => setTimeout(resolve, 100));
@@ -1,6 +1,6 @@
1
1
  import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
2
2
  import { flushPromises } from "@vue/test-utils";
3
- import { mountSuspended } from "@nuxt/test-utils/runtime";
3
+ import { mountSuspended, mockNuxtImport } from "@nuxt/test-utils/runtime";
4
4
  import { defineComponent, h } from "vue";
5
5
  import { useCategoryListing } from "~/composables/useCategoryListing";
6
6
 
@@ -8,6 +8,10 @@ import { useCategoryListing } from "~/composables/useCategoryListing";
8
8
 
9
9
  const { mockFetch } = vi.hoisted(() => ({ mockFetch: vi.fn() }));
10
10
 
11
+ // `$fetch` is a Nuxt auto-import (bound at module load), so a global stub
12
+ // would not reach the composable.
13
+ mockNuxtImport("$fetch", () => mockFetch);
14
+
11
15
  const emptyListing = (properties: string[] = []) => ({
12
16
  elements: [],
13
17
  aggregations: {},
@@ -50,12 +54,10 @@ async function mountWithListing(
50
54
 
51
55
  describe("useCategoryListing", () => {
52
56
  beforeEach(() => {
53
- vi.stubGlobal("$fetch", mockFetch);
54
57
  mockFetch.mockResolvedValue(emptyListing());
55
58
  });
56
59
 
57
60
  afterEach(() => {
58
- vi.unstubAllGlobals();
59
61
  vi.clearAllMocks();
60
62
  });
61
63
 
@@ -1,4 +1,5 @@
1
1
  import { describe, it, expect, vi, beforeEach } from "vitest";
2
+ import { mockNuxtImport } from "@nuxt/test-utils/runtime";
2
3
  import { useProductConfigurator } from "../../app/composables/useProductConfigurator";
3
4
 
4
5
  const { mockFetch, mockConfigurator, mockProduct } = vi.hoisted(() => ({
@@ -7,7 +8,9 @@ const { mockFetch, mockConfigurator, mockProduct } = vi.hoisted(() => ({
7
8
  mockProduct: { value: { id: "p1", optionIds: [], options: [] } },
8
9
  }));
9
10
 
10
- vi.stubGlobal("$fetch", mockFetch);
11
+ // `$fetch` is a Nuxt auto-import (bound at module load), so a global stub
12
+ // would not reach the composable.
13
+ mockNuxtImport("$fetch", () => mockFetch);
11
14
 
12
15
  vi.mock("@shopware/composables", () => ({
13
16
  useProductConfigurator: () => ({
package/tsconfig.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "content.config.*"
17
17
  ],
18
18
  "exclude": [
19
- "node_modules",
19
+ "node_modules"
20
20
  ],
21
21
  "compilerOptions": {
22
22
  "typeRoots": ["./api-types", "./node_modules/@types", "./node_modules"]