Skip to content

Commit 1c4041d

Browse files
committed
fix!: drop Nuxt 3 support
1 parent 60a0337 commit 1c4041d

8 files changed

Lines changed: 155 additions & 8 deletions

File tree

‎.nuxtrc‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

‎package.json‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,16 @@
6666
"resolutions": {
6767
"@nuxtjs/device": "workspace:*"
6868
},
69-
"packageManager": "pnpm@12.6.0"
69+
"devEngines": {
70+
"runtime": {
71+
"name": "node",
72+
"version": ">=24",
73+
"onFail": "download"
74+
},
75+
"packageManager": {
76+
"name": "pnpm",
77+
"version": "12.6.0",
78+
"onFail": "download"
79+
}
80+
}
7081
}

‎playground/nuxt.config.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export default defineNuxtConfig({
22
modules: ['../src/module'],
3-
43
devtools: { enabled: true },
5-
6-
compatibilityDate: '2024-08-29',
7-
4+
future: {
5+
compatibilityVersion: 5,
6+
},
7+
compatibilityDate: '2026-09-29',
88
device: {},
99
})

‎pnpm-lock.yaml‎

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

‎src/module.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default defineNuxtModule<ModuleOptions>({
99
name,
1010
configKey: 'device',
1111
compatibility: {
12-
nuxt: '>=3.0.0',
12+
nuxt: '>=4.0.0',
1313
},
1414
version,
1515
},

‎test/fixtures/basic/nuxt.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export default defineNuxtConfig({
22
modules: ['@nuxtjs/device'],
3+
compatibilityDate: '2026-09-29',
34
})

0 commit comments

Comments
 (0)