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

Published by getsentry-bot almost 2 years ago

This release adds the beforeSendTransaction callback to all JS SDKs, letting you make changes to or drop transactions before they're sent to Sentry. This callback works identically to beforeSend, just for transactions.

  • feat(core): Add beforeSendTransaction (#6121)
  • feat(node): Add option to OnUncaughtException integration that allows mimicking native uncaught error exit behaviour (#6137)
  • feat(tracing): Add tracePropagationTargets option to browser routing instrumentation (#6080)
  • fix(nextjs): Allow onUncaughtException integration to remain excluded (#6148)
  • fix(nextjs): Do not exit process when errors bubble up while additional uncaughtException-handlers are registered (#6138)
  • fix(remix): Prevent capturing pending promises as exceptions. (#6129)
sentry-javascript - 7.17.4

Published by getsentry-bot almost 2 years ago

  • fix(aws): Move relay to port 5333 to avoid collisions (#6093)
  • fix(nextjs): Await Next.js server in patched getServerRequestHandler (#6072)
  • fix(nextjs): CLI binary not found on Windows (#6096)
  • fix(nextjs): Escape Windows paths when writing wrapper templates (#6101)
sentry-javascript - 7.17.3

Published by getsentry-bot almost 2 years ago

  • chore(ember): Show warning when using invalid config (#6032)
  • fix(nextjs): Log false positive warning only if request is unfinished. (#6070)
  • fix(tracing): Add an extra conditional check to web vitals onCLS() (#6091)
sentry-javascript - 7.17.2

Published by getsentry-bot almost 2 years ago

  • fix(tracing): Fix tracingOrigins not applying (#6079)
sentry-javascript - 7.17.1

Published by getsentry-bot almost 2 years ago

This release standardizes our SDKs to use the MIT License, which is our standard license for Sentry SDKs. We were previously using the BSD 3-Clause License in @sentry/browser,@sentry/core, @sentry/gatsby, @sentry/hub, @sentry/integrations, @sentry/node, @sentry/react, @sentry/types, @sentry/typescript, and @sentry/utils.

This release also updates the behaviour of tracingOrigins to no longer affect span creation. tracingOrigins will only affect if sentry-trace and baggage headers are attached to outgoing requests. To control span creation, use the shouldCreateSpanForRequest option.

  • chore: Standardize SDKs on MIT License (#5993)
  • feat(nextjs): Add Next 13 to peer dependencies and integration tests (#6042)
  • feat(remix): Enable RequestData integration for server-side requests (#6007)
  • feat(tracing): Update to Web Vitals v3 (#5987)
  • feat(tracing): Allow for spanId to be passed into startChild (#6028)
  • fix(browser): Handle case where fetch can be undefined (#5973)
  • fix(build): Prevent Rollup from adding [Symbol.toStringTag]: 'Module' to CJS files (#6043)
  • fix(nextjs): Match loader files exactly (#6013)
  • fix(react): Update types to match react router 6.4 updates (#5992)
  • fix(tracing): Align missing express span operation names (#6036)
  • fix(tracing): Don't consider tracingOrigins when creating spans (#6039)
  • fix(utils): Remove WINDOW from utils (#6024)
  • fix(vue): Fix vue3 render warning loop (#6014)
  • fix(vue): Don't overwrite custom transaction names of pageload transactions (#6060)
  • ref(node): Make RequestData integration default (#5980)
  • ref(node): Use RequestData integration in express handlers (#5990)
  • ref(serverless): Use RequestData integration in GCP wrapper (#5991)

Work in this release contributed by @philipatkinson, @Rockergmail, @ys-zhifu, and @koenpunt. Thank you for your contributions!

Special shoutout to @Tofandel who helped fix a bug in Jest that was affecting the Sentry JavaScript SDKs!

sentry-javascript - 7.17.0

Published by getsentry-bot almost 2 years ago

Please do not use this version - the release is broken. Upgrade to 7.17.1 instead.

sentry-javascript - 7.16.0

Published by getsentry-bot about 2 years ago

This release adds the withSentryConfig feature to the Svelte SDK. It replaces the now deprecated Svelte componentTrackingPreprocessor which will be removed in the next major release.

  • feat(node): Export Span type from @sentry/types (#5982)
  • feat(svelte): Add withSentryConfig function to wrap User Svelte Configuration (#5936)
  • fix(nextjs): Correctly apply auto-instrumentation to pages in src folder (#5984)
  • fix(nextjs): Fix typing issue with withSentryConfig and NextConfig (#5967)
  • fix(react): Support root and wildcard routes in react router v6 (#5971)
  • fix(remix): Add yargs dependency for uploading sourcemaps (#5926)
  • fix(svelte): Track components without script tags (#5957)
  • fix(utils): Rename global.ts -> worldwide.ts (#5969)
  • fix(vue): Start pageload transaction earlier to capture missing spans (#5983)
  • ref(build): Remove constToVarPlugin (#5970)
  • ref(nextjs): Don't assert existance of pageProps in _app (#5945)
  • ref(utils): Deprecate getGlobalObject as it's no longer used (#5949)

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

sentry-javascript - 7.15.0

Published by getsentry-bot about 2 years ago

This release deprecates @sentry/hub and all of it's exports. All of the @sentry/hub exports have moved to @sentry/core. @sentry/hub will be removed in the next major release.

  • feat(ember): Add ember-engine-router support (#5905)
  • feat(nextjs): Enable autoInstrumentServerFunctions per default (#5919)
  • feat(tracing): Make BrowserTracing heartbeat interval configurable (#5867)
  • fix(node): Remove Cookie header from requestdata.headers if cookies should not be sent to Sentry (#5898)
  • fix(remix): Rework dynamic imports of react-router-dom (#5897)
  • fix(utils): Accept DSN URLs with empty password (#5902)
  • fix(vue): Finish spans in component tracking before starting new ones for same operation (#5918)
  • ref(hub): Move @sentry/hub code to @sentry/core (#5823)

Work in this release contributed by @outsideris and @JonasKruckenberg. Thank you for your contributions!

sentry-javascript - 7.14.2

Published by getsentry-bot about 2 years ago

  • fix(ember): Align span operations to new operations (#5883)
  • fix(nextjs): Consider pageExtensions option in auto instrumentation (#5881)
  • fix(remix): Align span operations to new operations (#5889)
  • fix(serverless): Align span operations to new operations (#5890)
  • fix(tracing): Align span operations to new operations (#5891)
  • fix(vue): Align span operations to new operations (#5892)
  • ref(hub): Remove hard cap from maxBreadcrumbs (#5873)
  • ref(nextjs): Make build-phase check more robust (#5857)

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

sentry-javascript - 7.14.1

Published by getsentry-bot about 2 years ago

  • fix(nextjs): Handle CJS API route exports (#5865)
  • fix(node): Only set DeviceContext.boot_time if os.uptime() is valid (#5859)
  • fix(tracing): Warn if resolvers is not defined in ApolloServer config (#5850)
  • fix(utils): Normalize when serializing envelope (#5851)
  • ref(react): Improve React Router v6 error message (#5853)
sentry-javascript - 7.14.0

Published by getsentry-bot about 2 years ago

  • feat(nextjs): Add status to data-fetcher spans (#5777)
  • feat(nextjs): Auto-wrap API routes (#5778)
  • feat(nextjs): Promote option to automatically wrap data fetchers and API routes to non-experimental (#5793)
  • feat(utils): Modern implementation of getGlobalObject (#5809)
  • fix(gatsby): Include app-* entrypoints as they may include user source code (#5685)
  • fix(nextjs): Handle pathname being passed in object in instrumentServer (#5782)
  • fix(nextjs): Pass request in sampling context of data fetchers wrapper transaction (#5784)
  • fix(nextjs): Reverse order of checks for instrumenting server (#5828)
  • fix(nextjs): Rename nextjs.data.server ops (#5830)
  • fix(remix): Do not skip error handling if tracing is not enabled. (#5811)
  • fix(remix): Use import() to get react-router-dom in Express wrapper. (#5810)
  • fix(tracing): Remove connection.downlink measurement (#5794)
  • ref(browser): Use configured transport as fallback for client reports (#5797)
  • ref(nextjs): Use flush code from withSentry in all backend wrappers (#5814)
  • ref(nextjs): Use integration to add request data to transaction events (#5703)
  • ref(nextjs): UseRequestData integration for errors (#5729)
  • ref(node): Move request data functions back to @sentry/node (#5759)
  • ref(tracing): Don't track transaction sampling method (#5775)
  • ref(types): Use intersections instead of extend in envelope types (#5788)

Work in this release contributed by @Auspicus and @dagroe. Thank you for your contributions!

sentry-javascript - 7.13.0

Published by getsentry-bot about 2 years ago

  • feat(browser): Use fetch keepalive flag (#5697)
  • feat(core): Set custom transaction source for event processors (#5722)
  • feat(nextjs): Trace navigation transactions (#5676)
  • feat(node): Add Modules integration to default integrations (#5706)
  • fix(browser): Use normalizeDepth option when creating an event from a plain object
  • fix(core): Fix integration deduping (#5696)
  • fix(node): Use normalizeDepth when creating an event from unknown input
  • fix(nextjs): Make NextApiHandler type version-agnostic (#5737)
  • fix(tracing): Set sample rate in transaction metadata and DSC (#5691)
  • ref: Make dynamic sampling context mutable (#5710)
  • ref(tracing): Record transaction name changes (#5723)
  • chore(nextjs): Remove obsolete dataFetchers loader (#5713)
sentry-javascript - 7.12.1

Published by getsentry-bot about 2 years ago

  • feat(nextjs): Connect trace between data-fetching methods and pageload (#5655)
  • feat(react): Support useRoutes hook of React Router 6 (#5624)
  • feat(remix): Continue transaction from request headers (#5600)
  • feat(utils): Add function for ensuring input is an array (#5668)
  • fix(utils): Remove Element dom type (#5675)
  • fix(node): contexts cannot be overridden and culture never included (#5677)
  • chore: Remove typedoc from READMEs (#5678)
sentry-javascript - 7.12.0

Published by getsentry-bot about 2 years ago

This release adds an environment check in @sentry/nextjs for Vercel deployments (using the VERCEL_ENV env variable), and only enables SentryWebpackPlugin if the environment is production. To override this, setting disableClientWebpackPlugin or disableServerWebpackPlugin to false now takes precedence over other checks, rather than being a no-op. Note: Overriding this is not recommended! It can increase build time and clog Release Health data in Sentry with inaccurate noise.

  • fix(browser): use valid urls in Request checks (#5630)
  • fix(integrations): Don't add empty stack trace in RewriteFrames (#5625)
  • feat(nextjs): Create transactions in getInitialProps and getServerSideProps (#5593)
  • feat(nextjs): Instrument server-side getInitialProps of _app, _document and _error (#5604)
  • fix(nextjs): Start navigation transactions on same-route navigations (#5642)
  • fix(nextjs): Don't run webpack plugin on non-prod Vercel deployments (#5603)
  • ref(nextjs): Add warning about non-hidden sourcemaps (#5649)
  • ref(nextjs): Use proxy loader for wrapping all data-fetching functions (#5602)
  • feat(node): Populate event.contexts for Node.js (#5512)
  • fix(node): Avoid catching domain errors in request handler (#5627)
  • fix(serverless): Check for existence of callback in GCP event handler before calling (#5608)
  • ref(tracing): Remove mark measurements (#5605)
  • ref(tracing): Update long task description (#5601)
  • chore(svelte): Detect and report SvelteKit usage (#5594)
  • feat(svelte): Add Component Tracking (#5612)

Work in this release contributed by @lucas-zimerman, @GJZwiers, and @mohd-akram. Thank you for your contributions!

sentry-javascript - 7.11.1

Published by getsentry-bot about 2 years ago

  • fix(remix): Store transaction on express req (#5595)
sentry-javascript - 7.11.0

Published by getsentry-bot about 2 years ago

This release introduces updates the tracingOrigins option to not attach any headers/create an spans when supplied with an empty array ([]). Previously, we would supply the default tracingOrigins if an empty array was set as the tracingOrigins option.

  • fix(core): Suppress stack when SentryError isn't an error (#5562)
  • feat(nextjs): Wrap server-side getInitialProps (#5546)
  • feat(nextjs): Improve pageload transaction creation (#5574)
  • feat(nextjs): Add spans and route parameterization in data fetching wrappers (#5564)
  • feat(nextjs): Create spans and route parameterization in server-side getInitialProps (#5587)
  • fix(remix): Use domains to prevent scope bleed (#5570)
  • fix(remix): Wrap domains properly on instrumentServer (#5590)
  • feat(remix): Add route ID to remix routes (#5568)
  • feat(remix): Export a manual wrapper for custom Express servers (#5524)
  • feat(tracing): Add long task collection (#5529)
  • feat(tracing): Allow for setting of an empty array (#5583)
sentry-javascript - 7.10.0

Published by getsentry-bot about 2 years ago

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

  • feat(react): Track duration of React component updates (#5531)
  • feat(svelte): Add Error and Performance Instrumentation from Browser SDK (#5543)
  • feat(svelte): Add Svelte SDK Package Boilerplate (#5535)
  • fix(integration): Don't mangle localforage internals (#5534)
  • fix(react): Set redux state context properly (#5550)
  • fix(remix): Support merging json responses from root loader functions. (#5548)
  • fix(remix): Return response if detected in root loader (#5558)
  • ref(nextjs): Move autoWrapDataFetchers option into experiments object (#5540)
  • ref(nextjs): Wrap server-side data-fetching methods during build (#5503)

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

sentry-javascript - 7.9.0

Published by getsentry-bot about 2 years ago

This release adds the tracePropagationTargets option to the Sentry Node SDK.

  • feat(node): Add tracePropagationTargets option (#5521)
  • fix(browser): Parse Chrome stack frames without full paths (#5519)
  • fix(browser): Set : as a part of gecko protocol regex group. (#4153)
  • fix(browser): Strip webpack wrapping from stack frames (#5522)
  • fix(nextjs): Pull transpileClientSDK option from correct location (#5516)
  • fix(node): Handle colons in stack trace paths (#5517)
  • fix(react): Fix React Router v6 paramaterization (#5515)
  • fix(remix): Paramaterize server side transactions (#5491)
  • fix(remix): Provide sentry-trace and baggage via root loader. (#5509)
  • ref(nextjs): Prework for wrapping data-fetching functions (#5508)
  • ref(nextjs): Simplify NextConfigObject type (#5514)
sentry-javascript - 7.8.1

Published by getsentry-bot about 2 years ago

  • fix(nextjs): Add default distDir value back into index.server.ts (#5479)
  • fix(node): Add conditions to TracingHandler.startTransaction (#5485)
  • fix(node): Adjust Express URL parameterization for array routes (#5495)
  • fix(node): Adjust Express URL parameterization for RegEx routes (#5483)
  • fix(node): Check if router exists before it is instrumented (#5502)
  • fix(node): Correctly handle Windows paths when resolving module name (#5476)
  • fix(node): Ensure that self._handler exists before calling it in LinkedErrors (#5497)
  • ref(tracing): Simplify sample_rate serialization for DSC (#5475)
sentry-javascript - 7.8.0

Published by getsentry-bot about 2 years ago

This release adds the transpileClientSDK flag to the Next.JS SDK Webpack config. This option makes WebPack transpile the SDK code to the same transpilation level as the user code. By specifying this option, the Next.JS SDK works in older browsers that do not support ES6 or ES6+ (e.g. object spread) features.

  • feat(react): Use state context for Redux integration (#5471)
  • feat(remix): Set sentry-trace and baggage tags on server-side (#5440)
  • feat(tracing): Allow storing span metadata (#5464)
  • feat(tracing): Log start and end of span (#5446)
  • fix(nextjs): Add transpileClientSDK option (#5472)
  • fix(nextjs): Move userNextConfig.sentry to closure (#5473)
  • fix(nextjs): Remove index signaure in captureUnderscoreErrorException argument type (#5463)
  • fix(nextjs): Stop using eval when checking for sentry-cli binary (#5447)
  • fix(remix): Clone erroneous responses not to consume their body streams. (#5429)
  • fix(remix): Do not capture 4xx codes from thrown responses. (#5441)
  • ref(angular): Set ErrorHandler Exception Mechanism to be unhandled by default(#3844)
  • ref(nextjs): Extract isBuild into an exported function (#5444)
  • ref(nextjs): Remove compensation for workaround in _error.js (#5378)
  • ref(nextjs): Use loader to set RewriteFrames helper value (#5445)
  • ref(node): Improve Express URL Parameterization (#5450)
  • ref(utils): Improve uuid generation (#5426)

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