Skip to content

chore(deps): apply bun group update, hold TypeScript at 6.x - #16

Closed
vpetersson-bot wants to merge 1 commit into
masterfrom
deps/bun-group-hold-typescript-6
Closed

vpetersson-bot wants to merge 1 commit into
masterfrom
deps/bun-group-hold-typescript-6

Conversation

@vpetersson-bot

Copy link
Copy Markdown
Contributor

Dependabot PR #5 fails CI. Its grouped bun update bumps TypeScript to 7.0.2, and bun run lint dies before linting anything:

TypeError: undefined is not an object (evaluating 'ts.Extension.Cjs')
  at node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js

@screenly/edge-apps lints through typescript-eslint 8.x, which declares its supported TypeScript range as >=4.8.4 <6.1.0. TypeScript 7 removed the internal ts.Extension.Cjs the parser reads at load time, so the failure is a hard load error, not a lint finding.

What this does

  • Applies every dependency in the group except TypeScript.
  • Keeps TypeScript on 6.x.
  • Adds a Dependabot ignore entry for typescript >=7 so the same broken update is not reproposed every month.

Remove the ignore entry and take TypeScript 7 once typescript-eslint declares support for it.

Verification

bun run lint, bun run type-check, bun run test and bun run build all pass locally on this branch.

Supersedes #5.

🤖 Generated with Claude Code

Dependabot's grouped bun update bumps TypeScript to 7.0.2, which breaks
`bun run lint`:

    TypeError: undefined is not an object (evaluating 'ts.Extension.Cjs')
      at @typescript-eslint/typescript-estree/dist/create-program/shared.js

`@screenly/edge-apps` lints via typescript-eslint 8.x, whose supported
TypeScript range is `>=4.8.4 <6.1.0`. TypeScript 7 is outside it, so the
ESLint TypeScript parser fails to load before any rule runs.

This applies every other dependency in the group and keeps TypeScript on
6.x, and adds a Dependabot `ignore` entry for `typescript >=7` so the
break is not reproposed each month. Drop that entry once typescript-eslint
declares TypeScript 7 support.

Verified locally: `bun run lint`, `type-check`, `test` and `build` all pass.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@salmanfarisvp

Copy link
Copy Markdown
Member

@vpetersson-bot Fix the conflict.

@vpetersson-bot

Copy link
Copy Markdown
Contributor Author

@salmanfarisvp There's nothing left to resolve here. Merging #5 put master in the same place this PR was going, and a bit further:

  • Every package in the bun group is bumped. Master's versions are equal to or newer than this branch's (prettier 3.9.9, @types/node 26.6.3, jsdom 30.1.1).
  • TypeScript stays on 6.x: ^6.0.3, locked at 6.0.3.
  • dependabot.yml already ignores typescript >=6.1.0, which is stricter than the >=7 rule here.

Rebasing would leave either an empty diff or a second ignore: key in the same update entry. I checked master locally: bun install --frozen-lockfile, lint, type-check, test (126 pass) and build all pass.

This PR is redundant now and can be closed.

@salmanfarisvp

Copy link
Copy Markdown
Member

@vpetersson-bot This branch has conflicts that must be resolved before merging.

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.

3 participants