Repository navigation
chore(deps): upgrade to TypeScript 6 and pin all dependencies - #497
Merged
Merged
Conversation
Pin every dependency to an exact version (no ^ ranges) at the newest release that works with the rest of the toolchain, and add save-exact=true to .npmrc so future installs stay pinned. Notable upgrades: typescript 5.9.3 -> 6.0.3, cypress 15.19.0 -> 16.3.0, @stylistic/eslint-plugin 5.10.0 -> 6.0.1, plus minor/patch bumps for Babel, ESLint, Sass, webpack and friends. Held back: - typescript 7.x: typescript-eslint (via eslint-plugin-import-x) requires typescript <6.1.0. - stylelint 18.x: stylelint-config-sass-guidelines 13 (latest) peers stylelint ^17. TypeScript 6 migration: - drop the deprecated baseUrl (nothing resolves through it) - moduleResolution "node" (deprecated) -> "bundler" - set rootDir "." explicitly; TS 6 no longer infers it when outDir is set, which broke Cypress's per-spec ts-loader compile (TS5011). Emitted ts-types layout is unchanged. - declare '*.scss' modules, since TS 6 now checks side-effect imports (noUncheckedSideEffectImports). The production bundle (dist/) is byte-identical before and after.
PR Test Results — ✅ all checks passed
Tested commit: |
save-exact=true is a local preference, not a repo setting; the pinned versions in package.json are what keep installs reproducible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue number: N/A (maintenance)
What is the current behavior?
Every dependency uses a
^range, so a fresh install can resolve different versions than the lockfile author tested. The toolchain is on TypeScript 5.9 and Cypress 15, and several dev tools are behind their latest releases.What is the new behavior?
typescript5.9.3 → 6.0.3,cypress15.19.0 → 16.3.0,@stylistic/eslint-plugin5.10.0 → 6.0.1, plus minor/patch bumps for Babel, ESLint and plugins, Sass,sass-loader,css-loader,autoprefixer, webpack andwebpack-cli.tsconfig.json:baseUrl(no import resolves through it)moduleResolution:"node"(deprecated) →"bundler""rootDir": ".", because TS 6 no longer infers it whenoutDiris set. Without it every Cypress spec fails to compile (TS5011). The emittedts-types/layout is unchanged.src/assets.d.tsdeclares*.scssmodules, because TS 6 now type-checks side-effect imports such asimport './sass/styles.scss'.Held back on purpose
typescripttypescript-eslint(viaeslint-plugin-import-x) requirestypescript <6.1.0stylelintstylelint-config-sass-guidelines@13(its latest) peersstylelint ^17Does this introduce a breaking change?
The production bundle (
dist/virtual-select.js,.min.js,.min.css) is byte-identical to a build with the previous versions. Only tooling changes.Other information
Verified locally on Node 24.19 / npm 11.17 after a clean
npm ci:typecheck,lint:js,lint:css,build,test:scripts,test:build: all passnpm test(Cypress 16 e2e): 28/28 specs, 420/420 tests passCypress 16 logs a deprecation warning for the default Electron test browser. Nothing breaks yet, but CI should eventually move to
-b chrome.If you run Cypress from a VS Code integrated terminal and it fails with
bad option: --smoke-test, VS Code'sELECTRON_RUN_AS_NODE=1is the cause, not this change. Unset it for the run.