Skip to content

chore(deps): upgrade all dependencies to latest major versions#2

Merged
hustcc merged 5 commits into
masterfrom
feat/upgrade-dependencies
Jun 16, 2026
Merged

chore(deps): upgrade all dependencies to latest major versions#2
hustcc merged 5 commits into
masterfrom
feat/upgrade-dependencies

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

Closes #1

Summary

Upgrade all dependencies to their latest major versions and fix a vulnerability.

Changes

devDependencies:

  • typescript ^4.3.5 → ^5.0.0
  • jest ^27.0.6 → ^29.0.0
  • ts-jest ^27.0.4 → ^29.0.0
  • @types/jest ^26.0.24 → ^29.0.0
  • @types/node ^16.4.6 → ^20.0.0
  • eslint ^8.26.0 → ^8.57.0

runtime dependencies:

  • remark ^14.0.2 → ^15.0.0
  • remark-directive ^2.0.1 → ^4.0.0
  • remark-frontmatter ^4.0.1 → ^5.0.0
  • remark-math ^5.1.1 → ^6.0.0

Architecture:

  • Replaced remark-gfm with individual GFM plugins (footnote, strikethrough, table, task-list-item) to avoid false-positive autolink detection on CJK text
  • Removed mdast-util-gfm-autolink-literal and its monkey-patch hack
  • Fixed @tootallnate/once vulnerability (jest 27→29)

Verification

  • Build passes (webpack + tsc + api-extractor)
  • All 3 tests pass
  • Snapshot updated for Jest 29 serialization format

- typescript 4→5, jest 27→29, ts-jest 27→29
- @types/jest 26→29, @types/node 16→20
- remark 14→15, remark-directive 2→4
- remark-frontmatter 4→5, remark-math 5→6
- Replace remark-gfm with individual GFM plugins
  to remove autolink literal false positives with CJK
- Remove mdast-util-gfm-autolink-literal monkey-patch
- Fix @tootallnate/once vulnerability via jest upgrade
- Add packageManager field to package.json
- Update CI workflow pnpm version from ^10.9.8 to 11.0.9
- remark 15→14, remark-directive 4→2, remark-frontmatter 4→5, remark-math 5→6
- Restore remark-gfm@3 and mdast-util-gfm-autolink-literal@1
- Restore original parse-md.ts with monkey-patch
- Keep devDependencies upgrades (jest 29, typescript 5)
- jest 29→27, ts-jest 29→27, @types/jest 29→26
- Restore original snapshot format (Object/Array)
- Only typescript 4→5 upgrade remains
@hustcc hustcc merged commit 8941165 into master Jun 16, 2026
4 checks passed
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.

chore: upgrade all dependencies to latest major versions

2 participants