Skip to content

chore(deps-dev): bump vite from 6.4.1 to 8.0.3#28

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vite-8.0.3
Closed

chore(deps-dev): bump vite from 6.4.1 to 8.0.3#28
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vite-8.0.3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Mar 31, 2026

Copy link
Copy Markdown
Contributor

Bumps vite from 6.4.1 to 8.0.3.

Release notes

Sourced from vite's releases.

create-vite@8.0.3

Please refer to CHANGELOG.md for details.

v8.0.3

Please refer to CHANGELOG.md for details.

create-vite@8.0.2

Please refer to CHANGELOG.md for details.

v8.0.2

Please refer to CHANGELOG.md for details.

create-vite@8.0.1

Please refer to CHANGELOG.md for details.

v8.0.1

Please refer to CHANGELOG.md for details.

plugin-legacy@8.0.1

Please refer to CHANGELOG.md for details.

create-vite@8.0.0

Please refer to CHANGELOG.md for details.

plugin-legacy@8.0.0

Please refer to CHANGELOG.md for details.

v8.0.0

Please refer to CHANGELOG.md for details.

v8.0.0-beta.18

Please refer to CHANGELOG.md for details.

v8.0.0-beta.17

Please refer to CHANGELOG.md for details.

v8.0.0-beta.16

Please refer to CHANGELOG.md for details.

v8.0.0-beta.15

Please refer to CHANGELOG.md for details.

v8.0.0-beta.14

Please refer to CHANGELOG.md for details.

v8.0.0-beta.13

Please refer to CHANGELOG.md for details.

v8.0.0-beta.12

Please refer to CHANGELOG.md for details.

... (truncated)

Changelog

Sourced from vite's changelog.

8.0.3 (2026-03-26)

Features

