Skip to content

build(web): React 19, TypeScript 7 and Node 26 - #20

Merged
FilipNone merged 3 commits into
mainfrom
deps/web-majors
Nov 26, 2026
Merged

FilipNone merged 3 commits into
mainfrom
deps/web-majors

Conversation

@FilipNone

@FilipNone FilipNone commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Problem

Three Dependabot PRs for the web tool could not be merged as they were:

Approach

One commit per update. Merge with rebase so they stay separate on main.

  1. React 19.3.1 and Headless UI 2.2.10, which accepts React 18 and 19. React 19's types need two one-line fixes:
    • the heading ref prop in FirmwarePanel.tsx can be null
    • useRef in SettingsPanel.tsx gets a starting value
  2. TypeScript 7.0.2. vite/client joins the types list in web/tsconfig.json. Vite's client types declare *.css. The typecheck drops to about 0.7 s.
  3. Node 26, the active LTS release, in ci.yml and pages.yml, with @types/node 26.6.6 to match.

Dependabot should close #11, #14 and #15 once main has these versions.

Automated validation

  • make -C firmware builds without warnings: no firmware change
  • make -C firmware test passes: no firmware change
  • CI passes on the latest commit
  • Code review of the diff done and findings resolved

Done locally after a clean npm ci on Node 26.13.1:

  • the typecheck passes
  • all 30 web tests pass, including the check of the built firmware image
  • vite build passes
  • the same tsconfig also passes with TypeScript 5.9

In the demo page, under React 19:

  • all three tabs open
  • the anti-jitter choices and the switches change and stay changed
  • the live trace draws with no frame over 17 ms
  • the browser console shows no errors or warnings

Hardware testing

  • Tested with a real shifter (OpenShifter 0.6.0) in Chrome: it connects, settings save, and the anti-jitter trace is smooth.

Limitations and follow-up

Node 24 is still supported, but CI no longer tests on it.

Headless UI 2.1.10 only accepts React 18, which broke Dependabot's React
19 update (#11). 2.2.10 accepts both. React 19's types need a ref that
can be null and a starting value for useRef.
TypeScript 7 wants a type declaration for the side-effect import of
index.css (#15). Vite's client types declare *.css, so they now load
with the others in tsconfig.
Node 26 is the active LTS release. @types/node 26 (#14) now matches the
Node that CI and Pages run.
@FilipNone
FilipNone merged commit 634592b into main Nov 26, 2026
8 checks passed
@FilipNone
FilipNone deleted the deps/web-majors branch November 26, 2026 13:21
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.

1 participant