Skip to content

feat(packs): Sentry JavaScript SDK 10 to 11 packs (@sentry/nextjs, @sentry/browser verified) - #128

Merged
lucasbraum merged 1 commit into
mainfrom
claude/ecstatic-keller-rxuzn8
Oct 14, 2026
Merged

lucasbraum merged 1 commit into
mainfrom
claude/ecstatic-keller-rxuzn8

Conversation

@lucasbraum

Copy link
Copy Markdown
Collaborator

Pack

Sentry JavaScript SDK >=10 <11 → >=11 <12 (queue entry @sentry/core). Packs are keyed on the SDK a repository declares, because check/fix look packs up by exact name. All four leads are built from one shared module, packages/core/src/packs/sentry/ (sentryPack(lead)):

Lead Registered Status
@sentry/nextjs yes verified (3 public repositories)
@sentry/browser yes verified (2 public repositories)
@sentry/node no reviewed ground truth and fixtures; blocked by two engine gaps (below)
@sentry/react no reviewed ground truth and fixtures; blocked by one engine gap (below)

Node and React are not registered because the Packs check fails a PR on any registered pack that fails. Their directories keep the reviewed truth so a follow-up only needs to register them.

Release group. Every SDK package is an npm target of one craft release at one version (.craft.yml at 11.7.0), so every lockstep package except the lead is in releaseGroup. Left out: @sentry/types and @sentry/node-core (no 11.x), @sentry/cli, @sentry/vite-plugin, @sentry/webpack-plugin and @sentry/utils (versioned on their own), and @sentry/bundler-plugins (vite-plugin 5.4.x requires it at ^10).

requiresBuild is on for @sentry/nextjs only: a withSentryConfig import or build option in next.config.js/.mjs fails next build, which tsc never sees.

Inventory: package.json, .nvmrc/.node-version, **/*{sentry,instrument}*, **/sentry/**; for Next.js also next.config.* and middleware/proxy.

Sources

Read 2026-10-14, pinned at tag 11.7.0, all in meta.sources:

  • MIGRATION.md, 10.x to 11.x. Its only difference from 11.0.0 is one added line (Bun minimum).
  • CHANGELOG.md, 11.0.0 to 11.7.0.
  • .craft.yml.
  • Published declarations of nextjs, node, react, browser and core at 10.76.2 and 11.7.0, diffed export by export and option by option with the TypeScript API.

docs.sentry.io is refused by this environment's network policy, so it is not cited. Every change is classified (mechanical / assisted / behavior note / not compiler-visible) in packages/core/src/packs/sentry/RESEARCH.md.

Rules and behavior notes

Mechanical: the rewrite is safe whatever the code around it.

  • with-sentry-config-import (nextjs): import/require of withSentryConfig/SentryBuildOptions → @sentry/nextjs/config (exists in 10.x too). A mixed import declines. Detects next.config.js too.
  • build-options (nextjs): the removed top-level options move under webpack (disableLogger → webpack.treeshake.removeDebugLogging, …), merging into an existing webpack literal. Declines on a conflict, on disableManifestInjection (inverted) and on unstable_sentryWebpackPluginOptions.
  • enable-logs, enable-metrics: remove a literal true (top-level or _experiments). false and dynamic values are assisted: there is no switch left.
  • renamed-exports: inboundFiltersIntegration, instrumentLangGraph, spanToStreamedSpanJSON, bfcacheIntegration. Binding-aware; a local of the new name declines. otlpIntegration stays assisted.
  • integration-names: 'InboundFilters'/'OtlpIntegration' compared with .name or passed to getIntegrationByName (compiler-blind).
  • http-integration-options (node/nextjs): four pure key renames. instrumentation hooks and dropSpansForIncomingRequestStatusCodes are assisted.
  • streamed-span-wrapper: unwrap the deprecated no-op withStreamedSpan(fn).

Assisted: the guide lists options, and the agent must record its choice in decisions (a test enforces this for every options-bearing guide).

  • send-default-pii (never rewritten).
  • profiling-options, ignore-transactions, before-send-transaction, opentelemetry-setup, removed-node-options, error-handlers (deprecated), error-handler-options, browser-tracing-options, breadcrumbs-console, removed-modules, core-subpaths, removed-exports.

Compiler-blind syntactic detects (assisted):

  • span-json-format: v10 span JSON fields (description/op/data/timestamp) read through any in beforeSendSpan callbacks or on spanToJSON results.
  • feedback-rejection: sendFeedback rejections handled as strings.
  • require-preload: --require/-r Sentry preloads and removed /preload|/init|/loader entry points in package.json scripts.

Behavior notes (decision; applies() names files and options found in the inventory):

  • data-collection, span-streaming, sampling-filters, attach-stacktrace, trace-propagation-targets, platform-minimums.
  • browser-sessions-vitals (browser leads), opentelemetry-interop (server leads).
  • vercel-environment, tunnel-route, react-component-annotation (nextjs).
  • also-review.

Sampling, privacy and performance defaults are never changed by rule.

Ground-truth repositories

Drafted with pnpm packs:truth, reviewed by hand before scoring, never adjusted afterwards. Parents pinned; scripts off for every install. Nothing was pushed, commented or opened on any third-party repository.

Lead Repository Parent → upgrade Findings
nextjs cohstats/coh3-stats (#1015) 5b9c60bd → merge 1bb5bbb6 2
nextjs xdoubleu/tools.xdoubleu.com web/ (#1952) d3b780d4 → 4bc04eeb 2
nextjs maximunited/yomu (#245) 228fc3e4 → 64d4a872 4
browser Automancer-Ltd/automancer-site (#63) ea78c738 → a6ccab10 2
browser sbomify/sbomify (#1771) 4c2be201 → merge f0716c56 1
node (unregistered) TryGhost/ActivityPub (#2215) f8a82332 → 807b0642 3
node (unregistered) frog-pond/ccc-server (#1129) 75fdc083 → merge 4c5a9512 3
react (unregistered) owine/youth-activity-scheduler frontend/ (#502) 18b467f5 → 43afc60f 2
react (unregistered) successible/cleanslate (#584) 5d45401e → b21e87ed 0 (bump only)

Two review conventions were set before scoring and applied to every repository:

  • The inserted dataCollection blocks are the data-collection decision, not sites. That includes lines changed only to add a trailing comma before them.
  • Supporting edits (removed imports, file moves) are not separate sites.

Also documented in RESEARCH.md:

  • The React ErrorBoundary TS2607/TS2786 is a truth-helper artifact. A real scripts-off install of 11.0.0 shows only the two sendDefaultPii errors.
  • Parent compiles fail only on environment issues in non-Sentry files.
  • owine/doc-scanner was screened out: its lockfile is at the workspace root, which the engine does not support for a directory.

uptide pack test output

uptide pack test @sentry/nextjs · verified
fixtures      7 cases, 29 sites · pass
ground truth
  cohstats/coh3-stats@5b9c60bd6575             @sentry/nextjs 10.75.3 → 11.1.0  predicted 2, expected 2, false positives 0, false negatives 0
  xdoubleu/tools.xdoubleu.com@d3b780d42c89     @sentry/nextjs 10.75.3 → 11.0.0  predicted 2, expected 2, false positives 0, false negatives 0
  maximunited/yomu@228fc3e4f7ab                @sentry/nextjs 10.75.1 → 11.1.0  predicted 4, expected 4, false positives 0, false negatives 0

  rule                         precision  recall    tp   fp   fn
  build-options                     100%    100%     1    0    0
  ignore-transactions               100%    100%     1    0    0
  send-default-pii                  100%    100%     3    0    0
  with-sentry-config-import         100%    100%     3    0    0
  overall (sites)                   100%    100%     8    0    0
  breaking (sites)                  100%    100%     8    0    0

PASS @sentry/nextjs: verified

uptide pack test @sentry/browser · verified
fixtures      4 cases, 16 sites · pass
ground truth
  Automancer-Ltd/automancer-site@ea78c738e8de  @sentry/browser 10.75.2 → 11.4.0  predicted 2, expected 2, false positives 0, false negatives 0
  sbomify/sbomify@4c2be2012677                 @sentry/browser 10.75.2 → 11.0.0  predicted 1, expected 1, false positives 0, false negatives 0

  rule                         precision  recall    tp   fp   fn
  enable-logs                       100%    100%     1    0    0
  send-default-pii                  100%    100%     2    0    0
  overall (sites)                   100%    100%     3    0    0
  breaking (sites)                  100%    100%     3    0    0

PASS @sentry/browser: verified

Measured before unregistering (not run by CI):

@sentry/node   ActivityPub predicted 4, expected 3, FP 2, FN 1 · ccc-server 3/3 (✗ @sentry/utils 8.55.2 has no release that agrees)
               breaking P 67% R 80% · overall P 71% R 83% · TP 5 FP 2 FN 1
               FP: src/instrumentation.ts:52, :77 (generic: TS7006 under the removed `instrumentation` option)
               FN: src/app.ts:697 (generic: Hono span `updateName`, runtime behavior)
@sentry/react  youth-activity 2/2, cleanslate 0/0 · P 100% R 100% · candidate: ✗ @sentry/vite-plugin 5.4.0 has no release that agrees with @sentry/react 11.0.0

What the engine could not express

  1. Same-scope packages versioned on their own. The family link in list/groups.ts/check/companions.ts puts every installed @sentry/* package in the group "whatever versions its members are at". That brings in @sentry/vite-plugin 5.x and @sentry/utils 8.x, which have no release that agrees with the target, so fix refuses the upgrade (nothing changed). This blocks react and node. It would also refuse a Next.js or browser repository that declares @sentry/cli, a bundler plugin or @sentry/utils. A pack can declare who moves (releaseGroup) but not who stays.
  2. Downstream errors of a removed option. TS7006 inside an excess property's value is not folded into that property's site; root-cause folding only follows repository declarations. This causes node's 2 false positives.
  3. parseRegistry read only single-line entries. Biome wraps long ones, so a later pack new silently dropped them. Fixed in this PR (tooling/registry-file.ts + test), because the contract test otherwise blocks registering any @sentry/* pack.

Smoke test (not ground truth)

node packages/cli/dist/index.js fix @sentry/nextjs on a local clone of uptide-demo/saas-starter-kit (10.52.0 → 11.7.0). No --pr, no API key, so assisted fixes were off.

  • One mechanical edit (require('@sentry/nextjs/config')); types 0 → 0; tests pass.
  • Decisions cite both init files.
  • The required build failed before next build ran: the repository's build script runs prisma db push, which stops on a missing DATABASE_URL. That is environmental, and the build gate correctly blocks publication.
PR body it produced
## Upgrade @sentry/nextjs 10.52.0 → 11.7.0

**Review required before merging.** The code was migrated to @sentry/nextjs 11. Types compile; runtime behavior needs review.

| | |
|---|---|
| **Verified by** | ✅ the @sentry/nextjs migration pack · ✅ type-check · ❌ build · ✅ tests (1 run) |
| **Risk** | High: unverified sites |
| **Changes** | 1 site · 3 changed files · 1 auto-fixed · 0 fixed by the agent (LLM) |
| **Types** | ✅ the upgrade broke 0 · Uptide left 0 |
| **Behavior** | ⚠️ not checked |
| **Tests** | ✅ 4 tests in 1 file passed · jest unit tests under ., jest.config.js · ⚠️ 7 integration test files not run · lint clean (prettier, eslint) |

<details><summary>Moved with the upgraded packages · 226 transitive changes</summary>
(226-entry list of transitive lockfile changes omitted here: @sentry/* 10.52.0 → 11.7.0, @sentry/node-core and @sentry/webpack-plugin removed, OpenTelemetry instrumentations removed, oxc-parser added)
</details>

### What changed

**1. with-sentry-config-import** · 1 site · auto-fixed
withSentryConfig is exported from @sentry/nextjs/config. Verification is incomplete.

- const { withSentryConfig } = require('@sentry/nextjs');
+ const { withSentryConfig } = require('@sentry/nextjs/config');

- `next.config.js` (1)

### Worth a look

- 7 integration test files not run (need services). Run with `--with-services` to include them.
- Verification is incomplete; resolve the recorded run notes before merging.

### Decisions for you

- `instrumentation.ts`, `sentry.client.config.ts` call Sentry.init without dataCollection: with no dataCollection, v11 collects user info and IP, cookies, request and response headers and bodies, database queries, queue data and GenAI inputs/outputs; set dataCollection to keep v10's collection, or confirm the new defaults (https://github.com/getsentry/sentry-javascript/blob/11.7.0/MIGRATION.md#senddefaultpii-is-replaced-by-datacollection)
- `instrumentation.ts`, `sentry.client.config.ts` enable tracing: spans now stream as they end: beforeSendTransaction and ignoreTransactions do nothing, scope tags and extra no longer reach spans (use setAttribute), span names are low-cardinality and ops/attributes were renamed (dashboards, alerts and dynamic sampling rules keyed on them stop matching); traceLifecycle: 'static' opts out for now (https://github.com/getsentry/sentry-javascript/blob/11.7.0/MIGRATION.md#span-streaming-is-now-the-default)
- `instrumentation.ts`, `sentry.client.config.ts` leave attachStacktrace unset: attachStacktrace now defaults to true: captureMessage and non-Error captureException attach a stack trace, which regroups issues and counts those sessions as errored; set attachStacktrace: false to keep v10 grouping (https://github.com/getsentry/sentry-javascript/blob/11.7.0/MIGRATION.md#attachstacktrace-defaults-to-true)
- `sentry.client.config.ts` initialize the browser SDK: browser release health and web vitals change: crashed sessions are reported as unhandled, a session no longer renews on navigation (browserSessionIntegration({ lifecycle: 'route' }) restores it), and LCP/CLS/INP are reported per soft navigation, so page-load values drop (https://github.com/getsentry/sentry-javascript/blob/11.7.0/MIGRATION.md#web-vitals-are-reported-per-soft-navigation)
- `instrumentation.ts`, `sentry.client.config.ts` leave environment unset: on Vercel the default environment is now VERCEL_TARGET_ENV (production, preview) instead of vercel-production/vercel-preview; set environment explicitly to keep alert rules and saved searches matching
- Also review the [v10 to v11 migration guide](https://github.com/getsentry/sentry-javascript/blob/11.7.0/MIGRATION.md#upgrading-from-10x-to-11x) for span name, op and attribute renames used in dashboards, alerts and beforeSendSpan.

Verification details: Type errors: baseline 0; target 0; after 0; 0 new. Verification: FAIL.
Build after the bump in `.`: `prisma generate && prisma db push && next build` — failed (Prisma P1012: Environment variable not found: DATABASE_URL)
Generated before the baseline: `prisma generate --schema prisma/schema.prisma` — ok (no database contacted)
Tests `.`: baseline passed, target passed (4 tests in 1 file; 7 integration test files not run)
Lint (prettier, eslint) on 1 edited file: passed
Run notes: the three pinned sources above.
Uptide 0.12.1 · agent unavailable · $0.00 · 2 min · Tier: verified (a migration pack covers this upgrade)

Checklist

  • Every rule and note comes from a source listed in meta.sources
  • Every rule that rewrites or detects has a fixture case, with a site it must leave alone (keep), per lead
  • Ground truth: public repositories at the commit before their upgrade; expected findings read from their own upgrade commit and the compiler, never copied from Uptide's output
  • At least two public repositories for verified (nextjs 3, browser 2); node and react are not registered
  • pnpm uptide pack test @sentry/nextjs and @sentry/browser pass and are pasted above; verification.json written with --write
  • pnpm lint && pnpm typecheck && pnpm test pass (core 1,559 passed / 32 network skipped, CLI 438). The lint warning and info are pre-existing.
  • Changeset added (minor)
  • No private code, names or paths anywhere: fixtures are synthetic, ground truth is public

Kept as a draft: node and react are not verified, and the hub's queue entry is in-progress with the reason.

🤖 Generated with Claude Code

https://claude.ai/code/session_017jCcVb5eG7CEZjc2FE2aTE


Generated by Claude Code

…and @sentry/browser

One shared pack (packs/sentry) keyed on the SDK a repository declares, with the
SDK's lockstep release group from .craft.yml at 11.7.0. Sources: MIGRATION.md and
CHANGELOG.md at tag 11.7.0, read 2026-10-14, classified in RESEARCH.md.

Mechanical: withSentryConfig to @sentry/nextjs/config, removed build options
under webpack, enableLogs/enableMetrics: true, renamed exports and integration
names, httpIntegration key renames, withStreamedSpan. Privacy, sampling,
profiling, OpenTelemetry and span-format changes are assisted with options that
end in decisions, plus inventory-scoped behavior notes. Syntactic detects cover
what the compiler cannot see (span JSON read through any, sendFeedback string
rejections, integration names, next.config.js, package.json preloads).

Verified: @sentry/nextjs (3 public repositories, 8/8 sites, 0 false
positives) and @sentry/browser (2, 3/3). @sentry/node and @sentry/react keep
reviewed ground truth but stay unregistered: same-scope packages versioned on
their own are planned as family members, and errors inside a removed option are
not folded into it.

Fix renderRegistry/parseRegistry for entries biome wraps, which a later
`pack new` silently dropped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017jCcVb5eG7CEZjc2FE2aTE
Signed-off-by: Claude <[email protected]>
@lucasbraum
lucasbraum marked this pull request as ready for review October 14, 2026 16:47
@lucasbraum
lucasbraum merged commit 06f11ab into main Oct 14, 2026
10 checks passed
@lucasbraum
lucasbraum deleted the claude/ecstatic-keller-rxuzn8 branch October 14, 2026 16:47
@uptide-release uptide-release Bot mentioned this pull request Oct 14, 2026
lucasbraum added a commit that referenced this pull request Oct 14, 2026
…t as staying (#135)

## What and why

Found by the Sentry pack (#128). `companionsOf` treated every installed
package of the lead's npm scope as a member of the upgrade ("family: the
same scope, whatever versions its members are at"). Packages versioned
on their own then had no release that agreed with the target:
`@sentry/vite-plugin` 5.x, `@sentry/cli` 2.x/3.x, and the old
`@sentry/utils` 8.x. `fix` then refused the whole upgrade ("cannot be
installed consistently. Nothing was changed").

This PR changes the rule:
- **With a declared `releaseGroup`**, the group bounds the scope.
Same-scope packages join only if declared, or if a pin, peer or types
link relates them.
- **Without one**, a same-scope package is a candidate. It moves only
when a pin, a peer or a release at the lead's target version relates it
to the group. A package at the lead's version that has a release at the
target moves to it (lockstep without a pack).
- **Nothing unrelated fails the plan.** A scope package that nothing
relates **stays at its version**. That is reported as
`@sentry/vite-plugin stays at 5.4.0 (…)` in `check`, the PR body ("Left
where they are") and `pack test`. A member the group actually needs with
no agreeing release is still a conflict.

It also registers the `@sentry/react` pack, which now passes its gate.

## How it was verified

- **Regression tests** in `check/companions.test.ts`, modeled on
frog-pond/ccc-server (`@sentry/node` with `@sentry/profiling-node` and
`@sentry/utils` 8.55.2) and owine/youth-activity-scheduler
(`@sentry/react` with `@sentry/vite-plugin` 5.4.0 and `@sentry/cli`).
Each runs with and without a declared release group, plus:
  - a same-version package with a target release moves;
  - one without stays;
  - a declared member with no agreeing release is still a conflict;
  - only the lead's own scope is listed.
  - 6 of the new tests fail on main's `companions.ts` and pass here.
- A PR-body test covers "Left where they are".
- **Re-scored the unregistered Sentry leads:**
- `@sentry/react`: youth-activity-scheduler plans `@sentry/vite-plugin
stays at 5.4.0`. 2/2 sites, 0 false positives, **verified**, now
registered.
- `@sentry/node`: ccc-server moves `@sentry/profiling-node` 10.75.3 →
11.2.0 and leaves `@sentry/utils` 8.55.2. Node still has two false
positives on ActivityPub, which the companion PR (fold implicit-any
cascades) fixes. With both, node is verified: 5/6 sites, 0 false
positives.
- **Other packs**: `pack test` for `ai` reproduces its recorded
verification. vercel/chatbot moves `@ai-sdk/provider`/`@ai-sdk/react`
exactly as before; morphic is unchanged. `next`, `stripe`, `zod`,
`@sentry/nextjs` and `@sentry/browser` pass.
- `pnpm lint` (only the pre-existing warning/info), `pnpm typecheck`,
`pnpm test`: core 1,569 passed / 32 skipped, CLI 438 passed.

## Checklist

- [x] Tests for the change (a bug fix starts with a failing test)
- [x] `pnpm lint && pnpm typecheck && pnpm test` pass
- [x] README and docs updated if behavior changed (`docs/packs.md`
release groups; README packs table)
- [x] Changeset added if a user would notice (`pnpm changeset`)
- [x] No new dependency, or it was agreed in an issue
- [x] No private code, names or paths in fixtures, tests or docs
- [x] The rules in CONTRIBUTING.md ("Rules that do not bend") still hold

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_017jCcVb5eG7CEZjc2FE2aTE

---
_Generated by [Claude
Code](https://claude.ai/code/session_017jCcVb5eG7CEZjc2FE2aTE)_

Signed-off-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
lucasbraum added a commit that referenced this pull request Oct 14, 2026
…build could not start (#137)

## What and why

Found by the Sentry pack smoke test (#128). A pack's required build ran
the repository's `build` script. Those often need a database or secrets:
uptide-demo/saas-starter-kit's is `prisma generate && prisma db push &&
next build`. It stops on a missing `DATABASE_URL` before `next build`
starts, and the PR said only "❌ build".

- **`verify.build` in uptide.yml** (new, optional): the package.json
script the required build runs. Unset, Uptide uses `build:ci`, then
`build-ci`, then `build`, per workspace, else the root's.
- A `verify.build` naming a script the repository does not have is a
missing build. It blocks publication and never falls back to another
script.
- It reaches `fix` and `verify` from the CLI's settings, and in the
clone from the repository's own root `uptide.yml`, so the Action gets it
too.
- **Why a build could not start.** When a build fails before the
framework's own build begins, and its output names an environment
variable (`Environment variable not found: X`, `X is not set`) or an
unreachable database (`P1001`, `ECONNREFUSED :5432`), the result carries
a `cause`. A failure after `▲ Next.js` / `vite v…` / `building for
production` is the build's own and gets no cause.
- Verified-by row: `❌ build (build needs DATABASE_URL; set
verify.build)`.
- Details: "the build needs DATABASE_URL before the framework build
started. Set `verify.build` in uptide.yml to a script that builds
without it (`build-ci`)."
- **Config surface**: the schema in the loader and
`schema/uptide.v1.json`, `docs/config.md` ("Required builds"), and the
`uptide.yml` that `uptide init` writes (a commented `verify:` block;
goldens updated).

## How it was verified

- **Unit tests** (`fix/build.test.ts`):
  - script precedence;
  - a missing named script;
  - reading/ignoring `uptide.yml`;
- cause detection on saas-starter-kit's real Prisma output, a P1001
database error and a missing secret;
  - no cause once Next's build has started.
- **Integration tests**:
- `fix/required-build.test.ts`: `fix` forwards `buildScript` from the
option and from the repository's `uptide.yml`.
  - `fix/report.test.ts`: the PR-body wording.
- `onboarding/config.test.ts`: parsing, rejecting a command (`next
build`) and unknown keys.
- **Real runs** of the built CLI on a local clone of
uptide-demo/saas-starter-kit (`@sentry/nextjs` 10.52.0 → 11.7.0, no
`--pr`; the `uptide.yml` edits were local commits, nothing pushed):

  | uptide.yml | Verified by | Build detail |
  | --- | --- | --- |
| (unset) | ✅ … · ✅ build · ✅ tests | `` (`build-ci` script): `next
build` — passed `` (the repo has `build-ci`) |
| `verify.build: build` | ✅ … · ❌ build (build needs DATABASE_URL; set
verify.build) · ✅ tests | `` `prisma generate && prisma db push && next
build` — failed: the build needs DATABASE_URL before the framework build
started. Set `verify.build` in uptide.yml to a script that builds
without it (`build-ci`). `` |
| `verify.build: build-ci` | ✅ … · ✅ build · ✅ tests | `` (`build-ci`
script): `next build` — passed `` |

Before this change, the same repository's run ended "❌ build" with no
reason.
- `pnpm lint` (only the pre-existing warning/info), `pnpm typecheck`,
`pnpm test`: core and CLI pass. The release test failed once after I had
enabled corepack shims locally; it passes with them restored.

## Checklist

- [x] Tests for the change (a bug fix starts with a failing test)
- [x] `pnpm lint && pnpm typecheck && pnpm test` pass
- [x] README and docs updated if behavior changed (`docs/config.md`,
schema, generated uptide.yml)
- [x] Changeset added if a user would notice (`pnpm changeset`)
- [x] No new dependency, or it was agreed in an issue
- [x] No private code, names or paths in fixtures, tests or docs
- [x] The rules in CONTRIBUTING.md ("Rules that do not bend") still
hold. The build still runs only in the clone, with scripts' credentials
filtered as before.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_017jCcVb5eG7CEZjc2FE2aTE

---
_Generated by [Claude
Code](https://claude.ai/code/session_017jCcVb5eG7CEZjc2FE2aTE)_

Signed-off-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
lucasbraum added a commit that referenced this pull request Oct 14, 2026
… pack finding (#136)

## What and why

Found by the Sentry pack (#128). A pack can report an option the target
removed: a TS2353/TS2561 excess property its rule claims, or its own
finding on the property. When that happens, the callbacks inside the
option's value lose the parameter types the option gave them, and the
compiler adds TS7006 (and TS7031/TS7019 for destructured and rest
parameters) at each one. Each of those stood as a separate generic
**breaking** site.

On TryGhost/ActivityPub (`@sentry/node` 10 → 11), the `httpIntegration({
instrumentation: { requestHook: (span, req) => …,
applyCustomAttributesOnSpan: (_span) => … } })` call produced:
- one site at `instrumentation.ts:51`;
- two false positives at `:52` and `:77`.

`check/option-cascades.ts` (`foldOptionCascades`) runs after the pack
claims its findings. Implicit-any errors whose position lies inside the
reported option's own value become that finding's `downstream` evidence,
with a detail line naming them. They are no longer sites of their own,
and the same edit at the option resolves them.

What still stands on its own:
- implicit-any errors outside the option;
- errors under an option no pack claims;
- errors in other files.

## How it was verified

- `check/option-cascades.test.ts`, modeled on ActivityPub's
`instrumentation.ts` (lines 47–77): 52/77 fold under 51, while a TS7006
outside the option stays. An unclaimed TS2353 folds nothing, a
pack-detected option folds its own value, and nothing folds across
files.
- **ActivityPub, `pnpm uptide pack test @sentry/node`** (the lead
registered locally):

  | | Breaking precision | Breaking recall | FP |
  | --- | --- | --- | --- |
  | Before | 67% | 80% | 2 (`instrumentation.ts:52`, `:77`) |
  | After | 100% | 80% (unchanged) | 0 |

With the release-group PR as well, `@sentry/node` passes as verified
(5/6 sites, 0 false positives).
- **Precision did not drop on any verified pack.** Each of these
reproduces its recorded `verification.json` (PASS): `zod`, `stripe`,
`next`, `ai`, `vitest`, `@sentry/nextjs`, `@sentry/browser`. For
`react`, excalidraw scores identically with and without this change (57
TP, 0 FP breaking). tldraw could not be installed locally (Yarn 4 via
corepack, then a network abort); CI's Packs job covers it.
- `pnpm lint` (only the pre-existing warning/info), `pnpm typecheck`,
`pnpm test`: core 1,561 passed / 32 skipped, CLI 438 passed. One check
test hit its timeout once while the machine was loaded by the sweep; it
passed on rerun (30/30).

## Checklist

- [x] Tests for the change (a bug fix starts with a failing test)
- [x] `pnpm lint && pnpm typecheck && pnpm test` pass
- [x] README and docs updated if behavior changed (no user-facing docs
describe per-site counting beyond the report)
- [x] Changeset added if a user would notice (`pnpm changeset`)
- [x] No new dependency, or it was agreed in an issue
- [x] No private code, names or paths in fixtures, tests or docs
- [x] The rules in CONTRIBUTING.md ("Rules that do not bend") still hold

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_017jCcVb5eG7CEZjc2FE2aTE

---
_Generated by [Claude
Code](https://claude.ai/code/session_017jCcVb5eG7CEZjc2FE2aTE)_

---------

Signed-off-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
lucasbraum pushed a commit that referenced this pull request Oct 14, 2026
`pack new` sorted registry imports bytewise, so `./react-router/` came before
`./react/` (`-` sorts before `/`), which biome's organize-imports rejects.
Imports now compare segment by segment. #128 already renders wrapped rows
and parses them back; this adds the ordering and a test that runs biome on
the rendered file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01EV6fvvLupC2Hdbwcg7iovY
Signed-off-by: Claude <[email protected]>
lucasbraum added a commit that referenced this pull request Oct 15, 2026
Stacked on #141 (the compile-signal fix); its base is that branch until
#141 merges.

## Pack

`react-router` `>=6 <7` → `>=7 <8` (default target 7.18.4), queue entry
`react-router`. `react-router-dom` is a `releaseGroup` member (published
in lockstep, pinned exactly). It is also the pack's **alternate lead**
(#134), so the pack runs for the usual v6 setup that declares only
`react-router-dom`: `check react-router` and `check react-router-dom`
both run it, and `fix` declares `react-router` at the target beside it.

The queue asked for 6 → 8. The evidence says that is two upgrades:
- The v6 guide exists only in the v7 docs.
- Each guide assumes the previous major's future flags were adopted on
that major.
- `react-router-dom` has no 8.x.

So this PR ships 6 → 7. `packs/queue.json` retargets the entry to `>=7
<8` (verified) and adds a 7 → 8 entry (`todo`).

Also here: one commit fixes `pack new`'s registry renderer, which
ordered `./react-router/` before `./react/` against biome. It comes with
a regression test, on top of #128's wrapping fix.

## Sources

All pinned to release commits and read 2026-10-14. Each change is
classified in `packages/core/src/packs/react-router/RESEARCH.md`.
- [Upgrading from v6 @
7.18.4](https://github.com/remix-run/react-router/blob/1b1e0b0e79b21692ce907933475233babdd16e3e/docs/upgrading/v6.md)
- [v6 future flags @
6.30.6](https://github.com/remix-run/react-router/blob/dead4962d6c33e962f266af910b7a09e3ece30cf/docs/upgrading/future.md)
- [react-router CHANGELOG
7.0.0–7.18.4](https://github.com/remix-run/react-router/blob/1b1e0b0e79b21692ce907933475233babdd16e3e/packages/react-router/CHANGELOG.md)
- [react-router-dom
CHANGELOG](https://github.com/remix-run/react-router/blob/1b1e0b0e79b21692ce907933475233babdd16e3e/packages/react-router-dom/CHANGELOG.md)
and its [7.0.0 entry
point](https://github.com/remix-run/react-router/blob/e8e3b004d94a949372e77ce97a543bff5bc6fb89/packages/react-router-dom/index.ts)
- [Root
CHANGELOG](https://github.com/remix-run/react-router/blob/1b1e0b0e79b21692ce907933475233babdd16e3e/CHANGELOG.md)
- For the split: [Upgrading from v7 @
8.4.0](https://github.com/remix-run/react-router/blob/7ccdcecdd944e15be0cd0dcb702b86c9af1214a8/docs/upgrading/v7.md)

## Rules and behavior notes

**Mechanical** (a rewrite at the reported site), exercised by ground
truth:
- `dom-imports` (deprecated, detect + rewrite): moves a
`react-router-dom` import or re-export to `react-router` when every name
it takes is there. It declines when a test mocks `react-router-dom` by
name. Phoenix exercises it with 29 sites.

**Assisted, rewrite ready** (detection runs; the edit is unit-tested but
not wired until a ground-truth repository exercises it; RESEARCH.md
lists them):
- `future-prop` (breaking, TS2322): removes the `future` prop of a
router (aliases resolved through the import), inline `v7_*` literals
only. The only inline-literal upgrades seen, wire-webapp and
OpenMetadata, are excluded by the parent rule below. Lago's sites pass a
variable.
- `dom-server-entry` (breaking, TS2307 + detect):
`react-router-dom/server` becomes `react-router`.
- `future-option` (deprecated, detect): the stale `future` option of a
router factory, which v7 types `{}`.
- `form-method-case` (breaking, TS2367/2678/2820 + detect): a lowercase
method compared with `.formMethod`. This is the syntactic detect for
comparisons the compiler is blind to through `any`/`string`.

**Assisted** (a guide for the agent; guide options go to "Decisions for
you"):
- `dom-entry-imports` (deprecated, detect):
`RouterProvider`/`HydratedRouter` from `react-router/dom`, which needs
`moduleResolution` bundler/node16/nodenext.
- `future-prop-untyped` (deprecated, detect): a `future` prop passed
through untyped `createElement` (jest mocks); v7 ignores it.
- `removed-json` and `removed-defer` (breaking, compiler + binding-aware
detect).
- `removed-exports`, `fallback-element`, `stabilized-options`
(breaking).
- `generate-path-params` (breaking): `generatePath` rejects `null` for a
required param since 7.14.2. Lago has 8 such sites.

**Behavior notes** (`decision`, each with `applies()` evidence from the
inventory). A flag note is omitted when the repository already enabled
that flag:
- `relative-splat-path`, `start-transition`, `fetcher-persist`,
`normalize-form-method`, `partial-hydration`,
`skip-action-error-revalidation`
- `data-strategy`, `navigation-promises`, `platform-minimums`,
`remix-router-package`, `dom-package`, `also-review`

`requiresBuild` is not set. `@react-router/*` has no 6.x release, so it
is not declared. No framework mode and no route-structure change.

## Ground-truth repositories

**Final truth: Arize-ai/phoenix and getlago/lago-front.** Expectations
were drafted with `pnpm packs:truth` and the upgrade diff, then reviewed
by hand before scoring, and none changed afterwards. Installs ran with
scripts off. Nothing was pushed, commented or opened on these
repositories.
- [Arize-ai/phoenix](Arize-ai/phoenix#6896)
- `app/`, pnpm. Parent `4d6c1dfb01e9406cf769efab14f0350ea2d0a0f8`,
upgrade `3e9dc43bcc686e8ff3d57a028a9fcc15f3935490`, 6.25.1 → 7.4.0.
  - 30 expected: 29 `dom-imports`, 1 `dom-entry-imports`.
-
[getlago/lago-front](getlago/lago-front@6055a5a)
- pnpm, declares only `react-router-dom`. Parent
`84aa05d535edc326a4d104923e4e7293d1be6646`, upgrade
`6055a5a3c8076522235fe2da452a209e99af8541`, 6.30.6 → 7.18.3.
- 18 expected: 6 `future-prop`, 8 `generate-path-params`, 1
`removed-exports`, 3 `generic`.

**Parents that do not type-check** (one rule, applied to all four
drafted repositories, RESEARCH.md "Parents that do not type-check"):
- The rule: run the parent's own project compile (its type-check script
and tsconfig). A parent that fails is excluded, unless every error comes
from an unbuilt workspace package the upgrade does not touch, shown by
building it.
- **Phoenix**: `tsc --noEmit` in `app/` reports 0 errors. Kept.
- **Lago**: `scripts/check-types.js` reports 188 errors, all from
`lago-design-system` before it is built. With its declarations emitted
as its own build does, the parent compiles clean and so does the upgrade
commit. The parent's code against the upgrade's dependencies then
reports exactly the truth's 14 compiler sites. Kept, confined.
- **wireapp/wire-webapp** (#22299): 1979 errors, including a gitignored
generated icon module and 5 in `testUtil.tsx`, which the upgrade edits.
Excluded.
- **open-metadata/OpenMetadata** (#31641): 1481 errors, including ones
unrelated to any build and one in `AppRoot.tsx`, which the upgrade
edits. Excluded.

Screened out (see RESEARCH.md): feishin (out-of-sync lockfile, and
git-hosted dependencies this environment cannot reach), medusa (a
79-file mixed commit), and others with few compiler-visible sites.

## `uptide pack test` output

On this branch, rebased on main `9ba005a` with #141 under it:

```
uptide pack test react-router · verified
fixtures      9 cases, 29 sites · pass
ground truth
  Arize-ai/phoenix@4d6c1dfb01e9                react-router 6.25.1 → 7.4.0  predicted 31, expected 30, false positives 1, false negatives 0
    with react-router-dom 6.25.1 → 7.4.0
  getlago/lago-front@84aa05d535ed              react-router 6.30.6 → 7.18.3  predicted 351, expected 18, false positives 335, false negatives 2
    with react-router-dom 6.30.6 → 7.18.3

  rule                         precision  recall    tp   fp   fn
  dom-entry-imports                 100%    100%     1    0    0
  dom-imports                         8%    100%    29  336    0
  future-prop                       100%     67%     4    0    2
  future-prop-untyped                 0%    100%     0    2    0
  generate-path-params              100%    100%     8    0    0
  generic                           100%     33%     1    0    2
  removed-exports                   100%    100%     1    0    0
  overall (sites)                    12%     96%    46  336    2
  breaking (sites)                  100%     88%    14    0    2

false negatives (2)
  getlago/lago-front@84aa05d535ed  src/components/activityLogs/__tests__/utils.test.tsx:348  generic
  getlago/lago-front@84aa05d535ed  src/core/router/__tests__/Link.test.tsx:94  generic

reported under another rule (2)
  getlago/lago-front@84aa05d535ed  src/test-utils/routerFutureMock.ts:12  future-prop-untyped, expected future-prop
  getlago/lago-front@84aa05d535ed  src/test-utils/routerFutureMock.ts:14  future-prop-untyped, expected future-prop

PASS react-router: verified
```

- **Breaking: 100% precision, 88% recall (14 TP, 0 FP, 2 FN).**
- **The 336 false positives are all `deprecated` `dom-imports` moves the
upgrades did not make.** Lago kept all 335 of its `react-router-dom`
imports, which v7 still serves; Phoenix kept one. `fix` applies them
only with `--include-deprecated`.
- **Misses.** The two breaking misses are Lago's deleted jest mock
(`routerFutureMock.ts`). The pack finds it but files it as
`future-prop-untyped` (deprecated), because the prop goes through
untyped `createElement` and v7 ignores it. The two `generic` misses are
test assertions whose v7 behavior changed (generatePath escaping, Link
href normalization). No compiler site and no syntax match exists for
those.
- **#141's effect here:** with #141's change reverted, the same final
truth gives identical findings.

### What the engine could not express

1. A workspace whose lockfile sits at the monorepo root cannot be ground
truth with `directory` (`UNSUPPORTED_PACKAGE_MANAGER`); wire-webapp hit
this.
2. A package the upgrade removed (Phoenix's `react-router-dom`) cannot
be stated in the truth, so it is linked at the target. `packs:truth`
also omits the lines of deleted files.
3. Fixture `keep` means neither detected nor rewritten, so a
detected-but-declined site needs a rule of its own.
4. `applies()` reads the inventory as text, so one router's flag
silences its note for the whole repository.
5. Behavior only tests observe has no finding to attach to.
6. A parent whose own compile needs a build step is scored unbuilt
(scripts off). For Lago, the built-world check shows this hides nothing.

## Checklist

- [x] Every rule and note comes from a source listed in `meta.sources`
- [x] Every rule that rewrites or detects has a fixture case, with a
site it must leave alone (`keep`); the rewrite-ready edits are
unit-tested
- [x] Ground truth: public repositories at the commit before their
upgrade; expected findings read from their own upgrade commit and the
compiler, never copied from Uptide's output
- [x] At least two public repositories for `verified`
- [x] `pnpm uptide pack test react-router` passes and its output is
pasted above; `verification.json` written with `--write`
- [x] `pnpm lint && pnpm typecheck && pnpm test` pass: full suite on an
idle machine with default timeouts gives 2,120 tests, none failing. The
lint warning and info are pre-existing on main.
- [x] Changeset added (`.changeset/react-router-seven.md`)
- [x] No private code, names or paths anywhere: fixtures are synthetic,
ground truth is public

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01EV6fvvLupC2Hdbwcg7iovY

---------

Signed-off-by: Claude <[email protected]>
Co-authored-by: Claude <[email protected]>
lucasbraum pushed a commit that referenced this pull request Oct 15, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## [email protected]

### Minor Changes

- [#134](#134)
[`b795705`](b795705)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Packs can name
alternate leads: packages a repository declares instead of the pack's
own (`react-router-dom` for `react-router`). `check` and `fix` asked for
either name use the pack; where only the alternate is declared, the lead
is analyzed at the version installed through it, pnpm stores included,
and `fix` declares it beside the alternate at the target before
upgrading both.

- [#149](#149)
[`3303118`](3303118)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add a candidate
express 4 to 5 migration pack. Route strings that path-to-regexp 8
rejects or reads differently are found on calls of an Express app or
router (including lists registered in a loop); `req.params` values
widened to `string | string[]`, `req.param`, `res.sendfile`,
`express.static.mime` and `express.query` are claimed from the compiler;
`res.redirect(url, status)`, `app.param(fn)`, `res.redirect('back')` and
`res.send(<number>)` are found in the source; runtime defaults (async
errors, `req.body`, the query parser, `urlencoded`, dotfiles, Node 18)
go to decisions. No rule rewrites. With the pack in use, `check` no
longer adds its text-matched express 5 runtime findings.

- [#148](#148)
[`5143c46`](5143c46)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add a candidate
joi 17 to 18 migration pack. `new ValidationError(message, {},
original)`, which stops compiling for code written against joi
17.0–17.6, is rewritten to pass `[]`; the Node.js 20 requirement and the
top-level domains joi 18 no longer accepts in `email()`, `domain()` and
`uri()` are reported as decisions. Scored against two public
repositories, one of them a negative control.

- [#131](#131)
[`413d3da`](413d3da)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add a verified
lucide-react 0.x to 1.x migration pack. Brand icons removed in 1.x are
found at their imports and every use, with a guide whose replacement
choice goes to the owner; icon names dropped during 0.x are renamed at
the import or member; deep `dist/` imports, untyped icon lookups, the
`absoluteStrokeWidth` and `IconNode` deprecations, and the `aria-hidden`
default for repositories before 0.489.0 are reported. Lucide's lockstep
packages move together and the consumer's build is required. Verified
against three public repositories, one of them a negative control.

- [#132](#132)
[`107c107`](107c107)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add a verified
React Router 6 → 7 migration pack, which also runs for applications that
declare only `react-router-dom`. It moves `react-router-dom` imports to
`react-router`. It reports, with a guide for the agent, the rest of the
upgrade: the removed `future` prop and router option,
`react-router-dom/server`, lowercase `formMethod` comparisons and
`json`/`defer` calls (found by syntax where the compiler is blind), the
other removed exports, and `generatePath` calls that pass `null` for a
required parameter. The six v6 future flags that become defaults are
reported as decisions where the repository's router setup has not
enabled them. React Router 7 → 8 is a separate upgrade.

- [#142](#142)
[`9c57934`](9c57934)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `check` and `fix`
plan what the target version requires: a package the target, or anything
moving with it, declares as a peer or dependency at a range the
installed copy rejects moves to the lowest release of its major that
satisfies it (openai 7 moves zod 3.24.2 to 3.25.0), shown apart from
release-group companions ("moved because openai 7.4.0 requires zod ^3.25
|| ^4.0"). A move only a new major makes is never made: it is reported
as a blocker with the exact range in `check`, the PR body and `pack
test`. The npm install scope guard no longer lets a declared root
dependency change because a moved package peers on it.

- [#128](#128)
[`06f11ab`](06f11ab)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add verified
Sentry JavaScript SDK 10 to 11 migration packs for `@sentry/nextjs` and
`@sentry/browser`, with the SDK's lockstep release group, a required
build for Next.js, and inventory-scoped decisions for data collection,
span streaming, sampling and platform minimums. Mechanical rules move
`withSentryConfig` to `@sentry/nextjs/config` and the removed build
options under `webpack`, remove `enableLogs`/`enableMetrics: true`, and
rename exports, integration names and `httpIntegration` options;
privacy, sampling, profiling and OpenTelemetry choices stay assisted and
are reported for the owner. Fix `uptide pack new` dropping registry
entries long enough to be wrapped.

- [#155](#155)
[`922c5ab`](922c5ab)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `uptide pack
test` applies a stricter verified gate: at least five expected breaking
sites across the public ground-truth repositories, besides two
repositories and no breaking false positive. Upgrades the compiler
cannot see are gated on their behavior notes instead. Mechanical rules
no real site exercises are recorded as unexercised, and `check` and
`fix` run their sites as assisted. `@sentry/browser` and `@sentry/react`
become candidates (fewer than five real breaking sites). A pack can
lower the minimum only with a written reason in its RESEARCH.md. The
README packs table shows each pack's breaking-site count. The output
shows the gate's class, site counts and every reason a pack is a
candidate.

- [#147](#147)
[`0b88170`](0b88170)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `check` and `fix`
remove a deprecated `@types` stub instead of upgrading to it. When the
release the upgrade would move `@types/<pkg>` to is deprecated on npm,
and `<pkg>`'s target declares its own types (`types`, `typings` or a
`types` export), the plan removes it: "Removed: @types/ioredis, ioredis
5 ships its own types", in `check` and in the PR body. `check` now diffs
such a package against its own target types instead of failing on a stub
with no declarations, and `fix` removes the entry in the same install,
with the install scope guard allowing exactly that removal.

- [#150](#150)
[`4c3212b`](4c3212b)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `check
typescript` judges a TypeScript 5 to 6 upgrade with both compilers:
every project of the workspace is compiled with the installed TypeScript
and with the target's, and what is new at the target is a finding; the
bundled compiler never stands in, and a target without a JavaScript API
(TypeScript 7) is reported as not compiled. A candidate typescript 5 to
6 pack reports the tsconfig options 6.0 deprecates where they are set,
the rootDir default, module-keyword namespaces and import assertions. A
peer that rejects the target (typescript-eslint on TypeScript 6) is now
reported as a peer conflict even when it is not grouped with the
package.

- [#137](#137)
[`21894d7`](21894d7)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add
`verify.build` to uptide.yml: the package.json script a migration pack's
required build runs. Unset, Uptide runs `build:ci`, then `build-ci`,
then `build`. When a build fails before the framework's build starts
because it needs an environment variable or a database (`prisma db push`
without `DATABASE_URL`), the pull request and the report say so ("build
needs DATABASE_URL; set verify.build") instead of a bare "build failed".
`uptide init` writes the setting as a comment.

### Patch Changes

- [#141](#141)
[`9debb6d`](9debb6d)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `check` no longer
reports a pre-existing type error as a breaking site when the upgrade
only changes its wording, such as a type the message prints in full. An
error at the same place with a different reason is still reported.

- [#129](#129)
[`e796e4c`](e796e4c)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add a candidate
ioredis 5 to 6 migration pack: client constructions that inherit the
RESP3, reconnect and keep-alive defaults ioredis 6 changed,
compiler-blind sites (`mode === 'subscriber'`, commands in a `connect`
listener with the offline queue off, AUTH recognized by command name),
dependents that bundle ioredis 5, instrumentation that stops patching
ioredis 6, and Node 20. It is scored against five public upgrades and
stays a candidate: none of them has a breaking site to verify it with.

- [#139](#139)
[`9ba005a`](9ba005a)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Allow local check
and fix smoke tests of registered candidate packs with
--allow-candidate, with an explicit unverified banner. Reject candidate
opt-in in the Action and with publication flags, and prevent stored
candidate runs from being published. Label pack-claimed assisted sites
by rule id even with --no-llm.

- [#157](#157)
[`f3af6a1`](f3af6a1)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `check` no longer
reports a blocker for a direct dependency whose plain dependency range
rejects the target (`@azure/ai-projects` on `openai ^6`, verdaccio
pinning express 4): the package manager gives it its own nested copy, so
it is listed as staying, with the new major that would accept the target
when there is one. `pack test` counts a `with` move that `check` leaves
and explains (a blocker, a new-major stay or a peer conflict) as
explained, and one of a package that does not depend on the lead as the
repository's choice; neither fails the run.

- [#130](#130)
[`5ced450`](5ced450)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add a candidate
openai 4 to 7 migration pack: named path parameters, `del` → `delete`,
promoted beta chat helpers, renamed runner events, removed entry points
and request-option overloads are rewritten where unambiguous; tool-call
unions, `httpAgent`, `fileFromPath` and the other removals get agent
guides; `APIError.headers`, Web `Response` bodies and double-encoded
path ids are detected even in code typed `any`; Node 22, zod, fetch and
client-subclass decisions carry repository evidence. It stays a
candidate (the dependency is still checked and fixed as generic) until
two engine gaps its ground truth exposed are closed.

- [#136](#136)
[`578a042`](578a042)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Fold implicit-any
errors (TS7006, TS7031, TS7019) inside an option the target removed into
the pack finding on that option, as downstream evidence: the callbacks
lost the types the option gave them, and the same edit resolves them.
They no longer stand as separate breaking sites.

- [#143](#143)
[`883e587`](883e587)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `uptide pack
test` scores each expected site at the severity of the rule or behavior
note it belongs to, so a missed note that only needs a look, or a
decision, no longer counts as a missed break. Behavior-note sites get
their own precision and recall in the output and in `verification.json`
(`behavior`, with the counts behind each rate), false negatives show
their severity, and a rate with nothing to measure prints `n/a` instead
of 100%, in `pack test` and in the README's packs table.

- [#154](#154)
[`7aa3d58`](7aa3d58)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `uptide pack
test` fails a pack's `verification.json` only when it claims more than
the run measures (recorded verified, measured candidate). A pack
recorded as candidate on purpose passes, with `recorded candidate by
choice; measures verified`, and a record whose numbers differ gets a
note instead of a failure. A `generic` ground-truth site now counts as a
true positive for the rule that claims it.

- [#152](#152)
[`ca31aee`](ca31aee)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `uptide pack
test` takes several packs: `uptide pack test zod ai`.

- [#159](#159)
[`1e157fd`](1e157fd)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - `uptide pack test
--json` times each ground-truth repository: `timing` gives the fetch,
install and check wall time and the process's peak memory.

- [#144](#144)
[`0881185`](0881185)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Ground truth can
name a site for an upgrade that only adds lines inside an existing call,
such as an option added to a constructor: the site is the call's start
line, so a pack finding there scores as a true positive instead of a
false positive. `pnpm packs:truth` drafts these anchors from insert-only
hunks for review, and docs/packs.md and CONTRIBUTING describe the rule.

- [#156](#156)
[`9039e3c`](9039e3c)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Public ground
truth now exercises three rules that ran as assisted: zod
`error-params`, stripe `api-version-unpinned` and next
`stable-cache-exports`. Their rewrites run mechanically again. All three
packs stay verified.

- [#138](#138)
[`0db5640`](0db5640)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Respect
repository tsconfig file selection, recursive project references, and
workspace project options when checking dependency upgrades. Compiler
diagnostics outside every TypeScript project no longer produce breaking
findings; pack rules and build-configuration findings retain their own
scope. Repositories without a tsconfig retain importer-based
compilation, with that fallback stated in the report.
  
Anchor missing members supplied by dependency augmentations at their
setup import, retaining affected calls as evidence instead of counting
each call as a separate breaking edit.

- [#151](#151)
[`9ddaaff`](9ddaaff)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Add a candidate
redis (node-redis) 4 to 5 and 5 to 6 migration pack, one rule set per
major: an upgrade gets the rules of the majors it crosses, so 4 to 6
gets both. 4 to 5 covers `legacyMode`, `commandOptions` and isolation,
scan iterators that yield batches, string SCAN cursors, boolean replies
that became numbers, enums that became constants, `keepAlive`,
`@redis/graph` and internal `dist` imports; 5 to 6 covers the RESP3
client type, `unstableResp3`, and the client defaults 6 changes (RESP3,
command timeout, keep-alive delay, maintenance notifications) with a
decision per client. Scored against five public upgrades; it stays a
candidate until the stricter verified gate lands, since the core 4 to 5
API changes have no real site yet.

- [#135](#135)
[`42a3b54`](42a3b54)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Move only
packages released with the upgraded one. A pack's declared release group
now bounds the lead's npm scope, and without one a same-scope package
moves only when a pin, a peer or a release at the target relates it to
the group. Packages of the scope that are versioned on their own
(`@sentry/vite-plugin` 5.x, `@sentry/cli`, the old `@sentry/utils` 8.x)
are reported as "stays at X" in `check`, the pull request and `pack
test` instead of making `fix` refuse the whole upgrade. Registers the
verified `@sentry/react` 10 to 11 pack.

- [#146](#146)
[`09b8682`](09b8682)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Report Stripe
clients pinned to different API versions at the top of `check` and of
the PR body, as a decision for the owner: every `new Stripe(...)` in
TypeScript and JavaScript sources, scripts included, with the version it
speaks after the upgrade (an unpinned client speaks the SDK default).
The PR's decisions list, for each client behind the target, the
changelog entries it would cross for the resources it calls. No pin is
rewritten.

- [#140](#140)
[`bc428d1`](bc428d1)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Keep migration PR
bodies within their size budget while preserving summaries,
representative diffs, decisions, review warnings and verification ahead
of changelog and transitive detail. Keep every evidenced Stripe change
visible and uncapped; group and cap only other changes to used
resources, link the full changelog, and identify omitted text in the
retained report.

- [#145](#145)
[`3c8902d`](3c8902d)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - The zod pack
migrates `ZodError#errors` to `.issues` by rule: reads
(`error.errors[0].message`, `error?.errors`) and destructuring (`const {
errors } = error` becomes `const { issues: errors } = error`) where the
type checker resolves the receiver to `ZodError`, and reads off an
untyped catch binding of a zod parse. Writes are left to the agent.

- [#127](#127)
[`c4ead4f`](c4ead4f)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - zod: `check` now
reports `ZodError#formErrors` and `#errors` read off an untyped catch
binding of a zod `parse`/`parseAsync` (`catch (error: any) { return
error.formErrors.fieldErrors }`), which zod 4 removed and the compiler
cannot see. Files that only import a schema from the repository's own
module (`@/lib/zod`) are covered too. `fix` rewrites
`<err>.formErrors.fieldErrors` and `<err>.formErrors.formErrors` to
`z.flattenError(<err>)`, importing `z` where it is missing; every other
read goes to the agent.

Co-authored-by: uptide-release[bot] <338861287+uptide-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants