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.7.0

Published by getsentry-bot over 2 years ago

  • feat(angular): Add URL parameterization of transaction names (#5416)
  • fix(core): Add sentry_client to auth headers (#5413)
  • fix(remix): Add documentRequest function name. (#5404)
  • fix(remix): Skip capturing ok responses as errors. (#5405)
  • ref(remix): Add transaction source (#5398)
sentry-javascript - 7.6.0

Published by getsentry-bot over 2 years ago

This release adds the source field to all outgoing transactions.
See the tracking GH issue for more details.

This release also re-enables lambda layer releases for the Node Serverless SDK.

  • ref(angular): Add transaction source for Angular Router (#5382)
  • ref(build): Reenable lambda layer release in craft (#5207)
  • feat(nextjs): Record transaction name source when creating transactions (#5391)
  • ref(react): Add source to react-router-v3 (#5377)
  • ref(react): Add transaction source for react router v4/v5 (#5384)
  • ref(react): Add transaction source for react router v6 (#5385)
  • feat(remix): Wrap root with ErrorBoundary (#5365)
  • fix(remix): Move hook checks inside the wrapper component (#5371)
  • fix(remix): Strip query params from transaction names (#5368)
  • fix(remix): Make peer deps less restrictive (#5369)
  • fix(remix): Wrap handleDocumentRequest functions (#5387)
  • ref(serverless): Add transaction source (#5394)
  • feat(tracing): Add transaction source field (#5367)
  • feat(tracing): Record transaction name source when name set directly (#5396)
  • ref(tracing): Add transaction source to default router (#5386)
  • ref(tracing): Include transaction in DSC if transaction source is not an unparameterized URL (#5392)
  • feat(vue): Add transaction source to VueRouter instrumentation (#5381)

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

sentry-javascript - 7.5.1

Published by getsentry-bot over 2 years ago

This release removes the user_id and the transaction field from the dynamic sampling context data that is attached to outgoing requests as well as sent to Relay.

  • ref(tracing): Remove transaction name and user_id from DSC (#5363)
sentry-javascript - 7.5.0

Published by getsentry-bot over 2 years ago

This release adds the sendDefaultPii flag to the Sentry.init options.
When using performance monitoring capabilities of the SDK, it controls whether user IDs (set via Sentry.setUser) are propagated in the baggage header of outgoing HTTP requests.
This flag is set to false per default, and acts as an opt-in mechanism for sending potentially sensitive data.
If you want to attach user IDs to Sentry transactions and traces, set this flag to true but keep in mind that this is potentially sensitive information.

  • feat(sdk): Add sendDefaultPii option to the JS SDKs (#5341)
  • fix(remix): Sourcemaps upload script is missing in the tarball (#5356)
  • fix(remix): Use cjs for main entry point (#5352)
  • ref(tracing): Only add user_id to DSC if sendDefaultPii is true (#5344)

Work in this release contributed by @jkcorrea and @nfelger. Thank you for your contributions!

sentry-javascript - 7.4.1

Published by getsentry-bot over 2 years ago

This release includes the first published version of @sentry/remix.

  • build(remix): Make remix package public (#5349)
sentry-javascript - 7.4.0

Published by getsentry-bot over 2 years ago

This release contains the alpha version of @sentry/remix, our newest JavaScript SDK! For details on how to use
it, please see the README and the tracking GitHub issue.

Attention: Due to an oversight, the @sentry/remix package is only published on npm as part of the 7.4.1 release.

  • feat(remix): Enable Remix SDK #5327
  • feat(remix): Add release / sourcemap upload script. (#5312)
  • feat(remix): Add Remix server SDK (#5269)
  • feat(remix): Add Remix client SDK (#5264)
  • feat(remix): Add Remix SDK package boilerplate (#5256)
  • fix(utils): Handle toJSON methods that return circular references (#5323)

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

Special thank you to @jacob-ebey for pointing us in the right direction while we were working on the Remix SDK:
https://github.com/jacob-ebey/remix-sentry.

sentry-javascript - 7.3.1

Published by getsentry-bot over 2 years ago

  • feat(react): expose FallbackRender as top-level type (#5307)
  • fix(core): Remove optional chaining usage (#5304)
  • fix(ember): Restore ember package contents (#5318)
  • fix(ember): Update README docs to match sentry-docs (#5315)
  • ref(hub): Reduce hub bundle size (#5306)
  • ref(tracing): Ignore third party baggage entries from incoming requests (#5319)
  • ref(types): Add type for measurement unit (#5313)

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

sentry-javascript - 7.3.0

Published by getsentry-bot over 2 years ago

  • feat(nextjs): Add exception handler for _error.js (#5259)
  • feat(tracing): Add additional Dynamic Sampling Context items to baggage and envelope headers (#5292)
  • fix(node): Allow ParseRequestOptions to be passed to request handler (#5287)
  • fix(tracing): Baggage parsing fails when input is not of type string (#5276)
  • fix(tracing): Report the right units for CLS and TTFB (#5303)
  • fix(vue): Property access on undefined in errorHandler (#5279)
  • ref(node): Move stack parser to utils so it can be used from Electron (#5286)
  • ref(tracing): Move getBaggage() from Span to Transaction class (#5299)
  • ref(tracing): Unify DSC key names in envelope and baggage headers (#5302)

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

sentry-javascript - 7.2.0

Published by getsentry-bot over 2 years ago

  • feat(angular): Add Angular 14 support (#5253)
  • feat(tracing): GraphQL and Apollo Integrations (#3953)
  • fix(docs): Adjust hash-link to propagation-of-baggage-header (#5235)
  • fix(docs): Update MIGRATION for SeverityLevel (#5225)
  • fix(nextjs): Export showReportDialog from NextJS SDK (#5242)
  • fix(vue): Accounts for undefined options when formatting component name (#5254)
  • ref(node): Move request-data-extraction functions to@sentry/utils (#5257)
  • ref(tracing): Check and set mutability of baggage (#5205)
  • ref(tracing): Sync baggage data in Http and envelope headers (#5218)
  • chore(angular): Add Angular version to event contexts (#5260)
  • chore(core): Remove circular JSON debugging hacks (#5267)
  • chore(integrations): Add trace to CONSOLE_LEVELS (#5249)

Work in this release contributed by @Arinono and @slaesh. Thank you for your contributions!

sentry-javascript - 7.1.1

Published by getsentry-bot over 2 years ago

  • Revert "ref(node): Move non-handler code out of handlers module" (#5223)
  • fix(types): Vendor in TextEncoderCommon type (#5221)
sentry-javascript - 7.1.0

Published by getsentry-bot over 2 years ago

  • feat(tracing): Propagate environment and release values in baggage Http headers (#5193)
  • feat(node): Compression support for http transport (#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.min bundle variant config (#5192)
  • fix(tracing): Fix missing page load metrics in Electron renderer (#5187)
  • ref(node): Move non-handler code out of handlers module (#5190)
  • ref: Switch to magic string for logger statements (#5155)
  • chore(build): Only upload lambda layer when releasing (#5208)
sentry-javascript - 7.0.0

Published by getsentry-bot over 2 years ago

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.js to ES6 instead of ES5. ES5 bundles are still available at bundle.es5.min.js. (#4958)
  • Updated build system to use TypeScript 3.8.3 (#4895)
  • Deprecated Severity enum for bundle size reasons. Please use string literals instead. (#4926)
  • Removed critical Severity level. (#5032)
  • whitelistUrls and blacklistUrls have been renamed to allowUrls and denyUrls in the Sentry.init() options. (#4850)
  • BaseClient and it's child classes now require transport, stackParser, and integrations to 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 Transport API. This means custom transports will have to be adjusted accordingly.
  • Updated how Node Transport Options are passed down.
  • Start propogating baggage HTTP header alongside sentry-trace header to propogate additional tracing related information. (#5133)
  • Renamed registerRequestInstrumentation export to instrumentOutgoingRequests in @sentry/tracing. (#4859)
  • Renamed UserAgent integration to HttpContext. (#5027)
  • Replaced BrowserTracing integration's maxTransactionDuration option with finalTimeout option in the @sentry/tracing package and reset idleTimeout based on activities count. This should improve accuracy of web-vitals like LCP by 20-30%. (#5044)
  • Updated @sentry/angular to be compiled by the angular compiler. (#4641)
  • Made tracing package treeshakable (#5166)
  • Removed support for Node v6. (#4851)
  • Removed @sentry/minimal package in favour of using @sentry/hub. (#4971)
  • Removed support for Opera browser pre v15 (#4923)
  • Removed ignoreSentryErrors option from AWS lambda SDK. Errors originating from the SDK will now always be caught internally. (#4994)
  • Removed Integrations.BrowserTracing export from @sentry/nextjs. Please import BrowserTracing from @sentry/nextjs directly.
  • Removed static id property from BrowserTracing integration.
  • Removed SDK_NAME export from @sentry/browser, @sentry/node, @sentry/tracing and @sentry/vue packages. (#5040)
  • Removed Angular, Ember, and Vue integrations from @sentry/integrations in favour of the explicit framework packages: @sentry/angular, @sentry/ember, and @sentry/vue. (#4893)
  • Removed enums Status, RequestSessionStatus, and SessionStatus. Deprecated enums SpanStatus and Severity. This was done to save on bundle size. (#4891) (#4889) (#4890)
  • Removed support for deprecated @sentry/apm package. (#4845)
  • Removed deprecated user field from DSN interface. publicKey should be used instead. (#4864)
  • Removed deprecated getActiveDomain method and DomainAsCarrier type from @sentry/hub. (#4858)
  • Removed eventStatusFromHttpCode to save on bundle size.
  • Removed usage of deprecated event.stacktrace field. (#4885)
  • Removed raven-node backward-compat code (#4942)
  • Removed showReportDialog method on BrowserClient (#4973)
  • Removed deprecated startSpan and child methods (#4849)
  • Removed deprecated frameContextLines options (#4884)
  • Removed Sentry from 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 API class from @sentry/core. (#4848)
  • Refactored Session class to use a more functional approach. (#5054)
  • Removed Backend class in favour of moving functionality into the Client class (for more details, see #4911 and #4919).
  • Removed forget async utility function (#4941)
  • Removed tslint from @sentry-internal/typescript (#4940)
  • Removed _invokeClient function 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 name field to EventProcessor (#4932)
  • feat: Expose configurable stack parser (#4902)
  • feat(tracing): Make setMeasurement public 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 addEventListener instrumentation (#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 querySelector when 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)
sentry-javascript - 7.0.0-rc.0

Published by getsentry-bot over 2 years ago

  • (breaking) feat(nextjs): Make tracing package treeshakable (#5166)
  • fix(browser): Fix memory leak in addEventListener instrumentation (#5147)
  • fix(tracing): Don't use querySelector when not available (#5160)
  • fix(utils): Fix infinite recursion in dropUndefinedKeys (#5163)
  • ref(build): Use rollup to build AWS lambda layer (#5146)
  • ref(core): Actually ensure attachments are added to the envelope (#5159)
  • ref(core): Make hint callback argument non-optional (#5141)
sentry-javascript - 7.0.0-beta.2

Published by getsentry-bot over 2 years ago

  • (breaking) feat(tracing): Add empty baggage header propagation to outgoing requests (#5133)
  • feat: Add attachments API (#5004)
  • feat(core): Send Baggage in Envelope Header (#5104)
  • feat(utils): Introduce Baggage API (#5066)
  • fix(build): Fix express import in gcpfunction (#5097)
  • fix(ember): Export sha hashes of injected scripts (#5089)
  • ref(build): Use sucrase for es6 bundles (#5111)
  • ref(serverless): Do not throw on flush error (#5090)
  • ref(serverless): Point DSN to relay in lambda extension (#5126)
  • ref(tracing): Rename baggage env header to trace (#5128)
sentry-javascript - 7.0.0-beta.1

Published by getsentry-bot over 2 years ago

  • (breaking) ref: Remove critical severity (#5032)
  • (breaking) ref: Delete unneeded SDK_NAME (#5040)
  • (breaking) ref(browser): Rename UserAgent integration to HttpContext (#5027)
  • (breaking) ref(hub): Convert Session class to object and functions (#5054)
  • (breaking) ref(node): Explicitly pass down node transport options (#5057)
  • (breaking) ref(tracing): Reset IdleTimeout based on activities count (#5044)
  • feat(react): Add react-router-v6 integration (#5042)
  • feat(build): Vendor polyfills injected during build (#5051)
  • fix(integrations): Mark ExtraErrorData as already normalized (#5053)
  • fix(tracing): Remove isInstanceOf check in Hub constructor (#5046)
  • fix(utils): Consider 429 responses in transports (#5062)
  • ref(browser): Unify BrowserTransportOptions (#5058)
  • ref(core): Log warning on NOK transport response (#5091)
  • ref(utils): Clean up dangerous type casts in object helper file (#5047)
  • ref(utils): Add logic to enable skipping of normalization (#5052)
sentry-javascript - 7.0.0-beta.0

Published by getsentry-bot over 2 years ago

Please see the migration docs for guides to upgrade to version 7.

  • (breaking): ref: Make it easier to use stackParser (#5015)
  • (breaking): ref: Switch to new transports (#4943)
  • (breaking): ref: Delete store endpoint code (#4969)
  • (breaking): chore: set ignoreSentryErrors to true (#4994)
  • (breaking): ref(types): Stop using Severity enum (#4926)
  • (breaking): fix(angular): Use Angular compiler to compile @sentry/angular (#4641)
  • (breaking): ref(browser): Remove showReportDialog on browser client (#4973)
  • (breaking): ref(build): Rename CDN bundles to be es6 per default (#4958)
  • (breaking): feat(core): Introduce separate client options (#4927)
  • (breaking): ref(core): Delete API Details (#4999)
  • (breaking): feat(hub): Remove _invokeClient (#4972)
  • (breaking): ref(minimal): Delete @sentry/minimal (#4971)
  • (breaking): ref(node): Remove raven-node backward-compat code (#4942)
  • feat(tracing): Add Prisma ORM integration. (#4931)
  • feat(tracing): Add GB unit to device memory tag value (#4935)
  • feat: Add client report hook to makeTransport (#5008)
  • feat: Export browser integrations individually (#5028)
  • ref(build): Switch tsconfig target to es6 (#5005)
  • ref(core): Make event processing log warnings instead of errors (#5010)
  • chore: Remove tslint from @sentry-internal/typescript (#4940)
  • fix(hub): Add missing parameter to captureException docstring (#5001)
  • fix(serverless): Adjust v6 Lambda layer hotfix for v7 (#5006)
  • fix(tracing): Adjust sideEffects package.json entry for v7 (#4987)
  • ref(utils): Remove forget async utility function (#4941)
sentry-javascript - 6.19.7

Published by getsentry-bot over 2 years ago

  • 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!

sentry-javascript - 7.0.0-alpha.1

Published by getsentry-bot over 2 years ago

  • (breaking) feat: Remove usage of deprecated event.stacktrace (#4885)
  • (breaking) ref: Port functionality from Backend to Client (#4911)
  • (breaking) ref: Delete Backend classes (#4919)
  • (breaking) feat(browser): Remove stack parser support for Opera pre v15 (#4923)
  • (breaking) ref(client): Inject Transports into Client (#4921)
  • feat: Add name field to EventProcessor (#4932)
  • ref: Expose configurable stack parser (#4902)
  • ref: Turn on isolatedModules TS option (#4896)
  • ref(tracing): Make setMeasurement public API (#4933)
  • ref(tracing): Update setMeasurements to only set a single measurement (#4920)
  • ref(types): Stop using Severity enum (#4926)
sentry-javascript - 7.0.0-alpha.0

Published by getsentry-bot over 2 years ago

  • breaking feat: Drop support for Node 6 (#4851)
  • breaking feat: Remove references to @sentry/apm (#4845)
  • breaking feat: Delete deprecated startSpan and child methods (#4849)
  • breaking feat(bundles): Stop publishing CDN bundles on npm (#4901)
  • breaking ref(build): Rename dist directories to cjs (#4900)
  • breaking ref(build): Update to TypeScript 3.8.3 (#4895)
  • breaking feat(browser): Remove top level eventbuilder exports (#4887)
  • breaking feat(core): Delete API class (#4848)
  • breaking feat(core): Remove whitelistUrls/blacklistUrls (#4850)
  • breaking feat(gatsby): Remove Sentry from window (#4857)
  • breaking feat(hub): Remove getActiveDomain (#4858)
  • breaking feat(hub): Remove setTransaction scope method (#4865)
  • breaking feat(integrations): Remove old angular, ember, and vue integrations (#4893)
  • breaking feat(node): Remove deprecated frameContextLines (#4884)
  • breaking feat(tracing): Rename registerRequestInstrumentation -> instrumentOutgoingRequests (#4859)
  • breaking feat(types): Remove deprecated user dsn field (#4864)
  • breaking feat(types): Delete RequestSessionStatus enum (#4889)
  • breaking feat(types): Delete Status enum (#4891)
  • breaking feat(types): Delete SessionStatus enum (#4890)
sentry-javascript - 6.19.6

Published by getsentry-bot over 2 years ago

  • fix(typing): Fix typing API in CaptureConsle (#4879)