Socket
Socket
Sign inDemoInstall

@sentry/types

Package Overview
Dependencies
0
Maintainers
11
Versions
436
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
44Next

8.1.0

Diff

Changelog

Source

8.1.0

This release mainly fixes a couple of bugs from the initial 8.0.0 release. In addition to the changes below, we updated some initially missed points in our migration guides and documentation.

  • feat(aws-serverless): Fix tree-shaking for aws-serverless package (#12017)
  • feat(node): Bump opentelemetry instrumentation to latest version (#12028)
  • feat(scope): Bring back lastEventId on isolation scope (#11951) (#12022)
  • fix(aws-serverless): Export awslambda-auto
  • fix(node): Do not warn for missing instrumentation if SDK is disabled (#12041)
  • fix(react): Set dependency-injected functions as early as possible (#12019)
  • fix(react): Warn and fall back gracefully if dependency injected functions are not available (#12026)
  • ref(core): Streamline parseSampleRate utility function (#12024)
  • ref(feedback): Make eventId optional and use lastEventId in report dialog (#12029)
sentry-bot
published 7.115.0 •

sentry-bot
published 8.0.0 •

Changelog

Source

8.0.0

The Sentry JS SDK team is proud to announce the release of version 8.0.0 of Sentry's JavaScript SDKs - it's been a long time coming! Thanks to everyone for your patience and a special shout out to the brave souls testing preview builds and reporting issues - we appreciate your support!


How to Upgrade to Version 8:

We recommend reading the migration guide docs to find out how to address any breaking changes in your code for your specific platform or framework.

To automate upgrading to v8 as much as possible, use our migration codemod @sentry/migr8:

npx @sentry/migr8@latest

All deprecations from the v7 cycle, with the exception of getCurrentHub(), have been removed and can no longer be used in v8. If you have an advanced Sentry SDK setup, we additionally recommend reading the in-depth migration guide in our repo which highlights all changes with additional details and information.

The rest of this changelog highlights the most important (breaking) changes and links to more detailed information.

Version Support

With v8, we dropped support for several old runtimes and browsers

Node SDKs: The Sentry JavaScript SDK v8 now supports Node.js 14.8.0 or higher. This applies to @sentry/node and all of our node-based server-side sdks (@sentry/nextjs, @sentry/remix, etc.). Furthermore, version 8 now ships with full support for ESM-based node apps using Node.js 18.19.0 or higher.

Browser SDKs: The browser SDKs now require ES2018+ compatible browsers. New minimum browser versions:

  • Chrome 63
  • Edge 79
  • Safari/iOS Safari 12
  • Firefox 58
  • Opera 50
  • Samsung Internet 8.2

For more details, please see the version support section in our migration guide.

Initializing Server-side SDKs (Node, Bun, Deno, Serverless):

In v8, we support a lot more node-based packages than before. In order to ensure auto-instrumentation works, the SDK now needs to be imported and initialized before any other import in your code.

We recommend creating a new file (e.g. instrumentation.js) to import and initialize the SDK. Then, import the file on top of your entry file or detailed instructions, check our updated SDK setup docs initializing the SDK in v8.

Performance Monitoring Changes

The API around performance monitoring and tracing has been streamlined, and we've added support for more integrations out of the box.

Functional Integrations

Integrations are now simple functions instead of classes. Class-based integrations have been removed:

// old (v7)
Sentry.init({
  integrations: [new Sentry.BrowserTracing()],
});

// new (v8)
Sentry.init({
  integrations: [Sentry.browserTracingIntegration()],
});

Package removal

The following packages have been removed or replaced and will no longer be published:

sentry-bot
published 8.0.0-rc.3 •

Changelog

Source

8.0.0-rc.3

Important Changes

  • feat(bun): Add Bun Global Unhandled Handlers (#11960)

The Bun SDK will now capture global unhandled errors.

Other Changes

  • feat(node): Log process and thread info on initialisation (#11972)
  • fix(aws-serverless): Include ESM artifacts in package (#11973)
  • fix(browser): Only start http.client spans if there is an active parent span (#11974)
  • fix(feedback): Improve CSS theme variable names and layout (#11964)
  • fix(node): Ensure execArgv are not sent to worker threads (#11963)
  • ref(feedback): Simplify feedback function params (#11957)
sentry-bot
published 8.0.0-rc.2 •

Changelog

Source

8.0.0-rc.2

Important Changes

  • feat(node): Register ESM patching hooks in init for supported Node.js versions

This release includes adds support for ESM when Sentry.init() is called within a module imported via the --import Node.js flag:

node --import ./your-file-with-sentry-init.mjs your-app.mjs

Note that the SDK only supports ESM for node versions 18.19.0 and above, and 20.6.0 above.

Other Changes

  • deps(node): Bump @opentelemetry/core to 1.24.1 and @opentelemetry/instrumentation to 0.51.1 (#11941)
  • feat(connect): Warn if connect is not instrumented (#11936)
  • feat(express): Warn if express is not instrumented (#11930)
  • feat(fastify): Warn if fastify is not instrumented (#11917)
  • feat(hapi): Warn if hapi is not instrumented (#11937)
  • feat(koa): Warn if koa is not instrumented (#11931)
  • fix(browser): Continuously record CLS web vital (#11934)
  • fix(feedback): Pick user from any scope (#11928)
  • fix(node): Fix cron instrumentation and add tests (#11811)
sentry-bot
published 7.114.0 •

sentry-bot
published 8.0.0-rc.1 •

Changelog

Source

8.0.0-rc.1

This release contains no changes and was done for technical purposes. This version is considered stable.

For the sake of completeness this changelog entry includes the changes from the previous release candidate:

We recommend to read the detailed migration guide in the docs.

Important Changes

  • feat(node): Support hapi v21 & fix E2E test (#11906)

We now support hapi v21 and added tests for it.

  • feat(node): Warn if ESM mode is detected (#11914)

When running Sentry in ESM mode, we will now warn you that this is not supported as of now. We are working on ensuring support with ESM builds.

Other Changes

  • feat(feedback): Iterate on css for better scrolling & resizing when browser is small (#11893)
  • fix(node): Ensure prisma integration creates valid DB spans (#11908)
  • fix(node): Include loader hook files in package.json (#11911)
sentry-bot
published 8.0.0-rc.0 •

Changelog

Source

8.0.0-rc.0

This is the first release candidate of Sentry JavaScript SDK v8.

We recommend to read the detailed migration guide in the docs.

Important Changes

  • feat(node): Support hapi v21 & fix E2E test (#11906)

We now support hapi v21 and added tests for it.

  • feat(node): Warn if ESM mode is detected (#11914)

When running Sentry in ESM mode, we will now warn you that this is not supported as of now. We are working on ensuring support with ESM builds.

Other Changes

  • feat(feedback): Iterate on css for better scrolling & resizing when browser is small (#11893)
  • fix(node): Ensure prisma integration creates valid DB spans (#11908)
  • fix(node): Include loader hook files in package.json (#11911)
sentry-bot
published 8.0.0-beta.6 •

Changelog

Source

8.0.0-beta.6

This beta release contains various bugfixes and improvements for the v8 beta cycle.

  • feat: Add tunnel support to multiplexed transport (#11806)
  • feat: Export spanToBaggageHeader utility (#11881)
  • feat(browser): Disable standalone http.client spans (#11879)
  • feat(ember): Update ember dependencies (#11753)
  • feat(fedback): Convert CDN bundles to use async feedback for lower bundle sizes (#11791)
  • feat(feedback): Add captureFeedback method (#11428)
  • feat(feedback): Have screenshot by default (#11839)
  • feat(integrations): Add zod integration (#11144)
  • feat(ioredis): Add integration for ioredis (#11856)
  • feat(nextjs): Add transaction name to scope of server component (#11850)
  • feat(nextjs): Be smarter in warning about old ways of init configuration (#11882)
  • feat(nextjs): Set transaction names on scope for route handlers and generation functions (#11869)
  • feat(node): Support Node 22 (#11871)
  • fix(angular): Run tracing calls outside Angular (#11748)
  • fix(feedback): Be consistent about whether screenshot should and can render (#11859)
  • fix(nestjs): Ensure Nest.js interceptor works with non-http context (#11880)
  • fix(node): Fix nest.js error handler (#11874)
  • fix(react): Fix react router v4/v5 instrumentation (#11855)
  • ref: Add geo location types (#11847)
sentry-bot
published 7.113.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc