Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
}
},
"dependencies": {
"@sentry/browser": "10.27.0",
"@sentry/browser": "10.33.0",
"@sentry/core": "10.27.0",
"@sentry/types": "10.27.0"
Comment on lines +61 to 63
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The update to @sentry/browser without also updating @sentry/core creates a dependency version conflict, as they are part of a monorepo and expect to be aligned.
Severity: CRITICAL

🔍 Detailed Analysis

This change updates @sentry/browser to version 10.33.0 while leaving @sentry/core at 10.27.0. Since @sentry/[email protected] has a dependency on @sentry/[email protected], this creates a version conflict. When this package is consumed, package managers may hoist the wrong version or install duplicates of @sentry/core. This can lead to runtime errors, such as "undefined is not a function", because the code from @sentry/browser might call functions from @sentry/core that have changed or do not exist in the older version. This type of version misalignment is a known issue for Sentry's monorepo packages.

💡 Suggested Fix

Update all related @sentry/ packages (@sentry/core, @sentry/types, etc.) to the same version as @sentry/browser (10.33.0). Packages from the Sentry monorepo should be kept in sync to avoid version conflicts.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: package.json#L61-L63

Potential issue: This change updates `@sentry/browser` to version `10.33.0` while
leaving `@sentry/core` at `10.27.0`. Since `@sentry/[email protected]` has a dependency on
`@sentry/[email protected]`, this creates a version conflict. When this package is consumed,
package managers may hoist the wrong version or install duplicates of `@sentry/core`.
This can lead to runtime errors, such as "undefined is not a function", because the code
from `@sentry/browser` might call functions from `@sentry/core` that have changed or do
not exist in the older version. This type of version misalignment is a known issue for
Sentry's monorepo packages.

Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 8495538

},
Expand Down
67 changes: 36 additions & 31 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1001,12 +1001,12 @@
resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33"
integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==

"@sentry-internal/browser-utils@10.27.0":
version "10.27.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/browser-utils/-/browser-utils-10.27.0.tgz#e37295cec899428ebf66d532d8a1b0f703be00a6"
integrity sha512-17tO6AXP+rmVQtLJ3ROQJF2UlFmvMWp7/8RDT5x9VM0w0tY31z8Twc0gw2KA7tcDxa5AaHDUbf9heOf+R6G6ow==
"@sentry-internal/browser-utils@10.33.0":
version "10.33.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/browser-utils/-/browser-utils-10.33.0.tgz#4a5d98352267b63fcc449efe14627c0fc082089e"
integrity sha512-nDJFHAfiFifBfJB0OF6DV6BIsIV5uah4lDsV4UBAgPBf+YAHclO10y1gi2U/JMh58c+s4lXi9p+PI1TFXZ0c6w==
dependencies:
"@sentry/core" "10.27.0"
"@sentry/core" "10.33.0"

"@sentry-internal/[email protected]":
version "10.27.0"
Expand All @@ -1028,28 +1028,28 @@
resolved "https://registry.yarnpkg.com/@sentry-internal/eslint-plugin-sdk/-/eslint-plugin-sdk-10.27.0.tgz#38a599d28a1570adde9755b9313e43e3c449013b"
integrity sha512-WA4QeopD8TNahnZoeGEzYH8b7+iDfdkEm0UJ/rDYUrudUA6TBhRSmzPU3P/Hwr4YySqrldg3yohx5nEG6BF44w==

"@sentry-internal/feedback@10.27.0":
version "10.27.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-10.27.0.tgz#a7cfdd32c455d8a4f3684475f61583cd3fec43fe"
integrity sha512-UecsIDJcv7VBwycge/MDvgSRxzevDdcItE1i0KSwlPz00rVVxLY9kV28PJ4I2E7r6/cIaP9BkbWegCEcv09NuA==
"@sentry-internal/feedback@10.33.0":
version "10.33.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/feedback/-/feedback-10.33.0.tgz#5865b4a68d607bb48d8159a100464ae640a638e7"
integrity sha512-sN/VLWtEf0BeV6w6wldIpTxUQxNVc9o9tjLRQa8je1ZV2FCgXA124Iff/zsowsz82dLqtg7qp6GA5zYXVq+JMA==
dependencies:
"@sentry/core" "10.27.0"
"@sentry/core" "10.33.0"

