Skip to content

Commit 30c1a97

Browse files
authored
fix(deps): update sentry sdk to ^7.47.0 (#552)
NOTE: The `@sentry/tracing` package is deprecated and does not need to be installed regardless whether tracing functionality is used or not.
1 parent 5d9e00c commit 30c1a97

File tree

11 files changed

+72
-91
lines changed

11 files changed

+72
-91
lines changed

build.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export default defineBuildConfig({
1616
'@sentry/cli',
1717
'@sentry/core',
1818
'@sentry/node',
19-
'@sentry/tracing',
2019
'@sentry/types',
2120
'@sentry/webpack-plugin',
2221
'consola',

docs/content/en/guide/migration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Sentry SDK dependencies updated from v6 to v7. Please read about breaking change
1313

1414
Some of the breaking changes listed in that document are automatically handled by the module and don't need any action. Other notable changes that might require action are:
1515

16-
- When using the `tracing` option, the `@sentry/tracing` dependency needs to be upgraded from v6.x to v7.x.
16+
- The `@sentry/tracing` dependency should be uninstalled, regardless whether `tracing` option is used or not.
1717
- The `whitelistUrls` and `blacklistUrls` Sentry `config` (or `clientConfig` / `serverConfig`) options have been renamed to `allowUrls` and `denyUrls`.
1818
- The `Vue` integration was removed as is now merged into the Sentry Browser SDK. If you have been passing custom `Vue` options through the `clientIntegrations.Vue` object then those can now be merged directly into the `clientConfig` option (without the parent `Vue` key).
1919
- The `UserAgent` integration was renamed to `HttpContext`. If you have been passing custom configuration to that integration through `clientIntegrations` option then you should rename the key.

docs/content/en/guide/setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ In Typescript or type-checked JavaScript projects, add `@nuxtjs/sentry` to the `
6565

6666
<alert type="info">
6767

68-
The otherwise optional packages `@sentry/tracing` and `@sentry/webpack-plugin` have to be installed for types to be fully working.
68+
The otherwise optional package `@sentry/webpack-plugin` has to be installed for types to be fully working.
6969

7070
If not using the relevant functionality (`tracing` and `publishRelease` options are not enabled) then those packages can be installed as dev-only dependencies.
7171

docs/content/en/sentry/options.md

-6
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,6 @@ export default function () {
313313
- Type: `Boolean` or `Object`
314314
- Default: `false`
315315
316-
<alert type="info">
317-
318-
`@sentry/tracing@7` (version 7) should be installed manually when using this option.
319-
320-
</alert>
321-
322316
- Enables Sentry Performance Monitoring on the [server](https://docs.sentry.io/platforms/node/performance/) and [browser](https://docs.sentry.io/platforms/javascript/guides/vue/performance/) side.
323317
- Takes the following object configuration format (default values shown):
324318
```js

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@
5959
}
6060
},
6161
"dependencies": {
62-
"@sentry/integrations": "^7.45.0",
63-
"@sentry/node": "^7.45.0",
64-
"@sentry/utils": "^7.45.0",
65-
"@sentry/vue": "^7.45.0",
62+
"@sentry/integrations": "^7.47.0",
63+
"@sentry/node": "^7.47.0",
64+
"@sentry/utils": "^7.47.0",
65+
"@sentry/vue": "^7.47.0",
6666
"consola": "^2.0.0",
6767
"defu": "^6.0.0",
6868
"hash-sum": "^2.0.0",
@@ -77,7 +77,6 @@
7777
"@nuxtjs/eslint-config-typescript": "12.0.0",
7878
"@nuxtjs/module-test-utils": "1.6.3",
7979
"@release-it/conventional-changelog": "5.1.1",
80-
"@sentry/tracing": "7.45.0",
8180
"@sentry/webpack-plugin": "1.20.0",
8281
"@size-limit/file": "^8.2.4",
8382
"@types/hash-sum": "1.0.0",

src/hooks.ts

-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@ export async function initializeServerSentry (nuxt: Nuxt, moduleOptions: ModuleC
154154
sentryHandlerProxy.errorHandler = Sentry.Handlers.errorHandler()
155155
sentryHandlerProxy.requestHandler = Sentry.Handlers.requestHandler(moduleOptions.requestHandlerConfig)
156156
if (serverOptions.tracing) {
157-
// Triggers initialization of the tracing integration as a side effect.
158-
await import('@sentry/tracing')
159157
sentryHandlerProxy.tracingHandler = Sentry.Handlers.tracingHandler()
160158
}
161159

src/module.ts

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export default defineNuxtModule<ModuleConfiguration>({
9494
'@sentry/integrations',
9595
'@sentry/utils',
9696
'@sentry/vue',
97-
...(options.tracing ? ['@sentry/tracing'] : []),
9897
]
9998
for (const dep of aliasedDependencies) {
10099
nuxt.options.alias[`~${dep}`] = (await resolvePath(dep, { url: moduleDir })).replace(/\/cjs\//, '/esm/')

src/options.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Consola } from 'consola'
22
import { defu } from 'defu'
33
import { relative } from 'pathe'
4-
import { Integrations as ServerIntegrations } from '@sentry/node'
4+
import { Integrations as ServerIntegrations, autoDiscoverNodePerformanceMonitoringIntegrations } from '@sentry/node'
55
import type Sentry from '@sentry/node'
66
import * as PluggableIntegrations from '@sentry/integrations'
77
import type { Options } from '@sentry/types'
@@ -248,6 +248,8 @@ export async function resolveServerOptions (nuxt: Nuxt, moduleOptions: ModuleCon
248248
const defaultConfig = {
249249
dsn: options.dsn,
250250
integrations: [
251+
// Automatically instrument Node.js libraries and frameworks
252+
...(options.tracing ? autoDiscoverNodePerformanceMonitoringIntegrations() : []),
251253
...filterDisabledIntegrations(options.serverIntegrations)
252254
.map((name) => {
253255
const opt = options.serverIntegrations[name]

src/templates/client.shared.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ const browserIntegrations = options.BROWSER_INTEGRATIONS.filter(key => key in op
99
const vueImports = [
1010
'init',
1111
...(browserIntegrations.length ? ['Integrations'] : []),
12-
...(options.tracing ? ['vueRouterInstrumentation'] : [])
12+
...(options.tracing ? ['vueRouterInstrumentation', 'BrowserTracing'] : [])
1313
]
1414
%>import { <%= vueImports.join(', ') %> } from '~@sentry/vue'
1515
import * as CoreSdk from '~@sentry/core'
1616
import * as BrowserSdk from '~@sentry/browser-sdk'
1717
<%
18-
if (options.tracing) {%>import { BrowserTracing } from '~@sentry/tracing'
19-
<%}
2018
let integrations = options.BROWSER_PLUGGABLE_INTEGRATIONS.filter(key => key in options.integrations)
2119
if (integrations.length) {%>import { <%= integrations.join(', ') %> } from '~@sentry/integrations'
2220
<%}%>

src/types/configuration.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { Configuration as WebpackOptions } from 'webpack'
2-
import { BrowserTracing } from '@sentry/tracing'
32
import { Options as SentryOptions, IntegrationClass } from '@sentry/types'
43
import * as PluggableIntegrations from '@sentry/integrations'
5-
import { Integrations as BrowserIntegrations } from '@sentry/vue'
4+
import { BrowserTracing, Integrations as BrowserIntegrations } from '@sentry/vue'
65
import { Options as SentryVueOptions, TracingOptions as SentryVueTracingOptions } from '@sentry/vue/types/types'
76
import { SentryCliPluginOptions } from '@sentry/webpack-plugin'
87
import { Integrations as NodeIntegrations, NodeOptions, Handlers } from '@sentry/node'

yarn.lock

+61-68
Original file line numberDiff line numberDiff line change
@@ -2270,26 +2270,26 @@
22702270
estree-walker "^2.0.2"
22712271
picomatch "^2.3.1"
22722272

2273-
"@sentry-internal/tracing@7.45.0":
2274-
version "7.45.0"
2275-
resolved "https://registry.yarnpkg.com/@sentry-internal/tracing/-/tracing-7.45.0.tgz#01f347d0d1b42451b340b32b12923dc22e042d27"
2276-
integrity sha512-0aIDY2OvUX7k2XHaimOlWkboXoQvJ9dEKvfpu0Wh0YxfUTGPa+wplUdg3WVdkk018sq1L11MKmj4MPZyYUvXhw==
2277-
dependencies:
2278-
"@sentry/core" "7.45.0"
2279-
"@sentry/types" "7.45.0"
2280-
"@sentry/utils" "7.45.0"
2273+
"@sentry-internal/tracing@7.47.0":
2274+
version "7.47.0"
2275+
resolved "https://registry.yarnpkg.com/@sentry-internal/tracing/-/tracing-7.47.0.tgz#45e92eb4c8d049d93bd4fab961eaa38a4fb680f3"
2276+
integrity sha512-udpHnCzF8DQsWf0gQwd0XFGp6Y8MOiwnl8vGt2ohqZGS3m1+IxoRLXsSkD8qmvN6KKDnwbaAvYnK0z0L+AW95g==
2277+
dependencies:
2278+
"@sentry/core" "7.47.0"
2279+
"@sentry/types" "7.47.0"
2280+
"@sentry/utils" "7.47.0"
22812281
tslib "^1.9.3"
22822282

2283-
"@sentry/browser@7.45.0":
2284-
version "7.45.0"
2285-
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.45.0.tgz#c9f8031ad184558d08c374d4e4ee30996cc5b543"
2286-
integrity sha512-/dUrUwnI34voMj+jSJT7b5Jun+xy1utVyzzwTq3Oc22N+SB17ZOX9svZ4jl1Lu6tVJPVjPyvL6zlcbrbMwqFjg==
2283+
"@sentry/browser@7.47.0":
2284+
version "7.47.0"
2285+
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-7.47.0.tgz#c0d10f348d1fb9336c3ef8fa2f6638f26d4c17a8"
2286+
integrity sha512-L0t07kS/G1UGVZ9fpD6HLuaX8vVBqAGWgu+1uweXthYozu/N7ZAsakjU/Ozu6FSXj1mO3NOJZhOn/goIZLSj5A==
22872287
dependencies:
2288-
"@sentry-internal/tracing" "7.45.0"
2289-
"@sentry/core" "7.45.0"
2290-
"@sentry/replay" "7.45.0"
2291-
"@sentry/types" "7.45.0"
2292-
"@sentry/utils" "7.45.0"
2288+
"@sentry-internal/tracing" "7.47.0"
2289+
"@sentry/core" "7.47.0"
2290+
"@sentry/replay" "7.47.0"
2291+
"@sentry/types" "7.47.0"
2292+
"@sentry/utils" "7.47.0"
22932293
tslib "^1.9.3"
22942294

22952295
"@sentry/cli@^1.74.6":
@@ -2304,77 +2304,70 @@
23042304
proxy-from-env "^1.1.0"
23052305
which "^2.0.2"
23062306

2307-
"@sentry/core@7.45.0":
2308-
version "7.45.0"
2309-
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.45.0.tgz#87fdb283c211f145e508cc8ff89dabdf2fbcfc39"
2310-
integrity sha512-xJfdTS4lRmHvZI/A5MazdnKhBJFkisKu6G9EGNLlZLre+6W4PH5sb7QX4+xoBdqG7v10Jvdia112vi762ojO2w==
2307+
"@sentry/core@7.47.0":
2308+
version "7.47.0"
2309+
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.47.0.tgz#6a723d96f64009a9c1b9bc44e259956b7eca0a3f"
2310+
integrity sha512-EFhZhKdMu7wKmWYZwbgTi8FNZ7Fq+HdlXiZWNz51Bqe3pHmfAkdHtAEs0Buo0v623MKA0CA4EjXIazGUM34XTg==
23112311
dependencies:
2312-
"@sentry/types" "7.45.0"
2313-
"@sentry/utils" "7.45.0"
2312+
"@sentry/types" "7.47.0"
2313+
"@sentry/utils" "7.47.0"
23142314
tslib "^1.9.3"
23152315

2316-
"@sentry/integrations@^7.45.0":
2317-
version "7.45.0"
2318-
resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-7.45.0.tgz#79166f44af59127bd67824dcaddb4fee254023d7"
2319-
integrity sha512-2lwBACr7w9YmnilndRH+39Ow97DJIZUPsDMlppu2NNFEZl2fBDpl+YWh7rxuMIpsOKqZkgxVhxWuoZL9gcWvEA==
2316+
"@sentry/integrations@^7.47.0":
2317+
version "7.47.0"
2318+
resolved "https://registry.yarnpkg.com/@sentry/integrations/-/integrations-7.47.0.tgz#b952cc910e92e9235f42151f7260471b55b10cdf"
2319+
integrity sha512-PUSeBYI3fCOswn+K+PLjtl2epr8/ceqebWqVcxHclczSY3EOZE+osznDFgZmeVgrHavsgfE4oFVqJeFvDJwCog==
23202320
dependencies:
2321-
"@sentry/types" "7.45.0"
2322-
"@sentry/utils" "7.45.0"
2321+
"@sentry/types" "7.47.0"
2322+
"@sentry/utils" "7.47.0"
23232323
localforage "^1.8.1"
23242324
tslib "^1.9.3"
23252325

2326-
"@sentry/node@^7.45.0":
2327-
version "7.45.0"
2328-
resolved "https://registry.yarnpkg.com/@sentry/node/-/node-7.45.0.tgz#7315cac471dadcbcc6ca2b2439fd2550ab3ddd1f"
2329-
integrity sha512-x8mq+DrJWpSi716Rap/2w70DKWD8vjl87Y70OYFu+Dn6CxWDHClObSxLzuJcE5lww0Sq9RnU6UHQWzjXSb/pVQ==
2326+
"@sentry/node@^7.47.0":
2327+
version "7.47.0"
2328+
resolved "https://registry.yarnpkg.com/@sentry/node/-/node-7.47.0.tgz#2c1a8c4777eaf20232fc16d3aa2f26f3fd04bfd1"
2329+
integrity sha512-LTg2r5EV9yh4GLYDF+ViSltR9LLj/pcvk8YhANJcMO3Fp//xh8njcdU0FC2yNthUREawYDzAsVzLyCYJfV0H1A==
23302330
dependencies:
2331-
"@sentry-internal/tracing" "7.45.0"
2332-
"@sentry/core" "7.45.0"
2333-
"@sentry/types" "7.45.0"
2334-
"@sentry/utils" "7.45.0"
2331+
"@sentry-internal/tracing" "7.47.0"
2332+
"@sentry/core" "7.47.0"
2333+
"@sentry/types" "7.47.0"
2334+
"@sentry/utils" "7.47.0"
23352335
cookie "^0.4.1"
23362336
https-proxy-agent "^5.0.0"
23372337
lru_map "^0.3.3"
23382338
tslib "^1.9.3"
23392339

2340-
"@sentry/replay@7.45.0":
2341-
version "7.45.0"
2342-
resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.45.0.tgz#1da15e8c419bb77ec7475c7b1879d11f17edad20"
2343-
integrity sha512-smM7FIcFIyKu30BqCl8BzLo1gH/z9WwXdGX6V0fNvHab9fJZ09+xjFn+LmIyo6N8H8jjwsup0+yQ12kiF/ZsEw==
2340+
"@sentry/replay@7.47.0":
2341+
version "7.47.0"
2342+
resolved "https://registry.yarnpkg.com/@sentry/replay/-/replay-7.47.0.tgz#d2fc8fd3be2360950497426035d1ba0bd8a97b8f"
2343+
integrity sha512-BFpVZVmwlezZ83y0L43TCTJY142Fxh+z+qZSwTag5HlhmIpBKw/WKg06ajOhrYJbCBkhHmeOvyKkxX0jnc39ZA==
23442344
dependencies:
2345-
"@sentry/core" "7.45.0"
2346-
"@sentry/types" "7.45.0"
2347-
"@sentry/utils" "7.45.0"
2345+
"@sentry/core" "7.47.0"
2346+
"@sentry/types" "7.47.0"
2347+
"@sentry/utils" "7.47.0"
23482348

2349-
"@sentry/tracing@7.45.0":
2350-
version "7.45.0"
2351-
resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-7.45.0.tgz#77fe1075b3fdfd5026bf8d816a855bbe992b64a3"
2352-
integrity sha512-FsoFmZPzTBGvWeJH73NxSF1ot61Zw3aIZo5XolengiKnRmcrQOFxebtMKBiZ61QBRYGqsm5uT7QB7zITU6Ikgg==
2353-
dependencies:
2354-
"@sentry-internal/tracing" "7.45.0"
2355-
2356-
"@sentry/types@7.45.0":
2357-
version "7.45.0"
2358-
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.45.0.tgz#b5e2db7a421f6090398565b0a72fb3bbdc94233a"
2359-
integrity sha512-iFt7msfUK8LCodFF3RKUyaxy9tJv/gpWhzxUFyNxtuVwlpmd+q6mtsFGn8Af3pbpm8A+MKyz1ebMwXj0PQqknw==
2349+
"@sentry/types@7.47.0":
2350+
version "7.47.0"
2351+
resolved "https://registry.yarnpkg.com/@sentry/types/-/types-7.47.0.tgz#fd07dbec11a26ae861532a9abe75bd31663ca09b"
2352+
integrity sha512-GxXocplN0j1+uczovHrfkykl9wvkamDtWxlPUQgyGlbLGZn+UH1Y79D4D58COaFWGEZdSNKr62gZAjfEYu9nQA==
23602353

2361-
"@sentry/utils@7.45.0", "@sentry/utils@^7.45.0":
2362-
version "7.45.0"
2363-
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.45.0.tgz#e13e075098578557ec3a0decf735cbad6a26ce63"
2364-
integrity sha512-aTY7qqtNUudd09SH5DVSKMm3iQ6ZeWufduc0I9bPZe6UMM09BDc4KmjmrzRkdQ+VaOmHo7+v+HZKQk5f+AbuTQ==
2354+
"@sentry/utils@7.47.0", "@sentry/utils@^7.47.0":
2355+
version "7.47.0"
2356+
resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-7.47.0.tgz#e62fdede15e45387b40c9fa135feba48f0960826"
2357+
integrity sha512-A89SaOLp6XeZfByeYo2C8Ecye/YAtk/gENuyOUhQEdMulI6mZdjqtHAp7pTMVgkBc/YNARVuoa+kR/IdRrTPkQ==
23652358
dependencies:
2366-
"@sentry/types" "7.45.0"
2359+
"@sentry/types" "7.47.0"
23672360
tslib "^1.9.3"
23682361

2369-
"@sentry/vue@^7.45.0":
2370-
version "7.45.0"
2371-
resolved "https://registry.yarnpkg.com/@sentry/vue/-/vue-7.45.0.tgz#cff1632d548038ba9498ba142ddec1920c3d5ec4"
2372-
integrity sha512-31wn10AjdMnCy5bzrMt3QLmX34ijuoxLOK4xE/E7NbtwAuPxd+mnc67CMy6UVfo8Ng36HFZFeNMewdqF676V5Q==
2362+
"@sentry/vue@^7.47.0":
2363+
version "7.47.0"
2364+
resolved "https://registry.yarnpkg.com/@sentry/vue/-/vue-7.47.0.tgz#2a930280e1f594260f33be5c41ac69ade5e004b5"
2365+
integrity sha512-ZaiddqyjMH5PAhe3JMw5Xy4vO3wvc97JzmvLnZ3qHkA69hQ1yFDtVhncscWeVtn5r0N9D4+VxUOHMCpDFNyATw==
23732366
dependencies:
2374-
"@sentry/browser" "7.45.0"
2375-
"@sentry/core" "7.45.0"
2376-
"@sentry/types" "7.45.0"
2377-
"@sentry/utils" "7.45.0"
2367+
"@sentry/browser" "7.47.0"
2368+
"@sentry/core" "7.47.0"
2369+
"@sentry/types" "7.47.0"
2370+
"@sentry/utils" "7.47.0"
23782371
tslib "^1.9.3"
23792372

23802373
"@sentry/webpack-plugin@1.20.0":

0 commit comments

Comments
 (0)