chore: upgrade sentry

This commit is contained in:
Joel 2025-03-19 15:22:43 +08:00
parent d09c41f048
commit 50170d0e5b
3 changed files with 68 additions and 121 deletions

View File

@ -14,9 +14,8 @@ const SentryInit = ({
Sentry.init({ Sentry.init({
dsn: SENTRY_DSN, dsn: SENTRY_DSN,
integrations: [ integrations: [
new Sentry.BrowserTracing({ Sentry.browserTracingIntegration(),
}), Sentry.replayIntegration(),
new Sentry.Replay(),
], ],
tracesSampleRate: 0.1, tracesSampleRate: 0.1,
replaysSessionSampleRate: 0.1, replaysSessionSampleRate: 0.1,

View File

@ -47,13 +47,13 @@
"@octokit/core": "^6.1.2", "@octokit/core": "^6.1.2",
"@octokit/request-error": "^6.1.5", "@octokit/request-error": "^6.1.5",
"@remixicon/react": "^4.5.0", "@remixicon/react": "^4.5.0",
"@sentry/react": "^7.54.0", "@sentry/react": "^8.54.0",
"@sentry/utils": "^7.54.0", "@sentry/utils": "^8.54.0",
"@svgdotjs/svg.js": "^3.2.4", "@svgdotjs/svg.js": "^3.2.4",
"@tailwindcss/typography": "^0.5.15", "@tailwindcss/typography": "^0.5.15",
"@tanstack/react-query": "^5.60.5", "@tanstack/react-query": "^5.60.5",
"@tanstack/react-query-devtools": "^5.60.5", "@tanstack/react-query-devtools": "^5.60.5",
"ahooks": "^3.8.1", "ahooks": "^3.8.4",
"class-variance-authority": "^0.7.0", "class-variance-authority": "^0.7.0",
"classnames": "^2.5.1", "classnames": "^2.5.1",
"copy-to-clipboard": "^3.3.3", "copy-to-clipboard": "^3.3.3",
@ -85,7 +85,7 @@
"next": "15.2.3", "next": "15.2.3",
"next-themes": "^0.4.3", "next-themes": "^0.4.3",
"pinyin-pro": "^3.25.0", "pinyin-pro": "^3.25.0",
"qrcode.react": "^4.1.0", "qrcode.react": "^4.2.0",
"qs": "^6.13.0", "qs": "^6.13.0",
"rc-textarea": "^1.8.2", "rc-textarea": "^1.8.2",
"react": "19.0.0", "react": "19.0.0",

View File

@ -83,11 +83,11 @@ importers:
specifier: ^4.5.0 specifier: ^4.5.0
version: 4.5.0(react@19.0.0) version: 4.5.0(react@19.0.0)
'@sentry/react': '@sentry/react':
specifier: ^7.54.0 specifier: ^8.54.0
version: 7.119.2(react@19.0.0) version: 8.55.0(react@19.0.0)
'@sentry/utils': '@sentry/utils':
specifier: ^7.54.0 specifier: ^8.54.0
version: 7.119.2 version: 8.55.0
'@svgdotjs/svg.js': '@svgdotjs/svg.js':
specifier: ^3.2.4 specifier: ^3.2.4
version: 3.2.4 version: 3.2.4
@ -101,8 +101,8 @@ importers:
specifier: ^5.60.5 specifier: ^5.60.5
version: 5.61.0(@tanstack/react-query@5.61.0(react@19.0.0))(react@19.0.0) version: 5.61.0(@tanstack/react-query@5.61.0(react@19.0.0))(react@19.0.0)
ahooks: ahooks:
specifier: ^3.8.1 specifier: ^3.8.4
version: 3.8.1(react@19.0.0) version: 3.8.4(react@19.0.0)
class-variance-authority: class-variance-authority:
specifier: ^0.7.0 specifier: ^0.7.0
version: 0.7.0 version: 0.7.0
@ -197,8 +197,8 @@ importers:
specifier: ^3.25.0 specifier: ^3.25.0
version: 3.25.0 version: 3.25.0
qrcode.react: qrcode.react:
specifier: ^4.1.0 specifier: ^4.2.0
version: 4.1.0(react@19.0.0) version: 4.2.0(react@19.0.0)
qs: qs:
specifier: ^6.13.0 specifier: ^6.13.0
version: 6.13.0 version: 6.13.0
@ -2182,47 +2182,39 @@ packages:
'@rushstack/eslint-patch@1.10.4': '@rushstack/eslint-patch@1.10.4':
resolution: {integrity: sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==} resolution: {integrity: sha512-WJgX9nzTqknM393q1QJDJmoW28kUfEnybeTfVNcNAPnIx210RXm2DiXiHzfNPJNIUUb1tJnz/l4QGtJ30PgWmA==}
'@sentry-internal/feedback@7.119.2': '@sentry-internal/browser-utils@8.55.0':
resolution: {integrity: sha512-bnR1yJWVBZfXGx675nMXE8hCXsxluCBfIFy9GQT8PTN/urxpoS9cGz+5F7MA7Xe3Q06/7TT0Mz3fcDvjkqTu3Q==} resolution: {integrity: sha512-ROgqtQfpH/82AQIpESPqPQe0UyWywKJsmVIqi3c5Fh+zkds5LUxnssTj3yNd1x+kxaPDVB023jAP+3ibNgeNDw==}
engines: {node: '>=12'} engines: {node: '>=14.18'}
'@sentry-internal/replay-canvas@7.119.2': '@sentry-internal/feedback@8.55.0':
resolution: {integrity: sha512-Lqo8IFyeKkdOrOGRqm9jCEqeBl8kINe5+c2VqULpkO/I6ql6ISwPSYnmG6yL8cCVIaT1893CLog/pS4FxCv8/Q==} resolution: {integrity: sha512-cP3BD/Q6pquVQ+YL+rwCnorKuTXiS9KXW8HNKu4nmmBAyf7urjs+F6Hr1k9MXP5yQ8W3yK7jRWd09Yu6DHWOiw==}
engines: {node: '>=12'} engines: {node: '>=14.18'}
'@sentry-internal/tracing@7.119.2': '@sentry-internal/replay-canvas@8.55.0':
resolution: {integrity: sha512-V2W+STWrafyGJhQv3ulMFXYDwWHiU6wHQAQBShsHVACiFaDrJ2kPRet38FKv4dMLlLlP2xN+ss2e5zv3tYlTiQ==} resolution: {integrity: sha512-nIkfgRWk1091zHdu4NbocQsxZF1rv1f7bbp3tTIlZYbrH62XVZosx5iHAuZG0Zc48AETLE7K4AX9VGjvQj8i9w==}
engines: {node: '>=8'} engines: {node: '>=14.18'}
'@sentry/browser@7.119.2': '@sentry-internal/replay@8.55.0':
resolution: {integrity: sha512-Wb2RzCsJBTNCmS9KPmbVyV5GGzFXjFdUThAN9xlnN5GgemMBwdQjGu/tRYr8yJAVsRb0EOFH8IuJBNKKNnO49g==} resolution: {integrity: sha512-roCDEGkORwolxBn8xAKedybY+Jlefq3xYmgN2fr3BTnsXjSYOPC7D1/mYqINBat99nDtvgFvNfRcZPiwwZ1hSw==}
engines: {node: '>=8'} engines: {node: '>=14.18'}
'@sentry/core@7.119.2': '@sentry/browser@8.55.0':
resolution: {integrity: sha512-hQr3d2yWq/2lMvoyBPOwXw1IHqTrCjOsU1vYKhAa6w9vGbJZFGhKGGE2KEi/92c3gqGn+gW/PC7cV6waCTDuVA==} resolution: {integrity: sha512-1A31mCEWCjaMxJt6qGUK+aDnLDcK6AwLAZnqpSchNysGni1pSn1RWSmk9TBF8qyTds5FH8B31H480uxMPUJ7Cw==}
engines: {node: '>=8'} engines: {node: '>=14.18'}
'@sentry/integrations@7.119.2': '@sentry/core@8.55.0':
resolution: {integrity: sha512-dCuXKvbUE3gXVVa696SYMjlhSP6CxpMH/gl4Jk26naEB8Xjsn98z/hqEoXLg6Nab73rjR9c/9AdKqBbwVMHyrQ==} resolution: {integrity: sha512-6g7jpbefjHYs821Z+EBJ8r4Z7LT5h80YSWRJaylGS4nW5W5Z2KXzpdnyFarv37O7QjauzVC2E+PABmpkw5/JGA==}
engines: {node: '>=8'} engines: {node: '>=14.18'}
'@sentry/react@7.119.2': '@sentry/react@8.55.0':
resolution: {integrity: sha512-fE48R/mtb/bpc4/YVvKurKSAZ0ueUI5Ma0cVSr/Fi09rFdGwLRMcweM1UydREO/ILiyt8FezyZg7L20VAp4/TQ==} resolution: {integrity: sha512-/qNBvFLpvSa/Rmia0jpKfJdy16d4YZaAnH/TuKLAtm0BWlsPQzbXCU4h8C5Hsst0Do0zG613MEtEmWpWrVOqWA==}
engines: {node: '>=8'} engines: {node: '>=14.18'}
peerDependencies: peerDependencies:
react: 15.x || 16.x || 17.x || 18.x react: ^16.14.0 || 17.x || 18.x || 19.x
'@sentry/replay@7.119.2': '@sentry/utils@8.55.0':
resolution: {integrity: sha512-nHDsBt0mlJXTWAHjzQdCzDbhV2fv8B62PPB5mu5SpI+G5h+ir3r5lR0lZZrMT8eurVowb/HnLXAs+XYVug3blg==} resolution: {integrity: sha512-cYcl39+xcOivBpN9d8ZKbALl+DxZKo/8H0nueJZ0PO4JA+MJGhSm6oHakXxLPaiMoNLTX7yor8ndnQIuFg+vmQ==}
engines: {node: '>=12'} engines: {node: '>=14.18'}
'@sentry/types@7.119.2':
resolution: {integrity: sha512-ydq1tWsdG7QW+yFaTp0gFaowMLNVikIqM70wxWNK+u98QzKnVY/3XTixxNLsUtnAB4Y+isAzFhrc6Vb5GFdFeg==}
engines: {node: '>=8'}
'@sentry/utils@7.119.2':
resolution: {integrity: sha512-TLdUCvcNgzKP0r9YD7tgCL1PEUp42TObISridsPJ5rhpVGQJvpr+Six0zIkfDUxerLYWZoK8QMm9KgFlPLNQzA==}
engines: {node: '>=8'}
'@sinclair/typebox@0.27.8': '@sinclair/typebox@0.27.8':
resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==}
@ -3045,8 +3037,8 @@ packages:
resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==}
engines: {node: '>= 6.0.0'} engines: {node: '>= 6.0.0'}
ahooks@3.8.1: ahooks@3.8.4:
resolution: {integrity: sha512-JoP9+/RWO7MnI/uSKdvQ8WB10Y3oo1PjLv+4Sv4Vpm19Z86VUMdXh+RhWvMGxZZs06sq2p0xVtFk8Oh5ZObsoA==} resolution: {integrity: sha512-39wDEw2ZHvypaT14EpMMk4AzosHWt0z9bulY0BeDsvc9PqJEV+Kjh/4TZfftSsotBMq52iYIOFPd3PR56e0ZJg==}
engines: {node: '>=8.0.0'} engines: {node: '>=8.0.0'}
peerDependencies: peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0 react: ^16.8.0 || ^17.0.0 || ^18.0.0
@ -5129,9 +5121,6 @@ packages:
engines: {node: '>=16.x'} engines: {node: '>=16.x'}
hasBin: true hasBin: true
immediate@3.0.6:
resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==}
immer@9.0.21: immer@9.0.21:
resolution: {integrity: sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==} resolution: {integrity: sha512-bc4NBHqOqSfRW7POMkHd51LvClaeMXpm8dx0e8oE2GORbq5aRK7Bxl4FyzVLdGtLmvLKL7BTDBG5ACQm4HWjTA==}
@ -5702,9 +5691,6 @@ packages:
engines: {node: '>=16'} engines: {node: '>=16'}
hasBin: true hasBin: true
lie@3.1.1:
resolution: {integrity: sha512-RiNhHysUjhrDQntfYSfY4MU24coXXdEOgw9WGcKHNeEwffDYbF//u87M1EWaMGzuFoSbqW0C9C6lEEhDOAswfw==}
lilconfig@2.1.0: lilconfig@2.1.0:
resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==}
engines: {node: '>=10'} engines: {node: '>=10'}
@ -5748,9 +5734,6 @@ packages:
resolution: {integrity: sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==} resolution: {integrity: sha512-9rrA30MRRP3gBD3HTGnC6cDFpaE1kVDWxWgqWJUN0RvDNAo+Nz/9GxB+nHOH0ifbVFy0hSA1V6vFDvnx54lTEQ==}
engines: {node: '>=14'} engines: {node: '>=14'}
localforage@1.10.0:
resolution: {integrity: sha512-14/H1aX7hzBBmmh7sGPd+AOMkkIrHM3Z1PAyGgZigA1H1p5O5ANnMyWzvpAETtG68/dC4pC0ncy3+PPGzXZHPg==}
locate-path@5.0.0: locate-path@5.0.0:
resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==}
engines: {node: '>=8'} engines: {node: '>=8'}
@ -6682,10 +6665,10 @@ packages:
pure-rand@6.1.0: pure-rand@6.1.0:
resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==} resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==}
qrcode.react@4.1.0: qrcode.react@4.2.0:
resolution: {integrity: sha512-uqXVIIVD/IPgWLYxbOczCNAQw80XCM/LulYDADF+g2xDsPj5OoRwSWtIS4jGyp295wyjKstfG1qIv/I2/rNWpQ==} resolution: {integrity: sha512-QpgqWi8rD9DsS9EP3z7BT+5lY5SFhsqGjpgW5DY/i3mK4M9DTBNz3ErMi8BWYEfI3L0d8GIbGmcdFAS1uIRGjA==}
peerDependencies: peerDependencies:
react: ^16.8.0 || ^17.0.0 || ^18.0.0 react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
qs@6.13.0: qs@6.13.0:
resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==} resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==}
@ -10274,69 +10257,44 @@ snapshots:
'@rushstack/eslint-patch@1.10.4': {} '@rushstack/eslint-patch@1.10.4': {}
'@sentry-internal/feedback@7.119.2': '@sentry-internal/browser-utils@8.55.0':
dependencies: dependencies:
'@sentry/core': 7.119.2 '@sentry/core': 8.55.0
'@sentry/types': 7.119.2
'@sentry/utils': 7.119.2
'@sentry-internal/replay-canvas@7.119.2': '@sentry-internal/feedback@8.55.0':
dependencies: dependencies:
'@sentry/core': 7.119.2 '@sentry/core': 8.55.0
'@sentry/replay': 7.119.2
'@sentry/types': 7.119.2
'@sentry/utils': 7.119.2
'@sentry-internal/tracing@7.119.2': '@sentry-internal/replay-canvas@8.55.0':
dependencies: dependencies:
'@sentry/core': 7.119.2 '@sentry-internal/replay': 8.55.0
'@sentry/types': 7.119.2 '@sentry/core': 8.55.0
'@sentry/utils': 7.119.2
'@sentry/browser@7.119.2': '@sentry-internal/replay@8.55.0':
dependencies: dependencies:
'@sentry-internal/feedback': 7.119.2 '@sentry-internal/browser-utils': 8.55.0
'@sentry-internal/replay-canvas': 7.119.2 '@sentry/core': 8.55.0
'@sentry-internal/tracing': 7.119.2
'@sentry/core': 7.119.2
'@sentry/integrations': 7.119.2
'@sentry/replay': 7.119.2
'@sentry/types': 7.119.2
'@sentry/utils': 7.119.2
'@sentry/core@7.119.2': '@sentry/browser@8.55.0':
dependencies: dependencies:
'@sentry/types': 7.119.2 '@sentry-internal/browser-utils': 8.55.0
'@sentry/utils': 7.119.2 '@sentry-internal/feedback': 8.55.0
'@sentry-internal/replay': 8.55.0
'@sentry-internal/replay-canvas': 8.55.0
'@sentry/core': 8.55.0
'@sentry/integrations@7.119.2': '@sentry/core@8.55.0': {}
dependencies:
'@sentry/core': 7.119.2
'@sentry/types': 7.119.2
'@sentry/utils': 7.119.2
localforage: 1.10.0
'@sentry/react@7.119.2(react@19.0.0)': '@sentry/react@8.55.0(react@19.0.0)':
dependencies: dependencies:
'@sentry/browser': 7.119.2 '@sentry/browser': 8.55.0
'@sentry/core': 7.119.2 '@sentry/core': 8.55.0
'@sentry/types': 7.119.2
'@sentry/utils': 7.119.2
hoist-non-react-statics: 3.3.2 hoist-non-react-statics: 3.3.2
react: 19.0.0 react: 19.0.0
'@sentry/replay@7.119.2': '@sentry/utils@8.55.0':
dependencies: dependencies:
'@sentry-internal/tracing': 7.119.2 '@sentry/core': 8.55.0
'@sentry/core': 7.119.2
'@sentry/types': 7.119.2
'@sentry/utils': 7.119.2
'@sentry/types@7.119.2': {}
'@sentry/utils@7.119.2':
dependencies:
'@sentry/types': 7.119.2
'@sinclair/typebox@0.27.8': {} '@sinclair/typebox@0.27.8': {}
@ -11433,7 +11391,7 @@ snapshots:
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
ahooks@3.8.1(react@19.0.0): ahooks@3.8.4(react@19.0.0):
dependencies: dependencies:
'@babel/runtime': 7.25.7 '@babel/runtime': 7.25.7
dayjs: 1.11.13 dayjs: 1.11.13
@ -14059,8 +14017,6 @@ snapshots:
dependencies: dependencies:
queue: 6.0.2 queue: 6.0.2
immediate@3.0.6: {}
immer@9.0.21: {} immer@9.0.21: {}
immutable@4.3.7: {} immutable@4.3.7: {}
@ -14821,10 +14777,6 @@ snapshots:
dependencies: dependencies:
isomorphic.js: 0.2.5 isomorphic.js: 0.2.5
lie@3.1.1:
dependencies:
immediate: 3.0.6
lilconfig@2.1.0: {} lilconfig@2.1.0: {}
lilconfig@3.1.2: {} lilconfig@3.1.2: {}
@ -14877,10 +14829,6 @@ snapshots:
mlly: 1.7.3 mlly: 1.7.3
pkg-types: 1.2.1 pkg-types: 1.2.1
localforage@1.10.0:
dependencies:
lie: 3.1.1
locate-path@5.0.0: locate-path@5.0.0:
dependencies: dependencies:
p-locate: 4.1.0 p-locate: 4.1.0
@ -16132,7 +16080,7 @@ snapshots:
pure-rand@6.1.0: {} pure-rand@6.1.0: {}
qrcode.react@4.1.0(react@19.0.0): qrcode.react@4.2.0(react@19.0.0):
dependencies: dependencies:
react: 19.0.0 react: 19.0.0