From b567f9ebf2bf82fd67a560d05926d577c196288b Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Wed, 25 Nov 2026 23:32:04 +0100 Subject: [PATCH 1/8] feat!: migrate to devtools v4, nuxt 4.6+/5 and pnpm 12 --- .github/workflows/ci.yml | 29 + client/app/app.vue | 72 +- client/app/components/n/Badge.vue | 5 + client/app/components/n/Button.vue | 29 + client/app/components/n/Card.vue | 5 + client/app/components/n/Loading.vue | 9 + client/app/components/n/Tip.vue | 36 + client/app/composables/devtools.ts | 97 + client/app/composables/element-highlighter.ts | 19 +- client/app/composables/features.ts | 10 +- client/app/composables/host.ts | 18 +- client/app/composables/vue-tracer.ts | 17 +- client/app/pages/component-lazy-load.vue | 7 +- client/app/pages/third-party-scripts.vue | 2 +- client/app/plugins/color-mode.client.ts | 7 + client/uno.config.ts | 26 + package.json | 26 +- playground/nuxt.config.ts | 2 - pnpm-lock.yaml | 4139 +++++++++-------- pnpm-workspace.yaml | 14 +- src/devtools-handlers.ts | 54 +- src/devtools.ts | 180 +- src/module.ts | 20 +- src/runtime/core/features.ts | 6 +- src/runtime/core/rpc-types.ts | 21 + src/runtime/core/rpc.ts | 44 +- src/runtime/core/server/types.ts | 26 +- src/runtime/html-validate/api-handlers.ts | 29 +- src/runtime/html-validate/nitro.plugin.ts | 125 +- src/runtime/hydration/composables.ts | 2 +- src/runtime/hydration/handlers.ts | 48 +- src/runtime/lazy-load/handlers.ts | 33 +- src/runtime/lazy-load/plugin.client.ts | 2 +- src/runtime/nitro.d.ts | 7 - .../third-party-scripts/nitro.plugin.ts | 6 +- src/runtime/types.d.ts | 4 +- test/unit/core/hints-router.test.ts | 87 +- test/unit/html-validate/nitro-plugin.test.ts | 163 +- 38 files changed, 3063 insertions(+), 2363 deletions(-) create mode 100644 client/app/components/n/Badge.vue create mode 100644 client/app/components/n/Button.vue create mode 100644 client/app/components/n/Card.vue create mode 100644 client/app/components/n/Loading.vue create mode 100644 client/app/components/n/Tip.vue create mode 100644 client/app/composables/devtools.ts create mode 100644 client/app/plugins/color-mode.client.ts create mode 100644 client/uno.config.ts delete mode 100644 src/runtime/nitro.d.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad953e62..2ac49b9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,3 +28,32 @@ jobs: - run: pnpm test:types - run: pnpm lint - run: pnpm test + + # Nuxt 5 is still a pre-release: this job tracks it and may fail without blocking merges. + nuxt-5: + runs-on: ubuntu-latest + continue-on-error: true + steps: + - uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 + - uses: pnpm/action-setup@6e7bdbda5fe05107efc88b23b7ed00aa05f84ca0 + name: Install pnpm + - name: Install Node.js + uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f + with: + node-version: 24.22.0 + cache: 'pnpm' + - name: Point the workspace at the Nuxt 5 nightly + run: | + sed -i \ + -e "s#^ nuxt: .*# nuxt: npm:nuxt-nightly@5x#" \ + -e "s#^ '@nuxt/kit': .*# '@nuxt/kit': npm:@nuxt/kit-nightly@5x#" \ + -e "s#^ '@nuxt/schema': .*# '@nuxt/schema': npm:@nuxt/schema-nightly@5x#" \ + -e "s#^ '@nuxt/vite-builder': .*# '@nuxt/vite-builder': npm:@nuxt/vite-builder-nightly@5x#" \ + -e "s#^ '@nuxt/nitro-server': .*# '@nuxt/nitro-server': npm:@nuxt/nitro-server-nightly@5x#" \ + pnpm-workspace.yaml + cat pnpm-workspace.yaml + - run: pnpm install --no-frozen-lockfile + - run: pnpm dev:prepare + - run: pnpm prepack + - run: pnpm test:types + - run: pnpm test diff --git a/client/app/app.vue b/client/app/app.vue index 16adbd8c..a8e035d7 100644 --- a/client/app/app.vue +++ b/client/app/app.vue @@ -1,14 +1,15 @@