getsentry/sentry-javascript (@sentry/nextjs)
### [`v7.69.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7690)
[Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.68.0...7.69.0)
##### Important Changes
- **New Performance APIs**
- feat: Update span performance API names ([#8971](https://togithub.com/getsentry/sentry-javascript/issues/8971))
- feat(core): Introduce startSpanManual ([#8913](https://togithub.com/getsentry/sentry-javascript/issues/8913))
This release introduces a new set of top level APIs for the Performance Monitoring SDKs. These aim to simplify creating spans and reduce the boilerplate needed for performance instrumentation. The three new methods introduced are `Sentry.startSpan`, `Sentry.startInactiveSpan`, and `Sentry.startSpanManual`. These methods are available in the browser and node SDKs.
`Sentry.startSpan` wraps a callback in a span. The span is automatically finished when the callback returns. This is the recommended way to create spans.
```js
// Start a span that tracks the duration of expensiveFunction
const result = Sentry.startSpan({ name: 'important function' }, () => {
return expensiveFunction();
});
// You can also mutate the span wrapping the callback to set data or status
Sentry.startSpan({ name: 'important function' }, (span) => {
// span is undefined if performance monitoring is turned off or if
// the span was not sampled. This is done to reduce overhead.
span?.setData('version', '1.0.0');
return expensiveFunction();
});
```
If you don't want the span to finish when the callback returns, use `Sentry.startSpanManual` to control when the span is finished. This is useful for event emitters or similar.
```js
// Start a span that tracks the duration of middleware
function middleware(_req, res, next) {
return Sentry.startSpanManual({ name: 'middleware' }, (span, finish) => {
res.once('finish', () => {
span?.setHttpStatus(res.status);
finish();
});
return next();
});
}
```
`Sentry.startSpan` and `Sentry.startSpanManual` create a span and make it active for the duration of the callback. Any spans created while this active span is running will be added as a child span to it. If you want to create a span without making it active, use `Sentry.startInactiveSpan`. This is useful for creating parallel spans that are not related to each other.
```js
const span1 = Sentry.startInactiveSpan({ name: 'span1' });
someWork();
const span2 = Sentry.startInactiveSpan({ name: 'span2' });
moreWork();
const span3 = Sentry.startInactiveSpan({ name: 'span3' });
evenMoreWork();
span1?.finish();
span2?.finish();
span3?.finish();
```
##### Other Changes
- feat(core): Export `BeforeFinishCallback` type ([#8999](https://togithub.com/getsentry/sentry-javascript/issues/8999))
- build(eslint): Enforce that ts-expect-error is used ([#8987](https://togithub.com/getsentry/sentry-javascript/issues/8987))
- feat(integration): Ensure `LinkedErrors` integration runs before all event processors ([#8956](https://togithub.com/getsentry/sentry-javascript/issues/8956))
- feat(node-experimental): Keep breadcrumbs on transaction ([#8967](https://togithub.com/getsentry/sentry-javascript/issues/8967))
- feat(redux): Add 'attachReduxState' option ([#8953](https://togithub.com/getsentry/sentry-javascript/issues/8953))
- feat(remix): Accept `org`, `project` and `url` as args to upload script ([#8985](https://togithub.com/getsentry/sentry-javascript/issues/8985))
- fix(utils): Prevent iterating over VueViewModel ([#8981](https://togithub.com/getsentry/sentry-javascript/issues/8981))
- fix(utils): uuidv4 fix for cloudflare ([#8968](https://togithub.com/getsentry/sentry-javascript/issues/8968))
- fix(core): Always use event message and exception values for `ignoreErrors` ([#8986](https://togithub.com/getsentry/sentry-javascript/issues/8986))
- fix(nextjs): Add new potential location for Next.js request AsyncLocalStorage ([#9006](https://togithub.com/getsentry/sentry-javascript/issues/9006))
- fix(node-experimental): Ensure we only create HTTP spans when outgoing ([#8966](https://togithub.com/getsentry/sentry-javascript/issues/8966))
- fix(node-experimental): Ignore OPTIONS & HEAD requests ([#9001](https://togithub.com/getsentry/sentry-javascript/issues/9001))
- fix(node-experimental): Ignore outgoing Sentry requests ([#8994](https://togithub.com/getsentry/sentry-javascript/issues/8994))
- fix(node-experimental): Require parent span for `pg` spans ([#8993](https://togithub.com/getsentry/sentry-javascript/issues/8993))
- fix(node-experimental): Use Sentry logger as Otel logger ([#8960](https://togithub.com/getsentry/sentry-javascript/issues/8960))
- fix(node-otel): Refactor OTEL span reference cleanup ([#9000](https://togithub.com/getsentry/sentry-javascript/issues/9000))
- fix(react): Switch to props in `useRoutes` ([#8998](https://togithub.com/getsentry/sentry-javascript/issues/8998))
- fix(remix): Add `glob` to Remix SDK dependencies. ([#8963](https://togithub.com/getsentry/sentry-javascript/issues/8963))
- fix(replay): Ensure `handleRecordingEmit` aborts when event is not added ([#8938](https://togithub.com/getsentry/sentry-javascript/issues/8938))
- fix(replay): Fully stop & restart session when it expires ([#8834](https://togithub.com/getsentry/sentry-javascript/issues/8834))
Work in this release contributed by [@Duncanxyz](https://togithub.com/Duncanxyz) and [@malay44](https://togithub.com/malay44). Thank you for your contributions!
eslint/eslint (eslint)
### [`v8.49.0`](https://togithub.com/eslint/eslint/releases/tag/v8.49.0)
[Compare Source](https://togithub.com/eslint/eslint/compare/v8.48.0...v8.49.0)
##### Features
- [`da09f4e`](https://togithub.com/eslint/eslint/commit/da09f4e641141f585ef611c6e9d63d4331054706) feat: Implement onUnreachableCodePathStart/End ([#17511](https://togithub.com/eslint/eslint/issues/17511)) (Nicholas C. Zakas)
- [`32b2327`](https://togithub.com/eslint/eslint/commit/32b2327aafdd3b911fabab69ed75c9ff97658c60) feat: Emit deprecation warnings in RuleTester ([#17527](https://togithub.com/eslint/eslint/issues/17527)) (Nicholas C. Zakas)
- [`acb7df3`](https://togithub.com/eslint/eslint/commit/acb7df35b9a7485f26bc6b3e1f9083d1c585dce9) feat: add new `enforce` option to `lines-between-class-members` ([#17462](https://togithub.com/eslint/eslint/issues/17462)) (Nitin Kumar)
##### Documentation
- [`ecfb54f`](https://togithub.com/eslint/eslint/commit/ecfb54ff4cdd18f28b4f9b78f0a78fb4cf80f1b8) docs: Update README (GitHub Actions Bot)
- [`de86b3b`](https://togithub.com/eslint/eslint/commit/de86b3b2e58edd5826200c23255d8325abe375e1) docs: update `no-promise-executor-return` examples ([#17529](https://togithub.com/eslint/eslint/issues/17529)) (Nitin Kumar)
- [`032c4b1`](https://togithub.com/eslint/eslint/commit/032c4b1476a7b8cfd917a66772d2221950ea87eb) docs: add typescript template ([#17500](https://togithub.com/eslint/eslint/issues/17500)) (James)
- [`cd7da5c`](https://togithub.com/eslint/eslint/commit/cd7da5cc3154f86f7ca45fb58929d27a7af359ed) docs: Update README (GitHub Actions Bot)
##### Chores
- [`b7621c3`](https://togithub.com/eslint/eslint/commit/b7621c3b16cf7d5539f05336a827e1b32d95e6ac) chore: remove browser test from `npm test` ([#17550](https://togithub.com/eslint/eslint/issues/17550)) (Milos Djermanovic)
- [`cac45d0`](https://togithub.com/eslint/eslint/commit/cac45d04b890b0700dd8908927300608adad05fe) chore: upgrade [@eslint/js](https://togithub.com/eslint/js)[@8](https://togithub.com/8).49.0 ([#17549](https://togithub.com/eslint/eslint/issues/17549)) (Milos Djermanovic)
- [`cd39508`](https://togithub.com/eslint/eslint/commit/cd395082bffcb4b68efa09226d7c682cef56179e) chore: package.json update for [@eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins)
- [`203a971`](https://togithub.com/eslint/eslint/commit/203a971c0abc3a95ae02ff74104a01e569707060) ci: bump actions/checkout from 3 to 4 ([#17530](https://togithub.com/eslint/eslint/issues/17530)) (dependabot\[bot])
- [`a40fa50`](https://togithub.com/eslint/eslint/commit/a40fa509922b36bb986eb1be9394591f84f62d9e) chore: use eslint-plugin-jsdoc's flat config ([#17516](https://togithub.com/eslint/eslint/issues/17516)) (Milos Djermanovic)
- [`926a286`](https://togithub.com/eslint/eslint/commit/926a28684282aeec37680bbc52a66973b8055f54) test: replace Karma with Webdriver.IO ([#17126](https://togithub.com/eslint/eslint/issues/17126)) (Christian Bromann)
- [`f591d2c`](https://togithub.com/eslint/eslint/commit/f591d2c88bf15af72e3a207b34fa872b4b90464b) chore: Upgrade config-array ([#17512](https://togithub.com/eslint/eslint/issues/17512)) (Nicholas C. Zakas)
windicss/windicss-webpack-plugin (windicss-webpack-plugin)
### [`v1.8.0`](https://togithub.com/windicss/windicss-webpack-plugin/releases/tag/v1.8.0)
[Compare Source](https://togithub.com/windicss/windicss-webpack-plugin/compare/v1.7.8...v1.8.0)
##### Bug Fixes
- remove transformedCSS
This PR contains the following updates:
7.68.0
->7.69.0
20.5.4
->20.6.0
8.48.0
->8.49.0
1.7.8
->1.8.0
Release Notes
getsentry/sentry-javascript (@sentry/nextjs)
### [`v7.69.0`](https://togithub.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#7690) [Compare Source](https://togithub.com/getsentry/sentry-javascript/compare/7.68.0...7.69.0) ##### Important Changes - **New Performance APIs** - feat: Update span performance API names ([#8971](https://togithub.com/getsentry/sentry-javascript/issues/8971)) - feat(core): Introduce startSpanManual ([#8913](https://togithub.com/getsentry/sentry-javascript/issues/8913)) This release introduces a new set of top level APIs for the Performance Monitoring SDKs. These aim to simplify creating spans and reduce the boilerplate needed for performance instrumentation. The three new methods introduced are `Sentry.startSpan`, `Sentry.startInactiveSpan`, and `Sentry.startSpanManual`. These methods are available in the browser and node SDKs. `Sentry.startSpan` wraps a callback in a span. The span is automatically finished when the callback returns. This is the recommended way to create spans. ```js // Start a span that tracks the duration of expensiveFunction const result = Sentry.startSpan({ name: 'important function' }, () => { return expensiveFunction(); }); // You can also mutate the span wrapping the callback to set data or status Sentry.startSpan({ name: 'important function' }, (span) => { // span is undefined if performance monitoring is turned off or if // the span was not sampled. This is done to reduce overhead. span?.setData('version', '1.0.0'); return expensiveFunction(); }); ``` If you don't want the span to finish when the callback returns, use `Sentry.startSpanManual` to control when the span is finished. This is useful for event emitters or similar. ```js // Start a span that tracks the duration of middleware function middleware(_req, res, next) { return Sentry.startSpanManual({ name: 'middleware' }, (span, finish) => { res.once('finish', () => { span?.setHttpStatus(res.status); finish(); }); return next(); }); } ``` `Sentry.startSpan` and `Sentry.startSpanManual` create a span and make it active for the duration of the callback. Any spans created while this active span is running will be added as a child span to it. If you want to create a span without making it active, use `Sentry.startInactiveSpan`. This is useful for creating parallel spans that are not related to each other. ```js const span1 = Sentry.startInactiveSpan({ name: 'span1' }); someWork(); const span2 = Sentry.startInactiveSpan({ name: 'span2' }); moreWork(); const span3 = Sentry.startInactiveSpan({ name: 'span3' }); evenMoreWork(); span1?.finish(); span2?.finish(); span3?.finish(); ``` ##### Other Changes - feat(core): Export `BeforeFinishCallback` type ([#8999](https://togithub.com/getsentry/sentry-javascript/issues/8999)) - build(eslint): Enforce that ts-expect-error is used ([#8987](https://togithub.com/getsentry/sentry-javascript/issues/8987)) - feat(integration): Ensure `LinkedErrors` integration runs before all event processors ([#8956](https://togithub.com/getsentry/sentry-javascript/issues/8956)) - feat(node-experimental): Keep breadcrumbs on transaction ([#8967](https://togithub.com/getsentry/sentry-javascript/issues/8967)) - feat(redux): Add 'attachReduxState' option ([#8953](https://togithub.com/getsentry/sentry-javascript/issues/8953)) - feat(remix): Accept `org`, `project` and `url` as args to upload script ([#8985](https://togithub.com/getsentry/sentry-javascript/issues/8985)) - fix(utils): Prevent iterating over VueViewModel ([#8981](https://togithub.com/getsentry/sentry-javascript/issues/8981)) - fix(utils): uuidv4 fix for cloudflare ([#8968](https://togithub.com/getsentry/sentry-javascript/issues/8968)) - fix(core): Always use event message and exception values for `ignoreErrors` ([#8986](https://togithub.com/getsentry/sentry-javascript/issues/8986)) - fix(nextjs): Add new potential location for Next.js request AsyncLocalStorage ([#9006](https://togithub.com/getsentry/sentry-javascript/issues/9006)) - fix(node-experimental): Ensure we only create HTTP spans when outgoing ([#8966](https://togithub.com/getsentry/sentry-javascript/issues/8966)) - fix(node-experimental): Ignore OPTIONS & HEAD requests ([#9001](https://togithub.com/getsentry/sentry-javascript/issues/9001)) - fix(node-experimental): Ignore outgoing Sentry requests ([#8994](https://togithub.com/getsentry/sentry-javascript/issues/8994)) - fix(node-experimental): Require parent span for `pg` spans ([#8993](https://togithub.com/getsentry/sentry-javascript/issues/8993)) - fix(node-experimental): Use Sentry logger as Otel logger ([#8960](https://togithub.com/getsentry/sentry-javascript/issues/8960)) - fix(node-otel): Refactor OTEL span reference cleanup ([#9000](https://togithub.com/getsentry/sentry-javascript/issues/9000)) - fix(react): Switch to props in `useRoutes` ([#8998](https://togithub.com/getsentry/sentry-javascript/issues/8998)) - fix(remix): Add `glob` to Remix SDK dependencies. ([#8963](https://togithub.com/getsentry/sentry-javascript/issues/8963)) - fix(replay): Ensure `handleRecordingEmit` aborts when event is not added ([#8938](https://togithub.com/getsentry/sentry-javascript/issues/8938)) - fix(replay): Fully stop & restart session when it expires ([#8834](https://togithub.com/getsentry/sentry-javascript/issues/8834)) Work in this release contributed by [@Duncanxyz](https://togithub.com/Duncanxyz) and [@malay44](https://togithub.com/malay44). Thank you for your contributions!eslint/eslint (eslint)
### [`v8.49.0`](https://togithub.com/eslint/eslint/releases/tag/v8.49.0) [Compare Source](https://togithub.com/eslint/eslint/compare/v8.48.0...v8.49.0) ##### Features - [`da09f4e`](https://togithub.com/eslint/eslint/commit/da09f4e641141f585ef611c6e9d63d4331054706) feat: Implement onUnreachableCodePathStart/End ([#17511](https://togithub.com/eslint/eslint/issues/17511)) (Nicholas C. Zakas) - [`32b2327`](https://togithub.com/eslint/eslint/commit/32b2327aafdd3b911fabab69ed75c9ff97658c60) feat: Emit deprecation warnings in RuleTester ([#17527](https://togithub.com/eslint/eslint/issues/17527)) (Nicholas C. Zakas) - [`acb7df3`](https://togithub.com/eslint/eslint/commit/acb7df35b9a7485f26bc6b3e1f9083d1c585dce9) feat: add new `enforce` option to `lines-between-class-members` ([#17462](https://togithub.com/eslint/eslint/issues/17462)) (Nitin Kumar) ##### Documentation - [`ecfb54f`](https://togithub.com/eslint/eslint/commit/ecfb54ff4cdd18f28b4f9b78f0a78fb4cf80f1b8) docs: Update README (GitHub Actions Bot) - [`de86b3b`](https://togithub.com/eslint/eslint/commit/de86b3b2e58edd5826200c23255d8325abe375e1) docs: update `no-promise-executor-return` examples ([#17529](https://togithub.com/eslint/eslint/issues/17529)) (Nitin Kumar) - [`032c4b1`](https://togithub.com/eslint/eslint/commit/032c4b1476a7b8cfd917a66772d2221950ea87eb) docs: add typescript template ([#17500](https://togithub.com/eslint/eslint/issues/17500)) (James) - [`cd7da5c`](https://togithub.com/eslint/eslint/commit/cd7da5cc3154f86f7ca45fb58929d27a7af359ed) docs: Update README (GitHub Actions Bot) ##### Chores - [`b7621c3`](https://togithub.com/eslint/eslint/commit/b7621c3b16cf7d5539f05336a827e1b32d95e6ac) chore: remove browser test from `npm test` ([#17550](https://togithub.com/eslint/eslint/issues/17550)) (Milos Djermanovic) - [`cac45d0`](https://togithub.com/eslint/eslint/commit/cac45d04b890b0700dd8908927300608adad05fe) chore: upgrade [@eslint/js](https://togithub.com/eslint/js)[@8](https://togithub.com/8).49.0 ([#17549](https://togithub.com/eslint/eslint/issues/17549)) (Milos Djermanovic) - [`cd39508`](https://togithub.com/eslint/eslint/commit/cd395082bffcb4b68efa09226d7c682cef56179e) chore: package.json update for [@eslint/js](https://togithub.com/eslint/js) release (ESLint Jenkins) - [`203a971`](https://togithub.com/eslint/eslint/commit/203a971c0abc3a95ae02ff74104a01e569707060) ci: bump actions/checkout from 3 to 4 ([#17530](https://togithub.com/eslint/eslint/issues/17530)) (dependabot\[bot]) - [`a40fa50`](https://togithub.com/eslint/eslint/commit/a40fa509922b36bb986eb1be9394591f84f62d9e) chore: use eslint-plugin-jsdoc's flat config ([#17516](https://togithub.com/eslint/eslint/issues/17516)) (Milos Djermanovic) - [`926a286`](https://togithub.com/eslint/eslint/commit/926a28684282aeec37680bbc52a66973b8055f54) test: replace Karma with Webdriver.IO ([#17126](https://togithub.com/eslint/eslint/issues/17126)) (Christian Bromann) - [`f591d2c`](https://togithub.com/eslint/eslint/commit/f591d2c88bf15af72e3a207b34fa872b4b90464b) chore: Upgrade config-array ([#17512](https://togithub.com/eslint/eslint/issues/17512)) (Nicholas C. Zakas)windicss/windicss-webpack-plugin (windicss-webpack-plugin)
### [`v1.8.0`](https://togithub.com/windicss/windicss-webpack-plugin/releases/tag/v1.8.0) [Compare Source](https://togithub.com/windicss/windicss-webpack-plugin/compare/v1.7.8...v1.8.0) ##### Bug Fixes - remove transformedCSS