Bug Fixes

  • html: cache unfiltered CSS list to prevent missing styles across entries (#22017) (5464190)
  • module-runner: handle non-ascii characters in base64 sourcemaps (#21985) (77c95bf)
  • module-runner: skip re-import if the runner is closed (#22020) (ee2c2cd)
  • optimizer: scan is not resolving sub path import if used in a glob import (#22018) (ddfe20d)
  • ssr: ssrTransform incorrectly rewrites meta identifier inside import.meta when a binding named meta exists (#22019) (cff5f0c)

Miscellaneous Chores

Tests

8.0.2 (2026-03-23)

Features

Bug Fixes

Miscellaneous Chores

  • deps: update dependency @​vitejs/devtools to ^0.1.5 (#21992) (b2dd65b)

8.0.1 (2026-03-19)

Features

Bug Fixes

  • bundled-dev: properly disable inlineConst optimization (#21865) (6d97142)
  • css: lightningcss minify failed when build.target: 'es6' (#21933) (5fcce46)
  • deps: update all non-major dependencies (#21878) (6dbbd7f)
  • dev: always use ESM Oxc runtime (#21829) (d323ed7)
  • dev: handle concurrent restarts in _createServer (#21810) (40bc729)
  • handle + symbol in package subpath exports during dep optimization (#21886) (86db93d)
  • improve no-cors request block error (#21902) (5ba688b)
  • use precise regexes for transform filter to avoid backtracking (#21800) (dbe41bd)
  • worker: require(json) result should not be wrapped (#21847) (0672fd2)

... (truncated)

Commits
  • 6a34ac3 fix(deps): update all non-major dependencies (#21096)
  • 02ceaec chore(deps): update dependency @​rollup/plugin-commonjs to v29 (#21099)
  • 572aaca release: v7.2.2
  • 728c8ee fix: revert "refactor: use fs.cpSync (#21019)" (#21081)
  • a532e68 release: v7.2.1
  • 82d2d6c fix(worker): some worker asset was missing (#21074)
  • f83264f refactor(build): rename indexOfMatchInSlice to findPreloadMarker (#21054)
  • 8293de0 release: v7.2.0
  • 2833c55 fix(types): add undefined to optional properties for exactOptionalProperties ...
  • e3a6a83 chore(deps): update rolldown-related dependencies (#21047)
  • Additional commits viewable in compare view

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 31, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/vite-8.0.3 branch from c85d3c6 to af5c81a Compare March 31, 2026 13:26
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.4.1 to 8.0.3.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@8.0.3/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dionmcm

dionmcm commented Jun 15, 2026

Copy link
Copy Markdown
Member

⚠️ This bump breaks the runtime — root cause analysis

Investigated while combining the npm bumps (#36). Vite ≥7 corrupts the generated ANTLR lexer's serialized ATN, breaking the parser at runtime for every consumer of the @aehrc/ecl-core bundle.

Symptom

Any code loading the Vite-bundled packages/ecl-core/dist/index.cjs throws on first parse:

Error: The specified lexer action type undefined is not valid.
    at ATNDeserializer.lexerActionFactory (.../dist/index.cjs)
    at new ECLLexer (...)
    at parseECL (...)

This takes down the LSP server (55/81 ecl-lsp-server tests fail), the Slack bot, and the editors. ecl-core's own tests stay green because they run the tsc output (dist-tsc/), not the Vite bundle.

Root cause

The generated ECLLexer stores its serialized ATN as a string literal packed with lone UTF-16 surrogates (0xD800–0xDFFF). Vite ≥7 writes bundle output as UTF-8, and lone surrogates can't be represented in UTF-8 — they get rewritten to U+FFFD (the replacement char), shifting every subsequent value the ATN deserializer reads. The corrupted bundle contains 2× U+FFFD where the surrogates used to be. Vite 6 emitted these as \uXXXX escapes, so it was byte-stable.

Confirmed

  • Reproduces on both Vite 7.3.5 and 8.0.3; only Vite 6 works. So this is a Vite ≥7 regression, not specific to 8.
  • It's the bundler, not TS6 or antlr4ts: same source, same TS6, same antlr4ts@0.5.0-alpha.4 — only tsc-vs-Vite differs, and tsc output is fine.
  • esbuild.transformSync on the lexer is clean (0 U+FFFD) with either charset — esbuild's transform isn't the culprit; the corruption is in Vite/Rollup's bundling/write.

Fixes that did NOT work

  • esbuild: { charset: 'ascii' } and build.minify: 'esbuild' + charset — removes the visible U+FFFD bytes but the values are already corrupted upstream, so the ATN is still invalid.
  • A renderChunk / transform escaping plugin — didn't engage the ATN module in Vite's lib pipeline.

Recommendation

Hold this PR. Vite stays at ^6 in #36 (everything else upgraded and green). A proper fix likely needs a Vite-internals workaround (force ASCII output / escape before the UTF-8 write) or an upstream Vite report. Happy to pursue separately.

dionmcm added a commit that referenced this pull request Jun 16, 2026
…4, Storybook 10, jsdom 29, @types/node 25, unicorn 64, minor/patch group)

Combines dependabot PRs #34, #27, #26, #25, #24, #23, #22, #21, #19 into one
verified upgrade. Excludes #28 (Vite 6→8) — see below.

TypeScript 5→6 migration (#27):
- Add `ignoreDeprecations: "6.0"` to the 4 tsconfigs using `moduleResolution: node`
  (node10 errors as deprecated in TS6).
- Add explicit `types: ["node"]` to those tsconfigs — TS6 no longer auto-discovers
  @types/node, which otherwise breaks every `console`/`require`/`node:test` reference.
- Bump the VSCode client's lib/target to ES2022 (it already uses Array.prototype.at;
  @types/node@20 incidentally supplied the lib, @types/node@25 does not).
- Remove type assertions TS6 now proves unnecessary (eslint --fix) and the imports
  they orphaned.

Other fixes surfaced by the bumps:
- EclEditor.tsx: annotate the @monaco-editor/react OnMount params explicitly;
  monaco-editor 0.55 makes them resolve to `error` under typed-linting.

EXCLUDED — Vite (#28), kept at ^6: Vite ≥7 writes bundle output as UTF-8, which
re-encodes the lone UTF-16 surrogates in the generated ANTLR serialized-ATN string
to U+FFFD and corrupts the lexer at runtime ("The specified lexer action type
undefined is not valid"). This breaks every consumer of the ecl-core bundle (LSP
server, slack bot, editors). Confirmed on both Vite 7.3.5 and 8.0.3; only Vite 6
emits the ATN as \uXXXX escapes. Needs dedicated investigation/upstream fix.

Verified: compile clean, lint 0 errors, npm test all pass
(ecl-core 1640, ecl-lsp-server 81, editor-core 74, editor-react 33, editor 34,
slack-bot 226).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dionmcm added a commit that referenced this pull request Jun 16, 2026
…4, Storybook 10, jsdom 29, @types/node 25, unicorn 64, minor/patch group)

Combines dependabot PRs #34, #27, #26, #25, #24, #23, #22, #21, #19 into one
verified upgrade. Excludes #28 (Vite 6→8) — see below.

TypeScript 5→6 migration (#27):
- Add `ignoreDeprecations: "6.0"` to the 4 tsconfigs using `moduleResolution: node`
  (node10 errors as deprecated in TS6).
- Add explicit `types: ["node"]` to those tsconfigs — TS6 no longer auto-discovers
  @types/node, which otherwise breaks every `console`/`require`/`node:test` reference.
- Bump the VSCode client's lib/target to ES2022 (it already uses Array.prototype.at;
  @types/node@20 incidentally supplied the lib, @types/node@25 does not).
- Remove type assertions TS6 now proves unnecessary (eslint --fix) and the imports
  they orphaned.

Other fixes surfaced by the bumps:
- EclEditor.tsx: annotate the @monaco-editor/react OnMount params explicitly;
  monaco-editor 0.55 makes them resolve to `error` under typed-linting.

EXCLUDED — Vite (#28), kept at ^6: Vite ≥7 writes bundle output as UTF-8, which
re-encodes the lone UTF-16 surrogates in the generated ANTLR serialized-ATN string
to U+FFFD and corrupts the lexer at runtime ("The specified lexer action type
undefined is not valid"). This breaks every consumer of the ecl-core bundle (LSP
server, slack bot, editors). Confirmed on both Vite 7.3.5 and 8.0.3; only Vite 6
emits the ATN as \uXXXX escapes. Needs dedicated investigation/upstream fix.

Verified: compile clean, lint 0 errors, npm test all pass
(ecl-core 1640, ecl-lsp-server 81, editor-core 74, editor-react 33, editor 34,
slack-bot 226).

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

dependabot Bot commented on behalf of github Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #44.

@dependabot dependabot Bot closed this Jun 16, 2026
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/vite-8.0.3 branch June 16, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant