chore(deps-dev): add @typescript/typescript6 for AST tooling; hold typescript at 6.x (TS7 has no JS compiler API)#949
Conversation
--- updated-dependencies: - dependency-name: typescript dependency-version: 7.0.2 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds the TypeScript 6 compiler package for AST parsing consumers and explicitly types the source preview callback’s signed-URL response. ChangesTypeScript compiler API update
Source preview typing
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
CI triageCI failed on this PR. Automated classification of the 7 failed job(s):
Compared with main CI run #4016 (success). Classification is evidence routing, not permission to ignore a failure. Exact quarantined Playwright identities remain governed by the flake ledger. |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@package.json`:
- Line 226: Update the TypeScript dependencies in package.json so
scripts/design-system-contract-utils.mjs and
scripts/check-design-system-contract.mjs continue using `@typescript/typescript6`
for compiler-API compatibility; keep TypeScript 7 separately aliased for other
consumers, or defer the upgrade until those scripts are migrated.
🪄 Autofix (Beta)
✅ Autofix completed
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: e366ab97-7791-41fd-8c33-e5498fe3992a
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (1)
package.json
|
@coderabbitai Please can you resolve all of the failing CI testing for me and ensure no regression and fix everything for me. Please also resolve the failing Policy CI test as well if present |
|
ℹ️ No failing CI checks found. No CI/CD pipeline failures were detected for the current commit. If other checks (security scans, code quality, etc.) are failing, those require separate attention. |
|
@claude resolve PR Policy CI failure and all failing CI testing please |
|
Note Autofix is a beta feature. Expect some limitations and changes as we gather feedback and continue to improve it. Fixes Applied SuccessfullyFixed 5 file(s) based on 1 unresolved review comment. Files modified:
Commit: The changes have been pushed to the Time taken: |
Fixed 5 file(s) based on 1 unresolved review comment. Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
|
@coderabbitai please generate a copy and paste message to update and enable this to pass PR policy CI |
|
Tip For best results, initiate chat on the files or code changes.
|
|
Do not bypass, disable, or weaken PR Policy CI rules; update the PR/repository content so it complies with the existing policy. |
|
coderabbitai please resolve all the failing CI testing for me and fix Please also resolve all other failing CI |
|
@claude fix and resolve all the failing CI testing please and tell me if i should hold off on this update. |
|
@claude connectivity test — please reply in a single comment confirming you are running and can read this repository (name one file you can see). Do NOT make any code changes, commits, or pushes. Generated by Claude Code |
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
|
@claude connectivity test (retry) — please reply in a single comment confirming you are running and can read this repository (name one file you can see). Do NOT make any code changes, commits, or pushes. Generated by Claude Code |
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
… AST tooling
TypeScript 7.0 is a Go rewrite that ships only a CLI and no JavaScript
compiler API, so typescript-eslint (via eslint-config-next) and Next's
build-time typecheck cannot run against it — the required Lint gate crashes
on `require("typescript")`. Per Microsoft's guidance, keep the JS-based
compiler for tooling until the 7.1 programmatic API lands.
- package.json: revert typescript ^7.0.2 -> ^6.0.0 (matches main); keep the
new @typescript/typescript6 devDependency so the design-system contract
scripts and the retrieval owner-filter guard test use a stable TS6 AST API.
- package-lock.json: point the @typescript/typescript6 and its nested
typescript@6.0.3 `resolved` URLs at registry.npmjs.org (they had been
pinned to an unreachable internal mirror, failing npm ci in CI); integrity
hashes verified identical to the public registry.
- DocumentViewer.tsx: annotate openSourcePreview's return type so the cached
and freshly-fetched signed-URL payloads unify to one type.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5TymRtbrygE4HiaDgiAFo
…rn/typescript-7.0.2
Regenerate package-lock.json so it satisfies the merged package.json (resolves @emnapi transitive version drift from the two merged lockfiles). No mirror URLs; typescript resolves to 6.0.3. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H5TymRtbrygE4HiaDgiAFo
Status update — CI fixed, TypeScript 7 held backThis PR started as a Why the bump can't land yetTypeScript 7.0 is the Go rewrite and ships only a CLI — no JavaScript compiler API. Anything that does
This matches Microsoft's own guidance: keep the JS-based compiler for tooling until the 7.1 programmatic API lands. So What actually blocked CI (and is now fixed)Every CI job was failing at Net change vs
|
The prior reconcile was run with npm 11.6.2, which resolves the @emnapi
optional/transitive deps to older versions than CI's pinned npm 11.17.0
(packageManager), so `npm ci` failed on CI with 'Missing @emnapi/{core,
runtime}@1.11.2'. Regenerated with npm 11.17.0 via corepack; `npm ci`
now validates clean under that version. typescript stays 6.0.3; no mirror URLs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H5TymRtbrygE4HiaDgiAFo
Summary
Verification
npm test -- migrationpassed locally.Risk and rollout
XXXX_down.sqlif error rate increases.Summary by CodeRabbit
Chores
Tests
Style