Packages

highlight.js

11.12.0 · 12 Aug 2026BSD-3-Clause56.9M / weekRepositoryHomepagenpmAtom feed

Upgrading highlight.js From 7.0.1 to 11.12.0

89 releases in betweennotes for 38

Reading releases, release notes and advisories…

Other targets from 7.0.1Newest 7.x7.5.0Clears its advisory9.18.2
9.0.0, 8.0.0 have no release note on GitHub or in the repository's changelog, so their breaking changes are missing from the counts below; the migration guide covers them.
  1. 7.0.1yours
  2. 5 releases
  3. 8.0.0major
  4. 10 releases
  5. 9.0.0major
  6. 34 releases
  7. 10.0.0major
  8. 19 releases
  9. 11.0.0major
  10. 16 releases
  11. 11.12.0target
107+
changes to make
1
advisory fixed
92+
new
130+
fixes

Counted from 38 of 89 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking11.11.0
  • Breaking11.10.0
  • Breaking11.10.0
  • Breaking11.10.0
  • Breaking11.10.0
  • Breaking11.10.0
  • Breaking11.10.0
  • Breaking11.10.0
  • Breaking11.10.0
  • Breaking11.10.0

Security

Fixes 1 advisory affecting 7.0.1

  • fix(c, cpp) bound the run of type tokens in front of a function name (ReDoS), issue #4362 [Jayesh Bhade]

    11.12.0
  • fix(xml) remove recursive sublanguage references to prevent ReDoS [petejm]

    11.12.0

Release by release

  1. 11.12.0

    Security fix12 Aug 202614 new · 15 fixes
    • Security

      fix(c, cpp) bound the run of type tokens in front of a function name (ReDoS), issue #4362 [Jayesh Bhade]

    • Security

      fix(xml) remove recursive sublanguage references to prevent ReDoS [petejm]

    • New

      Add FreeDesktop config file (.desktop / systemd) grammar [gg582]

    • New

      Added 3rd party Cedar grammar to SUPPORTED_LANGUAGES [Dhruv Maniya]

  2. 11.11.2

    11 Aug 20269 new · 10 fixes
    • New

      Added 3rd party Aiken grammar to SUPPORTED_LANGUAGES [Josh Marchand]

    • New

      Added 3rd party VoltScript grammar to SUPPORTED_LANGUAGES [Chester Moses]

    • New

      Added 3rd party Gleam grammar to SUPPORTED_LANGUAGES [Filip Hoffmann]

    • New

      Added 3rd party Magik grammar to SUPPORTED_LANGUAGES [Sebastiaan Speck]

  3. 11.11.1

    25 Dec 20241 fix
    • Fixed

      Fixes regressions with Rust grammar in 11.11.0 release.

  4. 11.11.0

    Migration needed14 Dec 20248 new · 18 fixes
    • Breaking

      CAVEATS / POTENTIALLY BREAKING CHANGES

    • New

      Added 3rd party TTCN-3 grammar to SUPPORTED_LANGUAGES [Osmocom]

    • New

      Added 3rd party Odin grammar to SUPPORTED_LANGUAGES [clsource]

    • New

      Added 3rd party Liquid grammar to SUPPORTED_LANGUAGES [Laurel King]

  5. 11.10.0

    Migration needed6 Jul 2024
    • Breaking

      This version drops support for Node 16.x, which is no longer supported by Node.js.

    • Breaking

      enh(typescript) add support for satisfies operator [Kisaragi Hiu]

    • Breaking

      enc(c) added more C23 keywords [Melkor-1]

    • Breaking

      enh(json) added jsonc as an alias [BackupMiles]

  6. 11.9.0

    Migration needed9 Oct 20234 new · 9 fixes
    • Breaking

      Drops support for Node 14.x, which is no longer supported by Node.js.

    • New

      Added 3rd party Iptables grammar to SUPPORTED_LANGUAGES [Checconio]

    • New

      Added 3rd party x86asmatt grammar to SUPPORTED_LANGUAGES [gondow]

    • New

      Added 3rd party riscv64 grammar to SUPPORTED_LANGUAGES [aana-h2]

  7. 11.8.0

    29 Apr 20236 new · 1 fix
    • New

      Added a function to default export to generate a fresh highlighter instance to be used by extensions [WisamMechano]

    • New

      Added BETA __emitTokens key to grammars to allow then to direct their own parsing, only using Highlight.js for the HTML rendering [Josh Goebel]

    • New

      Added 3rd party Lang grammar to SUPPORTED_LANGUAGES [AdamRaichu]

    • New

      Added 3rd party C3 grammar to SUPPORTED_LANGUAGES [aliaegik]

    • New

      Added 3rd party Motoko grammar to SUPPORTED_LANGUAGES [rvanasa]

    • New

      Added 3rd party Candid grammar to SUPPORTED_LANGUAGES [rvanasa]

    • Fixed

      fix(haskell) Added support for characters [CrystalSplitter]

  8. 11.7.0

    23 Nov 20224 new · 5 fixes
    • New

      Added 3rd party LookML grammar to SUPPORTED_LANGUAGES [Josh Temple]

    • New

      Added 3rd party FunC grammar to SUPPORTED_LANGUAGES [Nikita Sobolev]

    • New

      Added 3rd party Flix grammar to SUPPORTED_LANGUAGES [The Flix Organisation]

    • New

      Added 3rd party RVT grammar to SUPPORTED_LANGUAGES [Sopitive]

267 other lines we could not sort, mostly version bumps
  • Referenced existing 3rd party ES|QL grammar in SUPPORTED_LANGUAGES [Styx0x6]

    11.12.0
  • enh(cmake) add block and endblock keywords [Anonymous Maarten]

    11.12.0
  • enh(csharp) support digit separators in binary literals and numeric type suffixes, and stop highlighting the leading _ of an identifier, issue #4258 [Sarath Francis]

    11.12.0
  • enh(css) add corner-shape properties [Hama Tanveer]

    11.12.0
  • enh(css) support six-digit unicode-range values [Konstantin Baltsat]

    11.12.0
  • enh(dart) add highlighting for class and function names [guuido]

    11.12.0
  • enh(dns) highlight registered CAA property tags, issue #4475 [Joey Huang]

    11.12.0
  • enh(dns) improve grammar: character strings, TXT, classes, escapes, addresses [Checconio]

    11.12.0
  • enh(dos) add batch as an alias, issue #4395 [Hashim Khan]

    11.12.0
  • enh(gherkin) update keyword list [Hirse]

    11.12.0

7 internal lines (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.