Repository navigation
feat(node): Improve module detection in modulesIntegration - #26637
Conversation
size-limit report 📦Compared: 7d2ccad (PR test merge using develop at b566473) Against: b566473 (develop) · base run #67462 ✅ Baseline matches: this diff contains only this PR's changes.
|
|
One or more gzipped bundles increased by more than 500 bytes. If this increase is intentional, add the Accept Bundlesize Increase label to this PR to rerun and accept the check. |
Optional E2E testsSome optional checks were not successful. They do not block the merge. 6 not successful, 56 successful. See the run.
Successful checks
|
|
could we centralize build-time injection? and do this in bundler plugins for all places that have this. I guess that would be faster/more reliable? |
|
Yes, and most of the plumbing for it already exists. Plan:
On your two points:
I'm doing this as a follow-up PR stacked on this branch, so this one stays reviewable and the size-limit question stays separate. I also pushed a compaction pass (de2978c):
|
| } | ||
|
|
||
| /** `dir` and its parents, up to the root. */ | ||
| function ancestors(dir: string): string[] { |
There was a problem hiding this comment.
do we need to go all the way up here, or possibly only up to a specified root dir?
There was a problem hiding this comment.
We don't really need to go all the way up, and in practice we don't:
- Finding the app root: the walk stops at the first real
package.json(one withnameor deps, so a{"type":"module"}indist/doesn't count). It only reaches/when there's nopackage.jsonat all. - Resolving a package: this mirrors Node, which checks every parent
node_modulesup to/. Each lookup stops at the first hit, usually the app's ownnode_modules, or the repo root's in a hoisted monorepo. Only declared deps that aren't installed walk the whole chain, and with theexistsSyncguard each step is a cheap stat that doesn't throw. In a CJS app inside this repo that loads express (167 modules), collecting took 173 file reads in total.
Stopping at the app root would break hoisted monorepos: an app in apps/api gets its deps from <repo>/node_modules, which is above its own package.json. The test resolves packages hoisted to a monorepo root covers that case. The natural cap would be the workspace root: the first ancestor with a lockfile, pnpm-workspace.yaml or a workspaces field. Finding it costs more lookups than it saves, and it would skip parent node_modules that Node itself would still use. So I'd keep it matching Node. If you'd still like a cap, the workspace root is where I'd put it, and I can add that.
modulesIntegration
|
rebase on develop and resolve merge conflicts |
08bb207 to
b4bcaf1
Compare
|
bun test is failing here, look into it |
Rework how `modulesIntegration` collects packages so that it gives the same result for CommonJS and ESM, in Node.js, Bun and Deno. The app's `package.json` is found from the entry file (falling back to cwd), and each declared dependency gets the exact version from its installed `package.json`, resolved the way a bare import would resolve it. Previously ESM apps (and the Next.js build-time injection) reported the version ranges from `package.json`, and only CommonJS apps got exact versions from `require.cache`. `require.cache` still adds loaded transitive packages in CJS. The resolver lives in `@sentry/core/server` behind a `readFile` callback, so Next.js uses it at build time and `@sentry/deno` uses it with permission checks. `@sentry/deno` gets `modulesIntegration` as a default integration, which also reads `deno.lock` for `jsr:` and `npm:` specifiers and never prompts for read permission. Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Move deno.lock parsing into @sentry/deno, inline minimal POSIX path helpers instead of pulling in core's path utils, and simplify duplicate-version handling. Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Collecting versions threw an ENOENT for every missing package.json. With localVariables capturing caught exceptions, each throw pauses the debugger and trips its rate limit. Check existence first, and only resolve loaded packages through node_modules when several versions of one are loaded.
… at build time Also document what loadedFiles does in collectInstalledModules.
Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
Read the CommonJS module cache through node:module instead of require.cache, so CommonJS packages imported from ESM are included as well.
Co-Authored-By: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
abb9e9d to
df50522
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit df50522. Configure here.
## What `@sentry/deno` now includes `modulesIntegration` by default. It reports exact versions of `jsr:` and `npm:` packages from the nearest `deno.lock` (lockfile versions 3 to 5). For apps with a `package.json`, it also reports those dependencies, using the shared resolver from #26637. ## Why Deno had no modules integration, so its events had no package versions. The integration only reads files when read permission is already granted, checked with `Deno.permissions.querySync`. So it never prompts, and it does nothing without `--allow-read`. Without `node_modules`, the resolver only knows the ranges declared in `package.json`, so the exact versions in `deno.lock` take precedence. `packages/deno/test/fixtures/modules/deno.lock` is force-added because `deno.lock` is gitignored. The test runs the fixture with `--no-lock` so Deno doesn't rewrite it. <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0C22CSDV6X%3A1795592113.681479 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C22CSDV6X%3A1795592113.681479) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C22CSDV6X%3A1795592113.681479/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | Type | Update |
|---|---|---|---|---|---|
| [@axe-core/playwright](https://github.com/dequelabs/axe-core-npm) | [`4.14.0` → `4.14.1`](https://renovatebot.com/diffs/npm/@axe-core%2fplaywright/4.14.0/4.14.1) |  |  | devDependencies | patch |
| [@react-email/ui](https://github.com/resend/react-email) ([source](https://github.com/resend/react-email/tree/HEAD/packages/ui)) | [`6.11.16` → `6.11.17`](https://renovatebot.com/diffs/npm/@react-email%2fui/6.11.16/6.11.17) |  |  | devDependencies | patch |
| [@rokmohar/medusa-plugin-meilisearch](https://github.com/rokmohar/medusa-plugin-meilisearch) | [`2.4.0` → `2.5.0`](https://renovatebot.com/diffs/npm/@rokmohar%2fmedusa-plugin-meilisearch/2.4.0/2.5.0) |  |  | dependencies | minor |
| [@sentry/node](https://github.com/getsentry/sentry-javascript/tree/master/packages/node) ([source](https://github.com/getsentry/sentry-javascript)) | [`11.16.0` → `11.20.0`](https://renovatebot.com/diffs/npm/@sentry%2fnode/11.16.0/11.20.0) |  |  | dependencies | minor |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`24.19.2` → `24.19.4`](https://renovatebot.com/diffs/npm/@types%2fnode/24.19.2/24.19.4) |  |  | devDependencies | patch |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)) | [`18.3.31` → `18.3.32`](https://renovatebot.com/diffs/npm/@types%2freact/18.3.31/18.3.32) |  |  | devDependencies | patch |
| bugsink/bugsink | `2.6.3` → `2.7.1` |  |  | | minor |
| [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | [`10.15.0` → `10.16.0`](https://renovatebot.com/diffs/npm/eslint/10.15.0/10.16.0) |  |  | dependencies | minor |
| [eslint](https://eslint.org) ([source](https://github.com/eslint/eslint)) | [`10.15.0` → `10.16.0`](https://renovatebot.com/diffs/npm/eslint/10.15.0/10.16.0) |  |  | devDependencies | minor |
| [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) | [`10.1.8` → `10.1.9`](https://renovatebot.com/diffs/npm/eslint-config-prettier/10.1.8/10.1.9) |  |  | dependencies | patch |
| [eslint-plugin-astro](https://ota-meshi.github.io/eslint-plugin-astro/) ([source](https://github.com/ota-meshi/eslint-plugin-astro)) | [`3.2.1` → `3.2.3`](https://renovatebot.com/diffs/npm/eslint-plugin-astro/3.2.1/3.2.3) |  |  | dependencies | patch |
| [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm/tree/HEAD/pnpm/npm/pnpm)) | [`12.21.0` → `12.23.0`](https://renovatebot.com/diffs/npm/pnpm/12.21.0/12.23.0) |  |  | packageManager | minor |
| [pnpm](https://pnpm.io) ([source](https://github.com/pnpm/pnpm/tree/HEAD/pnpm/npm/pnpm)) | [`12.21.0` → `12.23.0`](https://renovatebot.com/diffs/npm/pnpm/12.21.0/12.23.0) |  |  | engines | minor |
| [react-email](https://github.com/resend/react-email) ([source](https://github.com/resend/react-email/tree/HEAD/packages/react-email)) | [`6.11.16` → `6.11.17`](https://renovatebot.com/diffs/npm/react-email/6.11.16/6.11.17) |  |  | dependencies | patch |
| [redis](https://hub.docker.com/_/redis) ([source](https://github.com/redis/docker-library-redis)) | `8.10.3-alpine` → `8.12.0-alpine` |  |  | service | minor |
| [redis](https://hub.docker.com/_/redis) ([source](https://github.com/redis/docker-library-redis)) | `8.10.3-alpine` → `8.12.0-alpine` |  |  | | minor |
| [renovate/renovate](https://renovatebot.com) ([source](https://github.com/renovatebot/renovate)) | [`44.258.0` → `44.264.1`](https://octochangelog.com/compare?repo=renovatebot%2Frenovate&from=44.258.0&to=44.264.1) |  |  | container | minor |
| [resend](https://github.com/resend/resend-node) | [`6.39.0` → `6.41.0`](https://renovatebot.com/diffs/npm/resend/6.39.0/6.41.0) |  |  | dependencies | minor |
| [sharp](https://sharp.pixelplumbing.com) ([source](https://github.com/lovell/sharp), [changelog](https://github.com/lovell/sharp/blob/main/docs/src/content/docs/changelog.md)) | [`0.35.5` → `0.35.6`](https://renovatebot.com/diffs/npm/sharp/0.35.5/0.35.6) |  |  | dependencies | patch |
| stripe/stripe-cli | `v1.55.14` → `v1.55.15` |  |  | | patch |
| [typescript-eslint](https://typescript-eslint.io/packages/typescript-eslint) ([source](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint)) | [`8.73.0` → `8.74.0`](https://renovatebot.com/diffs/npm/typescript-eslint/8.73.0/8.74.0) |  |  | dependencies | minor |
| [undici@>=8.0.0 <8.12.2](https://undici.nodejs.org) ([source](https://github.com/nodejs/undici)) | [`8.13.1` → `8.14.0`](https://renovatebot.com/diffs/npm/undici/8.13.1/8.14.0) |  |  | pnpm-workspace.overrides | minor |
| [vitest](https://vitest.dev) ([source](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest)) | [`5.1.1` → `5.1.2`](https://renovatebot.com/diffs/npm/vitest/5.1.1/5.1.2) |  |  | devDependencies | patch |
---
### Release Notes
<details>
<summary>dequelabs/axe-core-npm (@​axe-core/playwright)</summary>
### [`v4.14.1`](https://github.com/dequelabs/axe-core-npm/blob/HEAD/CHANGELOG.md#4141-2026-11-19)
[Compare Source](https://github.com/dequelabs/axe-core-npm/compare/v4.14.0...v4.14.1)
##### Bug Fixes
- **cli:** restore bin paths and lint published package tarballs ([#​1467](https://github.com/dequelabs/axe-core-npm/issues/1467)) ([839553f](https://github.com/dequelabs/axe-core-npm/commit/839553f276f251051509229146d6339a2a232214)), closes [#​1430](https://github.com/dequelabs/axe-core-npm/issues/1430) [#​1430](https://github.com/dequelabs/axe-core-npm/issues/1430) [#​1465](https://github.com/dequelabs/axe-core-npm/issues/1465)
- respect iframes: false when finding frames to test ([#​1485](https://github.com/dequelabs/axe-core-npm/issues/1485)) ([910faef](https://github.com/dequelabs/axe-core-npm/commit/910faef981c8be117137fe866d756091da85c85f)), closes [#​1483](https://github.com/dequelabs/axe-core-npm/issues/1483)
- skip frames that cannot run scripts instead of hanging ([#​1478](https://github.com/dequelabs/axe-core-npm/issues/1478)) ([794589b](https://github.com/dequelabs/axe-core-npm/commit/794589bda678dcc8d7d9d4246240f5d816e5613c)), closes [#​1469](https://github.com/dequelabs/axe-core-npm/issues/1469)
- update axe-core to v4.14.1 ([#​1509](https://github.com/dequelabs/axe-core-npm/issues/1509)) ([826915a](https://github.com/dequelabs/axe-core-npm/commit/826915ad803d569f51fb754bb0597a00b23ac8ea)), closes [#​1508](https://github.com/dequelabs/axe-core-npm/issues/1508)
</details>
<details>
<summary>resend/react-email (@​react-email/ui)</summary>
### [`v6.11.17`](https://github.com/resend/react-email/blob/HEAD/packages/ui/CHANGELOG.md#61117)
[Compare Source](https://github.com/resend/react-email/compare/@react-email/ui@6.11.16...@react-email/ui@6.11.17)
</details>
<details>
<summary>rokmohar/medusa-plugin-meilisearch (@​rokmohar/medusa-plugin-meilisearch)</summary>
### [`v2.5.0`](https://github.com/rokmohar/medusa-plugin-meilisearch/blob/HEAD/CHANGELOG.md#250---2026-11-24)
[Compare Source](https://github.com/rokmohar/medusa-plugin-meilisearch/compare/v2.4.0...v2.5.0)
##### Changed
- Supports Medusa 2.23: peer dependencies move to `~2.23.0`, `@medusajs/ui` to `^4.3.0`, React and React DOM to
`^19.3.1`, and `@tanstack/react-query` to `^5.107.1`.
- The admin extension is built with Medusa 2.23's React 19 and Vite 8 admin bundler.
- The Meilisearch JS client moves to `^0.63.0`.
- Development dependencies updated to their latest versions compatible with Medusa 2.23.
</details>
<details>
<summary>getsentry/sentry-javascript (@​sentry/node)</summary>
### [`v11.20.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#11200)
[Compare Source](https://github.com/getsentry/sentry-javascript/compare/11.19.0...11.20.0)
##### Important Changes
- **feat(nestjs): Trace WebSocket messages on Nest 12 ([#​26768](https://github.com/getsentry/sentry-javascript/pull/26768))**
On Nest 12 and newer, the SDK now creates a `websocket` span for each WebSocket message a gateway handles, named `WS <namespace> <pattern>`. Each message starts its own trace.
##### Other Changes
- feat(bundler-plugins): Add the call-site rewriter core ([#​26101](https://github.com/getsentry/sentry-javascript/pull/26101))
- feat(core): Add experimental minification-independent function fingerprint ([#​26840](https://github.com/getsentry/sentry-javascript/pull/26840))
- feat(core): Report library functions in integration options without a fingerprint ([#​26898](https://github.com/getsentry/sentry-javascript/pull/26898))
- fix(core): Clear pending idle span timers when the span ends ([#​26938](https://github.com/getsentry/sentry-javascript/pull/26938))
- fix(nestjs): Register SentryTracingInterceptor only once ([#​26775](https://github.com/getsentry/sentry-javascript/pull/26775))
- fix(nuxt): Avoid duplicate spans when Nitro tracing channels are on ([#​26928](https://github.com/getsentry/sentry-javascript/pull/26928))
- fix(server-utils): Sum Vercel AI reasoning tokens onto invoke_agent spans ([#​26904](https://github.com/getsentry/sentry-javascript/pull/26904))
- fix(tanstackstart-react): Report the TanStack Start SDK name with the Cloudflare Vite plugin ([#​26925](https://github.com/getsentry/sentry-javascript/pull/26925))
<details>
<summary><strong>Internal Changes</strong></summary>
- chore(lint): Require integrations to be created with `defineIntegration` ([#​26937](https://github.com/getsentry/sentry-javascript/pull/26937))
- docs: Add a checklist for new major releases ([#​26926](https://github.com/getsentry/sentry-javascript/pull/26926))
</details>
Work in this release was contributed by [@​faizansaiyed123](https://github.com/faizansaiyed123). Thank you for your contribution!
### [`v11.19.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#11190)
[Compare Source](https://github.com/getsentry/sentry-javascript/compare/11.18.0...11.19.0)
- docs(aws-lambda): Fix the Lambda layer link in the v11 migration guide ([#​26912](https://github.com/getsentry/sentry-javascript/pull/26912))
- feat(solid): Turn Solid 2 observe build records into spans ([#​26794](https://github.com/getsentry/sentry-javascript/pull/26794))
- fix(cloudflare): Use the release that a Sentry bundler plugin injected ([#​26914](https://github.com/getsentry/sentry-javascript/pull/26914))
- fix(cloudflare): Wrap the TanStack Start server entry only once ([#​26915](https://github.com/getsentry/sentry-javascript/pull/26915))
- fix(nextjs): Keep the default Turbopack loader runtime in `next dev` on Bun ([#​26923](https://github.com/getsentry/sentry-javascript/pull/26923))
- fix(nuxt): Filter the query string in server error events ([#​26919](https://github.com/getsentry/sentry-javascript/pull/26919))
- fix(remix): Make `npx @sentry/remix` resolve an executable again ([#​26890](https://github.com/getsentry/sentry-javascript/pull/26890))
- fix(server-utils): Make the Flue instrumentation assignable to Flue's `instrument()` ([#​26896](https://github.com/getsentry/sentry-javascript/pull/26896))
- fix(tanstackstart-react): Instrument server function middlewares in builds without Nitro ([#​26913](https://github.com/getsentry/sentry-javascript/pull/26913))
<details>
<summary><strong>Internal Changes</strong></summary>
- chore: Add external contributor to CHANGELOG.md ([#​26918](https://github.com/getsentry/sentry-javascript/pull/26918))
- chore(ci): Raise Warden review concurrency to 12 ([#​26921](https://github.com/getsentry/sentry-javascript/pull/26921))
- fix(ci): Check out the PR base commit before planning affected projects ([#​26922](https://github.com/getsentry/sentry-javascript/pull/26922))
- fix(ci): Read remaining E2E matrices from the planning job ([#​26900](https://github.com/getsentry/sentry-javascript/pull/26900))
- perf(ci): Build SDK dependencies within CI jobs ([#​26732](https://github.com/getsentry/sentry-javascript/pull/26732))
- perf(ci): Combine metadata collection and test planning ([#​26889](https://github.com/getsentry/sentry-javascript/pull/26889))
- ref(bundler-plugins): Pass the SDK's source map deletion through one internal option ([#​26903](https://github.com/getsentry/sentry-javascript/pull/26903))
- test(e2e): Make Bun, Deno and Cloudflare framework variants required ([#​26887](https://github.com/getsentry/sentry-javascript/pull/26887))
- test(e2e): Run hapi-21 on Bun and Deno ([#​26872](https://github.com/getsentry/sentry-javascript/pull/26872))
- test(nuxt): Add baseline span tree E2E tests ([#​26885](https://github.com/getsentry/sentry-javascript/pull/26885))
</details>
Work in this release was contributed by [@​Caf3z1n](https://github.com/Caf3z1n). Thank you for your contribution!
### [`v11.18.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#11180)
[Compare Source](https://github.com/getsentry/sentry-javascript/compare/11.17.0...11.18.0)
##### Important Changes
- **feat(effect)!: Rename exports and add layers for tracing and logs ([#​26731](https://github.com/getsentry/sentry-javascript/pull/26731))**
The `@sentry/effect` exports now use Effect's naming style, and tracing and logs are now layers, so the setup is the same for Effect v3 and v4. The old names are removed.
- `effectLayer` is now `layer`.
- `SentryEffectTracer` is now `layerTracer`. It replaces `Layer.setTracer(SentryEffectTracer)` (Effect v3) and `Layer.succeed(Tracer.Tracer, SentryEffectTracer)` (Effect v4).
- `SentryEffectLogger` is now `layerLogger`. It replaces `Logger.replace(Logger.defaultLogger, SentryEffectLogger)` (Effect v3) and `Logger.layer([SentryEffectLogger])` (Effect v4). It keeps the loggers in place, so Effect still logs to the console.
- `SentryEffectMetricsLayer` is now `layerMetrics`.
- `SentryEffectExternalSpanLayer` is now `layerExternalSpan`.
```ts
const SentryLayer = Layer.mergeAll(
Sentry.layer({ dsn: '__DSN__', tracesSampleRate: 1.0 }),
Sentry.layerTracer,
Sentry.layerLogger,
Sentry.layerMetrics,
);
```
##### Other Changes
- chore(deps): Bump rrweb to 2.47.0 ([#​26837](https://github.com/getsentry/sentry-javascript/pull/26837), [#​26883](https://github.com/getsentry/sentry-javascript/pull/26883))
- feat(astro): Support `sourcemaps.upload`, `injectDebugIds` and `delete` ([#​26334](https://github.com/getsentry/sentry-javascript/pull/26334))
- feat(astro): Use the Bun and Deno integrations when Astro runs on Bun or Deno ([#​26844](https://github.com/getsentry/sentry-javascript/pull/26844))
- feat(cloudflare): Send the trace to the browser in a Server-Timing header ([#​26774](https://github.com/getsentry/sentry-javascript/pull/26774))
- feat(core): Report a browser runtime in SDK config ([#​26834](https://github.com/getsentry/sentry-javascript/pull/26834))
- feat(core): Share the source map option warnings with the SDKs ([#​26626](https://github.com/getsentry/sentry-javascript/pull/26626))
- feat(gatsby): Support `sourcemaps.upload`, `injectDebugIds` and `delete` ([#​26333](https://github.com/getsentry/sentry-javascript/pull/26333))
- feat(hono): Support Hono 5 ([#​26813](https://github.com/getsentry/sentry-javascript/pull/26813))
- feat(nextjs): Support `sourcemaps.upload`, `injectDebugIds` and `delete` ([#​26337](https://github.com/getsentry/sentry-javascript/pull/26337))
- feat(nitro): Add the orchestrion plugin to the server build ([#​26799](https://github.com/getsentry/sentry-javascript/pull/26799))
- feat(nitro): Support `sourcemaps.upload`, `injectDebugIds` and `delete` ([#​26584](https://github.com/getsentry/sentry-javascript/pull/26584))
- feat(node): Improve module detection in `modulesIntegration` ([#​26637](https://github.com/getsentry/sentry-javascript/pull/26637))
- feat(nuxt): Capture errors caught by `<NuxtErrorBoundary>` during SSR ([#​26815](https://github.com/getsentry/sentry-javascript/pull/26815))
- feat(nuxt): Set up Cloudflare from `sentry.cloudflare.config.ts` ([#​26754](https://github.com/getsentry/sentry-javascript/pull/26754))
- feat(nuxt): Support `sourcemaps.upload`, `injectDebugIds` and `delete` ([#​26338](https://github.com/getsentry/sentry-javascript/pull/26338))
- feat(server-utils): Instrument the Vercel AI experimental_extract channel event ([#​26777](https://github.com/getsentry/sentry-javascript/pull/26777))
- feat(server-utils): normalize Vercel AI `gen_ai.extract` spans ([#​26831](https://github.com/getsentry/sentry-javascript/pull/26831))
- feat(solid): Continue the server trace in the pageload on Cloudflare Workers ([#​26791](https://github.com/getsentry/sentry-javascript/pull/26791))
- feat(solidstart): Support `sourcemaps.upload`, `injectDebugIds` and `delete` ([#​26335](https://github.com/getsentry/sentry-javascript/pull/26335))
- feat(tanstackstart-react): Support `sourcemaps.upload`, `injectDebugIds` and `delete` ([#​26336](https://github.com/getsentry/sentry-javascript/pull/26336))
- fix: Warn about conflicting source map options that the SDKs apply themselves ([#​26787](https://github.com/getsentry/sentry-javascript/pull/26787))
- fix(astro): Report the Astro SDK name with the Cloudflare Vite plugin ([#​26848](https://github.com/getsentry/sentry-javascript/pull/26848))
- fix(bundler-plugins): Use forward slashes in rewritten source map sources ([#​26792](https://github.com/getsentry/sentry-javascript/pull/26792))
- fix(cloudflare): wrap Worker entrypoints reached through ctx.exports ([#​26739](https://github.com/getsentry/sentry-javascript/pull/26739))
- fix(core): Exclude environment from SDK configuration reports ([#​26835](https://github.com/getsentry/sentry-javascript/pull/26835))
- fix(core): Report non-finite numbers and initialScope values as placeholders in SDK config ([#​26838](https://github.com/getsentry/sentry-javascript/pull/26838))
- fix(deno): Fill module and trim trailing context line in stack frames ([#​26641](https://github.com/getsentry/sentry-javascript/pull/26641))
- fix(effect): Report a failure once when the Sentry layer is provided twice ([#​26734](https://github.com/getsentry/sentry-javascript/pull/26734))
- fix(feedback): Rename `*.css.ts` style modules to `*.styles.ts` ([#​26842](https://github.com/getsentry/sentry-javascript/pull/26842))
- fix(feedback): Render feedback widget without innerHTML for Trusted Types ([#​26707](https://github.com/getsentry/sentry-javascript/pull/26707))
- fix(hono): Skip middleware spans for Hono 5 error and not-found handlers ([#​26827](https://github.com/getsentry/sentry-javascript/pull/26827))
- fix(langchain): Record finish reasons for the OpenAI Responses API ([#​26800](https://github.com/getsentry/sentry-javascript/pull/26800))
- fix(nextjs, remix, sveltekit, gatsby): Don't turn on source maps without upload credentials ([#​26841](https://github.com/getsentry/sentry-javascript/pull/26841))
- fix(nuxt): Ignore build output spans with span streaming ([#​26781](https://github.com/getsentry/sentry-javascript/pull/26781))
- fix(nuxt): Percent-encode public file paths for the span filter ([#​26817](https://github.com/getsentry/sentry-javascript/pull/26817))
- fix(remix, tanstackstart-react): Let a user's `filesToDeleteAfterUpload` replace the SDK's deletion ([#​26821](https://github.com/getsentry/sentry-javascript/pull/26821))
- fix(server-utils): Skip MongoDB statement serialization when the span is not recorded ([#​26826](https://github.com/getsentry/sentry-javascript/pull/26826))
- fix(solidstart): Ignore build output spans with span streaming ([#​26782](https://github.com/getsentry/sentry-javascript/pull/26782))
<details>
<summary><strong>Internal Changes</strong></summary>
- chore: Add external contributor to CHANGELOG.md ([#​26857](https://github.com/getsentry/sentry-javascript/pull/26857))
- chore: Keep Bugbot rule notes next to the code ([#​26875](https://github.com/getsentry/sentry-javascript/pull/26875))
- chore(deps): Bump `@sentry/conventions` to 0.36.0 ([#​26796](https://github.com/getsentry/sentry-javascript/pull/26796))
- chore(e2e): Bump non-critical e2e test app dependencies ([#​26797](https://github.com/getsentry/sentry-javascript/pull/26797))
- chore(lint): Forbid non-null assertions in SDK source ([#​26856](https://github.com/getsentry/sentry-javascript/pull/26856))
- chore(lint): Move mechanical Bugbot rules to lint and the test runner ([#​26854](https://github.com/getsentry/sentry-javascript/pull/26854))
- chore(lint): Point no-unguarded-span-apis message back at @​sentry/core/browser ([#​26876](https://github.com/getsentry/sentry-javascript/pull/26876))
- chore(lint): Require a DEBUG_BUILD gate on debug logs in browser-facing code ([#​26861](https://github.com/getsentry/sentry-javascript/pull/26861))
- ci: Key Playwright browser cache by runner architecture ([#​26833](https://github.com/getsentry/sentry-javascript/pull/26833))
- ci: Run repo script tests ([#​26832](https://github.com/getsentry/sentry-javascript/pull/26832))
- ci(e2e): Only give secrets to E2E test apps that need them ([#​26869](https://github.com/getsentry/sentry-javascript/pull/26869))
- ci(size-limit): Simplify the size-limit action ([#​26778](https://github.com/getsentry/sentry-javascript/pull/26778))
- fix(test): Stop waiting for a port when a scenario exits ([#​26846](https://github.com/getsentry/sentry-javascript/pull/26846))
- perf(ci): Build Lambda layers within E2E jobs ([#​26804](https://github.com/getsentry/sentry-javascript/pull/26804))
- perf(ci): Separate Next.js cacheComponents production and development tests ([#​26830](https://github.com/getsentry/sentry-javascript/pull/26830))
- perf(ci): Split large integration suites and use six Deno shards ([#​26802](https://github.com/getsentry/sentry-javascript/pull/26802))
- perf(ci): Use four workers for Next.js E2E tests ([#​26763](https://github.com/getsentry/sentry-javascript/pull/26763))
- perf(ci): Use three WebKit browser integration shards ([#​26829](https://github.com/getsentry/sentry-javascript/pull/26829))
- ref(core): Drop the internal prefix from tunnel exports ([#​26746](https://github.com/getsentry/sentry-javascript/pull/26746))
- ref(core): Drop unused internal exports and rename log/metric capture helpers ([#​26744](https://github.com/getsentry/sentry-javascript/pull/26744))
- test(bundler-plugins): Cover source map upload for file names with glob characters ([#​26862](https://github.com/getsentry/sentry-javascript/pull/26862))
- test(e2e): Add Hono 5 E2E app ([#​26814](https://github.com/getsentry/sentry-javascript/pull/26814))
- test(e2e): Isolate the react-router-7 instrumentation double-instrumentation check ([#​26886](https://github.com/getsentry/sentry-javascript/pull/26886))
- test(e2e): Run astro-6 on Bun, Deno and Cloudflare ([#​26845](https://github.com/getsentry/sentry-javascript/pull/26845))
- test(e2e): Run fastify-5 on Bun and Deno ([#​26828](https://github.com/getsentry/sentry-javascript/pull/26828))
- test(e2e): Run nuxt-5 on Bun, Deno and Cloudflare ([#​26756](https://github.com/getsentry/sentry-javascript/pull/26756))
- test(e2e): Set up the nuxt-4 Cloudflare variant from `sentry.cloudflare.config.ts` ([#​26755](https://github.com/getsentry/sentry-javascript/pull/26755))
- test(e2e): Shard the nextjs-16 canary webpack job ([#​26853](https://github.com/getsentry/sentry-javascript/pull/26853))
- test(node): Check docker-compose healthchecks in a static test ([#​26884](https://github.com/getsentry/sentry-javascript/pull/26884))
- test(solid): Check sentryVitePlugin with the Solid 2 server build ([#​26789](https://github.com/getsentry/sentry-javascript/pull/26789))
</details>
Work in this release was contributed by [@​pranav514](https://github.com/pranav514). Thank you for your contribution!
### [`v11.17.0`](https://github.com/getsentry/sentry-javascript/blob/HEAD/CHANGELOG.md#11170)
[Compare Source](https://github.com/getsentry/sentry-javascript/compare/11.16.0...11.17.0)
##### Important Changes
- **feat(browser): Report LCP and INP subparts on web vital spans ([#​25914](https://github.com/getsentry/sentry-javascript/pull/25914))**
LCP spans now carry `browser.web_vital.lcp.resource_load_delay`, `browser.web_vital.lcp.resource_load_duration` and `browser.web_vital.lcp.element_render_delay`. INP spans now carry `browser.web_vital.inp.input_delay`, `browser.web_vital.inp.processing_duration` and `browser.web_vital.inp.presentation_delay`. This shows which phase made an LCP or INP slow.
- **feat(core): Gate URL fragments behind `urlQueryParams` ([#​26753](https://github.com/getsentry/sentry-javascript/pull/26753))**
The `urlQueryParams` option now also applies to URL fragments, since OAuth redirects and hash routing can put tokens there. `key=value` pairs in a fragment are filtered like query params, and the fragment is dropped when `urlQueryParams` is off. This covers `url.full`, `url.fragment`, `request.url` and breadcrumbs. Plain anchors and hash route paths (`#details`, `#/settings`) are kept as-is.
- **feat(core): Enrich MCP SDK spans instead of duplicating them ([#​26309](https://github.com/getsentry/sentry-javascript/pull/26309))**
When the MCP SDK (`@modelcontextprotocol/server`) starts its own OpenTelemetry span for an MCP message and that span reaches Sentry, Sentry now adds its MCP attributes to that span instead of starting a second one. This span is a child of the surrounding span, such as `http.server`, not its own transaction. Without the MCP SDK's OpenTelemetry tracing, nothing changes.
- **feat(node): Add ClickHouse instrumentation ([#​26211](https://github.com/getsentry/sentry-javascript/pull/26211))**
The new `clickhouseIntegration` creates database spans for `@clickhouse/client` and `@clickhouse/client-web`. It is exported from `@sentry/node`, `@sentry/cloudflare` and the other server SDKs.
- **feat(react-router, remix): Support `sourcemaps.upload`, `injectDebugIds` and `delete`**
`@sentry/react-router` and `@sentry/remix` now accept the `sourcemaps.upload`, `sourcemaps.injectDebugIds` and `sourcemaps.delete` options. In React Router, source maps you turned on yourself are no longer deleted unless you set `delete: true`, and `release.create: false` is now respected.
Related PRs: [#​26607](https://github.com/getsentry/sentry-javascript/pull/26607), [#​26332](https://github.com/getsentry/sentry-javascript/pull/26332)
##### Other Changes
- feat(core): Add sentry.kind, url.path and url.scheme to fetch and XHR spans ([#​26638](https://github.com/getsentry/sentry-javascript/pull/26638))
- feat(core): Record integration options in `defineIntegration` ([#​26779](https://github.com/getsentry/sentry-javascript/pull/26779))
- feat(core): Report user-set integrations and their options in SDK config ([#​26708](https://github.com/getsentry/sentry-javascript/pull/26708))
- feat(deno): Align deno with node & run integration suites with [@​sentry/deno](https://github.com/sentry/deno) ([#​26595](https://github.com/getsentry/sentry-javascript/pull/26595))
- feat(nitro): Add `@sentry/nitro/import` entry ([#​26757](https://github.com/getsentry/sentry-javascript/pull/26757))
- feat(server-utils): Add onSpanStart/onSpanEnd hooks to the LangChain and LangGraph integrations ([#​26629](https://github.com/getsentry/sentry-javascript/pull/26629))
- feat(server-utils): Skip Fastify hook spans on unsampled requests ([#​26711](https://github.com/getsentry/sentry-javascript/pull/26711))
- feat(solid): Support Solid 2 on Cloudflare Workers ([#​26741](https://github.com/getsentry/sentry-javascript/pull/26741))
- fix(astro): Only inject the server release in builds ([#​26725](https://github.com/getsentry/sentry-javascript/pull/26725))
- fix(bundler-plugins): Fall back to local git history when setting commits ([#​26760](https://github.com/getsentry/sentry-javascript/pull/26760))
- fix(bundler-plugins): Honor release.vcsRemote when associating commits ([#​26748](https://github.com/getsentry/sentry-javascript/pull/26748))
- fix(cloudflare): Do not load a second copy of [@​sentry/core](https://github.com/sentry/core) in Workers ([#​26568](https://github.com/getsentry/sentry-javascript/pull/26568))
- fix(core): Create DSC locally when receiving an incoming trace without DSC ([#​25934](https://github.com/getsentry/sentry-javascript/pull/25934))
- fix(core): Exclude dist from SDK configuration reports ([#​26702](https://github.com/getsentry/sentry-javascript/pull/26702))
- fix(core): Exclude DSN from SDK configuration reports ([#​26677](https://github.com/getsentry/sentry-javascript/pull/26677))
- fix(core): Exclude release from SDK configuration reports ([#​26701](https://github.com/getsentry/sentry-javascript/pull/26701))
- fix(effect): Stop bundling all of Effect with the error reporter ([#​26730](https://github.com/getsentry/sentry-javascript/pull/26730))
- fix(react): Change resetError to a function type property ([#​26717](https://github.com/getsentry/sentry-javascript/pull/26717))
- fix(replay): Do not report dead clicks after a bfcache restore ([#​26704](https://github.com/getsentry/sentry-javascript/pull/26704))
- fix(server-utils): Keep pi-durable 1.6 runs from faulting ([#​26718](https://github.com/getsentry/sentry-javascript/pull/26718))
- fix(server-utils): Read Express mount paths from the router 2.3 layer ([#​26729](https://github.com/getsentry/sentry-javascript/pull/26729))
- fix(server-utils): Trace pi-durable tool calls made by other tools ([#​26719](https://github.com/getsentry/sentry-javascript/pull/26719))
- ref(core): Make isClientClosed and warnIfClientIsActive public, drop getActiveClient ([#​26745](https://github.com/getsentry/sentry-javascript/pull/26745))
<details>
<summary> <strong>Internal Changes</strong> </summary>
- chore(deps): Bump `@sentry/conventions` to 0.35.0 ([#​26721](https://github.com/getsentry/sentry-javascript/pull/26721))
- chore(size-limit): Add [@​sentry/effect](https://github.com/sentry/effect) entries ([#​26716](https://github.com/getsentry/sentry-javascript/pull/26716))
- ci: Remove the Validate PR workflow ([#​26722](https://github.com/getsentry/sentry-javascript/pull/26722))
- perf(ci): Move Bun canary integration tests to nightly CI ([#​26737](https://github.com/getsentry/sentry-javascript/pull/26737))
- perf(ci): Reuse integration dependency installs within test workers ([#​26720](https://github.com/getsentry/sentry-javascript/pull/26720))
- perf(ci): Run focused tests for Next.js release injection ([#​26735](https://github.com/getsentry/sentry-javascript/pull/26735))
- perf(ci): Shard Next.js development E2E tests ([#​26728](https://github.com/getsentry/sentry-javascript/pull/26728))
- perf(ci): Split React Router lazy-route E2E tests ([#​26769](https://github.com/getsentry/sentry-javascript/pull/26769))
- perf(ci): Use four workers for Nuxt E2E tests ([#​26765](https://github.com/getsentry/sentry-javascript/pull/26765))
- perf(ci): Use four workers for React Router E2E tests ([#​26772](https://github.com/getsentry/sentry-javascript/pull/26772))
- perf(ci): Use four workers for SvelteKit E2E tests ([#​26770](https://github.com/getsentry/sentry-javascript/pull/26770))
- test(browser-integration-tests): Fix flaky replay errorsInSession and bfcache tests ([#​26750](https://github.com/getsentry/sentry-javascript/pull/26750))
- test(deno): Remove orchestrion suites that the Node suites cover ([#​26640](https://github.com/getsentry/sentry-javascript/pull/26640))
- test(deno): Run more Node suites on Deno with runtime-aware expectations ([#​26643](https://github.com/getsentry/sentry-javascript/pull/26643))
- test(e2e): Expect gen_ai message parts for image decisions in node-openai-decisions ([#​26752](https://github.com/getsentry/sentry-javascript/pull/26752))
- test(e2e): Run express-5 on Bun, Deno and Cloudflare ([#​26561](https://github.com/getsentry/sentry-javascript/pull/26561))
- test(e2e): Use a Workers AI model that still exists in cloudflare-workers-send-to-sentry ([#​26751](https://github.com/getsentry/sentry-javascript/pull/26751))
- test(hono): Check the SDK info of each entry in its real runtime ([#​26712](https://github.com/getsentry/sentry-javascript/pull/26712))
- test(nextjs): Split navigation E2E tests for better shard distribution ([#​26727](https://github.com/getsentry/sentry-javascript/pull/26727))
- test(node): Reuse filesystem integration test servers ([#​26492](https://github.com/getsentry/sentry-javascript/pull/26492))
- test(node): Reuse Hono, Hapi, Koa and Fastify test servers ([#​26491](https://github.com/getsentry/sentry-javascript/pull/26491))
</details>
Work in this release was contributed by [@​adityareddy-dev](https://github.com/adityareddy-dev), [@​wolfgang42](https://github.com/wolfgang42), and [@​JonasBa](https://github.com/JonasBa). Thank you for your contributions!
</details>
<details>
<summary>eslint/eslint (eslint)</summary>
### [`v10.16.0`](https://github.com/eslint/eslint/releases/tag/v10.16.0)
[Compare Source](https://github.com/eslint/eslint/compare/v10.15.0...v10.16.0)
#### Features
- [`7fff57a`](https://github.com/eslint/eslint/commit/7fff57a48b472ca12981997cd57bbb381feb970c) feat: add suggestions to `no-new-native-nonconstructor` ([#​21576](https://github.com/eslint/eslint/issues/21576)) (Pixel)
- [`14e3533`](https://github.com/eslint/eslint/commit/14e35339d568f8ec86ca10f726fc1d8c1b9e5658) feat: suggest comparing with both `null` and `undefined` in `eqeqeq` ([#​21577](https://github.com/eslint/eslint/issues/21577)) (Pixel)
- [`0e2a431`](https://github.com/eslint/eslint/commit/0e2a43144ede45e690732110462ee196b25c46e6) feat: handle `TSImportEqualsDeclaration` type imports in `no-shadow` ([#​21564](https://github.com/eslint/eslint/issues/21564)) (Lê Văn Xuân Hoàn)
- [`a6b2c6d`](https://github.com/eslint/eslint/commit/a6b2c6d5c16fe30075f40838e0ef0f9cb34d9f38) feat: add suggestions to `no-eq-null` ([#​21512](https://github.com/eslint/eslint/issues/21512)) (Pixel)
#### Bug Fixes
- [`0b43c2d`](https://github.com/eslint/eslint/commit/0b43c2dcf9081cd43c3924255c5b461c34dfc5c7) fix: update dependency [@​eslint/config-array](https://github.com/eslint/config-array) to ^0.23.7 ([#​21598](https://github.com/eslint/eslint/issues/21598)) (renovate\[bot])
- [`f692882`](https://github.com/eslint/eslint/commit/f6928820463d65d48ee09ada432e367f2acd700b) fix: handle trailing commas in no-unused-vars suggestions ([#​21570](https://github.com/eslint/eslint/issues/21570)) (Lê Văn Xuân Hoàn)
- [`622db83`](https://github.com/eslint/eslint/commit/622db83a9f9405141a42b7e4e734648cf6e62ec1) fix: add `ESLint.CalculatedConfig` type for `calculateConfigForFile()` ([#​21483](https://github.com/eslint/eslint/issues/21483)) (Pixel)
- [`0d401e5`](https://github.com/eslint/eslint/commit/0d401e51592f321cbab315a1ed1e9cfeddf17a1f) fix: handle heritage and qualified types in `no-use-before-define` ([#​21536](https://github.com/eslint/eslint/issues/21536)) (Lê Văn Xuân Hoàn)
- [`b377b08`](https://github.com/eslint/eslint/commit/b377b08f95646ac450551a5b73486ab95b9b09cf) fix: handle circular references when formatting config errors ([#​21569](https://github.com/eslint/eslint/issues/21569)) (Lê Văn Xuân Hoàn)
- [`4820790`](https://github.com/eslint/eslint/commit/48207902fccd37450823b8fd07736d84449ec8e7) fix: handle TS assertions on callees in `no-invalid-this` ([#​21540](https://github.com/eslint/eslint/issues/21540)) (Nitin Kumar)
- [`9fe69d8`](https://github.com/eslint/eslint/commit/9fe69d886fbecd2dc41d2a77f5553154660cb231) fix: skip type parameters in `getOpeningParenOfParams` ([#​21531](https://github.com/eslint/eslint/issues/21531)) (Lê Văn Xuân Hoàn)
#### Documentation
- [`1429546`](https://github.com/eslint/eslint/commit/1429546afcaae2321cc47df90ba7024958c2d46b) docs: fix typo in Node.js API documentation ([#​21594](https://github.com/eslint/eslint/issues/21594)) (Pixel)
- [`85d4d49`](https://github.com/eslint/eslint/commit/85d4d49dad059435f4d497cfbf2360897902e67a) docs: Update README (GitHub Actions Bot)
- [`6942d2f`](https://github.com/eslint/eslint/commit/6942d2f326ec0271bf42ebf2d728e5a203b79397) docs: Add Project Leads description ([#​21559](https://github.com/eslint/eslint/issues/21559)) (Nicholas C. Zakas)
- [`4c76138`](https://github.com/eslint/eslint/commit/4c76138b507998dff639db8b4db65eac31296c0c) docs: Update README (GitHub Actions Bot)
#### Chores
- [`42c9929`](https://github.com/eslint/eslint/commit/42c99292ce3dc1e94c60a2eaa237fe1029351bc3) chore: update github/codeql-action action to v4.39.4 ([#​21597](https://github.com/eslint/eslint/issues/21597)) (renovate\[bot])
- [`079529c`](https://github.com/eslint/eslint/commit/079529c39f82b920ba0c39d875ffb067d573fc0e) test: cover `SourceCode#getLoc()` and `getRange()` ([#​21595](https://github.com/eslint/eslint/issues/21595)) (electrohyun)
- [`65e8b2f`](https://github.com/eslint/eslint/commit/65e8b2fbb0bbf0d46c699d4c427aafda3de2ee0a) chore: remove obsolete markdownlint directives ([#​21588](https://github.com/eslint/eslint/issues/21588)) (lumir)
- [`9292b2f`](https://github.com/eslint/eslint/commit/9292b2f2fc42fb3955b4b56a9850837b7241bff6) chore: use spaces for YAML indentation in .editorconfig ([#​21591](https://github.com/eslint/eslint/issues/21591)) (electrohyun)
- [`5716b3f`](https://github.com/eslint/eslint/commit/5716b3fdc07a60f83b4812c4faa745dd05948367) chore: update ecosystem plugins ([#​21579](https://github.com/eslint/eslint/issues/21579)) (ESLint Bot)
- [`1501e8a`](https://github.com/eslint/eslint/commit/1501e8aca6aa36c913677ad2aec7bbc942da541c) ci: add `@eslint/shell` in ecosystem tests and types integration ([#​21516](https://github.com/eslint/eslint/issues/21516)) (lumir)
- [`e0148e3`](https://github.com/eslint/eslint/commit/e0148e30da6662318c5643f2230830af8407b2aa) chore: update dependency prettier to v3.10.1 ([#​21571](https://github.com/eslint/eslint/issues/21571)) (renovate\[bot])
- [`2102699`](https://github.com/eslint/eslint/commit/21026992e3520869b31ca4500905665942bb2cf0) chore: update dependency prettier to v3.10.0 ([#​21567](https://github.com/eslint/eslint/issues/21567)) (renovate\[bot])
- [`494f4e8`](https://github.com/eslint/eslint/commit/494f4e8f4b5f3579db2d4c01a3e61607888d7084) chore: update ecosystem plugins ([#​21566](https://github.com/eslint/eslint/issues/21566)) (ESLint Bot)
- [`97efadd`](https://github.com/eslint/eslint/commit/97efadd5eff8e3eb673f8746f7bb3ba2f3941251) ci: bump peter-evans/create-pull-request from 8.1.1 to 8.1.3 ([#​21551](https://github.com/eslint/eslint/issues/21551)) (dependabot\[bot])
</details>
<details>
<summary>prettier/eslint-config-prettier (eslint-config-prettier)</summary>
### [`v10.1.9`](https://github.com/prettier/eslint-config-prettier/blob/HEAD/CHANGELOG.md#1019)
[Compare Source](https://github.com/prettier/eslint-config-prettier/compare/v10.1.8...v10.1.9)
##### Patch Changes
- [#​382](https://github.com/prettier/eslint-config-prettier/pull/382) [`976eede`](https://github.com/prettier/eslint-config-prettier/commit/976eede6260db6b3c674813f3b87db6010c50daf) Thanks [@​CEXpp](https://github.com/CEXpp)! - Disable `@stylistic/list-style` because it conflicts with Prettier.
</details>
<details>
<summary>ota-meshi/eslint-plugin-astro (eslint-plugin-astro)</summary>
### [`v3.2.3`](https://github.com/ota-meshi/eslint-plugin-astro/blob/HEAD/CHANGELOG.md#323)
[Compare Source](https://github.com/ota-meshi/eslint-plugin-astro/compare/v3.2.2...v3.2.3)
##### Patch Changes
- [#​658](https://github.com/ota-meshi/eslint-plugin-astro/pull/658) [`17e6378`](https://github.com/ota-meshi/eslint-plugin-astro/commit/17e6378f7dcf6b2d9039e4fd85c3b4511f659780) Thanks [@​bardrop](https://github.com/bardrop)! - Fix `astro/prefer-object-class-list` autofix dropping the outer condition of nested ternaries.
### [`v3.2.2`](https://github.com/ota-meshi/eslint-plugin-astro/blob/HEAD/CHANGELOG.md#322)
[Compare Source](https://github.com/ota-meshi/eslint-plugin-astro/compare/v3.2.1...v3.2.2)
##### Patch Changes
- [#​654](https://github.com/ota-meshi/eslint-plugin-astro/pull/654) [`c4fdb84`](https://github.com/ota-meshi/eslint-plugin-astro/commit/c4fdb8456a56a1ff87bad352c575a340ace7af59) Thanks [@​bardrop](https://github.com/bardrop)! - Fix `astro/no-unused-css-selector` skipping indented `<style lang="sass">` blocks with sass 1.106.0 and later.
</details>
<details>
<summary>pnpm/pnpm (pnpm)</summary>
### [`v12.23.0`](https://github.com/pnpm/pnpm/releases/tag/v12.23.0): pnpm 12.23
[Compare Source](https://github.com/pnpm/pnpm/compare/v12.22.0...v12.23.0)
This release adds `pnpm edit`, `pnpm catalog migrate`, and `pnpm link --hard`, and moves deprecation warnings into the install summary. Platform variants are removed, so packages that publish them need to move to `optionalDependencies`. It also carries security fixes: pnpm no longer reads `otp` from config files, and it sends registry credentials only over HTTPS.
##### Minor Changes
##### Packing and publishing
- Removed platform variants. A package version has one archive again.
pnpm no longer reads `publishConfig.variants` or the `variant` field of `package.json`. `pnpm pack --variant` and the `--upload-variant`, `--variant-integrity` and `--no-variants` options of `pnpm publish` are gone. pnpr no longer accepts variant archives with a version or serves them at `<name>@<version>/variants/<tag>`.
To ship builds for several platforms, publish each as its own package and list them in `optionalDependencies`. A frozen install of a lockfile that records the variants of a registry package fails with `ERR_PNPM_BROKEN_LOCKFILE`. Run `pnpm install` to resolve the lockfile again.
- `pnpm pack` and `pnpm publish` now fail if a package that is not private lists a private workspace package in `dependencies`. A private package is never published, so the published package could not be installed. `devDependencies`, `optionalDependencies`, `peerDependencies`, and bundled dependencies are still allowed [#​2321](https://github.com/pnpm/pnpm/issues/2321).
- `pnpm publish` now supports `--new-version <version>`, which sets the version in `package.json` before publishing. With `--recursive`, every selected workspace package is set to the new version [#​2168](https://github.com/pnpm/pnpm/issues/2168).
- `pnpm pack --json` now reports the `package.json` that goes into the tarball, with `publishConfig` and the other publish-time changes applied. Run `pnpm pack --dry-run --json` to preview it without writing a tarball. A dry run still runs `prepack` and `prepare`, unless `--ignore-scripts` is passed.
- `pnpm pack` and `pnpm publish` now add a workspace-root `COPYING` file to a workspace package that has no license file. A `COPYING` file at the package root now counts as the package's license, so the workspace-root `LICENSE` is no longer added next to it.
- Added the `versioning.includePrivatePackages` setting. Set it to `false` to leave private packages out of `pnpm change` [#​13813](https://github.com/pnpm/pnpm/issues/13813).
##### Managing dependencies
- Added the `pnpm edit` command to open an installed package directory in an editor.
- Added `pnpm catalog migrate`, which moves dependency specifiers into the default catalog and replaces them in the workspace projects' `package.json` files with `catalog:`. A dependency moves only when every project declares it with the same specifier. The command lists the dependencies it leaves unchanged [#​7072](https://github.com/pnpm/pnpm/issues/7072).
- Added a `--hard` option to `pnpm link`. With `--hard`, pnpm saves the linked package with the `file:` protocol, so its files are hard linked into `node_modules` and its dependencies and peer dependencies resolve from your project. `pnpm unlink` removes these links too [#​9895](https://github.com/pnpm/pnpm/issues/9895).
- `pnpm remove` now accepts glob patterns and `!` exclusions in dependency selectors, such as `pnpm remove "eslint-*" "!eslint-plugin-import"` [#​13546](https://github.com/pnpm/pnpm/issues/13546).
- When pnpm updates a `package.json5`, it now changes only the values that changed. Comments, quotes, number formats, and layout elsewhere in the file stay as written. New keys and strings use the quote style of the file.
- `nodeLinker` accepts object settings for isolated and hoisted installs. Linker-specific hoisting options can be configured alongside the selected linker.
##### Updating dependencies
- `pnpm update --latest <pkg>` now moves the override that pins the named dependency [#​8701](https://github.com/pnpm/pnpm/issues/8701). `pnpm update --interactive --latest` does the same for every selected dependency. An override keeps its own range shape: a pin on an exact version lands on the new exact version, and `^` stays `^`. When pnpm cannot update the governing override automatically, the update prints a warning naming it.
- `pnpm update` now accepts `--tag <tag>`. The flag updates the matched dependencies to the version behind the given dist-tag and rewrites the ranges in `package.json`, the way `--latest` updates to the `latest` tag. It also works with `--interactive` and with global updates [#​3534](https://github.com/pnpm/pnpm/issues/3534).
- With `trustPolicy: no-downgrade`, `pnpm update --interactive` shows a `Trust` column with the trust evidence of each offered registry dependency [#​8889](https://github.com/pnpm/pnpm/issues/8889). The list also offers only versions the trust policy accepts, so it matches what the update installs.
- `pnpm update --interactive --long` shows the homepage or repository URL of each package. The URL column is hidden without `--long`.
##### Release age and build settings
- Added the `referenceTime` setting. `minimumReleaseAge` and `trustPolicyIgnoreAfter` count back from this RFC 3339 time, both when pnpm resolves versions and when it verifies a lockfile. Set it in `pnpm-workspace.yaml` or with `PNPM_CONFIG_REFERENCE_TIME`.
- Added the `--minimum-release-age` and `--minimum-release-age-exclude` options to `pnpm install`, `pnpm add`, `pnpm update`, and `pnpm dlx`. They set `minimumReleaseAge` and `minimumReleaseAgeExclude` for a single run without editing a config file [#​11224](https://github.com/pnpm/pnpm/issues/11224).
- `pnpm audit --fix` accepts `--no-add-release-age-exclusions`, which applies the fixes without adding entries to `minimumReleaseAgeExclude`.
- `--allow-build` now accepts a comma-separated list of packages, so `pnpm add foo bar --allow-build=foo,bar` is the same as passing `--allow-build=foo --allow-build=bar` [#​9560](https://github.com/pnpm/pnpm/pull/9560).
##### Install output
- Deprecation warnings moved into the install summary and only name the packages the install added. A deprecated dependency added by the install is marked `deprecated` on its summary line, with the version that is not deprecated when there is one. Deprecated subdependencies the install added are listed right after the summary. Deprecated packages that were already installed are reported as one count, such as `3 deprecated packages are still installed`.
- In a workspace, the install summary now lists the direct dependency changes of every project, not only of the project pnpm runs in. Each change is listed once, followed by the projects that made it, unless only the current project did. A project's first install lists only deprecated or outdated dependencies and the ones the command added [#​6481](https://github.com/pnpm/pnpm/issues/6481).
- `pnpm install` now warns when an entry in `overrides` matches no dependency, in a single line such as `2 overrides matched no dependency: foo, parent>child`. Only the overrides declared in the workspace are checked. Overrides added by a config dependency or an `updateConfig` hook are not. Set `warnUnusedOverrides: false` to turn the warning off [#​10315](https://github.com/pnpm/pnpm/issues/10315).
- `pnpm install` now shows lockfile verification progress while the supply-chain check runs. The final pass or failure line reports how many entries were checked.
##### Setup and diagnostics
- `pnpm doctor` now checks the environment that lifecycle scripts run in. It lists the `node` executables on `PATH` and warns about broken ones. It reports the shell that runs scripts. A new check runs a package's executable from a script, both in a temporary project and in the current project. If that script fails, the report includes the error and, outside Windows, a trace of the executable's shim that shows how it looked up and started `node` [#​16308](https://github.com/pnpm/pnpm/issues/16308).
- `pnpm self-update`, `pnpm setup`, and the "Install method" check of `pnpm doctor` now warn when another `pnpm` on `PATH` would run in place of the one pnpm installed. The warning names that copy. If pnpm recognizes how it was installed (npm, Homebrew, Corepack, Volta, or Scoop), the warning also gives the command that removes it.
- Set `PNPM_CONFIG_HOME` to choose the directory containing `config.yaml` and `auth.ini`. Global configuration commands read and write files in this directory. A non-empty value takes precedence over `XDG_CONFIG_HOME` and the platform defaults.
- pnpm now provides a prebuilt binary for Linux on LoongArch (loong64) with glibc.
- A failed `devEngines.runtime` or `engines.runtime` check now reports the reason in its error code. A runtime that is not installed fails with `ERR_PNPM_RUNTIME_NOT_FOUND`. A runtime entry without a version range fails with `ERR_PNPM_MISSING_RUNTIME_VERSION_RANGE`, and one with an invalid range fails with `ERR_PNPM_INVALID_RUNTIME_VERSION_RANGE`. An installed version that does not satisfy the range still fails with `ERR_PNPM_BAD_RUNTIME_VERSION`.
- `pnpm view <pkg>` now prints the registry it read the metadata from at the end of the summary [#​11394](https://github.com/pnpm/pnpm/pull/11394).
##### Patch Changes
##### Security
- `otp` is no longer read from any config file. Pass `--otp` on the command line, or set `PNPM_CONFIG_OTP`. A `pnpm-workspace.yaml` or a global `config.yaml` that carries `otp` is ignored, with a warning naming those two channels. `pnpm config set otp` fails with `ERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING`.
This closes a way to leak a secret. A repository could write `otp: ${NPM_TOKEN}` beside its own `registry:`, and `pnpm publish` sent that environment variable to the registry the same file named, in the `npm-otp` header of its first request [#​13542](https://github.com/pnpm/pnpm/issues/13542).
- pnpm now sends registry credentials only over HTTPS or loopback HTTP, both for tarball downloads and for requests to `pnprServer`. Tarball and package metadata requests respect registry credential paths on redirects. A failed tarball request can no longer pin its redirect destination in the lockfile.
- `pnpm install` now rejects local filesystem dependencies (`file:`, `link:`, and path-based `workspace:` specifiers) declared by non-local packages with `ERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED`. Relative `file:` dependencies inside a package's own archive and local dependencies configured by the workspace through `overrides`, `packageExtensions`, or `.pnpmfile.cjs` continue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots.
- `pnpm install` and `pnpm install --frozen-lockfile` now enforce `blockExoticSubdeps` against entries in `pnpm-lock.yaml`. Before, pnpm accepted a lockfile with git or tarball URL subdependencies and installed those packages even with `blockExoticSubdeps: true`.
- `pnpm install` with `pnprServer` now rejects registry-keyed lockfile entries whose resolution uses a non-registry source with `ERR_PNPM_RESOLUTION_SHAPE_MISMATCH`. The `pnpr` lockfile verification and resolution endpoints enforce the same check before accepting or caching a lockfile.
- `pnpm dlx`, `pnx`, and `pnpm create` now ignore local configuration in the working directory. This covers `.pnpmfile.cjs` hooks, proxy and TLS settings in the project `.npmrc`, and execution, layout, and resolution settings in a local `pnpm-workspace.yaml`, including `pnpmfile`, `globalPnpmfile`, `configDependencies`, `scriptShell`, `cacheDir`, `storeDir`, and `ignoreScripts`. Settings from the user's global `config.yaml`, such as `blockExoticSubdeps`, `cacheDir`, and `storeDir`, remain active.
- Global commands (`--global`, `-g`) no longer load `.pnpmfile.cjs`, `pnpm-workspace.yaml`, or `.npmrc` from the current working directory. `pnpm why -g` now inspects globally installed packages.
- `pnpm config get` refuses to print protected auth settings. `pnpm config list` hides TLS private keys and inline proxy credentials. `pnpm config set --global tokenHelper` writes to `auth.ini`, and setting a project-level `tokenHelper` fails.
TLS file paths in `.npmrc` and `auth.ini` resolve relative to the file that declares them. Project `.npmrc` files skip TLS file paths containing environment variables.
- When the `pnpm` package downloads its native binary on first run, it now handles registry credentials the way pnpm does:
- Credentials configured for a registry path, such as `//registry.example.com/org-a/npm/:_authToken`, are sent only to that path. They were sent to any path on the same host.
- It reads the registry and credentials from the global `auth.ini`, where `pnpm login` writes them, and from the `_auth` setting of the global `config.yaml`.
- A `${NPM_TOKEN?}` placeholder in `.npmrc` expands to the variable. It expanded to an empty value, so the download was sent without credentials.
- Matching a glob that repeats a wildcard, such as `+(*)z` in the workspace `packages` patterns, no longer hangs on long paths. The bundled picomatch is patched for a [security advisory](https://github.com/advisories/GHSA-fc5q-39xc-vjpf).
- `pnpm pack` and `pnpm publish` now reject `publishConfig.directory` values that use an absolute path or `..` segments outside the package directory.
- The `pnpm` binary no longer depends on `chrono`, which RustSec reports as unmaintained in RUSTSEC-2026-0543.
##### Installing packages
- `pnpm install` now adds a new workspace package that has no dependencies to the `importers` of `pnpm-lock.yaml` [#​18189](https://github.com/pnpm/pnpm/issues/18189).
- With `enableGlobalVirtualStore` on, `require.extensions` hooks run again for `require()` calls from a module compiled from a string, such as the module Next.js uses to load `next.config.ts`. A required `.ts` file skipped the registered TypeScript hook. A required `.json` file was parsed as JavaScript [#​18261](https://github.com/pnpm/pnpm/issues/18261).
- On Windows, when the project is on a network share, `pnpm install` now links dependencies in `node_modules` with the kind of link that can be opened on that share. It tries a junction first and a symlink second. If neither can be opened, the install fails with advice.
- On Windows, concurrent installs that link the same dependency no longer leave an `.ignored_<name>` entry next to the link in the global virtual store.
- `pnpm install` now fails with `ERR_PNPM_UNSUPPORTED_PROTOCOL` when a `file:` dependency that is not a workspace project uses a `catalog:` specifier. Injected workspace projects still resolve their `catalog:` dependencies.
- A `link:` or relative-path dependency of a local directory dependency now resolves from that directory. In any other package, such as a local tarball, it resolves from the lockfile directory. Both used to resolve from the importing project's directory [pnpm/tasks#319](https://github.com/pnpm/tasks/issues/319).
Two workspace projects that declare the same injected relative-path dependency, such as `../child`, no longer share the directory the first one resolved.
- `pnpm install` now links a workspace package for a `workspace:` range that combines `^`, `~`, or `*` with other ranges, such as `workspace:^ || ^2.0.0`.
- Fixed `pnpm install` keeping a runtime binary for the previous platform after a change to `supportedArchitectures` with the global virtual store disabled.
- The `nodeVersion` setting no longer changes the global virtual store directory names or the side-effects cache keys. These follow the Node.js runtime that pnpm installs for the project, then the `node` on `PATH`. `pnpm licenses` and `pnpm store status` now find packages that an install with `nodeVersion` placed in the global virtual store.
- Fixed package maps resolving workspace and linked packages to the wrong directory when a path contains `#`, `?`, or `%`.
- `pnpm install` and `pnpm peers check` no longer report a `catalog:` peer of an injected workspace package as unmet when the installed version matches the catalog entry [#​10279](https://github.com/pnpm/pnpm/issues/10279).
- The peer dependency check now reads the version of an injected workspace package from its `package.json`. `pnpm install` with `strictPeerDependencies: true` and `pnpm peers check` no longer report such a peer as unmet with a `file:` version.
- With `sharedWorkspaceLockfile: false`, `pnpm install` now reports missing peers of linked workspace packages, as `pnpm peers check` does.
- `peerDependencyRules.allowedVersions` now accepts a parent version range that contains `>`, such as `"foo@>=1.0.0>bar": "1"`.
- Fixed `nodeLinker: hoisted` installs in a workspace where the directory of one project is inside the directory of another. A dependency of the inner project could resolve to the version in the outer project's `node_modules`. pnpm now keeps the inner project's dependency in its own `node_modules` when the outer project holds another version.
- With `nodeLinker: hoisted`, pnpm now finds the agent skills of a dependency whose directory is shared with another peer variant of the same package version.
- `pnpm install` with `pnprServer` set now handles more workspace settings:
- It applies `injectWorkspacePackages`, `dedupeInjectedDeps`, `ignoredOptionalDependencies`, and `dependenciesMeta`. Projects that use them no longer fail with `ERR_PNPM_OUTDATED_LOCKFILE` or `ERR_PNPM_LOCKFILE_CONFIG_MISMATCH`.
- `pnpm install --update-checksums` refreshes the integrity checksums in the lockfile.
- It enforces `minimumReleaseAgeStrict` and adds fallback versions to `minimumReleaseAgeExclude` when strict mode is off.
- It resolves locally when the project declares `file:`, `link:`, or local path dependencies, or when `blockExoticSubdeps` is `false`. `pnpr` also rejects local filesystem dependency specifiers on `/-/pnpr/v0/resolve`.
- When an overrides entry requests a version that does not exist on the registry, `pnpm install` now names that override entry in the error. If the entry's selector has a version range, such as `foo@^1`, the error also shows the latest published version in that range.
- `pnpm add` run from a workspace package directory that has no `package.json` yet now suggests creating one with `pnpm init` [#​11345](https://github.com/pnpm/pnpm/issues/11345).
- The install summary now shows "(X is available)" after a direct dependency whose `latest` version on the registry is newer than the one installed. The note appears when the install resolved that dependency against registry metadata.
- Approving the `minimumReleaseAge` prompt no longer reprints the list of packages it just showed. pnpm now confirms with one line that says how many entries it added to `minimumReleaseAge…

What
modulesIntegrationnow reports the exact installed version of each dependency in the app'spackage.json, with the same result for CJS and ESM on Node.js and Bun. Next.js now injects exact versions at build time instead of ranges. When versions were injected at build time, the integration uses them and skips the runtime lookup.Why
Each mode used to read a different source. CJS used
require.cacheplusrequire.main.paths. ESM only had thepackage.jsonranges fromprocess.cwd(), and Next.js injected those ranges too. So an ESM app reportedexpress: "^4.22.3"where a CJS app reported4.22.3. Apps started from outside their own folder got the wrongpackage.json.There's now one path. The SDK finds the app's
package.jsonfrom the entry file. cwd is the fallback, and it comes first when the entry file is outside cwd, as with the Lambda runtime. Each declared dependency resolves through thenode_moduleschain the way a bare import does. That covers hoisted, pnpm and Bun layouts without special cases. The CommonJS module cache (Module._cache, which also holds CJS packages imported from ESM) only adds loaded transitive packages. The resolver is a pure function in@sentry/server-utilsthat takes areadFilecallback, so runtime and build-time callers share it. The NodereadFilechecks that a file exists before reading it. Thrown ENOENTs would pause the debugger wheneverlocalVariablescaptures caught exceptions, and trip its rate limit.Decisions for review:
suites/modulesno longer depends on Express error capture, which is why it was excluded on Bun as untriaged. It now runs on Bun. Each test writes its fixtures to its own temp folder, because the Bun projects run the suite at the same time.The Deno integration moved to a stacked PR.
via @mydea.
--
View Session [Sentry]