fix(deps): update dependency @sentry/nextjs to v7.77.0 [security] #5434
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
7.54.0
->7.77.0
GitHub Vulnerability Alerts
CVE-2023-46729
Impact
An unsanitized input of Next.js SDK tunnel endpoint allows sending HTTP requests to arbitrary URLs and reflecting the response back to the user. This could open door for other attack vectors:
This issue only affects users who have Next.js SDK tunneling feature enabled.
Patches
The problem has been fixed in sentry/[email protected]
Workarounds
Disable tunneling by removing the
tunnelRoute
option from Sentry Next.js SDK config —next.config.js
ornext.config.mjs
.References
Credits
Release Notes
getsentry/sentry-javascript (@sentry/nextjs)
v7.77.0
Compare Source
v7.76.0
Compare Source
Important Changes
This release adds
Sentry.withMonitor()
, a wrapping function that wraps a callback with a cron monitor that will automatically report completions and failures:Other Changes
jsx
andtsx
file extensions (#9362)replay_id
is not added to DSC if session expired (#9359)Work in this release contributed by @LubomirIgonda1. Thank you for your contribution!
v7.75.1
Compare Source
v7.75.0
Compare Source
Important Changes
@sentry/opentelemetry
package (#9238)This release publishes a new package,
@sentry/opentelemetry
. This is a runtime agnostic replacement for@sentry/opentelemetry-node
and exports a couple of useful utilities which can be used to use Sentry together with OpenTelemetry.You can read more about @sentry/opentelemetry in the Readme.
Starting with this release, you can configure the following build-time flags in order to reduce the SDK bundle size:
__RRWEB_EXCLUDE_CANVAS__
__RRWEB_EXCLUDE_IFRAME__
__RRWEB_EXCLUDE_SHADOW_DOM__
You can read more about tree shaking in our docs.
Other Changes
lru_map
dependency (#9300)cookie
module (#9308)Replay
andBrowserTracing
integrations tree-shakeable (#9287)autoInstrumentMiddleware
functionality (#9323)getInitialProps
may return undefined (#9342)Bundle size 📦
v7.74.1
Compare Source
astro-integration
keyword (#9265)fetch
(#9275)defer
injection logic. (#9242)Work in this release contributed by @LubomirIgonda1. Thank you for your contribution!
v7.74.0
Compare Source
Important Changes
sentryAstro
integration (#9218)This Release introduces the first alpha version of our new SDK for Astro.
At this time, the SDK is considered experimental and things might break and change in future versions.
The core of the SDK is an Astro integration which you easily add to your Astro config:
Check out the README for usage instructions and what to expect from this alpha release.
Other Changes
addIntegration
utility (#9186)continueTrace
method (#9164)VueIntegration
to initialize vue app later (#9180)referrerPolicy
on serverside fetch transports (#9200)init
(#9162)inspector
when needed (#9149)debug
option and instead add logger.isEnabled() (#9230).mjs
and.cjs
extensions from module name (#9231)processEvent
integration hook (#9151)processEvent
(#9021)rethrowAfterCapture
option (#9159)walk
method (#9157)Work in this release contributed by @aldenquimby. Thank you for your contributions!
Bundle size 📦
v7.73.0
Compare Source
Important Changes
This is fully backwards compatible with prior versions of the Replay SDK. The only breaking change that we will making is to not be masking
aria-label
by default. The reason for this change is to align with our core SDK which also does not maskaria-label
. This change also enables better support of searching by clicks.Another change that needs to be highlighted is the 13% bundle size increase. This bundle size increase is necessary to bring improved recording performance and improved replay fidelity, especially in regards to web components and iframes. We will be investigating the reduction of the bundle size in this PR.
Here are benchmarks comparing the version 1 of rrweb to version 2
Other Changes
captureAllExceptions
by default (#9102)tunnel
is considered forisSentryUrl
checks (#9130)RequestAsyncStorage
fallback path (#9126)load
functions (#9071)InboundFilters
integration to useprocessEvent
(#9020)processEvent
(#9019)Work in this release contributed by @vlad-zhukov. Thank you for your contribution!
Bundle size 📦
v7.72.0
Compare Source
Important Changes
This release introduces support for Application Not Responding (ANR) errors for Node.js applications.
These errors are triggered when the Node.js main thread event loop of an application is blocked for more than five seconds.
The Node SDK reports ANR errors as Sentry events and can optionally attach a stacktrace of the blocking code to the ANR event.
To enable ANR detection, import and use the
enableANRDetection
function from the@sentry/node
package before you run the rest of your application code.Any event loop blocking before calling
enableANRDetection
will not be detected by the SDK.Example (ESM):
Example (CJS):
Other Changes
RequestAsyncStorage
locations by locations that webpack will resolve (#9114)replay_id
is not captured when session is expired (#9109)v7.71.0
Compare Source
basename
-prefixed route. (#9076)processEvent
(#9022)Work in this release contributed by @jorrit. Thank you for your contribution!
v7.70.0
Compare Source
Important Changes
This release contains the beta version of
@sentry/bun
, our SDK for the Bun JavaScript runtime! For details on how to use it, please see the README. Any feedback/bug reports are greatly appreciated, please reach out on GitHub.Note that as of now the Bun runtime does not support global error handlers. This is being actively worked on, see the tracking issue in Bun's GitHub repo.
The Sentry Remix SDK now officially supports Remix v2! See our Remix docs for more details.
Other Changes
processEvent
hook onIntegration
(#9017)React.ComponentType
instead ofReact.FC
aswithSentry
's generic type. (#9043)preprocessEvent
hook (#9034)handleErrorWithSentry
type (#9054)Work in this release contributed by @Dima-Dim, @krist7599555 and @lifeiscontent. Thank you for your contributions!
Special thanks for @isaacharrisholt for helping us implement a Vercel Edge Runtime SDK which we use under the hood for our Next.js SDK.
Bundle size 📦
v7.69.0
Compare Source
Important Changes
This release introduces a new set of top level APIs for the Performance Monitoring SDKs. These aim to simplify creating spans and reduce the boilerplate needed for performance instrumentation. The three new methods introduced are
Sentry.startSpan
,Sentry.startInactiveSpan
, andSentry.startSpanManual
. These methods are available in the browser and node SDKs.Sentry.startSpan
wraps a callback in a span. The span is automatically finished when the callback returns. This is the recommended way to create spans.If you don't want the span to finish when the callback returns, use
Sentry.startSpanManual
to control when the span is finished. This is useful for event emitters or similar.Sentry.startSpan
andSentry.startSpanManual
create a span and make it active for the duration of the callback. Any spans created while this active span is running will be added as a child span to it. If you want to create a span without making it active, useSentry.startInactiveSpan
. This is useful for creating parallel spans that are not related to each other.Other Changes
BeforeFinishCallback
type (#8999)LinkedErrors
integration runs before all event processors (#8956)org
,project
andurl
as args to upload script (#8985)ignoreErrors
(#8986)pg
spans (#8993)useRoutes
(#8998)glob
to Remix SDK dependencies. (#8963)handleRecordingEmit
aborts when event is not added (#8938)Work in this release contributed by @Duncanxyz and @malay44. Thank you for your contributions!
v7.68.0
Compare Source
BroadcastChannel
andSharedWorker
to TryCatch EventTargets (#8943)name
toSpan
(#8949)ServerRuntimeClient
(#8930)span.finish()
works as expected (#8947)v7.67.0
Compare Source
Important Changes
TryCatch
integration as unhandled (#8890)HttpClient
andCaptureConsole
integrations as unhandled (#8891)This release fixes inconsistent behaviour of when our SDKs classify captured errors as unhandled.
Previously, some of our instrumentations correctly set unhandled, while others set handled.
Going forward, all errors caught automatically from our SDKs will be marked as unhandled.
If you manually capture errors (e.g. by calling
Sentry.captureException
), your errors will continue to be reported as handled.This change might lead to a decrease in reported crash-free sessions and consequently in your release health score.
If you have concerns about this, feel free to open an issue.
Other Changes
maxReplayDuration
(#8769)BrowserClientOptions
(#8921)wrap
function (#8927)Work in this release contributed by @SorsOps. Thank you for your contribution!
v7.66.0
Compare Source
package.json
exports (#8895)origin
to spans (#8765)v7.65.0
Compare Source
@sentry/vite-plugin
(#8877)Sentry.startActiveSpan
andSentry.startSpan
(#8803)AsyncLocalStorage
instance (#8831)requestAsyncStorageShim
path resolution on windows (#8875)OnUncaughtException
(#8876)wrapServerLoadWithSentry
(#8801)tracePropagationTargets
inBrowserTracing
(#8874)v7.64.0
Compare Source
v7.63.0
Compare Source
exceptionFromError
for use in hybrid SDKs (#8766)autoInstrumentServerFunctions
andautoInstrumentAppDirectory
(#8781)hasCheckout
handling (#8782)v7.62.0
Compare Source
Important Changes
ContextLines
integration for html-embedded JS stack frames (#8699)This release adds the
ContextLines
integration as an optional integration for the Browser SDKs to@sentry/integrations
.This integration adds source code from inline JavaScript of the current page's HTML (e.g. JS in
<script>
tags) to stack traces of captured errors.It can't collect source code from assets referenced by your HTML (e.g.
<script src="..." />
).The
ContextLines
integration is useful when you have inline JS code in HTML pages that can't be accessed by Sentry's backend, for example, due to a login-protected page.Other Changes
dirname
andbasename
should handle Windows paths (#8737)flush
,close
, andlastEventId
into@sentry/core
(#8731)JSON.stringify
on prisma client when logging (#8745)v7.61.1
Compare Source
AsyncLocalStorage
async context strategy to edge SDK (#8720)ContextLines
integration (#8715)pre_context
andcontext_line
overlap if frame lineno is out of bounds (#8722)v7.61.0
Compare Source
Important Changes
@sentry/node-experimental
package as MVP for POTEL (#8609)This introduces a new, experimental package,
@sentry/node-experimental
.This is a variant of the Node SDK which uses OpenTelemetry under the hood for performance instrumentation.
Note that this package is very much WIP, considered unstable and may change at any time.
No SemVer guarantees apply whatsoever. Still, if you're brave enough you can give it a try.
Read more about @sentry/node-experimental
Other Changes
v7.60.1
Compare Source
shift
pressed (#8648)session.started
for min/max duration check (#8617)v7.60.0
Compare Source
Important Changes
We will not send replays that are <5s long anymore. Additionally, we also added further safeguards to avoid overly long (>1h) replays.
You can optionally configure the min. replay duration (defaults to 5s):
Other Changes
v7.59.3
Compare Source
Configuration
📅 Schedule: Branch creation - "" in timezone Europe/Paris, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.