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

Published by getsentry-bot over 1 year ago

  • build(replay): Stop preserving modules (#6817)
  • feat(nextjs): Add browser SDK to app directory browser bundle (#6812)
  • feat(node): Use includeLocalVariables option to enable LocalVariables integration (#6874)
  • feat(node): Add option to capture local variables for caught exceptions via LocalVariables integration (#6876)
  • feat(replay): Add flush method to integration (#6776)
  • feat(replay): Handle worker loading errors (#6827)
  • feat(replay): Lower the flush max delay from 15 seconds to 5 seconds (#6761)
  • feat(tracing): Promote enableLongTask to option of BrowserTracing (#6837)
  • fix(core): Fix replay client report data category (#6891)
  • fix(nextjs): Fix SDK multiplexer loader on Windows (#6866)
  • fix(otel): Use http/grpc status over span status (#6879)
  • fix(react): Add children prop for Profiler (#6828)
  • fix(react): Make wrapCreateBrowserRouter generic (#6862)
  • fix(remix): Make sure the domain is created before running. (#6852)
  • ref(nextjs): Remove NFT build time exclusions (#6846)
  • ref(replay): Avoid duplicate debounce timers (#6863)
  • ref(replay): Remove unused initialFlushDelay option (#6867)
  • ref(replay): Send SDK version in Replay events (#6814)

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

sentry-javascript - 7.31.1

Published by getsentry-bot almost 2 years ago

  • build(replay): Provide full browser+tracing+replay bundle (#6793)
  • feat(nextjs): Disable NextJS perf monitoring when using otel (#6820)
  • fix(nextjs): Add back browser field in package.json (#6809)
  • fix(nextjs): Connect Edge API route errors to span (#6806)
  • fix(nextjs): Correctly handle ts middleware files (#6816)
sentry-javascript - 7.31.0

Published by getsentry-bot almost 2 years ago

The Next.js SDK now supports error and performance monitoring for Next.js middleware and Edge API routes.
To set it up, add a sentry.edge.config.js or sentry.edge.config.ts file to the root of your project and initialize the SDK:

// sentry.edge.config.js or sentry.edge.config.ts

import * as Sentry from "@sentry/nextjs";

const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN;

Sentry.init({
  dsn: SENTRY_DSN || "YOUR DSN HERE",
  tracesSampleRate: 1.0,
});

The Next.js will automatically instrument Edge API routes and middleware.
If you want to opt out of automatic instrumentation of middleware can use the autoInstrumentMiddleware option in the sentry object of your Next.js configuration:

const moduleExports = {
  sentry: {
    autoInstrumentMiddleware: false,
  },
};

Middleware can be manually instrumented by using the wrapMiddlewareWithSentry function.

  • feat(nextjs): Add Edge Runtime SDK (#6752)
  • feat(nextjs): Add optional options argument to withSentryConfig as an alternative to the sentry property (#6721)
  • feat(nextjs): Add edge route and middleware wrappers (#6771)
  • feat(nextjs): Auto-wrap edge-routes and middleware (#6746)
  • feat(replay): Update rrweb & rrweb-snapshot (#6749)
  • feat(replay): Stop recording when retry fails (#6765)
  • feat(replay): Stop without retry when receiving bad API response (#6773)
  • feat(types): Add Trace Context type (#6714)
  • fix(nextjs): Export isomorphic data fetching wrappers from client SDK (#6790)
  • fix(nextjs): Make Next.js types isomorphic (#6707)
  • fix(node): Handle node build without inspector in LocalVariables integration (#6780)
  • fix(otel): Set trace context via Otel Span instead of Sentry span (#6724)
  • fix(otel): Prevent baggage from being overwritten (#6709)
  • fix(otel): Make sure we handle when sentry-trace is an empty array (#6781)
  • fix(remix): Make remix SDK type exports isomorphic (#6715)
  • fix(replay): Fix checkoutEveryNms (#6722)
  • fix(replay): Fix incorrect uncompressed recording size due to encoding (#6740)
  • fix(tracing): Attach request instrumentation span to active span instead of current transaction (#6778)
  • ref(nextjs): Deprecate isBuild() and IS_BUILD (#6727)
sentry-javascript - 7.30.0

Published by getsentry-bot almost 2 years ago

  • feat(core): Add addIntegration method to client (#6651)
  • feat(core): Add replay_event type for events (#6481)
  • feat(gatsby): Support Gatsby v5 (#6635)
  • feat(integrations): Add HTTPClient integration (#6500)
  • feat(node): Add LocalVariables integration to capture local variables to stack frames (#6478)
  • feat(node): Check for invalid url in node transport (#6623)
  • feat(replay): Remove replayType from tags and into replay_event (#6658)
  • feat(transport): Return result through Transport send (#6626)
  • fix(nextjs): Don't wrap res.json and res.send (#6674)
  • fix(nextjs): Don't write to res.end to fix next export (#6682)
  • fix(nextjs): Exclude SDK from Edge runtime bundles (#6683)
  • fix(replay): Allow Replay to be used in Electron renderers with nodeIntegration enabled (#6644)
  • fix(utils): Ignore stack frames over 1kb (#6627)
  • ref(angular) Add error-like objects handling (#6446)
  • ref(nextjs): Remove instrumentSever (#6592)

Work in this release contributed by @rjoonas, @Naddiseo, and @theofidry. Thank you for your contributions!

sentry-javascript - 7.29.0

Published by getsentry-bot almost 2 years ago

This update includes a change to the @sentry/nextjs SDK that may increase response times of requests in applications
deployed to Vercel or AWS lambdas to ensure that error events are sent consistently.
Additionally, Next.js applications deployed to Vercel or AWS lambdas may also see an uptick in sent transactions. (for
more information see #6578)

  • feat(core): Add getSdkMetadata to Client (#6643)
  • feat(nextjs): Send events consistently on platforms that don't support streaming (#6578)
  • feat(replay): Use new prepareEvent util & ensure dropping replays works (#6522)
  • feat(types): Upstream some replay types (#6506)
  • fix(replay): Envelope send should be awaited in try/catch (#6625)
  • fix(replay): Improve handling of maskAllText selector (#6637)
  • fix(tracing): Don't finish React Router 6 pageload transactions early (#6609)
sentry-javascript - 7.28.1

Published by getsentry-bot almost 2 years ago

  • fix(replay): Do not mangle _metadata in client options (#6600)
  • fix(replay): Cater for event processor returning null (#6576)
sentry-javascript - 7.28.0

Published by getsentry-bot almost 2 years ago

  • feat(nextjs): Check for Vercel Edge Function GA (#6565)
  • feat(utils): Improved envelope parser (#6580)
  • fix(nextjs): Export Replay from index.server.ts to avoid TS error (#6577)
  • fix(nextjs): Pass this through wrappers (#6572)
  • ref(types): Add undefined as possible event type (#6584)
sentry-javascript - 7.27.0

Published by getsentry-bot almost 2 years ago

This release exports the Session Replay integration via @sentry/browser and all framework SDKs building on top of it.
Going forward, the @sentry/replay package doesn't have to be installed explicitly to use Replay.
Furthermore, this release increases the maximim replay session duration from 30 minutes to 1 hour.

  • feat(browser): Export Replay integration from Browser SDK (#6508)
  • feat(replay): Change MAX_SESSION_LIFE to 1 hour (#6561)
  • feat(replay): Do not capture errors originating from rrweb (#6521)
  • feat(replay): Flush immediately on DOM checkouts (#6463)
  • fix(core): Make beforeSend handling defensive for different event types (#6507)
  • fix(replay): Ensure lodash.debounce does not trigger next.js warning (#6551)
  • fix(replay): Make maskAllText selector more specific (#6544)
  • fix(replay): Send dsn in envelope header if tunneling is active (#6568)
  • fix(utils): Don't attach context lines to stack frames without line number (#6549)
  • ref(replay): Send SDK's name in replay event (#6514)

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

sentry-javascript - 7.26.0

Published by getsentry-bot almost 2 years ago

  • feat(browser): Export event builder methods for use in other SDKs (#6515)
  • feat(types): Add threads to Event (#6516)
  • feat(nextjs): Add option to automatically tunnel events (#6425)
  • fix(nextjs): Fix automatic release value discovery (#6513)
  • ref(nextjs): Use generic loader to inject global values (#6484)

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

sentry-javascript - 7.25.0

Published by getsentry-bot almost 2 years ago

  • feat(core): Add scope.getLastBreadcrumb() (#6495)
  • feat(replay): Allow to opt-in to capture replay exceptions (#6482)
  • feat(tracing): Add interaction transaction as an experiment (#6210)
  • feat(types): Add profile envelope item type (#6468)
  • fix(replay): Replace _waitForError with recordingMode (#6489)
  • ref(replay): Inline lodash dependency into build (#6483)
  • build(core): Do not mangle private methods used by Replay (#6493)
sentry-javascript - 7.24.2

Published by getsentry-bot almost 2 years ago

  • fix(replay): Add missing rrweb type declarations (#6464)
  • fix(tracing): Check for otel before loading db module (#6461)
  • fix(tracing): Deprecate and remove reportAllChanges option (#6456)
  • ref(replay): Extract integration to clarify public API (#6457)
sentry-javascript - 7.24.1

Published by getsentry-bot almost 2 years ago

This patch corrects an oversight on our end which caused the Sentry Replay integration CDN bundles to be ignored when uploading bundles to our CDN.
If you want to use the Replay CDN bundles, please use version 7.24.1 or newer.

  • fix(react): Add type for React Router's encodeLocation method (#6439)
  • fix(replay): Add CDN bundle path to release artifacts (#6452)
  • fix(tracing): Instrument cursors returned from MongoDB operations. (#6437)
  • ref(angular): Extract zonejs error unwrapper into a dedicated function (#6443)

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

sentry-javascript - 7.24.0

Published by getsentry-bot almost 2 years ago

This release bumps the @sentry/replay package from version 0.x to 7.24.0.
Along with this version bump, we're introducing a few breaking changes.
Take a look at the Replay migration guide for further information.
Furthermore, we're now also publishing CDN bundles for the Replay integration.
The Replay version bump is the result of moving the package into the Sentry JavaScript SDK monorepo which aligns the version with our other JS SDK packages.

  • feat(browser): Support dom.maxStringLength configuration (#6311)
  • feat(nextjs): Don't init SDK on Vercel Edge Runtime (#6408)
  • feat(nextjs): Parameterize prefix loader values (#6377)
  • feat(nextjs): Support assetPrefix option (#6388)
  • fix(nextjs): Inject SDK in dev mode (#6368)
  • fix(nextjs): Use basePath for assetPrefix if needed (#6424)
  • fix(node): Move profilesSampleRate into BaseNodeOptions (#6409)
  • ref(nextjs): Clean up client-side integrations code (#6382)
  • ref(nextjs): Use loader for rather than webpack plugin for injecting release (#6404)
  • ref(remix): Do not fail silently if getClientIpAddress throws error. (#6400)

Work in this release contributed by @tomgrossman and @ZachGawlik. Thank you for your contributions!

sentry-javascript - 7.23.0

Published by getsentry-bot almost 2 years ago

  • feat(browser): Add __SENTRY_RELEASE__ magic string (#6322)
  • fix(node): Add profilesSampleRate (#6318)
  • fix(otel): Account for number status code (#6345)
  • fix(otel): Add trace info to error events (#6364)
  • fix(otel): Set root transaction name to be route (#6334)
  • ref(core): Move sentry breadcrumb logic into integration (#6195)
  • ref(tracing): Remove sentry_reportAllChanges tag (#6360)

Work in this release contributed by @zhiyan114. Thank you for your contributions!

sentry-javascript - 7.22.0

Published by getsentry-bot almost 2 years ago

  • feat(core): Pass event as third argument to recordDroppedEvent (#6289)
  • fix(nextjs): Apply Webpack configuration in dev mode (#6291)
  • fix(react): Relax React Router 6 RouteObject typing. (#6274)
  • fix(remix): Prevent crashes from failed normalizeRemixRequest calls. (#6296)
  • fix(remix): Attempt to extract user IP from request headers. (#6263)
  • fix(remix): Pass transaction name as route to RequestData. (#6276)
sentry-javascript - 7.21.1

Published by getsentry-bot almost 2 years ago

  • fix(nextjs): Stop excluding withSentryConfig from serverless bundles (#6267)
sentry-javascript - 7.21.0

Published by getsentry-bot almost 2 years ago

  • feat(react): Add tracing support for React Router 6.4 createBrowserRouter. (#6172)
  • fix(core): Add guard against scope.getAttachments (#6258)
  • fix(core): Only generate eventIds in client (#6247)
  • fix(express): Support multiple routers with common paths. (#6253)
  • fix(tracing): Pass tracePropagationTargets to instrumentOutgoingRequests (#6259)
sentry-javascript - 7.20.1

Published by getsentry-bot almost 2 years ago

  • fix(angular): Set <unknown> component name default in TraceDirective (#6222)
  • fix(core): Include _sdkProcessingMetadata when cloning scope (#6218)
  • fix(tracing): Make shouldAttachHeaders not fall back to default values (#6238)
  • ref(vue): Check if SDK is initialized before app is mounted (#6227)
sentry-javascript - 7.20.0

Published by getsentry-bot almost 2 years ago

  • feat(angular): Add Angular 15 Peer Dependencies (#6220)
  • feat(nextjs): Add excludeServerRoutes config option (#6207)
  • feat(node): Move tracing options to Http integration (#6191)
  • fix(nextjs): Use absolute path for distDir in webpack plugin options (#6214)
  • fix(remix): Resolve Remix Request API compatibility issues. (#6215)
  • ref(nextjs): Invert serverside injection criteria (#6206)
sentry-javascript - 7.19.0

Published by getsentry-bot almost 2 years ago

This release adds a new SDK, @sentry/opentelemetry-node,
which is available as an alpha release to integrate OpenTelemetry performance tracing with Sentry.
Give it a try and let us know if you have any feedback or problems with using it. (#6000)

This release also deprecates the tracingOrigins option in favor of using shouldCreateSpanForRequest and tracePropagationTargets.
See #6176 for details.

  • feat(node): Allow keepAlive override (#6161)
  • feat(tracing): Add transaction.setContext method (#6154)
  • feat(tracing): Allow to set instrumenter on Span & Transaction (#6136)
  • fix(integrations): Remove erroneous WINDOW exports (#6185)
  • fix(react): Guard against non-error obj in ErrorBoundary (#6181)
  • perf(core): Prevent creation of new contexts object on scope (#6156)
  • ref(tracing): Deprecate tracingOrigins (#6176)