Repository navigation
build(deps-dev): bump the frontend-dependencies group in /frontend with 2 updates - #282
dependabot[bot] wants to merge 2 commits into
Conversation
Bumps the frontend-dependencies group in /frontend with 2 updates: [@types/jsdom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jsdom) and [typescript](https://github.com/microsoft/TypeScript). Updates `@types/jsdom` from 28.0.3 to 30.0.0 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jsdom) Updates `typescript` from 6.0.3 to 7.0.2 - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](https://github.com/microsoft/TypeScript/commits) --- updated-dependencies: - dependency-name: "@types/jsdom" dependency-version: 30.0.0 dependency-type: direct:development update-type: version-update:semver-major dependency-group: frontend-dependencies - dependency-name: typescript dependency-version: 7.0.2 dependency-type: direct:development update-type: version-update:semver-major dependency-group: frontend-dependencies ... Signed-off-by: dependabot[bot] <[email protected]>
robcohen
left a comment
There was a problem hiding this comment.
Do not merge. This breaks two of the five lint-js steps. Verified locally against a main control, since CI never got far enough to tell you.
What it actually contains
Two dev-dependency bumps, both major:
@types/jsdom^28.0.3 → ^30.0.0typescript^6.0.3 → ^7.0.2
TypeScript 7 is the native port, which is why the lockfile grows ~20 @typescript/typescript-<platform> binary packages.
The blocker
Two tools reach into the typescript package's JS API, which the native port no longer exposes the same way:
eslint (via @typescript-eslint/typescript-estree):
TypeError: Cannot read properties of undefined (reading 'Cjs')
at .../typescript-estree/dist/create-program/shared.js:59:18
svelte-check:
TypeError: Cannot read properties of undefined (reading 'useCaseSensitiveFileNames')
at new FileMap (.../svelte-check/dist/src/index.js:14972:72)
i.e. ts.ModuleKind.Cjs and ts.sys are both undefined under TS7.
Controlled against main (TS6) with the same toolchain, so this is the bump and not the environment:
| step | main (TS6) | this PR (TS7) |
|---|---|---|
bun run tsc |
0 | 0 |
bun run build |
0 | 0 |
bun run test |
0 | 0 |
bun run stylelint |
0 | 0 |
bun run eslint --max-warnings 0 . |
0 | 2 — crash |
bun run svelte-check |
0 (725 files, 0 errors) | 1 — crash |
Both failing steps are in CI (test.yml:139 and :142), so this would have gone red rather than through — see below for why it didn't.
The dependency isn't in this repo's code: tsc itself passes clean under TS7. It's @typescript-eslint and svelte-check needing TS7-compatible releases first. Worth splitting the group — @types/jsdom 28 → 30 looks fine on its own (build and test pass) and could land now, with typescript held back until those two ship support.
Why CI looks like it never ran
gh pr checks shows a single passing check (license/cla), which is misleading in both directions.
- The PR was opened at
f8f5ee0e, whosebun install --frozen-lockfilefailed — Dependabot'sbun.lockdidn't match what bun resolves. Fix Dependabot Lockfiledid its job, regenerating and committingbe51e711. The PR head is that commit, andbun install --frozen-lockfilenow passes on it, so the visible failure is stale — it belongs to a commit that is no longer the head.- The runs for
be51e711are the five sitting ataction_required, because the push came fromgithub-actions[bot]and this repo requires approval to run workflows for it.
So the PR has been parked for six days needing someone to click "Approve and run workflows", and the check list gives no hint of that. Worth noticing as a pattern: the lockfile-fix workflow's own push is what puts every Dependabot frontend PR into the approval-gated state.
Not blocking
svelte-check on main emits:
Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"'
so there's a tsconfig migration due before TS7 regardless. tsc accepted it under TS7 in this run, but it's flagged for removal and is worth resolving as part of whatever eventually lands TypeScript 7.
Adds oxlint with its type-aware backend (oxlint-tsgolint) alongside the existing linters, wired into CI and pre-commit. Why tsgolint specifically: it implements type-aware rules in Go against typescript-go directly, rather than reaching into the TypeScript JS API. That API is what breaks every JS-based tool under TypeScript 7 — it does not exist yet in the native port. typescript-eslint's own tracking issue (#10940) is labelled "blocked by external API" and its maintainer stated in July there is nothing they can do until a stable JS API ships. This does NOT unblock TypeScript 7 (see #282). svelte-check and svelte2tsx are blocked on the same missing API and cap at TS6, and tsc does not typecheck .svelte templates, so there is no route to TS7 today. This is a step toward being ready, plus a much faster type-aware pass. Added rather than swapped, because oxlint cannot replace eslint here: - no svelte rule namespace at all, so eslint-plugin-svelte's template rules have no equivalent. Verified: oxlint lints .svelte <script> blocks (it caught no-debugger and no-eval in one) but not markup, so svelte/button-has-type does not carry over. 95 of 206 source files are .svelte. - no naming-convention, no-restricted-syntax, or import sorting (simple-import-sort). Everything else maps: 10 of the 12 explicitly configured rules exist, and tsgolint implements 59 typed rules, covering the strictTypeChecked and stylisticTypeChecked sets the config relies on. The config is deliberately scoped to what eslint already enforces. Enabling oxlint's unicorn/import/promise plugins and its correctness and suspicious categories wholesale produced 90 findings from rules this project never opted into, which would have been new opinions dressed up as a migration. Verified the config is not vacuous: with a probe file containing a floating promise and an always-falsy condition, oxlint reports require-await, no-floating-promises, no-unnecessary-condition and strict-boolean-expressions and exits 1; removing the probe returns it to exit 0. A rule set that only ever reports clean is not evidence. oxlint resolves the tsgolint binary from the nearest node_modules, so both the CI step and the hook run with cwd frontend/. If tsgolint is absent it exits non-zero with a clear message rather than silently skipping every type-aware rule, which is the failure mode that would matter most here. All seven frontend gates pass: eslint, stylelint, tsc, svelte-check, oxlint, build, test.
Dependabot watched pip /, npm /frontend and github-actions /. The repo
also has desktop/package.json and desktop/src-tauri/Cargo.toml, which
matched neither, so the desktop app's dependencies never received update
PRs at all.
Both had drifted, several by a major:
npm /desktop @xterm/xterm 5.5.0 -> 6.0.0
@xterm/addon-fit 0.10.0 -> 0.11.0
@xterm/addon-web-links 0.11.0 -> 0.12.0
tauri-pty 0.2.1 -> 0.3.1
vite 8.0.16 -> 8.2.2, @tauri-apps/cli 2.11.2 -> 2.11.4
cargo /desktop tauri-plugin-pty 0.2 -> 0.3.1
tauri-build 2.1 -> 2.6.3
tauri-plugin-dialog 2.2 -> 2.7.2
tauri 2.5 -> 2.11.5
Note tauri-pty and tauri-plugin-pty are the JS and Rust halves of the
same 0.2 -> 0.3 bump, so they will want landing together. Also worth
knowing: desktop pins typescript 5.9.3 while frontend is on 6.0.3.
Both directories have tracked lockfiles (desktop/bun.lock,
desktop/src-tauri/Cargo.lock), and desktop/bun.lock is the same format
as frontend/bun.lock, which Dependabot already updates successfully
(#282), so these entries have something to act on rather than silently
matching nothing.
Also holds TypeScript majors on /frontend. TS7 is the native port and
has no stable JS API, so every tool reaching into the TS compiler API
from JS breaks: typescript-eslint caps at <6.1.0 with its TS7 issue
labelled "blocked by external API", and svelte-check and svelte2tsx cap
at ^6. There is no route to TS7 until those ship support, so without an
ignore rule #282 simply regenerates every week.
No functional change; takes effect on the next Dependabot run.
|
Looks like these dependencies are updatable in another way, so this is no longer needed. |
A push made with GITHUB_TOKEN is attributed to github-actions[bot], and every workflow run it creates lands in `action_required` awaiting a manual "Approve and run workflows". That is what has been happening to frontend Dependabot PRs. Confirmed on #296: the runs for the lockfile-fix commit d0a0f5e carry actor=github-actions[bot], triggering_actor=github-actions[bot], and conclusion=action_required — five of them. The run that did the pushing (actor=dependabot[bot], on the original SHA) succeeded, so nothing looks wrong from the inside. The reason it goes unnoticed is that the check list then shows a single green license/cla and no failures, which reads as "CI hasn't started" rather than "CI is blocked". #282 sat that way for six days and was only found while reviewing it; #296 is sitting that way now. Only frontend Dependabot PRs are affected, because only they touch frontend/package.json and so fire this workflow. #294 and #295 opened in the same minute and ran green throughout — a clean control. Pushing with a GitHub App installation token makes the resulting runs ordinary. The repo already generates one this way in update-rustledger.yml and update-flake-sources.yml. One caveat that cannot be verified from here: Dependabot-triggered runs read the *Dependabot* secrets store, which is separate from the Actions store those two workflows use. If BOT_APP_ID and BOT_PRIVATE_KEY are only registered as Actions secrets they are invisible to this workflow. Reading org secrets needs admin:org, which I do not have. So the token step is conditional and the checkout falls back to GITHUB_TOKEN, preserving today's behaviour rather than breaking the lockfile fix outright — but the fallback emits a ::warning:: naming the missing secrets and saying the runs will need approval. A degraded path that announces itself is the whole point; silently reverting to the broken behaviour is what made this take six days to find. Commits are attributed to whoever actually pushes them, via the action's app-slug output. Verified all three paths locally: app-slug present commits as <slug>[bot], absent commits as github-actions[bot], and no lockfile change still short-circuits to "No lockfile changes". actionlint clean.
Bumps the frontend-dependencies group in /frontend with 2 updates: @types/jsdom and typescript.
Updates
@types/jsdomfrom 28.0.3 to 30.0.0Commits
Updates
typescriptfrom 6.0.3 to 7.0.2Commits
Maintainer changes
This version was pushed to npm by microsoft1es, a new releaser for typescript since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions