highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
Upgrading highlight.js From 10.1.2 to 10.7.3
13 releases in betweenevery note read
Reading releases, release notes and advisories…
Before you upgrade
Tick each one off as you go- Breaking10.7.1
- Deprecated10.6.0
- Deprecated10.5.0
- Deprecated10.5.0
- Deprecated10.4.0
- Deprecated10.2.0
Security
Fixes 1 advisory affecting 10.1.2
- ReDOS vulnerabities: multiple grammarsmoderate · GHSA-7wwv-vh3v-89cq
Release by release
- Fixed
fix(parser) Resolves issue with missing TypeScript property [Jacob Swanner]
- Fixed
10.7.2nothing new or fixed in the note
- Breaking
continuationis for internal use only and no longer supported - New
Added 3rd party RiScript grammar to SUPPORTED_LANGUAGES (#2988) [John C]
- New
Added 3rd party HLSL grammar to SUPPORTED_LANGUAGES (#3002) [Stef Levesque]
- New
Added 3rd party Q# grammar to SUPPORTED_LANGUAGES(#3006) [Vyron Vasileiadis]
- Breaking
10.7.0nothing new or fixed in the note
- Deprecated
Deprecate
c-like, though you should not be using it directly anyways. - New
Added 3rd party Laravel Blade grammar to SUPPORTED_LANGUAGES (#2944) [Michael Newton]
- New
New simpler
highlightAll()API (#2962) [Josh Goebel] - New
Allow
keywordsto be an array of strings [Josh Goebel] - New
Add
modes.MATCH_NOTHING_REthat will never match - Fixed
fix(xml) Support single-character namespaces. (#2957) [Jan Pilzer]
- Deprecated
- Deprecated
HTML "merging" is deprecated. (#2873) [Josh Goebel]
- Deprecated
requireLanguageAPI is deprecated, will be removed in v11.0. - New
Add Subresource Integrity digest lists to
cdn-assets[Josh Goebel] - New
Add
matchas sugar for simplebeginonly matches (#2834) [Josh Goebel]
- Deprecated
10.4.1nothing new or fixed in the note
- 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
76 other lines we could not sort, mostly version bumps
- 10.7.2
(chore) throttle deprecation messages (#3092) [Mihkel Eidast]
- 10.7.1
enh(api) add
unregisterLanguagemethod (#3009) [Antoine du Hamel] - 10.7.1
enh: Make alias registration case insensitive (#3026) [David Ostrovsky]
- 10.7.1
enh(cpp) Highlight all function dispatches (#3005) [Josh Goebel]
- 10.7.1
enh(python) support type hints and better type support (#2972) [Josh Goebel]
- 10.7.1
enh(gml) Add additional GML 2.3 keywords (#2984) [xDGameStudios]
- 10.7.1
enh(php) Add
traitto class-like naming patterns (#2997) [Ayesh] - 10.7.1
enh(php) Add support for Enums (#3004) [Ayesh]
- 10.7.1
enh(ecmascript) Add built-in types [Vaibhav Chanana]
- 10.7.1
enh(kotlin) Add
ktsas an alias for Kotlin (#3021) [Vaibhav Chanana]
1 internal line (docs, tests, tooling) left out.
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.