Skip to content

chore(deps): upgrade the workspace dependencies to their latest releases - #5687

Merged
Jocs merged 1 commit into
developfrom
chore/upgrade-deps-except-electron
Oct 9, 2026
Merged

Jocs merged 1 commit into
developfrom
chore/upgrade-deps-except-electron

Conversation

@Jocs

@Jocs Jocs commented Oct 9, 2026

Copy link
Copy Markdown
Member

Related to #5610

Summary

Upgrade every workspace dependency to its latest compatible release, with
Electron deliberately left at 42.1.0.

Electron is the one exception because both 42.11.12 and 44.7.0 hang the
desktop e2e suite on the Linux CI runner: editor windows never mount and the
app does not exit on close (21–32 failures, 27–34m, versus ~11m green on
42.1.0). The same suite is green locally on macOS, and the failing assertion
only requires the editor node to be attached to the DOM, so it is specific to
the newer Electron/Chromium under Xvfb. Electron is handled on its own.

Bumps span Vite 8, Vitest 5, ESLint 10, neostandard 0.14, Playwright 1.64,
Next 16, Vue Router 5, Pinia 4, vue-i18n, mermaid 12, katex 0.19, marked 18.1,
minimatch 10, @types/node 26 and the rest of the tree.

Adaptations the bumps required:

  • eslint.config.js: register @stylistic for the TS/JS scopes, adopt its new
    catch category, and switch <script setup> scopes to the TS-aware
    no-unused-vars
  • KaTeX 0.19 renamed .base/.tag to .katex-base/.katex-tag
    (blockSyntax.css + the math-tag overflow e2e)
  • mermaid 12 finalises a diagram preview a render pass after the <svg> lands,
    so the preview-toolbar e2e waits for its label
  • website: next.config.mjs with eslint-config-next's flat config, and no
    baseUrl in the website tsconfig
  • muya: ES2022 in lib (@types/node 26 dropped the Array.prototype.at
    shim), and the CommonMark/GFM examples the new parser passes removed from
    expected-failures.json
  • allow the BlueOak-1.0.0 licence (minimatch 10)

Type of change

  • Bug fix (non-breaking, fixes an issue)
  • New feature (non-breaking, adds functionality)
  • Breaking change (causes existing functionality to change)
  • Documentation update

Test plan

  • New tests added (or explain why not needed) — no new tests; this is a
    dependency upgrade. The KaTeX/mermaid follow-ups update existing e2e specs.
  • Manually tested on: macOS (plus CI)

Verified locally on macOS arm64 / Node 25:

  • pnpm install
  • pnpm run typecheck
  • pnpm run lint — 0 errors
  • pnpm run validate-licenses
  • pnpm run test — 1068 passed
  • pnpm --filter @muyajs/core test — 2467 passed
  • pnpm --filter @muyajs/core test:spec — 1347 passed
  • pnpm --filter marktext-website build
  • pnpm run build:unpack
  • desktop e2e — 348 passed / 3 skipped; the 3 failures are the known
    zh-CN-locale specs on this machine

Notes for reviewers [optional]

  • Electron is the single dependency held back; see the Summary.
  • vue-router 4 → 5 and Pinia 3 → 4 are major bumps included here.
  • Unrelated: packages/muyajs/ is untouched.

Bump every workspace dependency to its latest compatible release except
Electron: both 42.11.12 and 44.7.0 hang the desktop e2e on the Linux CI
runner (editor windows never mount and the app does not exit on close), so
Electron stays at 42.1.0 and is handled on its own.

The bumps span Vite 8, Vitest 5, ESLint 10, neostandard 0.14, Playwright
1.64, Next 16, Vue Router 5, Pinia 4, vue-i18n, mermaid 12, katex 0.19,
marked 18.1, minimatch 10, @types/node 26 and the rest of the tree.

Follow-ups the bumps required:

- eslint.config.js: register `@stylistic` for the TS/JS scopes, adopt its
  new `catch` category, and switch `<script setup>` scopes to the
  TS-aware `no-unused-vars`
- KaTeX 0.19 renamed `.base`/`.tag` to `.katex-base`/`.katex-tag`, so
  blockSyntax.css and the math-tag overflow e2e follow the new names
- mermaid 12 finalises a diagram preview a render pass after the <svg>
  lands, so the preview-toolbar e2e waits for the label
- website: next.config.mjs with eslint-config-next's flat config, and no
  `baseUrl` in the website tsconfig
- muya: add ES2022 to `lib` (`@types/node` 26 dropped the
  `Array.prototype.at` shim)
- muya: drop the CommonMark/GFM examples the upgraded parser now passes
  from expected-failures.json
- allow the BlueOak-1.0.0 licence (minimatch 10)

No file under packages/muyajs is touched.
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Website preview ready: https://pr-5687-marktext-website.ransixi.workers.dev

Built from 9d3e014bcb9bcbf5c1c7584ce37866e8eb639fa4 · Worker: marktext-website · Version: ba193699-8cd3-4ad7-9b8e-6b574dd2b1a4 · Alias: pr-5687

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Build artifacts for PR #5687:

Run: https://github.com/marktext/marktext/actions/runs/37920109733

Artifact Size Link
marktext-windows-x64 296.4 MB Download
marktext-linux 660.8 MB Download
marktext-macos-arm64 297.6 MB Download
marktext-windows-arm64 288.3 MB Download
marktext-macos-x64 310.9 MB Download

@Jocs
Jocs merged commit 2642c83 into develop Oct 9, 2026
23 of 25 checks passed
Zane-0x5a added a commit to Zane-0x5a/marktext that referenced this pull request Oct 10, 2026
Takes upstream's separator-insensitive isPathWithinRoot from marktext#5689 over
the fork's UNC-aware variant: folding every run of separators to '/'
already matches a backslash UNC path against '//server/share'. The fork's
mixed-separator UNC spec goes with it.

Keeps pdfjs-dist on top of the marktext#5687 dependency upgrades, leaves
deep-equal out, and regenerates the lockfile from upstream's.
@Jocs
Jocs deleted the chore/upgrade-deps-except-electron branch October 23, 2026 08:32
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