highlight.js
11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed
Upgrading highlight.js From 10.0.1 to 10.7.3
18 releases in betweennotes for 17
Reading releases, release notes and advisories…
Counted from 17 of 18 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking10.7.1
- Breaking10.0.2
- Deprecated10.6.0
- Deprecated10.5.0
- Deprecated10.5.0
- Deprecated10.4.0
- Deprecated10.2.0
- Deprecated10.1.0
- Deprecated10.1.0
- Deprecated10.1.0
Security
Fixes 2 advisories affecting 10.0.1
- ReDOS vulnerabities: multiple grammarsmoderate · GHSA-7wwv-vh3v-89cq
- Prototype Pollution in highlight.jsmoderate · GHSA-vfrc-7r7c-w9mx
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
78 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.