Releases: getsentry/sentry-javascript
7.116.0
This release publishes a new AWS Lambda layer under the name SentryNodeServerlessSDKv7
that users still running v7 can
use instead of pinning themselves to SentryNodeServerlessSDK:235
.
Bundle size 📦
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.83 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 71.77 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 76.02 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 65.38 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 35.64 KB |
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) | 35.53 KB |
@sentry/browser (incl. Feedback) - Webpack (gzipped) | 31.6 KB |
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) | 31.61 KB |
@sentry/browser - Webpack (gzipped) | 22.78 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 79.04 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.37 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.05 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 25.28 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 221.49 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.08 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 75.81 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.33 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 72.27 KB |
@sentry/react - Webpack (gzipped) | 22.81 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.03 KB |
@sentry/nextjs Client - Webpack (gzipped) | 54.15 KB |
@sentry-internal/feedback - Webpack (gzipped) | 17.34 KB |
8.2.1
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.72 KB |
@sentry/browser (incl. Tracing) | 32.86 KB |
@sentry/browser (incl. Tracing, Replay) | 68.21 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.6 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.25 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.25 KB |
@sentry/browser (incl. Feedback) | 37.68 KB |
@sentry/browser (incl. sendFeedback) | 26.29 KB |
@sentry/browser (incl. FeedbackAsync) | 30.66 KB |
@sentry/react | 24.41 KB |
@sentry/react (incl. Tracing) | 35.85 KB |
@sentry/vue | 25.65 KB |
@sentry/vue (incl. Tracing) | 34.68 KB |
@sentry/svelte | 21.86 KB |
CDN Bundle | 24.26 KB |
CDN Bundle (incl. Tracing) | 34.29 KB |
CDN Bundle (incl. Tracing, Replay) | 67.99 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 72.95 KB |
CDN Bundle - uncompressed | 71.33 KB |
CDN Bundle (incl. Tracing) - uncompressed | 101.68 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 211.3 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 223.6 KB |
@sentry/nextjs (client) | 35.07 KB |
@sentry/sveltekit (client) | 33.44 KB |
@sentry/node | 141.32 KB |
@sentry/aws-serverless | 128.07 KB |
8.2.0
- feat(redis-cache): Create cache-span with prefixed keys (get/set commands) (#12070)
- feat(core): Add
beforeSendSpan
hook (#11886) - feat(browser): Improve idle span handling (#12065)
- fix(node): Set transactionName for unsampled spans in httpIntegration (#12071)
- fix(core): Export Scope interface as
Scope
(#12067) - fix(core): Avoid looking up client for
hasTracingEnabled()
if possible (#12066) - fix(browser): Use consistent timestamps (#12063)
- fix(node): Fix check for performance integrations (#12043)
- ref(sveltekit): Warn to delete source maps if Sentry plugin enabled source maps generation (#12072)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.72 KB |
@sentry/browser (incl. Tracing) | 32.86 KB |
@sentry/browser (incl. Tracing, Replay) | 68.21 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.6 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.25 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.25 KB |
@sentry/browser (incl. Feedback) | 37.68 KB |
@sentry/browser (incl. sendFeedback) | 26.29 KB |
@sentry/browser (incl. FeedbackAsync) | 30.66 KB |
@sentry/react | 24.41 KB |
@sentry/react (incl. Tracing) | 35.85 KB |
@sentry/vue | 25.65 KB |
@sentry/vue (incl. Tracing) | 34.68 KB |
@sentry/svelte | 21.86 KB |
CDN Bundle | 24.26 KB |
CDN Bundle (incl. Tracing) | 34.29 KB |
CDN Bundle (incl. Tracing, Replay) | 67.99 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 72.95 KB |
CDN Bundle - uncompressed | 71.33 KB |
CDN Bundle (incl. Tracing) - uncompressed | 101.68 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 211.3 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 223.6 KB |
@sentry/nextjs (client) | 35.07 KB |
@sentry/sveltekit (client) | 33.44 KB |
@sentry/node | 141.32 KB |
@sentry/aws-serverless | 128.08 KB |
8.1.0
This release mainly fixes a couple of bugs from the initial 8.0.0 release. In addition to the changes below, we
updated some initially missed points in our migration guides and documentation.
- feat(aws-serverless): Fix tree-shaking for aws-serverless package (#12017)
- feat(node): Bump opentelemetry instrumentation to latest version (#12028)
- feat(scope): Bring back
lastEventId
on isolation scope (#11951) (#12022) - fix(aws-serverless): Export
awslambda-auto
- fix(node): Do not warn for missing instrumentation if SDK is disabled (#12041)
- fix(react): Set dependency-injected functions as early as possible (#12019)
- fix(react): Warn and fall back gracefully if dependency injected functions are not available (#12026)
- ref(core): Streamline
parseSampleRate
utility function (#12024) - ref(feedback): Make
eventId
optional and uselastEventId
in report dialog (#12029)
7.115.0
- feat(v7): Add support for global onUnhandled Error/Promise for Bun (#11959)
- fix(replay/v7): Fix user activity not being updated in
start()
(#12003) - ref(api): Remove
lastEventId
deprecation warnings (#12042)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 80.83 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 71.77 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) | 76.02 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 65.38 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 35.64 KB |
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) | 35.53 KB |
@sentry/browser (incl. Feedback) - Webpack (gzipped) | 31.6 KB |
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) | 31.61 KB |
@sentry/browser - Webpack (gzipped) | 22.78 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 79.04 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 70.37 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 36.05 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 25.28 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 221.49 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 109.08 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 75.81 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 39.33 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 72.27 KB |
@sentry/react - Webpack (gzipped) | 22.81 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 90.03 KB |
@sentry/nextjs Client - Webpack (gzipped) | 54.15 KB |
@sentry-internal/feedback - Webpack (gzipped) | 17.34 KB |
8.0.0
The Sentry JS SDK team is proud to announce the release of version 8.0.0
of Sentry's JavaScript SDKs - it's been a
long time coming! Thanks to everyone for your patience and a special shout out to the brave souls testing preview builds
and reporting issues - we appreciate your support!
How to Upgrade to Version 8:
We recommend reading the
migration guide docs to find out
how to address any breaking changes in your code for your specific platform or framework.
To automate upgrading to v8 as much as possible, use our migration codemod @sentry/migr8
:
npx @sentry/migr8@latest
All deprecations from the v7 cycle, with the exception of getCurrentHub()
, have been removed and can no longer be used
in v8. If you have an advanced Sentry SDK setup, we additionally recommend reading the
in-depth migration guide in our repo which highlights all changes with additional details and
information.
The rest of this changelog highlights the most important (breaking) changes and links to more detailed information.
Version Support
With v8, we dropped support for several old runtimes and browsers
Node SDKs: The Sentry JavaScript SDK v8 now supports Node.js 14.8.0 or higher. This applies to @sentry/node
and all of our node-based server-side sdks (@sentry/nextjs
, @sentry/remix
, etc.). Furthermore, version 8 now ships
with full support for ESM-based node apps using Node.js 18.19.0 or higher.
Browser SDKs: The browser SDKs now require
ES2018+
compatible browsers. New minimum browser versions:
- Chrome 63
- Edge 79
- Safari/iOS Safari 12
- Firefox 58
- Opera 50
- Samsung Internet 8.2
For more details, please see the
version support section in our migration guide.
Initializing Server-side SDKs (Node, Bun, Deno, Serverless):
In v8, we support a lot more node-based packages than before. In order to ensure auto-instrumentation works, the SDK now
needs to be imported and initialized before any other import in your code.
We recommend creating a new file (e.g. instrumentation.js
) to import and initialize the SDK. Then, import the file on
top of your entry file or detailed instructions, check our updated SDK setup docs
initializing the SDK in v8.
Performance Monitoring Changes
The API around performance monitoring and tracing has been streamlined, and we've added support for more integrations
out of the box.
Functional Integrations
Integrations are now simple functions instead of classes. Class-based integrations
have been removed:
// old (v7)
Sentry.init({
integrations: [new Sentry.BrowserTracing()],
});
// new (v8)
Sentry.init({
integrations: [Sentry.browserTracingIntegration()],
});
Package removal
The following packages have been removed or replaced and will no longer be published:
Changes since 8.0.0-rc.3
-
feat(nextjs): Remove
transpileClientSDK
(#11978)As we are dropping support for Internet Explorer 11 and other other older browser versions wih version
8.0.0
, we are
also removing thetranspileClientSDK
option from the Next.js SDK. If you need to support these browser versions,
please configure Webpack and Next.js to down-compile the SDK. -
feat(serverless): Do not include performance integrations by default (#11998)
To keep Lambda bundle size reasonable, the SDK no longer ships with all performance (database) integrations by
default. Add the Sentry integrations of the databases and other tools you're using manually to yourSentry.init
call
by following
this guide.
Note that this change does not apply if you use the SDK with the Sentry AWS Lambda layer. -
feat(feedback): Simplify public css configuration for feedback (#11985)
-
fix(feedback): Check for empty user (#11993)
-
fix(replay): Fix type for
replayCanvasIntegration
(#11995) -
fix(replay): Fix user activity not being updated in
start()
(#12001)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.65 KB |
@sentry/browser (incl. Tracing) | 32.69 KB |
@sentry/browser (incl. Tracing, Replay) | 68.03 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.43 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.07 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.08 KB |
@sentry/browser (incl. Feedback) | 37.57 KB |
@sentry/browser (incl. sendFeedback) | 26.21 KB |
@sentry/browser (incl. FeedbackAsync) | 30.57 KB |
@sentry/react | 24.33 KB |
@sentry/react (incl. Tracing) | 35.64 KB |
@sentry/vue | 25.48 KB |
@sentry/vue (incl. Tracing) | 34.48 KB |
@sentry/svelte | 21.77 KB |
CDN Bundle | 24.13 KB |
CDN Bundle (incl. Tracing) | 34.06 KB |
CDN Bundle (incl. Tracing, Replay) | 67.73 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 72.71 KB |
CDN Bundle - uncompressed | 70.98 KB |
CDN Bundle (incl. Tracing) - uncompressed | 101.02 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.64 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 222.94 KB |
@sentry/nextjs (client) | 34.88 KB |
@sentry/sveltekit (client) | 33.25 KB |
@sentry/node | 147.42 KB |
8.0.0-rc.3
Important Changes
- feat(bun): Add Bun Global Unhandled Handlers (#11960)
The Bun SDK will now capture global unhandled errors.
Other Changes
- feat(node): Log process and thread info on initialisation (#11972)
- fix(aws-serverless): Include ESM artifacts in package (#11973)
- fix(browser): Only start
http.client
spans if there is an active parent span (#11974) - fix(feedback): Improve CSS theme variable names and layout (#11964)
- fix(node): Ensure
execArgv
are not sent to worker threads (#11963) - ref(feedback): Simplify feedback function params (#11957)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.65 KB |
@sentry/browser (incl. Tracing) | 32.69 KB |
@sentry/browser (incl. Tracing, Replay) | 68.03 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.43 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.07 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.26 KB |
@sentry/browser (incl. Feedback) | 37.76 KB |
@sentry/browser (incl. sendFeedback) | 26.21 KB |
@sentry/browser (incl. FeedbackAsync) | 30.77 KB |
@sentry/react | 24.33 KB |
@sentry/react (incl. Tracing) | 35.66 KB |
@sentry/vue | 25.48 KB |
@sentry/vue (incl. Tracing) | 34.49 KB |
@sentry/svelte | 21.78 KB |
CDN Bundle | 24.13 KB |
CDN Bundle (incl. Tracing) | 34.06 KB |
CDN Bundle (incl. Tracing, Replay) | 67.73 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 72.88 KB |
CDN Bundle - uncompressed | 70.99 KB |
CDN Bundle (incl. Tracing) - uncompressed | 101.03 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.64 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 223.64 KB |
@sentry/nextjs (client) | 34.88 KB |
@sentry/sveltekit (client) | 33.26 KB |
@sentry/node | 147.43 KB |
8.0.0-rc.2
Important Changes
- feat(node): Register ESM patching hooks in init for supported Node.js versions
This release includes adds support for ESM when Sentry.init()
is called within a module imported via the --import
Node.js flag:
node --import ./your-file-with-sentry-init.mjs your-app.mjs
Note that the SDK only supports ESM for node versions 18.19.0
and above, and 20.6.0
above.
Other Changes
- deps(node): Bump
@opentelemetry/core
to1.24.1
and@opentelemetry/instrumentation
to0.51.1
(#11941) - feat(connect): Warn if connect is not instrumented (#11936)
- feat(express): Warn if express is not instrumented (#11930)
- feat(fastify): Warn if fastify is not instrumented (#11917)
- feat(hapi): Warn if hapi is not instrumented (#11937)
- feat(koa): Warn if koa is not instrumented (#11931)
- fix(browser): Continuously record CLS web vital (#11934)
- fix(feedback): Pick user from any scope (#11928)
- fix(node): Fix cron instrumentation and add tests (#11811)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.65 KB |
@sentry/browser (incl. Tracing) | 32.68 KB |
@sentry/browser (incl. Tracing, Replay) | 68.02 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.42 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.06 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.15 KB |
@sentry/browser (incl. Feedback) | 37.66 KB |
@sentry/browser (incl. sendFeedback) | 26.21 KB |
@sentry/browser (incl. FeedbackAsync) | 30.84 KB |
@sentry/react | 24.33 KB |
@sentry/react (incl. Tracing) | 35.64 KB |
@sentry/vue | 25.48 KB |
@sentry/vue (incl. Tracing) | 34.47 KB |
@sentry/svelte | 21.78 KB |
CDN Bundle | 24.13 KB |
CDN Bundle (incl. Tracing) | 34.05 KB |
CDN Bundle (incl. Tracing, Replay) | 67.72 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 72.93 KB |
CDN Bundle - uncompressed | 70.99 KB |
CDN Bundle (incl. Tracing) - uncompressed | 101 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.61 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 223.89 KB |
@sentry/nextjs (client) | 34.87 KB |
@sentry/sveltekit (client) | 33.24 KB |
@sentry/node | 147.35 KB |
7.114.0
Important Changes
- fix(browser/v7): Continuously record CLS (#11935)
This release fixes a bug that caused the cumulative layout shift (CLS) web vital not to be reported in a majority of the
cases where it should have been reported. With this change, the CLS web vital should now always be reported for
pageloads with layout shift. If a pageload did not have layout shift, no CLS web vital should be reported.
Please note that upgrading the SDK to this version may cause data in your dashboards to drastically change.
Other Changes
8.0.0-rc.1
This release contains no changes and was done for technical purposes. This version is considered stable.
For the sake of completeness this changelog entry includes the changes from the previous release candidate:
We recommend to read the detailed migration guide in
the docs.
Important Changes
- feat(node): Support hapi v21 & fix E2E test (#11906)
We now support hapi v21 and added tests for it.
- feat(node): Warn if ESM mode is detected (#11914)
When running Sentry in ESM mode, we will now warn you that this is not supported as of now. We are working on ensuring
support with ESM builds.
Other Changes
- feat(feedback): Iterate on css for better scrolling & resizing when browser is small (#11893)
- fix(node): Ensure prisma integration creates valid DB spans (#11908)
- fix(node): Include loader hook files in package.json (#11911)
Bundle size 📦
Path | Size |
---|---|
@sentry/browser | 21.65 KB |
@sentry/browser (incl. Tracing) | 32.67 KB |
@sentry/browser (incl. Tracing, Replay) | 68.01 KB |
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 61.41 KB |
@sentry/browser (incl. Tracing, Replay with Canvas) | 72.05 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) | 84.15 KB |
@sentry/browser (incl. Feedback) | 37.66 KB |
@sentry/browser (incl. sendFeedback) | 26.21 KB |
@sentry/browser (incl. FeedbackAsync) | 30.84 KB |
@sentry/react | 24.33 KB |
@sentry/react (incl. Tracing) | 35.63 KB |
@sentry/vue | 25.48 KB |
@sentry/vue (incl. Tracing) | 34.46 KB |
@sentry/svelte | 21.78 KB |
CDN Bundle | 24.13 KB |
CDN Bundle (incl. Tracing) | 34.04 KB |
CDN Bundle (incl. Tracing, Replay) | 67.71 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) | 72.92 KB |
CDN Bundle - uncompressed | 70.99 KB |
CDN Bundle (incl. Tracing) - uncompressed | 100.98 KB |
CDN Bundle (incl. Tracing, Replay) - uncompressed | 210.58 KB |
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 223.87 KB |
@sentry/nextjs (client) | 34.86 KB |
@sentry/sveltekit (client) | 33.23 KB |
@sentry/node | 146.27 KB |