Skip to content

Commit 23e3783

Browse files
authored
meta(nuxt): Require minimum Nuxt v3.7.0 (#14473)
This PR adds a minimum required version for the Nuxt SDK. Version 3.7.0 was selected because this version adds the possibility to set client source maps to `'hidden'` ([PR here](nuxt/nuxt#22787)). However, as the SDK relies on other versions as well (see below, at the bottom), those packages need to be manually bumped (in case the lock-file is not updated yet). **Nuxt 3.7.0** at least supports the correct version range: ["nitropack": "^2.6.1"](https://github.com/nuxt/nuxt/blob/v3.7.0/packages/nuxt/package.json#L84) ["ofetch": "^1.3.3"](https://github.com/nuxt/nuxt/blob/v3.7.0/packages/nuxt/package.json#L87) Above **Nuxt v3.14.0**, everything works out of the box, as the versions are already updated: ["nitropack": "^2.10.2"](https://github.com/nuxt/nuxt/blob/v3.14.0/packages/nuxt/package.json#L97) ["ofetch": "^1.4.1"](https://github.com/nuxt/nuxt/blob/v3.14.0/packages/nuxt/package.json#L100) #### Minimum versions, the SDK relies on: - `nitropack` 2.10.0: for the correct peerDependency of `@vercel/nft` - `ofetch` 1.4.0: for being able to patch `$fetch`
1 parent 973ef9c commit 23e3783

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dev-packages/e2e-tests/test-applications/nuxt-3-min/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-3-min",
3-
"description": "E2E test app for the minimum nuxt 3 version our nuxt SDK supports.",
3+
"description": "E2E test app for the minimum Nuxt 3 version our Nuxt SDK supports.",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -16,15 +16,15 @@
1616
},
1717
"dependencies": {
1818
"@sentry/nuxt": "latest || *",
19-
"nuxt": "3.13.2"
19+
"nuxt": "3.7.0"
2020
},
2121
"devDependencies": {
2222
"@nuxt/test-utils": "^3.14.1",
2323
"@playwright/test": "^1.44.1",
2424
"@sentry-internal/test-utils": "link:../../../test-utils"
2525
},
2626
"overrides": {
27-
"nitropack": "2.9.7",
28-
"@vercel/nft": "^0.27.4"
27+
"nitropack": "2.10.0",
28+
"ofetch": "1.4.0"
2929
}
3030
}

packages/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"access": "public"
4040
},
4141
"peerDependencies": {
42-
"nuxt": "3.x"
42+
"nuxt": ">=3.7.0 || 4.x"
4343
},
4444
"dependencies": {
4545
"@nuxt/kit": "^3.13.2",

packages/nuxt/src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default defineNuxtModule<ModuleOptions>({
1313
name: '@sentry/nuxt/module',
1414
configKey: 'sentry',
1515
compatibility: {
16-
nuxt: '^3.0.0',
16+
nuxt: '>=3.7.0',
1717
},
1818
},
1919
defaults: {},

0 commit comments

Comments
 (0)