"@sentry-internal/replay-canvas@10.27.0":
version "10.27.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-10.27.0.tgz#4e695ef0e3361476b2cad805a09ab456ef0a4859"
integrity sha512-inhsRYSVBpu3BI1kZphXj6uB59baJpYdyHeIPCiTfdFNBE5tngNH0HS/aedZ1g9zICw290lwvpuyrWJqp4VBng==
"@sentry-internal/replay-canvas@10.33.0":
version "10.33.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/replay-canvas/-/replay-canvas-10.33.0.tgz#9ea15b320618ad220e5d8f7c804a0d9ca55b04af"
integrity sha512-MTmP6uoAVzw4CCPeqCgCLsRSiOfGLxgyMFjGTCW3E7t62MJ9S0H5sLsQ34sHxXUa1gFU9UNAjEvRRpZ0JvWrPw==
dependencies:
"@sentry-internal/replay" "10.27.0"
"@sentry/core" "10.27.0"
"@sentry-internal/replay" "10.33.0"
"@sentry/core" "10.33.0"

"@sentry-internal/replay@10.27.0":
version "10.27.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/replay/-/replay-10.27.0.tgz#9f2798f212de18bfd306ea966a52402b6d11bb4b"
integrity sha512-tKSzHq1hNzB619Ssrqo25cqdQJ84R3xSSLsUWEnkGO/wcXJvpZy94gwdoS+KmH18BB1iRRRGtnMxZcUkiPSesw==
"@sentry-internal/replay@10.33.0":
version "10.33.0"
resolved "https://registry.yarnpkg.com/@sentry-internal/replay/-/replay-10.33.0.tgz#8cfe3a353731fcd81e7afb646b6befeb0f9feb0f"
integrity sha512-UOU9PYxuXnPop3HoQ3l4Q7SZUXJC3Vmfm0Adgad8U03UcrThWIHYc5CxECSrVzfDFNOT7w9o7HQgRAgWxBPMXg==
dependencies:
"@sentry-internal/browser-utils" "10.27.0"
"@sentry/core" "10.27.0"
"@sentry-internal/browser-utils" "10.33.0"
"@sentry/core" "10.33.0"

"@sentry-internal/[email protected]":
version "7.120.3"
Expand All @@ -1065,22 +1065,27 @@
resolved "https://registry.yarnpkg.com/@sentry-internal/typescript/-/typescript-10.27.0.tgz#6037d35f2350be82bdd11784655cf971e9476e97"
integrity sha512-MuE2+0P981OvuzArtjFNYeDr93kEKSJCxO/xeQO8HV2UqwuyOC9Y06TMu0RQ6bAv+tmjMrZiX0/axgmVIXZhZg==

"@sentry/browser@10.27.0":
version "10.27.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-10.27.0.tgz#44cdd6ee7be079383eb7bc22e3e65ad639b6507c"
integrity sha512-G8q362DdKp9y1b5qkQEmhTFzyWTOVB0ps1rflok0N6bVA75IEmSDX1pqJsNuY3qy14VsVHYVwQBJQsNltQLS0g==
"@sentry/browser@10.33.0":
version "10.33.0"
resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-10.33.0.tgz#33284952a1cdf43cdac15ac144c85e81e7cbaa93"
integrity sha512-iWiPjik9zetM84jKfk01UveW1J0+X7w8XmJ8+IrhTyNDBVUWCRJWD8FrksiN1dRSg5mFWgfMRzKMz27hAScRwg==
dependencies:
"@sentry-internal/browser-utils" "10.27.0"
"@sentry-internal/feedback" "10.27.0"
"@sentry-internal/replay" "10.27.0"
"@sentry-internal/replay-canvas" "10.27.0"
"@sentry/core" "10.27.0"
"@sentry-internal/browser-utils" "10.33.0"
"@sentry-internal/feedback" "10.33.0"
"@sentry-internal/replay" "10.33.0"
"@sentry-internal/replay-canvas" "10.33.0"
"@sentry/core" "10.33.0"

"@sentry/[email protected]":
version "10.27.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-10.27.0.tgz#47e457ffc113f62f49f3a759e7e7da56b1268609"
integrity sha512-Zc68kdH7tWTDtDbV1zWIbo3Jv0fHAU2NsF5aD2qamypKgfSIMSbWVxd22qZyDBkaX8gWIPm/0Sgx6aRXRBXrYQ==

"@sentry/[email protected]":
version "10.33.0"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-10.33.0.tgz#ea4964fbec290503b419ccaf1a313924d30ad1c8"
integrity sha512-ehH1VSUclIHZKEZVdv+klofsFIh8FFzqA6AAV23RtLepptzA8wqQzUGraEuSN25sYcNmYJ0jti5U0Ys+WZv5Dw==

"@sentry/[email protected]":
version "7.120.3"
resolved "https://registry.yarnpkg.com/@sentry/core/-/core-7.120.3.tgz#88ae2f8c242afce59e32bdee7f866d8788e86c03"
Expand Down
Loading