Important Changes
Deprecations
This release deprecates configureScope
, pushScope
, and popScope
, which will be removed in the upcoming v8 major release.
Hapi Integration
- feat(node): Add Hapi Integration (#9539)
This release adds an integration for Hapi. It can be used as follows:
const Sentry = require('@sentry/node');
const Hapi = require('@hapi/hapi');
const init = async () => {
const server = Hapi.server({
// your server configuration ...
});
Sentry.init({
dsn: '__DSN__',
tracesSampleRate: 1.0,
integrations: [
new Sentry.Integrations.Hapi({ server }),
],
});
server.route({
// your route configuration ...
});
await server.start();
};
SvelteKit 2.0
- chore(sveltekit): Add SvelteKit 2.0 to peer dependencies (#9861)
This release adds support for SvelteKit 2.0 in the @sentry/sveltekit
package. If you're upgrading from SvelteKit 1.x to 2.x and already use the Sentry SvelteKit SDK, no changes apart from upgrading to this (or a newer) version are necessary.
Other Changes
- feat(core): Add type & utility for function-based integrations (#9818)
- feat(core): Update
withScope
to return callback return value (#9866) - feat(deno): Support
Deno.CronSchedule
for cron jobs (#9880) - feat(nextjs): Auto instrument generation functions (#9781)
- feat(nextjs): Connect server component transactions if there is no incoming trace (#9845)
- feat(node-experimental): Update to new Scope APIs (#9799)
- feat(replay): Add
canvas.type
setting (#9877) - fix(nextjs): Export
createReduxEnhancer
(#9854) - fix(remix): Do not capture thrown redirect responses. (#9909)
- fix(sveltekit): Add conditional exports (#9872)
- fix(sveltekit): Avoid capturing 404 errors on client side (#9902)
- fix(utils): Do not use
Event
type in worldwide (#9864) - fix(utils): Support crypto.getRandomValues in old Chromium versions (#9251)
- fix(utils): Update
eventFromUnknownInput
to avoid scope pollution &getCurrentHub
(#9868) - ref: Use
addBreadcrumb
directly & allow to pass hint (#9867)
Work in this release contributed by @adam187, and @jghinestrosa. Thank you for your contributions!
Bundle size 📦
Path | Size |
---|---|
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) | 75.14 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) | 66.57 KB |
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) | 60.16 KB |
@sentry/browser (incl. Tracing) - Webpack (gzipped) | 31.23 KB |
@sentry/browser (incl. Feedback) - Webpack (gzipped) | 29.85 KB |
@sentry/browser - Webpack (gzipped) | 21.53 KB |
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) | 72.57 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) | 64.28 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) | 30.54 KB |
@sentry/browser - ES6 CDN Bundle (gzipped) | 22.59 KB |
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) | 202.16 KB |
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) | 92.26 KB |
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) | 67.31 KB |
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) | 33.4 KB |
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) | 66.92 KB |
@sentry/react - Webpack (gzipped) | 21.57 KB |
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) | 83.71 KB |
@sentry/nextjs Client - Webpack (gzipped) | 48.38 KB |
@sentry-internal/feedback - Webpack (gzipped) | 16.18 KB |