Update dependency @sentry/browser to v7
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| @sentry/browser | dependencies | major | 5.30.0 -> 7.1.1 |
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
getsentry/sentry-javascript
v7.1.1
- Revert "ref(node): Move non-handler code out of handlers module" (#5223)
- fix(types): Vendor in TextEncoderCommon type (#5221)
v7.1.0
- feat(tracing): Propagate environment and release values in baggage Http headers (#5193)
- feat(node): Compression support for
httptransport (#5209) - fix(serverless): Do not change DSN in Serverless integration (#5212)
- fix(core): Normalize trace context (#5171)
- fix(utils): Fix faulty references in
dropUndefinedKeys(#5201) - fix(build): Add missing debug logger plugin in
debug.minbundle variant config (#5192) - fix(tracing): Fix missing page load metrics in Electron renderer (#5187)
- ref(node): Move non-handler code out of
handlersmodule (#5190) - ref: Switch to magic string for logger statements (#5155)
- chore(build): Only upload lambda layer when releasing (#5208)
v7.0.0
Version 7 of the Sentry JavaScript SDK brings a variety of features and fixes including bundle size and performance improvements, brand new integrations, support for the attachments API, and key bug fixes.
This release does not change or remove any top level public API methods (captureException, captureMessage), and only requires changes to certain configuration options or custom clients/integrations/transports.
Note: The v7 version of the JavaScript SDK requires a self-hosted version of Sentry 20.6.0 or higher. If you are using a version of self-hosted Sentry (aka onpremise) older than 20.6.0 then you will need to upgrade.
For detailed overview of all the changes, please see our v7 migration guide.
Breaking Changes
If you are a regular consumer of the Sentry JavaScript SDK you only need to focus on the general items. The internal breaking changes are aimed at libraries that build on top of and extend the JavaScript SDK (like @sentry/electron or @sentry/react-native).
General
- Updated CommonJS distributions to use ES6 by default. If you need to support Internet Explorer 11 or old Node.js versions, we recommend using a preprocessing tool like Babel to convert Sentry packages to ES5. (#5005)
- Default
bundle.min.jsto ES6 instead of ES5. ES5 bundles are still available atbundle.es5.min.js. (#4958) - Updated build system to use TypeScript 3.8.3 (#4895)
- Deprecated
Severityenum for bundle size reasons. Please use string literals instead. (#4926) - Removed
criticalSeverity level. (#5032) -
whitelistUrlsandblacklistUrlshave been renamed toallowUrlsanddenyUrlsin theSentry.init()options. (#4850) -
BaseClientand it's child classes now requiretransport,stackParser, andintegrationsto be explicitly passed in. This was done to improve tree-shakability. (#4927) - Updated package distribution structure and stopped distributing CDN bundles through
@sentry/*npm packages. See details in our migration docs.. (#4900) (#4901) -
Simplified
TransportAPI. This means custom transports will have to be adjusted accordingly.. - Updated how Node Transport Options are passed down.
- Start propogating
baggageHTTP header alongsidesentry-traceheader to propogate additional tracing related information.. (#5133) - Renamed
registerRequestInstrumentationexport toinstrumentOutgoingRequestsin@sentry/tracing. (#4859) - Renamed
UserAgentintegration toHttpContext. (#5027) - Replaced
BrowserTracingintegration'smaxTransactionDurationoption withfinalTimeoutoption in the@sentry/tracingpackage and resetidleTimeoutbased on activities count. This should improve accuracy of web-vitals like LCP by 20-30%. (#5044) -
Updated
@sentry/angularto be compiled by the angular compiler. (#4641) - Made tracing package treeshakable (#5166)
- Removed support for Node v6. (#4851)
- Removed
@sentry/minimalpackage in favour of using@sentry/hub. (#4971) - Removed support for Opera browser pre v15 (#4923)
- Removed
ignoreSentryErrorsoption from AWS lambda SDK. Errors originating from the SDK will now always be caught internally. (#4994) - Removed
Integrations.BrowserTracingexport from@sentry/nextjs. Please importBrowserTracingfrom@sentry/nextjsdirectly. - Removed static
idproperty fromBrowserTracingintegration. - Removed
SDK_NAMEexport from@sentry/browser,@sentry/node,@sentry/tracingand@sentry/vuepackages. (#5040) - Removed
Angular,Ember, andVueintegrations from@sentry/integrationsin favour of the explicit framework packages:@sentry/angular,@sentry/ember, and@sentry/vue. (#4893) - Removed enums
Status,RequestSessionStatus, andSessionStatus.. Deprecated enumsSpanStatusandSeverity. This was done to save on bundle size. (#4891) (#4889) (#4890) - Removed support for deprecated
@sentry/apmpackage. (#4845) - Removed deprecated
userfield from DSN interface.publicKeyshould be used instead. (#4864) - Removed deprecated
getActiveDomainmethod andDomainAsCarriertype from@sentry/hub. (#4858) - Removed
eventStatusFromHttpCodeto save on bundle size. - Removed usage of deprecated
event.stacktracefield. (#4885) - Removed raven-node backward-compat code (#4942)
- Removed
showReportDialogmethod onBrowserClient(#4973) - Removed deprecated
startSpanandchildmethods (#4849) - Removed deprecated
frameContextLinesoptions (#4884) - Removed
Sentryfrom window in the Gatsby SDK (#4857)
Internal
- Removed support for the store endpoint (#4969)
- Made hint callback argument non-optional (#5141)
- Switched to using new transports internally (#4943)
-
Removed
APIclass from@sentry/core.. (#4848) -
Refactored
Sessionclass to use a more functional approach.. (#5054) - Removed
Backendclass in favour of moving functionality into theClientclass (for more details, see #4911 and #4919). - Removed forget async utility function (#4941)
- Removed tslint from
@sentry-internal/typescript(#4940) - Removed
_invokeClientfunction from@sentry/hub(#4972) - Removed top level eventbuilder exports (#4887)
- Added baggage API helpers in
@sentry/utils(#5066)
Other Changes
Features
- feat(tracing): Add Prisma ORM integration. (#4931)
- feat(react): Add react-router-v6 integration (#5042)
- feat: Add attachments API (#5004)
- feat: Add
namefield toEventProcessor(#4932) - feat: Expose configurable stack parser (#4902)
- feat(tracing): Make
setMeasurementpublic API (#4933) - feat(tracing): Add GB unit to device memory tag value (#4935)
- feat: Export browser integrations individually (#5028)
- feat(core): Send Baggage in Envelope Header (#5104)
Fixes
- fix(browser): Fix memory leak in
addEventListenerinstrumentation (#5147) - fix(build): Fix express import in
gcpfunction(#5097) - fix(ember): Export sha hashes of injected scripts (#5089)
- fix(hub): Add missing parameter to captureException docstring (#5001)
- fix(integrations): Mark ExtraErrorData as already normalized (#5053)
- fix(serverless): Adjust v6 Lambda layer hotfix for v7 (#5006)
- fix(tracing): Adjust sideEffects package.json entry for v7 (#4987)
- fix(tracing): Remove isInstanceOf check in Hub constructor (#5046)
- fix(tracing): Don't use
querySelectorwhen not available (#5160) - fix(nextjs): Update webpack-plugin and change how cli binary is detected. This should reduce bundle size of NextJS applications. (#4988)
- fix(utils): Fix infinite recursion in
dropUndefinedKeys(#5163)
Misc
- feat(build): Vendor polyfills injected during build (#5051)
- ref(build): Use rollup to build AWS lambda layer (#5146)
- ref(core): Make event processing log warnings instead of errors (#5010)
- ref(node): Allow node stack parser to work in browser context (#5135)
- ref(serverless): Point DSN to relay in lambda extension (#5126)
- ref(serverless): Do not throw on flush error (#5090)
- ref(utils): Clean up dangerous type casts in object helper file (#5047)
- ref(utils): Add logic to enable skipping of normalization (#5052)
v6.19.7
- fix(react): Add children prop type to ErrorBoundary component (#4966)
- fix(serverless): Re-add missing modules in Node AWS Lambda Layer (#4982)
- fix(tracing): Target tracing bundles for side effects (#4955)
Work in this release contributed by @cameronaziz and @kpdecker. Thank you for your contributions!
v6.19.6
- fix(typing): Fix typing API in CaptureConsle (#4879)
v6.19.5
- ref(build): Add debug constants in each package individually (#4842)
- ref(build): Introduce central build directory to packages with bundles (#4838) (#4854) (#4868)
- feat(utils): Introduce getGlobalSingleton helper (#4860)
v6.19.4
- feat(react): Add React 18 as peer dep (#4819)
- ref(build): Add
build/typesto tarballs and adjusttypesentry points (#4824)
Work in this release contributed by @MikevPeeren. Thank you for your contribution!
v6.19.3
- feat(browser): Add new v7 Fetch Transport (#4765)
- feat(browser): Add new v7 XHR Transport (#4803)
- fix(core): Use correct version of event when tagging normalization (#4780)
- fix(core): Stop mangling _experiments (#4807)
- feat(node): Add new v7 http/s Transports (#4781)
v6.19.2
- feat(core): Add new transports to base backend (#4752)
- feat(utils): Add
isNaNfunction (#4759) - fix(integrations): Emit ES5 code in ES5 bundles (#4769)
- fix(vue): Drop vue-router peerDep (#4764)
- ref(core): Reduce inboundfilters bundle size (#4625)
- ref(integrations): Make ReportTypes a union type
- ref(node): Add source code context when using LinkedErrors (#4753)
- ref(utils): Introduce getEnvelopeType helper (#4751)
- ref(utils): Split normalization code into separate module (#4760)
v6.19.1
This release fixes a bug from 6.19.0 causing type import errors in most JS SDKs.
- fix(types): Point to type definitions in dist folder (#4745)
v6.19.0
This release makes a change to the data normalization process, limiting the number of entries or properties which will be included in any given array or object to 1000. Previously there was no limit, so in rare cases you may notice a change in your context data. If this is a problem, you can increase the limit with the new maxNormalizationBreadth setting. See #4689 for details.
- feat(build): Create debug versions of minified bundles (#4699)
- feat(integrations): Make ES6 integration bundles (#4718)
- feat(utils): Limit
normalizemaximum properties/elements (#4689) - feat(various): Apply debug guard to logger everywhere (#4698)
- fix(browser): Use
applyrather thancallintry-catchintegration (#4695) - fix(ember): Fix merging env config (#4714)
- fix(nextjs): Add env var to suppress API non-response meta-warning (#4706)
- fix(nextjs): Widen scope for client file upload (#4705)
- fix(node): Fix async stack parsing (#4721)
- ref(browser): Use ratelimit utils in base transport (#4686)
- ref(build): Introduce root build directory in
@sentry/browser(#4688) - ref(minimal): Simplify
syntheticExceptioncreation (#4691) - ref(tracing): Remove
BrowserTracinglogging flag default value (#4708) - ref(utils): Simplify
isDebugBuildlogging guard (#4696)
Work in this release contributed by @Turbo87. Thank you for your contribution!
v6.18.2
If you are using @sentry-internal/eslint-config-sdk, please note that this release turns on the quotes rule to enforce usage of single quotes.
This release also removes @sentry/tracing as a dependency of @sentry/node. Please explicitly install and import @sentry/tracing if you want to use performance monitoring capabilities. For more details, see our docs on setting up Node Performance Monitoring.
We also now produce an ES6 version of our CDN tracing bundle, which can be accessed with bundle.tracing.es6.min.js.
- chore(eslint): Turn on quotes rules (#4671)
- fix(node): prevent errors thrown on flush from breaking response (#4667)
- ref(node): Remove dependency on @sentry/tracing (#4647)
- fix(tracing): Make method required in transactionSampling type (#4657)
- feat(tracing): Add ES6 tracing bundle (#4674)
Work in this release contributed by @Ignigena. Thank you for your contribution!
v6.18.1
- fix(ember): use _backburner if it exists (#4603)
- feat(gatsby): Upgrade Sentry Webpack Plugin to 1.18.8 (#4636)
- feat(nextjs): Upgrade Sentry Webpack Plugin to 1.18.8 (#4643)
- fix(nextjs): webpack as optional peer-dependency (#4634)
Work in this release contributed by @belgattitude, @pbernery, and @kylemh. Thank you for your contributions!
v6.18.0
This patch deprecates the frameContextLines option for the Node SDK. The migration documentation details how to migrate off the deprecated frameContextLines option.
- fix(browser): Only set event.stacktrace if we have 1 or more frames (#4614)
- fix(hub): keep hint event id if it's provided (#4577)
- fix(nextjs): Use env variable for build detection (#4608)
- ref(node): Refactor node source fetching into integration (#3729)
- feat(serverless): Added
ignoreSentryErrorsoption for AWS lambda (#4620)
Work in this release contributed by @GoshaEgorian and @ichina. Thank you for your contributions!
v6.17.9
- fix(gatsby): Add missing React peer dependency (#4576)
- fix(types): Use Sentry event type instead of dom one (#4584)
Work in this release contributed by @aaronadamsCA. Thank you for your contribution!
v6.17.8
- feat(types): Add Envelope types (#4527)
- fix(build): Remove node code from CDN bundles (#4548)
- fix(build): Prevent unused utils code in integration bundles (#4547)
- fix(tracing): Export BrowserTracing directly in CDN bundle (#4570)
- fix(utils): Use apply in console instrumentation (#4568)
- ref(core): Log
normalizeDepthwhen normalization is skipped(#4574)
Work in this release contributed by @mydea. Thank you for your contribution!
v6.17.7
- fix(utils): Make new non-enumerable properties mutable (#4528)
- fix(vue): Check if route name is defined before casting (#4530)
Work in this release contributed by @connorjclark. Thank you for your contribution!
v6.17.6
- fix(angular): Add check for global.location in angular universal (#4513)
- fix(nextjs): Stop injecting sentry into API middleware (#4517)
- fix(nextjs): Revert #4139 - remove manipulation of res.finished value (#4516)
Work in this release contributed by @mobilestar1. Thank you for your contribution!
v6.17.5
This release deprecates the Severity enum, the SeverityLevel type, and the internal SeverityLevels array, all from @sentry/types. In v7, Severity will disappear (in favor of SeverityLevel) and SeverityLevel and SeverityLevels will live in @sentry/utils. If you are using any of the three, we encourage you to migrate your usage now, using our migration guide.
- ref: Export Session class from core/browser/node (#4508)
- chore(nextjs): Bump
@sentry/webpack-pluginto 1.18.5 (#4501) - ref(types): Move SeverityLevel and SeverityLevels to
@sentry/utils(#4492) - fix(vue): Cast name parameter to string (#4483)
Work in this release contributed by @Bobakanoosh and @ssnielsen. Thank you for your contributions!
v6.17.4
- chore(deps): Bump
@sentry/webpack-pluginfrom 1.18.3 to 1.18.4 (#4464) - fix(browser): Set severity level for events captured by the global error handler (#4460)
- fix(integrations): Add default for
ExtraErrorData'sdepthoption (#4487) - fix(nextjs): Export
BrowserTracingintegration directly (#4480) - fix(tracing): Export
SpanStatusenum (#4478) - fix(vue): Property
_isVuenot defined in Vue3 (#4461)
Work in this release contributed by @7inspire, @jaeseokk, and @rchl. Thank you for your contributions!
v6.17.3
- fix(nextjs): Unwrap
reqandresif necessary when instrumenting server (#4467)
v6.17.2
This patch contains a breaking change for anyone setting the undocumented rethrowAfterCapture option for @sentry/serverless's AWS wrapper to false, as its functionality has been removed. For backwards compatibility with anyone setting it to true (which is also the default), the option remains in the WrapperOptions type for now. It will be removed in the next major release, though, so we recommend removing it from your code.
- ref(serverless): Remove
rethrowAfterCaptureuse in AWS lambda wrapper (#4448) - fix(utils): Remove dom is casting (#4451)
v6.17.1
- ref(core): Renormalize event only after stringification errors (#4425)
- feat(nextjs): Add option to use
hidden-source-mapas webpack devtool value (#4436) - fix(tracing): ignore the xhr/fetch response if its request is not being tracked (#4428)
- fix(vue): prevent after hook from starting new span (#4438)
Work in this release contributed by @datbth. Thank you for your contribution!
v6.17.0
This release contains several internal refactors that help reduce the bundle size of the SDK and help prep for our upcoming major release. There are no breaking changes in this patch unless you are using our internal Dsn class, which has been removed. We also deprecated a few of our typescript enums and our internal API class. We've detailed in our migration documentation how to update your sdk usage if you are using any of these in your code.
- feat: Remove Dsn class (#4325)
- feat(core): Add processing metadata to scope and event (#4252)
- feat(core): Deprecate API class (#4281)
- feat(ember): Update ember dependencies (#4253)
- fix(nextjs): Inject sentry.x.config.js into pages/_error (#4397)
- fix(nextjs): Add sentry-cli existence check for enabling webpack plugin #4311
- ref(tracing): deprecate span status enum (#4299)
- ref(tracing): Remove script evaluation span (#4433)
- ref(types): drop unused logLevel (#4317)
- ref(types): deprecate request status enum (#4316)
- ref(types): deprecate outcome enum (#4315)
- ref(types): deprecate transactionmethod enum (#4314)
- ref(types): deprecate status enum (#4298)
- ref(utils): improve invalid dsn error message (#4430)
- fix(vue): Prioritize app variable to avoid duplicate name pollution (#4437)
Work in this release contributed by @yordis, @Badisi, and @lh1me. Thank you for your contribution!
v6.16.1
- feat(nextjs): Support Next.js v12 (#4093)
- fix(nextjs): Disable server instrumentation on Vercel (#4255)
- feat(tracing): Add metadata around idleTimeout (#4251)
Work in this release contributed by @KATT. Thank you for your contribution!
v6.16.0
- feat(angular): Add Angular 13 to peer dep (#4183)
- fix(angular): Finish routing span before starting another one (#4191)
- fix(angular): Use ui category for span operations (#4222)
- feat(ember): Use @types/ember__debug (#4173)
- fix(ember): Use ui category for span operations (#4221)
- feat(eslint-config): Enable array-callback-return rule (#4229)
- ref(eslint-config): Update spaced-comment rule (#4235)
- fix(integrations): Use ui category for vue span operations (#4219)
- fix(nextjs): Add sideEffects flag to NextJS SDK (#4216)
- fix(node): Make http integration spans have http span operation (#4224)
- fix(react): Mark react package as having no side effects (#4213)
- fix(react): Use ui category for operations (#4218)
- fix(tracing): Add express category to express middleware spans (#4223)
- fix(tracing): Treat HTTP status code below 100 as UnknownError (#4131)
- fix(types): Make Options type method params contravariant (#4234)
- fix(vue): Mark Vue as having no side effects. (#4217)
- fix(vue): Use ui category for span operations (#4220)
Work in this release contributed by @jherdman and @travigd. Thank you for your contribution!
v6.15.0
- fix(browser): Capture stacktrace on
DOMExceptions, if possible (#4160) - fix(nextjs): Delay error propagation until
withSentryis done (#4027)
Work in this release contributed by @nowylie. Thank you for your contribution!
v6.14.3
- Revert: ref(utils): Use type predicates in
isutility functions (#4124)
v6.14.2
- feat(awslambda) : Capture errors individually on sqs partial batch failure (#4130)
- feat(gatsby): Upload source maps automatically when sentry-cli is configured (#4109)
- fix(nextjs): Prevent
false API resolved without sending a responsewarning (#4139) - fix(vue): Merge default and manual hooks while creating mixins. (#4132)
- ref(utils): Use type predicates in
isutility functions (#4124)
Work in this release contributed by @J4YF7O. Thank you for your contribution!
v6.14.1
- feat(gatsby): Support Gatsby v4 (#4120)
- fix(nextjs): Stop sending transactions for requests that 404 (#4095)
- fix(nextjs): Prevent infinite recompilation in dev (#4123)
- fix(node): Prioritize globalAgent while figuring out protocol (#4087)
v6.14.0
- chore(deps): Bump @sentry/webpack-plugin to 1.18.1 (#4063)
- feat(awslambda): Add requestId filter to aws.cloudwatch.logs URL (#4032)
- feat(gatsby): Support non-serializable SDK options (#4064)
- feat(gatsby): Support user integrations as a function (#4050)
- feat(integrations): Call toJSON of originalException to extract more data (#4038)
- feat(integrations): Capture console.error as an exception (#4034)
- feat(nextjs): Add mechanism to error-logger-caught errors (#4061)
- feat(nextjs): Add mechanism to withSentry-caught errors (#4046)
- feat(nextjs): Tag backend events when running on vercel (#4091)
- fix(browser): Send client outcomes through tunnel if configured (#4031)
- fix(core): Be stricter about mechanism values (#4068)
- fix(core): Prevent exception recapturing (#4067)
- fix(nextjs): Always initialize SDK with global hub (#4086)
- fix(nextjs): Fix types in config code (#4057)
- fix(nextjs): Remove logic merging include values in withSentryConfig (#4056)
- fix(node): Check for potentially undefined httpModule (#4037)
- fix(tracing): Update paths for DB drivers auto-instrumentation (#4083)
- fix(vue): Move ROOT_SPAN_TIMER into Vue context. (#4081)
Work in this release contributed by @tmilar, @deammer, and @freekii. Thank you for your contributions!
v6.13.3
- feat(nextjs): Add ability for integration tests to use linked
@sentry/xxxxpackages (#4019) - feat(nextjs): Support
distDirNext.js option (#3990) - fix(tracing): Call hasTracingEnabled with correct options when invoking startTransaction (#4020)
- ref(browser): Refactor sending client reports w. fetch fallback (#4008)
- ref(core): Make getTransport method on client optional (#4013)
- ref(ember): Update htmlbars dependency (#4026)
- ref(integrations): Minor simplification of ExtraErrorData code (#4024)
- ref(react): Rely on error.cause to link ErrorBoundary errors (#4005)
v6.13.2
- fix(browser): Use getGlobalObject for document check (#3996)
- misc(all): Disallow direct usage of globals (#3999)
v6.13.1
- fix(browser): Check for document when sending outcomes (#3993)
v6.13.0
- feat(browser): Client Report Support (#3955)
- feat(perf): Add experimental option to improve LCP collection (#3879)
- fix(browser): Make sure that
document.headordocument.bodyexists forinjectReportDialog(#3972) - fix(browser): Parse frames-only
safari(-web)-extensionstack (#3929) - fix(ember): Move
ember-sourcetodevDependencies(#3962) - fix(hub): Don't set
lastEventIDfor transactions (#3966) - fix(nextjs): Include nextjs config's
basePathonurlPrefix(#3922) - fix(node): Add protocol detection for get/request calls without explict protocol (#3950)
- fix(node): Disable
autoSessionTrackingif dsn undefined (#3954) - fix(vue): Check for matched route existence before starting transaction (#3973)
- ref(browser): Migrate unit tests from Chai and Karma to Jest (#3965)
- ref(nextjs): Exclude cross-platform tracing code from bundles (#3978)
- ref(tracing): Idle transaction refactoring (#3988)
v6.12.0
- fix(nextjs): Differentiate between webpack 4 and 5 in server builds (#3878)
- fix(core): Skip native frames while searching frame URLs. (#3897)
- fix(vue): Attach props only if VM is available (#3902)
- feat(tracing): Add pg-native support to Postgres integration. (#3894)
- ref(ember): Update addon to support Ember 4.0.0 (beta) (#3915)
- feat(react): Make Profiler _mountSpan attribute protected (#3904)
- fix(ember): allow ember-beta to fail (#3910)
- fix(tracing): Prevent metrics erroring module load in web workers (#3941)
- misc(browser): Log when event is dropped by Dedupe integration (#3943)
v6.11.0
- feat(nextjs): Allow for TypeScript user config files (#3847)
- fix(browser): Make sure handler exists for LinkedErrors Integration (#3861)
- fix(core): Skip anonymous callbacks while searching frame URLs. (#3842)
- fix(core): Stop rejecting in
flushandclosewhen client undefined (#3846) - fix(nextjs): Stop
SentryWebpackPluginfrom uploading unnecessary files (#3845) - fix(react): Require ReactElement in ErrorBoundary props and render (#3857)
- fix(tests): Allow tests to run on Windows without WSL (#3813)
- fix(utils): Fix false-positive circular references when normalizing
Eventobjects (#3864) - fix(vue): Make Router.name type optional to match VueRouter (#3843)
- ref(core): Prevent redundant setup work (#3862)
- ref(nextjs): Stop reinitializing the server SDK unnecessarily (#3860)
v6.10.0
- feat(vue): Rework tracing and add support for
Vue 3(#3804) - feat(tracing): Upgrade to
web-vitals 2.1.0(#3781) - fix(ember): Make argument to
InitSentryForEmberoptional (#3802) - fix(nextjs): Do not start a navigation if the from URL is the same (#3814)
- fix(nextjs): Let
flushfinish in API routes (#3811) - fix(nextjs): Use
domainsto prevent scope bleed (#3788) - fix(react): Make
Routetyping more generic (#3809) - ref(tracing): Update span op for outgoing HTTP requests (#3821)
- ref(tracing): Remove updated CLS from web-vitals (#3822)
v6.9.0
- feat(browser): Use scope data in report dialog (#3792)
- feat(core): Add
ensureNoCircularStructuresexperiment to help debug serialization bugs (#3776) - feat(nextjs): Add options to disable webpack plugin (#3771)
- feat(react): Support render props in
ErrorBoundary(#3793) - fix(ember): Correctly cache ember types from prepublish hook (#3749)
- fix(ember): Fix runtime config options not being merged (#3791)
- fix(metrics): Check for cls entry sources (#3775)
- fix(nextjs): Make
withSentryConfigreturn type match given config type (#3760) - fix(node): Check if
captureRequestSessionis available before its called (#3773) - fix(node): Enable
autoSessionTrackingcorrectly (#3758) - fix(react):
allRoutescannot triple equal a new array instance (#3779) - fix(tracing): Add check for
document.scriptsin metrics (#3766) - fix(types): Update
ExtractedNodeRequestDatato include validquery_paramsfortracesSampler(#3715) - ref(gatsby): Default release to empty string (#3759)
- ref(nextjs): Inject init code in
_appand API routes (#3786) - ref(nextjs): Pre-disable-plugin-option config cleanup (#3770)
- ref(nextjs): Stop setting redundant
productionBrowserSourceMapsin config (#3765)
v6.8.0
- [browser] feat: Enable serialization of multiple DOM attributes for breadcrumbs. (#3755)
- [browser] feat: Make dedupe integration default for browser (#3730)
- [core] fix: Correctly limit Buffer requests (#3736)
- [ember] ref: Allow initing Ember without config entry (#3745)
- [serverless] fix: wrapEventFunction does not await for async code (#3740)
v6.7.2
- [core] fix: Do not track sessions if not enabled (#3686)
- [core] fix: Prevent sending terminal status session updates (#3701)
- [core] ref: Make
beforeSendmore strict (#3713) - [browser] ref: Log which request type has been limited (#3687)
- [nextjs] feat: Auto enable node http integration on server (#3675)
- [nextjs] fix: Correctly handle functional next config in
withSentryConfig(#3698) - [nextjs] fix: Fix conflict with other libraries modifying webpack
entryproperty (#3703) - [nextjs] fix: Update @sentry/webpack-plugin to 1.15.1 in @sentry/nextjs to resolve build timeouts issue (#3708)
- [nextjs] ref: Split up config code and add tests (#3693)
v6.7.1
- [core] fix: Add event type to item header when envelopes are forced (#3676)
- [core] fix: Include DSN in envelope header for sessions (#3680)
- [core] fix: Prevent scope from storing more than 100 breadcrumbs at the time (#3677)
- [node] ref: Remove default http(s) import from http-module (#3681)
- [nextjs] feat: Add body data to transaction
requestcontext (#3672)
v6.7.0
- [core] feat: Add
tunneloption to support request tunneling for dealing with ad-blockers (#3521)
v6.6.0
- [node] feat: Allow for overriding custom
UrlParserin Node.js transports (#3612) - [browser] feat: Add
serializeAttributeoption to DOM breadcrumbs. (#3620) - [nextjs] fix:
Improve NextConfigExportscompatibility (#3592) - [nextjs] fix: Use correct abs path for server init (#3649)
- [angular] fix: Do not run change detection when capturing the exception (#3618)
- [angular] fix: Do not run change detection when finishing transaction (#3622)
- [angular] fix: Provide a single compilation unit for the
tracedirective (#3617) - [utils] fix: Check for
performance.nowwhen calculating browser timing (#3657) - [integrations] fix: Run rewriting for both
exceptionandstacktraceevents (#3653) - [node] ref: Replace old-style
require(console)with a global object (#3623) - [node] ref: Make
HTTPModulemore abstract to be able to use it in non-Node.JS environments (#3655) - [nextjs] ref: Export
BrowserTracingintegration directly from@sentry/nextjs(#3647)
v6.5.1
- [nextjs] fix: Prevent webpack 5 from crashing server (#3642)
- [eslint] build: Upgrade to eslint 7.27.0 (#3639)
- [nextjs] test: Add nextjs integration tests for Server and Browser (#3632)
- [browser] ref: Don't send session duration in browser environments (#3616)
- [hub] fix: Correctly compute session durations (#3616)
v6.5.0
- [angular] fix: prevent memory leak when the root view is removed (#3594)
- [browser] fix: Do not trigger session on meaningless navigation (#3608)
- [nextjs] feat: Frontend + withSentry Performance Monitoring (#3580)
- [react] fix: Use history object for init transaction name (#3609)
v6.4.1
- [ember] ref: Fix merging of runtime config with environment config. (#3563)
- [angular] ref: Allow angular v12 as a peer dependency. (#3569)
- [tracing] fix: Avoid browser tracing initialization on node environment (#3548)
- [react] ref: Make RouteProps typing more generic (#3570)
- [tracing] fix: Correctly handle pg.Cursor in pg query method (#3567)
- [types] fix: Add attachment to SentryRequestType (#3561)
- [nextjs] ref: Disable node session for next.js (#3558)
- [eslint] feat: Add new eslint rules (#3545)
v6.4.0
- [core] feat: initialScope in SDK Options (#3544)
- [node] feat: Release Health for Node (Session Aggregates) (#3319)
- [node] feat: Autoload Database Integrations in Node environment (#3483)
- [react] feat: Add support for React 17 Error Boundaries (#3532)
- [tracing] fix: Generate TTFB (Time to first byte) from span data (#3515)
v6.3.6
- [nextjs] fix: Fix error logging (#3512)
- [nextjs] fix: Add environment automatically (#3495)
- [node] feat: Implement category based rate limiting (#3435)
- [node] fix: Set handled to false when it is a crash (#3493)
- [tracing] fix: Mark tracing distributables as side effects (#3519)
v6.3.5
- [nextjs] fix: Add tslib dependecy; change inject order (#3487)
v6.3.4
- [nextjs] fix: API routes logging (#3479)
v6.3.3
- [nextjs] fix: User server types (#3471)
v6.3.2
- [nextjs] ref: Remove next.js plugin (#3462)
- [core] fix: Prevent InboundFilters mergeOptions method from breaking users code (#3458)
v6.3.1
- [angular] fix: Make SentryErrorHandler extensible and export it publicly (#3438)
- [browser] feat: Capture information about the LCP element culprit (#3427)
- [core] fix: Correctly attach installed integrations to sdkinfo (#3447)
- [ember] fix: Add guards to ensure marks exist (#3436)
- [nextjs] fix: Fix incomplete merging of user config with Sentry config (#3434)
- [nextjs] ref: Use resolved paths for
requirecalls in config code (#3426) - [node] fix: Fix for manual tests in node (#3428)
- [transports] feat: Honor no_proxy env variable (#3412)
v6.3.0
- [browser] feat: Parse safari-extension and safari-web-extension errors (#3374)
- [browser] fix: Provide better descriptions for the performance navigation timing spans (#3245)
- [browser] test: Replace Authorization with Accept header (#3400)
- [ci] ci: Add CodeQL scanning
- [core] Drop session if release is not a string or is missing and log (#3396)
- [docs] Document how to publish a new release (#3361)
- [gatsby] fix: Specify gatsby peer dep (#3385)
- [gatsby] chore(docs): Update @sentry/gatsby README (#3384)
- [integrations] feat(integrations): add prefix support for RewriteFrames (#3416)
- [integrations] ref: Use esm imports with localforage and add esModuleInterop (#3403)
- [nextjs] feat: Next.js SDK + Plugin (#3301)
- [node] fix: Generate a Sentry Release string from env if its not provided (#3393)
- [tracing] fix: Replace performance.timeOrigin in favour of browserPerformanceTimeOrigin (#3397)
- [tracing] fix: Mark span as failed when fetch API call fails (#3351)
- [utils] fix: Use the more reliable timeOrigin (#3398)
- [utils] fix: Wrap oldOnPopState.apply call in try/catch to prevent Firefox from crashing (#3377)
v6.2.5
- [utils] fix: Avoid performance.timeOrigin if too skewed (#3356)
v6.2.4
- [browser] fix: Add
SentryRequestTypetoRateLimitingCategorymapping (#3328) - [browser] ref: Add fast-path to
fetchImpland cleanup redundant iframe (#3341) - [node] fix: Fallback to empty string if
req.baseUrlis empty (#3329) - [node] ref: Remove circular dependency in
@sentry/node(#3335) - [tracing] fix: Attach mysql tracing to
Connection.createQueryinstead ofConnection.prototype.query(#3353) - [tracing] ref: Clarify naming in
BrowserTracingintegration (#3338) - [ember] ref: Fix tests to be forward compatible with component changes (#3347)
- [ember] ref: Silence deprecation warnings in beta (#3346)
v6.2.3
- [gatsby] fix: Update Vercel environment variables to match their current system variables (#3337)
v6.2.2
- [hub] fix: Only create sessions if the correct methods are defined (#3281)
- [core] fix: Don't override SDK metadata (#3304)
- [browser] fix: Prevent fetch errors loops with invalid fetch implementations (#3318)
- [serverless] ref: Add compatible runtime nodejs14.x to building awslambda layer (#3303)
- [ember] fix: Keep route hook context when performance-wrapping (#3274)
- [integrations] fix: Normalized Event before caching. (#3305)
v6.2.1
- [core] fix: Moves SDK metadata-setting into the
NodeClient/BrowserClientto protect it from being overwritten by other classes extendingBaseClientlike @sentry/serverless (#3279)
v6.2.0
- [tracing] feat: Mongoose tracing support added to MongoDB (#3252)
- [tracing] fix: Add missing
findmethod from mongo tracing list (#3253) - [tracing] fix: Create
spanRecorderwhenever transactions are sampled (#3255) - [node] fix: Parse ESM based frames with
file://protocol (#3264) - [react] fix: Remove react-dom peer dependency for RN (#3250)
- [ember] fix: Fixing fetching config during build step (#3246)
- [serverless]: fix: Handle incoming
sentry-traceheader (#3261)
v6.1.0
We updated the way how we calculate errored and crashed sessions with this update. Please be aware that some numbers might change for you and they now should reflect the actual reality. Visit our docs for more information.
- [browser] feat: Rework how we track sessions (#3224)
- [hub] ref: Simplify getting hub from active domain (#3227)
- [core] ref: Rename
usertopublicKeyinDsntype and class (#3225) - [ember] fix: Fix backwards compatibility with Embroider changes (#3230)
v6.0.4
- [browser] fix: Don't break when function call context is undefined (#3222)
- [tracing] fix: Set default sampling context data where
startTransactionis called (#3210) - [tracing] fix: Remove stray sampling data tags (#3197)
- [tracing] fix: Clear activeTransaction from the scope and always start idle timers (#3215)
- [angular] ref: Add Angular 11 to possible peerDependencies list (#3201)
- [vue] ref: Add
vue-routerto peerDependencies list (#3214)
v6.0.3
- [tracing] ref: feat(tracing): Add context update methods to Span and Transaction (#3192)
- [node] ref: Make ExpressRequest not extend http.IncomingMessage anymore (#3211)
- [browser] deps: Allow for LocalForage >=1.8.1 (#3205)
- [ember] fix(ember): Fix location url for 'hash' location type (#3195)
- [ember] fix(ember): Fix Ember to work with Embroider and Fastboot (#3181)
v6.0.2
- [browser] fix: Disable session tracking in non-browser environments (#3194)
v6.0.1
- [vue] fix: Make sure that error is present before logging it in Vue (#3183)
- [serverless] fix: Fix issue when
/distdidn't exist before building (#3190)
v6.0.0
This major version release doesn't contain any breaking API/code changes. Starting from the version 6.0.0, all SDKs
that support sending sessions data will do so by default. See our
Release Health docs to learn more. As of this version, it applies to
all Browser SDKs (Browser, React, Angular, Vue, Gatsby etc.). Node.js and other related Server SDKs will follow soon
after, in the minor 6.x release. You can opt-out of this behavior by setting autoSessionTracking: false option
during SDK initialization.
- [wasm] feat: Introduce a
@sentry/wasmpackage (#3080) - [tracing] feat: Turn Sessions Tracking on by default (#3099)
- [tracing] feat: Create session on history change (#3179)
- [core] feat: Attach SDK metadata to options and pass it to the API and transports (#3177)
- [build] feat: AWS Lambda layer target config for Craft (#3175)
- [tracing] fix: Make sure that mongo method is thenable before calling it (#3173)
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.