Skip to content

Commit aaaec6a

Browse files
renovate[bot]serhalpghostdevvdanielroe
authored
chore(deps): update dependency nuxt to v4.4.2 (#2047)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Philippe Serhal <philippe.serhal@gmail.com> Co-authored-by: Willow (GHOST) <git@willow.sh> Co-authored-by: Daniel Roe <daniel@roe.dev>
1 parent 5cfe58f commit aaaec6a

File tree

9 files changed

+3506
-3406
lines changed

9 files changed

+3506
-3406
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ jobs:
114114
steps:
115115
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
116116

117+
- name: 👑 Fix Git ownership
118+
run: git config --global --add safe.directory /__w/npmx.dev/npmx.dev
119+
117120
- uses: voidzero-dev/setup-vp@8ecb39174989ce55af90f45cf55b02738599831d # v1
118121
with:
119122
node-version: lts/*

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Ideally, extract utilities into separate files so they can be unit tested. 🙏
348348

349349
### Internal linking
350350

351-
Always use **object syntax with named routes** for internal navigation. This makes links resilient to URL structure changes and provides type safety via `unplugin-vue-router`.
351+
Always use **object syntax with named routes** for internal navigation. This makes links resilient to URL structure changes and provides type safety with the [typedPages Nuxt option](https://nuxt.com/docs/4.x/guide/going-further/experimental-features#typedpages).
352352

353353
```vue
354354
<!-- Good: named route -->

app/composables/useConnector.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export const useConnector = createSharedComposable(function useConnector() {
7878
const route = useRoute()
7979
const router = useRouter()
8080

81-
onMounted(() => {
81+
// onNuxtReady is post-hydration, so `route.query` is populated even if the page was prerendered
82+
onNuxtReady(() => {
8283
const urlToken = route.query.token as string | undefined
8384
const urlPort = route.query.port as string | undefined
8485

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@nuxtjs/mdc": "0.20.2",
2424
"better-sqlite3": "12.8.0",
2525
"docus": "5.8.1",
26-
"nuxt": "4.3.1",
26+
"nuxt": "4.4.2",
2727
"tailwindcss": "4.2.2"
2828
}
2929
}

knip.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ const config: KnipConfig = {
2828
ignoreDependencies: [
2929
'@iconify-json/*',
3030
'puppeteer',
31-
/** Needs to be explicitly installed, even though it is not imported, to avoid type errors. */
32-
'unplugin-vue-router',
3331
'vite-plugin-pwa',
3432
'@vueuse/shared',
3533

lighthouse-setup.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = async function setup(browser, { url }) {
3131
}, colorMode)
3232

3333
// Navigate and wait for DOM only - Lighthouse will do its own full load
34-
await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 60000 })
34+
await page.goto(url, { waitUntil: 'domcontentloaded', timeout: 120000 })
3535

3636
// Close the page - Lighthouse will open its own with localStorage already set
3737
await page.close()

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"type": "module",
1212
"scripts": {
1313
"build": "nuxt build",
14-
"build:test": "NODE_ENV=test vp run build",
14+
"build:test": "TEST=1 vp run build",
1515
"dev": "nuxt dev",
1616
"dev:docs": "vp run --filter npmx-docs dev --port=3001",
1717
"i18n:check:fix": "node scripts/compare-translations.ts --fix",
@@ -38,7 +38,7 @@
3838
"test:nuxt": "vp test --project nuxt",
3939
"test:types": "vp run generate:lexicons && nuxt prepare && vue-tsc -b --noEmit && vp run --filter npmx-connector test:types",
4040
"test:unit": "vp test --project unit",
41-
"start:playwright:webserver": "NODE_ENV=test vp run preview --port 5678",
41+
"start:playwright:webserver": "TEST=1 vp run preview --port 5678",
4242
"storybook": "STORYBOOK=true storybook dev -p 6006",
4343
"build-storybook": "STORYBOOK=true storybook build",
4444
"chromatic": "chromatic"
@@ -65,7 +65,7 @@
6565
"@nuxt/test-utils": "4.0.0",
6666
"@nuxtjs/color-mode": "4.0.0",
6767
"@nuxtjs/html-validator": "2.1.0",
68-
"@nuxtjs/i18n": "10.2.3",
68+
"@nuxtjs/i18n": "10.2.4",
6969
"@shikijs/langs": "4.0.2",
7070
"@shikijs/markdown-exit": "4.0.2",
7171
"@shikijs/themes": "4.0.2",
@@ -90,7 +90,7 @@
9090
"ipaddr.js": "2.3.0",
9191
"marked": "18.0.0",
9292
"module-replacements": "2.11.0",
93-
"nuxt": "4.3.1",
93+
"nuxt": "4.4.2",
9494
"nuxt-og-image": "^6.4.3",
9595
"ofetch": "1.5.1",
9696
"ohash": "2.0.11",
@@ -103,14 +103,14 @@
103103
"std-env": "4.0.0",
104104
"ufo": "1.6.3",
105105
"unocss": "66.6.7",
106-
"unplugin-vue-router": "0.19.2",
107106
"valibot": "1.3.0",
108107
"validate-npm-package-name": "7.0.2",
109108
"virtua": "0.48.8",
110109
"vite-plugin-pwa": "1.2.0",
111110
"vite-plus": "0.1.16",
112111
"vue": "3.5.30",
113-
"vue-data-ui": "3.17.13"
112+
"vue-data-ui": "3.17.13",
113+
"vue-router": "5.0.4"
114114
},
115115
"devDependencies": {
116116
"@e18e/eslint-plugin": "0.3.0",

pnpm-lock.yaml

Lines changed: 3489 additions & 3393 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ ignoreDepScripts: true
3333
ignoreWorkspaceRootCheck: true
3434

3535
overrides:
36+
'@types/node': 24.12.0
37+
nuxt-og-image: ^6.4.3
3638
sharp: 0.34.5
3739
storybook: ^10.3.1
3840
vite: npm:@voidzero-dev/vite-plus-core@0.1.16
3941
vitest: npm:@voidzero-dev/vite-plus-test@0.1.16
40-
nuxt-og-image: ^6.4.3
42+
vue-router: 5.0.4
4143

4244
packageExtensions:
4345
'@nuxt/scripts':

0 commit comments

Comments
 (0)