highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
Upgrading highlight.js From 10.3.2 to 10.4.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 2
- new
- 7
- fixes
Before you upgrade
Tick each one off as you go- Deprecated10.4.0
Security
1 advisory still affects 10.4.0
- ReDOS vulnerabities: multiple grammarsmoderate · GHSA-7wwv-vh3v-89cq
Upgrading to 10.4.1 clears it.
Release by release
- Deprecated
(chore)
requireLanguageis deprecated. - New
Added 3rd party Chapel grammar to SUPPORTED_LANGUAGES (#2806) [Brad Chamberlain]
- New
Added BBCode grammar to SUPPORTED_LANGUAGES (#2867) [Paul Reid]
- Fixed
vue: Language name now appears in CSS class (#2807) [Michael Rush]
- Deprecated
23 other lines we could not sort, mostly version bumps
- 10.4.0
enh(parser) use negative look-ahead for
beginKeywordssupport (#2813) [Josh Goebel] - 10.4.0
enh(grammars) allow
classNameAliasesfor more complex grammars [Josh Goebel] - 10.4.0
(chore) Clean up all regexs to be UTF-8 compliant/ready (#2759) [Josh Goebel]
- 10.4.0
enh(javascript) Added
node-replfor Node.js REPL sessions (#2792) [Marat Nagayev] - 10.4.0
enh(shell) Recognize prompts which contain tilde
~(#2859) [Guillaume Grossetie] - 10.4.0
enh(shell) Add support for multiline commands with line continuation
\(#2861) [Guillaume Grossetie] - 10.4.0
enh(autodetect) Over 30+ improvements to auto-detect (#2745) [Josh Goebel]
- 10.4.0
bug(xml) XML grammar was far too imprecise/fuzzy [Josh Goebel]
- 10.4.0
enh(xml) Improve precision to prevent false auto-detect positives [Josh Goebel]
- 10.4.0
enh(julia) Update keyword lists for Julia 1.x (#2781) [Fredrik Ekre]
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.