sentry-javascript

Official Sentry SDKs for JavaScript

MIT License

Downloads
373.3M
Stars
7.9K
Committers
546

Bot releases are visible (Hide)

sentry-javascript - 7.98.0

Published by getsentry-bot 9 months ago

This release primarily fixes some type declaration errors:

  • feat(core): Export IntegrationIndex type (#10337)
  • fix(nextjs): Fix Http integration type declaration (#10338)
  • fix(node): Fix type definitions (#10339)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.84 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.04 KB
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.93 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.68 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.07 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.25 KB
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.26 KB
@sentry/browser - Webpack (gzipped) 22.5 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.57 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.13 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.97 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 24.43 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 211.42 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 99.44 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.08 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.07 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.45 KB
@sentry/react - Webpack (gzipped) 22.55 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.11 KB
@sentry/nextjs Client - Webpack (gzipped) 50.4 KB
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB
sentry-javascript - 7.96.0

Published by lforst 9 months ago

Note: This release was incomplete. Not all Sentry SDK packages were released for this version. Please upgrade to 7.98.0

directly.

Important Changes

Deprecations

This release includes some deprecations for integrations in @sentry/browser and frontend framework SDKs
(@sentry/react, @sentry/vue, etc.). Please take a look at our
migration guide for more details.

  • feat(browser): Export functional integrations & deprecate classes (#10267)

Web Vitals Fix for LCP and CLS

This release fixes an issue with the Web Vitals integration where LCP and CLS were not being captured correctly,
increasing capture rate by 10-30% for some apps. LCP and CLS capturing issues were introduced with version 7.75.0.

  • fix(tracing): Ensure web vitals are correctly stopped/captured (#10323)

Other Changes

  • fix(node): Fix node-cron types and add test (#10315)
  • fix(node): Fix downleveled types entry point (#10321)
  • fix(node): LocalVariables integration should use setupOnce (#10307)
  • fix(replay): Fix type for options of replayIntegration (#10325)

Work in this release contributed by @Shubhdeep12. Thank you for your contribution!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.84 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.04 KB
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.93 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.68 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.07 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.25 KB
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.26 KB
@sentry/browser - Webpack (gzipped) 22.5 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.57 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.13 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.97 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 24.43 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 211.42 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 99.44 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.08 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.07 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.45 KB
@sentry/react - Webpack (gzipped) 22.55 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.11 KB
@sentry/nextjs Client - Webpack (gzipped) 50.4 KB
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB
sentry-javascript - 7.97.0

Published by getsentry-bot 9 months ago

Note: The 7.96.0 release was incomplete. This release is partially encompassing changes from 7.96.0.

  • feat(react): Add stripBasename option for React Router 6 (#10314)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.84 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.04 KB
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.93 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.68 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.07 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.25 KB
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.26 KB
@sentry/browser - Webpack (gzipped) 22.5 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.57 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.13 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.97 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 24.43 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 211.42 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 99.44 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.08 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.07 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.44 KB
@sentry/react - Webpack (gzipped) 22.55 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.11 KB
@sentry/nextjs Client - Webpack (gzipped) 50.4 KB
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB
sentry-javascript - 7.95.0

Published by getsentry-bot 9 months ago

Important Changes

Deprecations

This release includes some deprecations in preparation for v8.

Most notably, it deprecates the Replay & Feedback classes in favor of a functional replacement:

import * as Sentry from '@sentry/browser';

Sentry.init({
  integrations: [
    // Instead of
    new Sentry.Replay(),
    new Sentry.Feedback(),
    // Use the functional replacement:
    Sentry.replayIntegration(),
    Sentry.feedbackIntegration(),
  ],
});
  • feat(core): Deprecate Span.origin in favor of sentry.origin attribute (#10260)
  • feat(core): Deprecate Span.parentSpanId (#10244)
  • feat(core): Expose isInitialized() to replace checking via getClient (#10296)
  • feat(replay): Deprecate Replay, ReplayCanvas, Feedback classes (#10270)
  • feat(wasm): Deprecate Wasm integration class (#10230)

Other Changes

  • feat: Make parameterize function available through browser and node API (#10085)
  • feat(feedback): Configure feedback border radius (#10289)
  • feat(sveltekit): Update default integration handling & deprecate addOrUpdateIntegration (#10263)
  • fix(replay-canvas): Add missing dependency on @sentry/utils (#10279)
  • fix(tracing): Don't send negative ttfb (#10286)

Work in this release contributed by @AleshaOleg. Thank you for your contribution!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.79 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.96 KB
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.85 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.6 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.97 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.24 KB
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.25 KB
@sentry/browser - Webpack (gzipped) 22.53 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.46 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.03 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.85 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 24.36 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 211.12 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 99.11 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.91 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.95 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.37 KB
@sentry/react - Webpack (gzipped) 22.58 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.98 KB
@sentry/nextjs Client - Webpack (gzipped) 50.27 KB
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB
sentry-javascript - 7.94.1

Published by getsentry-bot 9 months ago

This release fixes a publishing issue with 7.94.0.

These are the 7.94.0 release notes:

Important Changes

Deprecations

As we're moving closer to the next major version of the SDK, more public APIs were deprecated.

To get a head start on migrating to the replacement APIs, please take a look at our
migration guide.

  • feat: Deprecate user segment field (#10210)
  • feat(core): Deprecate finish on Span interface in favour of end (#10161)
  • feat(core): Deprecate getCurrentHub() (#10200)
  • feat(core): Deprecate hub.bindClient() & makeMain() (#10188)
  • feat(core): Deprecate Span.instrumenter (#10139)
  • feat(core): Deprecate Span.isSuccess() in favor of reading span status (#10213)
  • feat(core): Deprecate Span.op in favor of op attribute (#10189)
  • feat(core): Deprecate Span.spanRecorder (#10199)
  • feat(core): Deprecate Span.status (#10208)
  • feat(core): Deprecate Span.transaction in favor of getRootSpan (#10134)
  • feat(core): Deprecate Transaction.instrumenter (#10162)
  • feat(core): Deprecate Transaction.setMeasurement in favor of setMeasurement (#10182)
  • feat(core): Deprecate integration classes & Integrations.X (#10198)
  • feat(core): Deprecate methods on Hub (#10124)
  • feat(core): Deprecate remaining setName declarations on Transaction and Span (#10164)
  • feat(core): Deprecate span startTimestamp & endTimestamp (#10192)
  • feat(core): Deprecate hub.bindClient() and makeMain() (#10118)
  • feat(types): Deprecate op on Span interface (#10217)
  • feat(integrations): Deprecate Transaction integration (#10178)
  • feat(integrations): Deprecate pluggable integration classes (#10211)

Replay & Canvas

We have added a new ReplayCanvas integration (#10112), which you can add to capture the contents of canvas elements
with Replay.

Just add it in addition to the regular replay integration:

Sentry.init({
  integrations: [new Sentry.Replay(), new Sentry.ReplayCanvas()],
});

Other Changes

  • feat(core): Add client.getIntegrationByName() (#10130)
  • feat(core): Add client.init() to replace client.setupIntegrations() (#10118)
  • feat(core): Add withActiveSpan (#10195)
  • feat(core): Add withIsolationScope (#10141)
  • feat(core): Streamline integration function results to be compatible (#10135)
  • feat(core): Write data from setUser, setTags, setExtras, setTag, setExtra, and setContext to isolation
    scope (#10163)
  • feat(core): Add domain information to resource span data #10205
  • feat(feedback): Export sendFeedback from @sentry/browser (#10231)
  • feat(node): Update and vendor https-proxy-agent (#10088)
  • feat(node-experimental): Add withActiveSpan (#10194)
  • feat(replays): Add snapshot function to replay canvas integration (#10066)
  • feat(types): Add SerializedEvent interface (pre v8) (#10240)
  • feat(types): Add support for new monitor config thresholds (#10225)
  • fix: Ensure all integration classes have correct types (#10183)
  • fix(astro): Fix import path when using external init files with default path (#10214)
  • fix(cdn): Emit console warning instead of error for integration shims (#10193)
  • fix(core): Take user from current scope when starting a session (#10153)
  • fix(node-experimental): Ensure http.status_code is always a string (#10177)
  • fix(node): Guard against process.argv[1] being undefined (#10155)
  • fix(node): Module name resolution (#10144)
  • fix(node): Remove leading slash in Windows filenames (#10147)
  • fix(remix): Capture thrown fetch responses. (#10166)
  • fix(tracing): Gate mongo operation span data behind sendDefaultPii (#10227)
  • fix(tracing-internal): Delay pageload transaction finish until document is interactive (#10215)
  • fix(tracing-internal): Only collect request/response spans when browser performance timing is available (#10207)
  • fix(tracing-internal): Prefer fetch init headers over fetch input headers (#10176)
  • fix(utils): Ensure dropUndefinedKeys() does not break class instances (#10245)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.62 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.88 KB
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 72.77 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.52 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.89 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.15 KB
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.16 KB
@sentry/browser - Webpack (gzipped) 22.51 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.2 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 66.81 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.66 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 24.21 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 210.51 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 98.48 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.46 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.71 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.3 KB
@sentry/react - Webpack (gzipped) 22.55 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.88 KB
@sentry/nextjs Client - Webpack (gzipped) 50.01 KB
@sentry-internal/feedback - Webpack (gzipped) 17.14 KB
sentry-javascript - 7.93.0

Published by getsentry-bot 9 months ago

Important Changes

Deprecations

As we're moving closer to the next major version of the SDK, more public APIs were deprecated.

To get a head start on migrating to the replacement APIs, please take a look at our
migration guide.

  • feat(core): Deprecate getActiveTransaction() & scope.getTransaction() (#10098)
  • feat(core): Deprecate Hub.shouldSendDefaultPii (#10062)
  • feat(core): Deprecate new Transaction() (#10125)
  • feat(core): Deprecate scope.getSpan() & scope.setSpan() (#10114)
  • feat(core): Deprecate scope.setTransactionName() (#10113)
  • feat(core): Deprecate span.startChild() (#10091)
  • feat(core): Deprecate startTransaction() (#10073)
  • feat(core): Deprecate Transaction.getDynamicSamplingContext in favor of getDynamicSamplingContextFromSpan (#10094)
  • feat(core): Deprecate arguments for startSpan() (#10101)
  • feat(core): Deprecate hub capture APIs and add them to Scope (#10039)
  • feat(core): Deprecate session APIs on hub and add global replacements (#10054)
  • feat(core): Deprecate span name and description (#10056)
  • feat(core): Deprecate span tags, data, context & setters (#10053)
  • feat(core): Deprecate transaction metadata in favor of attributes (#10097)
  • feat(core): Deprecate span.sampled in favor of span.isRecording() (#10034)
  • ref(node-experimental): Deprecate lastEventId on scope (#10093)

Cron Monitoring Support for node-schedule library

This release adds auto instrumented check-ins for the node-schedule library.

import * as Sentry from '@sentry/node';
import * as schedule from 'node-schedule';

const scheduleWithCheckIn = Sentry.cron.instrumentNodeSchedule(schedule);

const job = scheduleWithCheckIn.scheduleJob('my-cron-job', '* * * * *', () => {
  console.log('You will see this message every minute');
});
  • feat(node): Instrumentation for node-schedule library (#10086)

Other Changes

  • feat(core): Add span.spanContext() (#10037)
  • feat(core): Add spanToJSON() method to get span properties (#10074)
  • feat(core): Allow to pass scope to startSpan APIs (#10076)
  • feat(core): Allow to pass start/end timestamp for spans flexibly (#10060)
  • feat(node): Make getModuleFromFilename compatible with ESM (#10061)
  • feat(replay): Update rrweb to 2.7.3 (#10072)
  • feat(utils): Add parameterize function (#9145)
  • fix(astro): Use correct package name for CF (#10099)
  • fix(core): Do not run setup for integration on client multiple times (#10116)
  • fix(core): Ensure we copy passed in span data/tags/attributes (#10105)
  • fix(cron): Make name required for instrumentNodeCron option (#10070)
  • fix(nextjs): Don't capture not-found and redirect errors in generation functions (#10057)
  • fix(node): LocalVariables integration should have correct name (#10084)
  • fix(node): Anr events should have an event_id (#10068)
  • fix(node): Revert to only use sync debugger for LocalVariables (#10077)
  • fix(node): Update ANR min node version to v16.17.0 (#10107)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 76.98 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.36 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 61.99 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.38 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 30.98 KB
@sentry/browser - Webpack (gzipped) 22.31 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 74.61 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 66.26 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.07 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 23.9 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 208.7 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 96.75 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 71.35 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.04 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 68.72 KB
@sentry/react - Webpack (gzipped) 22.35 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.37 KB
@sentry/nextjs Client - Webpack (gzipped) 49.5 KB
@sentry-internal/feedback - Webpack (gzipped) 17.01 KB
sentry-javascript - 7.92.0

Published by getsentry-bot 10 months ago

Important Changes

Deprecations

  • feat(core): Add span.updateName() and deprecate span.setName() (#10018)
  • feat(core): Deprecate span.getTraceContext() (#10032)
  • feat(core): Deprecate span.toTraceparent() in favor of spanToTraceHeader() util (#10031)
  • feat(core): Deprecate trace in favor of startSpan (#10012)
  • feat(core): Deprecate span toContext() and updateWithContext() (#10030)
  • ref: Deprecate deepReadDirSync (#10016)
  • ref: Deprecate lastEventId() (#10043)

Please take a look at the Migration docs for more details. These methods will be removed in the upcoming v8 major release.

Cron Monitoring Support for cron and node-cron libraries

  • feat(node): Instrumentation for cron library (#9999)
  • feat(node): Instrumentation for node-cron library (#9904)

This release adds instrumentation for the cron and node-cron libraries. This allows you to monitor your cron jobs with Sentry cron monitors.

For cron:

import * as Sentry from '@sentry/node';
import { CronJob } from 'cron';

const CronJobWithCheckIn = Sentry.cron.instrumentCron(CronJob, 'my-cron-job');

// use the constructor
const job = new CronJobWithCheckIn('* * * * *', () => {
  console.log('You will see this message every minute');
});

// or from
const job = CronJobWithCheckIn.from({
  cronTime: '* * * * *',
  onTick: () => {
    console.log('You will see this message every minute');
  },
});

For node-cron:

import * as Sentry from '@sentry/node';
import cron from 'node-cron';

const cronWithCheckIn = Sentry.cron.instrumentNodeCron(cron);

cronWithCheckIn.schedule(
  '* * * * *',
  () => {
    console.log('running a task every minute');
  },
  { name: 'my-cron-job' },
);

Other Changes

  • feat(astro): Add enabled option to Astro integration options (#10007)
  • feat(core): Add attributes to Span (#10008)
  • feat(core): Add setClient() and getClient() to Scope (#10055)
  • feat(integrations): Capture error cause with captureErrorCause in ExtraErrorData integration (#9914)
  • feat(node-experimental): Allow to pass base span options to trace methods (#10006)
  • feat(node): Local variables via async inspector in node 19+ (#9962)
  • fix(astro): handle commonjs related issues (#10042)
  • fix(astro): Handle non-utf8 encoded streams in middleware (#9989)
  • fix(astro): prevent sentry from externalized (#9994)
  • fix(core): Ensure withScope sets current scope correctly with async callbacks (#9974)
  • fix(node): ANR fixes and additions (#9998)
  • fix(node): Anr should not block exit (#10035)
  • fix(node): Correctly resolve module name (#10001)
  • fix(node): Handle inspector already open (#10025)
  • fix(node): Make NODE_VERSION properties required (#9964)
  • fix(node): Anr doesn't block exit (#10064)
  • fix(utils): use correct typeof URL validation (#10028)
  • perf(astro): reduce unnecessary path resolutions (#10021)
  • ref(astro): Use astro logger instead of console (#9995)
  • ref(remix): Isolate Express instrumentation from server auto-instrumentation. (#9966)

Work in this release contributed by @joshkel. Thank you for your contribution!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 76.1 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 67.5 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 61.1 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.08 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 30.49 KB
@sentry/browser - Webpack (gzipped) 22.21 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 73.53 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 65.2 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 31.37 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 23.29 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 204.35 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 94.24 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 69.09 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 34.33 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 67.91 KB
@sentry/react - Webpack (gzipped) 22.23 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 84.53 KB
@sentry/nextjs Client - Webpack (gzipped) 49.14 KB
@sentry-internal/feedback - Webpack (gzipped) 16.73 KB
sentry-javascript - 7.91.0

Published by getsentry-bot 10 months ago

Important Changes

  • feat: Add server runtime metrics aggregator (#9894)

The release adds alpha support for Sentry developer metrics in the server runtime SDKs (@sentry/node, @sentry/deno, @sentry/nextjs server-side, etc.). Via the newly introduced APIs, you can now flush metrics directly to Sentry.

To enable capturing metrics, you first need to add the metricsAggregator experiment to your Sentry.init call.

Sentry.init({
  dsn: '__DSN__',
  _experiments: {
    metricsAggregator: true,
  },
});

Then you'll be able to add counters, sets, distributions, and gauges under the Sentry.metrics namespace.

// Add 4 to a counter named `hits`
Sentry.metrics.increment('hits', 4);

// Add 2 to gauge named `parallel_requests`, tagged with `type: "a"`
Sentry.metrics.gauge('parallel_requests', 2, { tags: { type: 'a' } });

// Add 4.6 to a distribution named `response_time` with unit seconds
Sentry.metrics.distribution('response_time', 4.6, { unit: 'seconds' });

// Add 2 to a set named `valuable.ids`
Sentry.metrics.set('valuable.ids', 2);
  • feat(node): Rework ANR to use worker script via an integration (#9945)

The ANR tracking integration for Node has been reworked to use an integration. ANR tracking now requires a minimum Node version of 16 or higher. Previously you had to call Sentry.enableANRDetection before running your application, now you can simply add the Anr integration to your Sentry.init call.

import * as Sentry from '@sentry/node';

Sentry.init({
  dsn: 'https://[email protected]/1337',
  integrations: [new Sentry.Integrations.Anr({ captureStackTrace: true, anrThreshold: 200 })],
});

Other Changes

  • feat(breadcrumbs): Send component names on UI breadcrumbs (#9946)
  • feat(core): Add getGlobalScope() method (#9920)
  • feat(core): Add getIsolationScope() method (#9957)
  • feat(core): Add span.end() to replace span.finish() (#9954)
  • feat(core): Ensure startSpan & startSpanManual fork scope (#9955)
  • feat(react): Send component name on spans (#9949)
  • feat(replay): Send component names in replay breadcrumbs (#9947)
  • feat(sveltekit): Add options to configure fetch instrumentation script for CSP (#9969)
  • feat(tracing): Send component name on interaction spans (#9948)
  • feat(utils): Add function to extract relevant component name (#9921)
  • fix(core): Rethrow caught promise rejections in startSpan, startSpanManual, trace (#9958)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 75.89 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 67.25 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 60.87 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.83 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 30.39 KB
@sentry/browser - Webpack (gzipped) 22.09 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 73.3 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 64.97 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 31.12 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 23.12 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 203.77 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 93.66 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 68.58 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 34.07 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 67.66 KB
@sentry/react - Webpack (gzipped) 22.12 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 84.31 KB
@sentry/nextjs Client - Webpack (gzipped) 48.95 KB
@sentry-internal/feedback - Webpack (gzipped) 16.6 KB
sentry-javascript - 7.90.0

Published by getsentry-bot 10 months ago

  • feat(replay): Change to use preset quality values (#9903)
  • fix(replay): Adjust development hydration error messages (#9922)
  • fix(sveltekit): Add types field to package.json exports (#9926)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 75.39 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 66.79 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 60.38 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.39 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 30.04 KB
@sentry/browser - Webpack (gzipped) 21.69 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 72.79 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 64.51 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 30.71 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 22.77 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 202.36 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 92.28 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 67.34 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 33.62 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 67.17 KB
@sentry/react - Webpack (gzipped) 21.72 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.94 KB
@sentry/nextjs Client - Webpack (gzipped) 48.57 KB
@sentry-internal/feedback - Webpack (gzipped) 16.35 KB
sentry-javascript - 7.89.0

Published by getsentry-bot 10 months ago

Important Changes

Deprecations

  • feat(core): Deprecate configureScope (#9887)
  • feat(core): Deprecate pushScope & popScope (#9890)

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
sentry-javascript - 7.88.0

Published by getsentry-bot 10 months ago

Important Changes

  • feat(browser): Add browser metrics sdk (#9794)

The release adds alpha support for Sentry developer metrics in the Browser SDKs (@sentry/browser and related framework SDKs). Via the newly introduced APIs, you can now flush metrics directly to Sentry.

To enable capturing metrics, you first need to add the MetricsAggregator integration.

Sentry.init({
  dsn: '__DSN__',
  integrations: [
    new Sentry.metrics.MetricsAggregator(),
  ],
});

Then you'll be able to add counters, sets, distributions, and gauges under the Sentry.metrics namespace.

// Add 4 to a counter named `hits`
Sentry.metrics.increment('hits', 4);

// Add 2 to gauge named `parallel_requests`, tagged with `happy: "no"`
Sentry.metrics.gauge('parallel_requests', 2, { tags: { happy: 'no' } });

// Add 4.6 to a distribution named `response_time` with unit seconds
Sentry.metrics.distribution('response_time', 4.6, { unit: 'seconds' });

// Add 2 to a set named `valuable.ids`
Sentry.metrics.set('valuable.ids', 2);

In a future release we'll add support for server runtimes (Node, Deno, Bun, Vercel Edge, etc.)

  • feat(deno): Optionally instrument Deno.cron (#9808)

This releases add support for instrumenting Deno cron's with Sentry cron monitors. This requires v1.38 of Deno run with the --unstable flag and the usage of the DenoCron Sentry integration.

// Import from the Deno registry
import * as Sentry from "https://deno.land/x/sentry/index.mjs";

Sentry.init({
  dsn: '__DSN__',
  integrations: [
    new Sentry.DenoCron(),
  ],
});

Other Changes

  • feat(replay): Bump rrweb to 2.6.0 (#9847)
  • fix(nextjs): Guard against injecting multiple times (#9807)
  • ref(remix): Bump Sentry CLI to ^2.23.0 (#9773)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 75.24 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 66.63 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 60.22 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.3 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 29.9 KB
@sentry/browser - Webpack (gzipped) 21.56 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 72.58 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 64.31 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 30.58 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 22.61 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 202.5 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 92.65 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 67.63 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 33.47 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.97 KB
@sentry/react - Webpack (gzipped) 21.6 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.73 KB
@sentry/nextjs Client - Webpack (gzipped) 48.41 KB
@sentry-internal/feedback - Webpack (gzipped) 16.19 KB
sentry-javascript - 7.87.0

Published by getsentry-bot 10 months ago

  • feat: Add top level getCurrentScope() method (#9800)
  • feat(replay): Bump rrweb to 2.5.0 (#9803)
  • feat(replay): Capture hydration error breadcrumb (#9759)
  • feat(types): Add profile envelope types (#9798)
  • fix(astro): Avoid RegExp creation during route interpolation (#9815)
  • fix(browser): Avoid importing from ./exports (#9775)
  • fix(nextjs): Catch rejecting flushes (#9811)
  • fix(nextjs): Fix devserver CORS blockage when assetPrefix is defined (#9766)
  • fix(node): Capture errors in tRPC middleware (#9782)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 75.04 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 66.38 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 59.99 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.13 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 29.74 KB
@sentry/browser - Webpack (gzipped) 21.39 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 71.61 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 63.33 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.67 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.72 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 199.58 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 89.94 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 64.92 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 32.34 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.75 KB
@sentry/react - Webpack (gzipped) 21.44 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.48 KB
@sentry/nextjs Client - Webpack (gzipped) 48.23 KB
@sentry-internal/feedback - Webpack (gzipped) 16.19 KB
sentry-javascript - 7.86.0

Published by getsentry-bot 11 months ago

  • feat(core): Use SDK_VERSION for hub API version (#9732)
  • feat(nextjs): Emit warning if your app directory doesn't have a global-error.js file (#9753)
  • feat(node): Add cloudflare pages commit sha (#9751)
  • feat(remix): Bump @sentry/cli to 2.22.3 (#9741)
  • fix(nextjs): Don't accidentally trigger static generation bailout (#9749)
  • fix(node): Guard process.env.NODE_ENV access in Spotlight integration (#9748)
  • fix(utils): Fix XHR instrumentation early return (#9770)
  • ref(remix): Rework Error Handling (#9725)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 74.66 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 66 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 59.6 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.13 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 29.74 KB
@sentry/browser - Webpack (gzipped) 21.39 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 71.25 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62.97 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.65 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.71 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 198.35 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 89.78 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 64.76 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 32.3 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.36 KB
@sentry/react - Webpack (gzipped) 21.43 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.09 KB
@sentry/nextjs Client - Webpack (gzipped) 48.23 KB
@sentry-internal/feedback - Webpack (gzipped) 16.19 KB
sentry-javascript - 7.85.0

Published by getsentry-bot 11 months ago

  • feat(core): Add addEventProcessor method (#9554)
  • feat(crons): Add interface for heartbeat checkin (#9706)
  • feat(feedback): Include Feedback package in browser SDK (#9586)
  • fix(astro): Isolate request instrumentation in middleware (#9709)
  • fix(replay): Capture JSON XHR response bodies (#9623)
  • ref(feedback): Change form box-shadow to use CSS var (#9630)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 74.63 KB
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.99 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 59.59 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.12 KB
@sentry/browser (incl. Feedback) - Webpack (gzipped) 29.72 KB
@sentry/browser - Webpack (gzipped) 21.38 KB
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 71.22 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62.97 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.62 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.7 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 198.31 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 89.73 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 64.71 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 32.29 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.35 KB
@sentry/react - Webpack (gzipped) 21.42 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.07 KB
@sentry/nextjs Client - Webpack (gzipped) 48.21 KB
@sentry-internal/feedback - Webpack (gzipped) 16.17 KB
sentry-javascript - 7.84.0

Published by getsentry-bot 11 months ago

Important Changes

  • ref(nextjs): Set automaticVercelMonitors to be false by default (#9697)

From this version onwards the default for the automaticVercelMonitors option in the Next.js SDK is set to false.
Previously, if you made use of Vercel Crons the SDK automatically instrumented the relevant routes to create Sentry monitors.
Because this feature will soon be generally available, we are now flipping the default to avoid situations where quota is used unexpectedly.

If you want to continue using this feature, make sure to set the automaticVercelMonitors flag to true in your next.config.js Sentry settings.

Other Changes

  • chore(astro): Add 4.0.0 preview versions to astro peer dependency range (#9696)
  • feat(metrics): Add interfaces for metrics (#9698)
  • feat(web-vitals): Vendor in INP from web-vitals library (#9690)
  • fix(astro): Avoid adding the Sentry Vite plugin in dev mode (#9688)
  • fix(nextjs): Don't match files called middleware in node_modules (#9686)
  • fix(remix): Don't capture error responses that are not 5xx on Remix v2. (#9655)
  • fix(tracing): Don't attach resource size if null (#9669)
  • fix(utils): Regex match port to stop accidental replace (#9676)
  • fix(utils): Try catch new URL when extracting query params (#9675)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.86 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 59.46 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.12 KB
@sentry/browser - Webpack (gzipped) 21.38 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62.72 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.53 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.6 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 197.46 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 89.32 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 64.29 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 32.22 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.25 KB
@sentry/react - Webpack (gzipped) 21.42 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.96 KB
@sentry/nextjs Client - Webpack (gzipped) 48.21 KB
@sentry-internal/feedback - Webpack (gzipped) 16.19 KB
sentry-javascript - 7.83.0

Published by getsentry-bot 11 months ago

  • chore(astro): Allow Astro 4.0 in peer dependencies (#9683)
  • feat(astro): Add assets option to source maps upload options (#9668)
  • feat(react): Support exactOptionalPropertyTypes on ErrorBoundary (#9098)
  • fix: Don't depend on browser types in types (#9682)
  • fix(astro): Configure sourcemap assets directory for Vercel adapter (#9665)
  • fix(remix): Check the error data before spreading. (#9664)

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.86 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 59.46 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.11 KB
@sentry/browser - Webpack (gzipped) 21.38 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62.71 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.52 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.6 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 197.46 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 89.32 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 64.29 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 32.21 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.24 KB
@sentry/react - Webpack (gzipped) 21.42 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.96 KB
@sentry/nextjs Client - Webpack (gzipped) 48.21 KB
@sentry-internal/feedback - Webpack (gzipped) 16.19 KB
sentry-javascript - 7.82.0

Published by getsentry-bot 11 months ago

  • feat(astro): Automatically add Sentry middleware in Astro integration (#9532)
  • feat(core): Add optional setup hook to integrations (#9556)
  • feat(core): Add top level getClient() method (#9638)
  • feat(core): Allow to pass mechanism as event hint (#9590)
  • feat(core): Allow to use continueTrace without callback (#9615)
  • feat(feedback): Add onClose callback to showReportDialog (#9433) (#9550)
  • feat(nextjs): Add request data to all edge-capable functionalities (#9636)
  • feat(node): Add Spotlight option to Node SDK (#9629)
  • feat(utils): Refactor addInstrumentationHandler to dedicated methods (#9542)
  • fix: Make full url customizable for Spotlight (#9652)
  • fix(astro): Remove Auth Token existence check (#9651)
  • fix(nextjs): Fix middleware detection logic (#9637)
  • fix(remix): Skip capturing aborted requests (#9659)
  • fix(replay): Add BODY_PARSE_ERROR warning & time out fetch response load (#9622)
  • fix(tracing): Filter out invalid resource sizes (#9641)
  • ref: Hoist RequestData integration to @sentry/core (#9597)
  • ref(feedback): Rename onDialog* to onForm*, remove onActorClick (#9625)

Work in this release contributed by @arya-s. Thank you for your contribution!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 66.02 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 56.21 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.19 KB
@sentry/browser - Webpack (gzipped) 21.4 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62.65 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.47 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.55 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 197.27 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 89.15 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 64.12 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 32.13 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 66.43 KB
@sentry/react - Webpack (gzipped) 21.45 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 83.16 KB
@sentry/nextjs Client - Webpack (gzipped) 48.32 KB
@sentry-internal/feedback - Webpack (gzipped) 16.19 KB
sentry-javascript - 7.81.1

Published by getsentry-bot 11 months ago

  • fix(astro): Remove method from span op (#9603)
  • fix(deno): Make sure files get published (#9611)
  • fix(nextjs): Use globalThis instead of global in edge runtime (#9612)
  • fix(node): Improve error handling and shutdown handling for ANR (#9548)
  • fix(tracing-internal): Fix case when originalURL contain query params (#9531)

Work in this release contributed by @powerfulyang, @LubomirIgonda1, @joshkel, and @alexgleason. Thank you for your contributions!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.61 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.72 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.01 KB
@sentry/browser - Webpack (gzipped) 21.32 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62.03 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.26 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 195.71 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.38 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.34 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.85 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.92 KB
@sentry/react - Webpack (gzipped) 21.36 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.66 KB
@sentry/nextjs Client - Webpack (gzipped) 48.15 KB
@sentry-internal/feedback - Webpack (gzipped) 16.12 KB
sentry-javascript - 7.81.0

Published by getsentry-bot 11 months ago

Important Changes

- feat(nextjs): Add instrumentation utility for server actions (#9553)

This release adds a utility function withServerActionInstrumentation to the @sentry/nextjs SDK for instrumenting your Next.js server actions with error and performance monitoring.

You can optionally pass form data and headers to record them, and configure the wrapper to record the Server Action responses:

import * as Sentry from "@sentry/nextjs";
import { headers } from "next/headers";

export default function ServerComponent() {
  async function myServerAction(formData: FormData) {
    "use server";
    return await Sentry.withServerActionInstrumentation(
      "myServerAction", // The name you want to associate this Server Action with in Sentry
      {
        formData, // Optionally pass in the form data
        headers: headers(), // Optionally pass in headers
        recordResponse: true, // Optionally record the server action response
      },
      async () => {
        // ... Your Server Action code

        return { name: "John Doe" };
      }
    );
  }

  return (
    <form action={myServerAction}>
      <input type="text" name="some-input-value" />
      <button type="submit">Run Action</button>
    </form>
  );
}

Other Changes

  • docs(feedback): Example docs on sendFeedback (#9560)
  • feat(feedback): Add level and remove breadcrumbs from feedback event (#9533)
  • feat(vercel-edge): Add fetch instrumentation (#9504)
  • feat(vue): Support Vue 3 lifecycle hooks in mixin options (#9578)
  • fix(nextjs): Download CLI binary if it can't be found (#9584)
  • ref: Deprecate extractTraceParentData from @sentry/core & downstream packages (#9158)
  • ref(replay): Add further logging to network body parsing (#9566)

Work in this release contributed by @snoozbuster. Thank you for your contribution!

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.53 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.67 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.01 KB
@sentry/browser - Webpack (gzipped) 21.32 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 61.99 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.13 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.26 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 195.53 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.38 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.34 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.85 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.84 KB
@sentry/react - Webpack (gzipped) 21.36 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.58 KB
@sentry/nextjs Client - Webpack (gzipped) 48.15 KB
@sentry-internal/feedback - Webpack (gzipped) 16.08 KB
sentry-javascript - 7.80.2-alpha.1

Published by getsentry-bot 11 months ago

No longer will prioritize the component names for replays, as this will break searching by CSS selector.

Bundle size 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 65.47 KB
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 55.68 KB
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.03 KB
@sentry/browser - Webpack (gzipped) 21.34 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 62 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 29.14 KB
@sentry/browser - ES6 CDN Bundle (gzipped) 21.29 KB
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 195.54 KB
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 88.43 KB
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 63.41 KB
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.86 KB
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 65.79 KB
@sentry/react - Webpack (gzipped) 21.39 KB
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 82.53 KB
@sentry/nextjs Client - Webpack (gzipped) 48.17 KB
@sentry-internal/feedback - Webpack (gzipped) 16.04 KB