getsentry/sentry-javascript (@sentry/node)
### [`v7.68.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7680)
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.67.0...7.68.0)
- feat(browser): Add `BroadcastChannel` and `SharedWorker` to TryCatch EventTargets ([#8943](https://togithub.com/getsentry/sentry-javascript/issues/8943))
- feat(core): Add `name` to `Span` ([#8949](https://togithub.com/getsentry/sentry-javascript/issues/8949))
- feat(core): Add `ServerRuntimeClient` ([#8930](https://togithub.com/getsentry/sentry-javascript/issues/8930))
- fix(node-experimental): Ensure `span.finish()` works as expected ([#8947](https://togithub.com/getsentry/sentry-javascript/issues/8947))
- fix(remix): Add new sourcemap-upload script files to prepack assets. ([#8948](https://togithub.com/getsentry/sentry-javascript/issues/8948))
- fix(publish): Publish downleveled TS3.8 types and fix types path ([#8954](https://togithub.com/getsentry/sentry-javascript/issues/8954))
### [`v7.67.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7670)
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.66.0...7.67.0)
##### Important Changes
- **feat: Mark errors caught by the SDK as unhandled**
- feat(browser): Mark errors caught from `TryCatch` integration as unhandled ([#8890](https://togithub.com/getsentry/sentry-javascript/issues/8890))
- feat(integrations): Mark errors caught from `HttpClient` and `CaptureConsole` integrations as unhandled ([#8891](https://togithub.com/getsentry/sentry-javascript/issues/8891))
- feat(nextjs): Mark errors caught from NextJS wrappers as unhandled ([#8893](https://togithub.com/getsentry/sentry-javascript/issues/8893))
- feat(react): Mark errors captured from ErrorBoundary as unhandled ([#8914](https://togithub.com/getsentry/sentry-javascript/issues/8914))
- feat(remix): Add debugid injection and map deletion to sourcemaps script ([#8814](https://togithub.com/getsentry/sentry-javascript/issues/8814))
- feat(remix): Mark errors caught from Remix instrumentation as unhandled ([#8894](https://togithub.com/getsentry/sentry-javascript/issues/8894))
- feat(serverless): Mark errors caught in Serverless handlers as unhandled ([#8907](https://togithub.com/getsentry/sentry-javascript/issues/8907))
- feat(vue): Mark errors caught by Vue wrappers as unhandled ([#8905](https://togithub.com/getsentry/sentry-javascript/issues/8905))
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
- feat(node-experimental): Implement new performance APIs ([#8911](https://togithub.com/getsentry/sentry-javascript/issues/8911))
- feat(node-experimental): Sync OTEL context with Sentry AsyncContext ([#8797](https://togithub.com/getsentry/sentry-javascript/issues/8797))
- feat(replay): Allow to configure `maxReplayDuration` ([#8769](https://togithub.com/getsentry/sentry-javascript/issues/8769))
- fix(browser): Add replay and profiling options to `BrowserClientOptions` ([#8921](https://togithub.com/getsentry/sentry-javascript/issues/8921))
- fix(browser): Check for existence of instrumentation targets ([#8939](https://togithub.com/getsentry/sentry-javascript/issues/8939))
- fix(nextjs): Don't re-export default in route handlers ([#8924](https://togithub.com/getsentry/sentry-javascript/issues/8924))
- fix(node): Improve mysql integration ([#8923](https://togithub.com/getsentry/sentry-javascript/issues/8923))
- fix(remix): Guard against missing default export for server instrument ([#8909](https://togithub.com/getsentry/sentry-javascript/issues/8909))
- ref(browser): Deprecate top-level `wrap` function ([#8927](https://togithub.com/getsentry/sentry-javascript/issues/8927))
- ref(node-otel): Avoid exporting internals & refactor attribute adding ([#8920](https://togithub.com/getsentry/sentry-javascript/issues/8920))
Work in this release contributed by [@SorsOps](https://togithub.com/SorsOps). Thank you for your contribution!
### [`v7.66.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7660)
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.65.0...7.66.0)
- fix: Defer tracing decision to downstream SDKs when using SDK without performance ([#8839](https://togithub.com/getsentry/sentry-javascript/issues/8839))
- fix(nextjs): Fix `package.json` exports ([#8895](https://togithub.com/getsentry/sentry-javascript/issues/8895))
- fix(sveltekit): Ensure target file exists before applying auto instrumentation ([#8881](https://togithub.com/getsentry/sentry-javascript/issues/8881))
- ref: Use consistent console instrumentation ([#8879](https://togithub.com/getsentry/sentry-javascript/issues/8879))
- ref(browser): Refactor sentry breadcrumb to use hook ([#8892](https://togithub.com/getsentry/sentry-javascript/issues/8892))
- ref(tracing): Add `origin` to spans ([#8765](https://togithub.com/getsentry/sentry-javascript/issues/8765))
### [`v7.65.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7650)
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.64.0...7.65.0)
- build: Remove build-specific polyfills ([#8809](https://togithub.com/getsentry/sentry-javascript/issues/8809))
- build(deps): bump protobufjs from 6.11.3 to 6.11.4 ([#8822](https://togithub.com/getsentry/sentry-javascript/issues/8822))
- deps(sveltekit): Bump `@sentry/vite-plugin` ([#8877](https://togithub.com/getsentry/sentry-javascript/issues/8877))
- feat(core): Introduce `Sentry.startActiveSpan` and `Sentry.startSpan` ([#8803](https://togithub.com/getsentry/sentry-javascript/issues/8803))
- fix: Memoize `AsyncLocalStorage` instance ([#8831](https://togithub.com/getsentry/sentry-javascript/issues/8831))
- fix(nextjs): Check for validity of API route handler signature ([#8811](https://togithub.com/getsentry/sentry-javascript/issues/8811))
- fix(nextjs): Fix `requestAsyncStorageShim` path resolution on windows ([#8875](https://togithub.com/getsentry/sentry-javascript/issues/8875))
- fix(node): Log entire error object in `OnUncaughtException` ([#8876](https://togithub.com/getsentry/sentry-javascript/issues/8876))
- fix(node): More relevant warning message when tracing extensions are missing ([#8820](https://togithub.com/getsentry/sentry-javascript/issues/8820))
- fix(replay): Streamline session creation/refresh ([#8813](https://togithub.com/getsentry/sentry-javascript/issues/8813))
- fix(sveltekit): Avoid invalidating data on route changes in `wrapServerLoadWithSentry` ([#8801](https://togithub.com/getsentry/sentry-javascript/issues/8801))
- fix(tracing): Better guarding for performance observer ([#8872](https://togithub.com/getsentry/sentry-javascript/issues/8872))
- ref(sveltekit): Remove custom client fetch instrumentation and use default instrumentation ([#8802](https://togithub.com/getsentry/sentry-javascript/issues/8802))
- ref(tracing-internal): Deprecate `tracePropagationTargets` in `BrowserTracing` ([#8874](https://togithub.com/getsentry/sentry-javascript/issues/8874))
### [`v7.64.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7640)
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.63.0...7.64.0)
- feat(core): Add setMeasurement export ([#8791](https://togithub.com/getsentry/sentry-javascript/issues/8791))
- fix(nextjs): Check for existence of default export when wrapping pages ([#8794](https://togithub.com/getsentry/sentry-javascript/issues/8794))
- fix(nextjs): Ensure imports are valid relative paths ([#8799](https://togithub.com/getsentry/sentry-javascript/issues/8799))
- fix(nextjs): Only re-export default export if it exists ([#8800](https://togithub.com/getsentry/sentry-javascript/issues/8800))
### [`v7.63.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7630)
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.62.0...7.63.0)
- build(deps): bump [@opentelemetry/instrumentation](https://togithub.com/opentelemetry/instrumentation) from 0.41.0 to 0.41.2
- feat(eventbuilder): Export `exceptionFromError` for use in hybrid SDKs ([#8766](https://togithub.com/getsentry/sentry-javascript/issues/8766))
- feat(node-experimental): Re-export from node ([#8786](https://togithub.com/getsentry/sentry-javascript/issues/8786))
- feat(tracing): Add db connection attributes for mysql spans ([#8775](https://togithub.com/getsentry/sentry-javascript/issues/8775))
- feat(tracing): Add db connection attributes for postgres spans ([#8778](https://togithub.com/getsentry/sentry-javascript/issues/8778))
- feat(tracing): Improve data collection for mongodb spans ([#8774](https://togithub.com/getsentry/sentry-javascript/issues/8774))
- fix(nextjs): Execute sentry config independently of `autoInstrumentServerFunctions` and `autoInstrumentAppDirectory` ([#8781](https://togithub.com/getsentry/sentry-javascript/issues/8781))
- fix(replay): Ensure we do not flush if flush took too long ([#8784](https://togithub.com/getsentry/sentry-javascript/issues/8784))
- fix(replay): Ensure we do not try to flush when we force stop replay ([#8783](https://togithub.com/getsentry/sentry-javascript/issues/8783))
- fix(replay): Fix `hasCheckout` handling ([#8782](https://togithub.com/getsentry/sentry-javascript/issues/8782))
- fix(replay): Handle multiple clicks in a short time ([#8773](https://togithub.com/getsentry/sentry-javascript/issues/8773))
- ref(replay): Skip events being added too long after initial segment ([#8768](https://togithub.com/getsentry/sentry-javascript/issues/8768))
### [`v7.62.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7620)
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.61.1...7.62.0)
##### Important Changes
- **feat(integrations): Add `ContextLines` integration for html-embedded JS stack frames ([#8699](https://togithub.com/getsentry/sentry-javascript/issues/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 ` Githubissues.
Githubissues is a development platform for aggregating issues.
This PR contains the following updates:
6.14.3
->7.68.0
Release Notes
getsentry/sentry-javascript (@sentry/node)
### [`v7.68.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7680) [Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.67.0...7.68.0) - feat(browser): Add `BroadcastChannel` and `SharedWorker` to TryCatch EventTargets ([#8943](https://togithub.com/getsentry/sentry-javascript/issues/8943)) - feat(core): Add `name` to `Span` ([#8949](https://togithub.com/getsentry/sentry-javascript/issues/8949)) - feat(core): Add `ServerRuntimeClient` ([#8930](https://togithub.com/getsentry/sentry-javascript/issues/8930)) - fix(node-experimental): Ensure `span.finish()` works as expected ([#8947](https://togithub.com/getsentry/sentry-javascript/issues/8947)) - fix(remix): Add new sourcemap-upload script files to prepack assets. ([#8948](https://togithub.com/getsentry/sentry-javascript/issues/8948)) - fix(publish): Publish downleveled TS3.8 types and fix types path ([#8954](https://togithub.com/getsentry/sentry-javascript/issues/8954)) ### [`v7.67.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7670) [Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.66.0...7.67.0) ##### Important Changes - **feat: Mark errors caught by the SDK as unhandled** - feat(browser): Mark errors caught from `TryCatch` integration as unhandled ([#8890](https://togithub.com/getsentry/sentry-javascript/issues/8890)) - feat(integrations): Mark errors caught from `HttpClient` and `CaptureConsole` integrations as unhandled ([#8891](https://togithub.com/getsentry/sentry-javascript/issues/8891)) - feat(nextjs): Mark errors caught from NextJS wrappers as unhandled ([#8893](https://togithub.com/getsentry/sentry-javascript/issues/8893)) - feat(react): Mark errors captured from ErrorBoundary as unhandled ([#8914](https://togithub.com/getsentry/sentry-javascript/issues/8914)) - feat(remix): Add debugid injection and map deletion to sourcemaps script ([#8814](https://togithub.com/getsentry/sentry-javascript/issues/8814)) - feat(remix): Mark errors caught from Remix instrumentation as unhandled ([#8894](https://togithub.com/getsentry/sentry-javascript/issues/8894)) - feat(serverless): Mark errors caught in Serverless handlers as unhandled ([#8907](https://togithub.com/getsentry/sentry-javascript/issues/8907)) - feat(vue): Mark errors caught by Vue wrappers as unhandled ([#8905](https://togithub.com/getsentry/sentry-javascript/issues/8905)) 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 - feat(node-experimental): Implement new performance APIs ([#8911](https://togithub.com/getsentry/sentry-javascript/issues/8911)) - feat(node-experimental): Sync OTEL context with Sentry AsyncContext ([#8797](https://togithub.com/getsentry/sentry-javascript/issues/8797)) - feat(replay): Allow to configure `maxReplayDuration` ([#8769](https://togithub.com/getsentry/sentry-javascript/issues/8769)) - fix(browser): Add replay and profiling options to `BrowserClientOptions` ([#8921](https://togithub.com/getsentry/sentry-javascript/issues/8921)) - fix(browser): Check for existence of instrumentation targets ([#8939](https://togithub.com/getsentry/sentry-javascript/issues/8939)) - fix(nextjs): Don't re-export default in route handlers ([#8924](https://togithub.com/getsentry/sentry-javascript/issues/8924)) - fix(node): Improve mysql integration ([#8923](https://togithub.com/getsentry/sentry-javascript/issues/8923)) - fix(remix): Guard against missing default export for server instrument ([#8909](https://togithub.com/getsentry/sentry-javascript/issues/8909)) - ref(browser): Deprecate top-level `wrap` function ([#8927](https://togithub.com/getsentry/sentry-javascript/issues/8927)) - ref(node-otel): Avoid exporting internals & refactor attribute adding ([#8920](https://togithub.com/getsentry/sentry-javascript/issues/8920)) Work in this release contributed by [@SorsOps](https://togithub.com/SorsOps). Thank you for your contribution! ### [`v7.66.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7660) [Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.65.0...7.66.0) - fix: Defer tracing decision to downstream SDKs when using SDK without performance ([#8839](https://togithub.com/getsentry/sentry-javascript/issues/8839)) - fix(nextjs): Fix `package.json` exports ([#8895](https://togithub.com/getsentry/sentry-javascript/issues/8895)) - fix(sveltekit): Ensure target file exists before applying auto instrumentation ([#8881](https://togithub.com/getsentry/sentry-javascript/issues/8881)) - ref: Use consistent console instrumentation ([#8879](https://togithub.com/getsentry/sentry-javascript/issues/8879)) - ref(browser): Refactor sentry breadcrumb to use hook ([#8892](https://togithub.com/getsentry/sentry-javascript/issues/8892)) - ref(tracing): Add `origin` to spans ([#8765](https://togithub.com/getsentry/sentry-javascript/issues/8765)) ### [`v7.65.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7650) [Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.64.0...7.65.0) - build: Remove build-specific polyfills ([#8809](https://togithub.com/getsentry/sentry-javascript/issues/8809)) - build(deps): bump protobufjs from 6.11.3 to 6.11.4 ([#8822](https://togithub.com/getsentry/sentry-javascript/issues/8822)) - deps(sveltekit): Bump `@sentry/vite-plugin` ([#8877](https://togithub.com/getsentry/sentry-javascript/issues/8877)) - feat(core): Introduce `Sentry.startActiveSpan` and `Sentry.startSpan` ([#8803](https://togithub.com/getsentry/sentry-javascript/issues/8803)) - fix: Memoize `AsyncLocalStorage` instance ([#8831](https://togithub.com/getsentry/sentry-javascript/issues/8831)) - fix(nextjs): Check for validity of API route handler signature ([#8811](https://togithub.com/getsentry/sentry-javascript/issues/8811)) - fix(nextjs): Fix `requestAsyncStorageShim` path resolution on windows ([#8875](https://togithub.com/getsentry/sentry-javascript/issues/8875)) - fix(node): Log entire error object in `OnUncaughtException` ([#8876](https://togithub.com/getsentry/sentry-javascript/issues/8876)) - fix(node): More relevant warning message when tracing extensions are missing ([#8820](https://togithub.com/getsentry/sentry-javascript/issues/8820)) - fix(replay): Streamline session creation/refresh ([#8813](https://togithub.com/getsentry/sentry-javascript/issues/8813)) - fix(sveltekit): Avoid invalidating data on route changes in `wrapServerLoadWithSentry` ([#8801](https://togithub.com/getsentry/sentry-javascript/issues/8801)) - fix(tracing): Better guarding for performance observer ([#8872](https://togithub.com/getsentry/sentry-javascript/issues/8872)) - ref(sveltekit): Remove custom client fetch instrumentation and use default instrumentation ([#8802](https://togithub.com/getsentry/sentry-javascript/issues/8802)) - ref(tracing-internal): Deprecate `tracePropagationTargets` in `BrowserTracing` ([#8874](https://togithub.com/getsentry/sentry-javascript/issues/8874)) ### [`v7.64.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7640) [Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.63.0...7.64.0) - feat(core): Add setMeasurement export ([#8791](https://togithub.com/getsentry/sentry-javascript/issues/8791)) - fix(nextjs): Check for existence of default export when wrapping pages ([#8794](https://togithub.com/getsentry/sentry-javascript/issues/8794)) - fix(nextjs): Ensure imports are valid relative paths ([#8799](https://togithub.com/getsentry/sentry-javascript/issues/8799)) - fix(nextjs): Only re-export default export if it exists ([#8800](https://togithub.com/getsentry/sentry-javascript/issues/8800)) ### [`v7.63.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7630) [Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.62.0...7.63.0) - build(deps): bump [@opentelemetry/instrumentation](https://togithub.com/opentelemetry/instrumentation) from 0.41.0 to 0.41.2 - feat(eventbuilder): Export `exceptionFromError` for use in hybrid SDKs ([#8766](https://togithub.com/getsentry/sentry-javascript/issues/8766)) - feat(node-experimental): Re-export from node ([#8786](https://togithub.com/getsentry/sentry-javascript/issues/8786)) - feat(tracing): Add db connection attributes for mysql spans ([#8775](https://togithub.com/getsentry/sentry-javascript/issues/8775)) - feat(tracing): Add db connection attributes for postgres spans ([#8778](https://togithub.com/getsentry/sentry-javascript/issues/8778)) - feat(tracing): Improve data collection for mongodb spans ([#8774](https://togithub.com/getsentry/sentry-javascript/issues/8774)) - fix(nextjs): Execute sentry config independently of `autoInstrumentServerFunctions` and `autoInstrumentAppDirectory` ([#8781](https://togithub.com/getsentry/sentry-javascript/issues/8781)) - fix(replay): Ensure we do not flush if flush took too long ([#8784](https://togithub.com/getsentry/sentry-javascript/issues/8784)) - fix(replay): Ensure we do not try to flush when we force stop replay ([#8783](https://togithub.com/getsentry/sentry-javascript/issues/8783)) - fix(replay): Fix `hasCheckout` handling ([#8782](https://togithub.com/getsentry/sentry-javascript/issues/8782)) - fix(replay): Handle multiple clicks in a short time ([#8773](https://togithub.com/getsentry/sentry-javascript/issues/8773)) - ref(replay): Skip events being added too long after initial segment ([#8768](https://togithub.com/getsentry/sentry-javascript/issues/8768)) ### [`v7.62.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7620) [Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.61.1...7.62.0) ##### Important Changes - **feat(integrations): Add `ContextLines` integration for html-embedded JS stack frames ([#8699](https://togithub.com/getsentry/sentry-javascript/issues/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 ` Githubissues.