Packages

highlight.js

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

Your version

98 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 11.x · latest line
  2. 11.12.0

    12 Aug 2026
    • 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

    • fix(parser) count named capture groups when rewriting backreferences spokodev

  3. 11.11.2

    11 Aug 2026
    • Fix illegal handling at end of input code [Josh Goebel]

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

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

  4. 11.11.1

    25 Dec 2024
    • Fixes regressions with Rust grammar in 11.11.0 release.

  5. 11.11.0

    14 Dec 2024
    • Nothing.

    • fix(rust) - adds emoji support in single quote strings [joshgoebel]

    • fix(apache) - support line continuation via \ [Josh Goebel]

  6. 11.10.0

    6 Jul 2024
    • 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]

  7. 11.9.0

    9 Oct 2023
    • Removed

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

    • In the node build styles/*.css files now ship un-minified
      with minified counterparts as: styles/*.min.css mvorisek
      (this makes things consistent with our cdn builds)

    • (enh) prevent re-highlighting of an element [joshgoebel]

  8. 11.8.0

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

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

    • (enh) add removePlugin api [faga295]

  9. 11.7.0

    23 Nov 2022
    • Added 3rd party LookML grammar to SUPPORTED_LANGUAGES [Josh Temple]

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

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

  10. 11.6.0

    13 Jul 2022
    • (chore) Drops support for Node 12.x, which is no longer supported by Node.js.

    • Add wasm to default :common build (#3526) [Josh Goebel]

    • Add graphql to default :common build (#3526) [Josh Goebel]

  11. 11.5.1

    11 Apr 2022
    • (chore) explicitly set sideEffect for css and scss files, fixes #3504

  12. 11.5.0

    12 Mar 2022
    • Added Tokyo-Night-dark theme [Henri Vandersleyen]

    • Added Tokyo-Night-light theme Henri Vandersleyen

    • Added GraphQL [John Foster]

  13. 11.4.0

    6 Jan 2022
    • Added 3rd party Pine Script grammar to SUPPORTED_LANGUAGES [Jeylani B]

    • Added 3rd party cURL grammar to SUPPORTED_LANGUAGES highlightjs-curl

    • Default is now much closer WCAG AA (contrast) (#3402) [Josh Goebel]

  14. 11.3.1

    17 Oct 2021
    • (fix) Grammar CDN modules not generated correctly. (#3363) [Josh Goebel]

    • Add HighlightJS named export (#3295) [Josh Goebel]

    • Add .default named export to CJS builds (#3333) [Josh Goebel]

  15. 11.3.0

    17 Oct 2021
    • Add HighlightJS named export (#3295) [Josh Goebel]

    • Add .default named export to CJS builds (#3333) [Josh Goebel]

    • Add first rough performance testing script (#3280) [Austin Schick]

  16. 11.2.0

    2 Aug 2021
  17. 11.1.0

    8 Jul 2021
    • fix(csharp) add missing catch keyword (#3251) [Konrad Rudolph]

    • Add additional keywords to csp.js (#3244) [Elijah Conners]

    • feat(css) handle css variables syntax (#3239) [Thanos Karagiannis]

  18. 11.0.1

    4 Jun 2021
    • (fix) use console.log for .js.js deprecation warning (#3222) [Josh Goebel]

    • (fix) do not restrict exports from cdn-assets (#3223) Josh Goebel

  19. 11.0.0

    30 May 2021
    • Breaking

      initHighlighting() and initHighlightingOnLoad() deprecated. Use highlightAll().

    • Breaking

      highlightBlock(el) deprecated. Use highlightElement(el)

    • Breaking

      before:highlightBlock & after:highlightBlock callbacks deprecated. Use equivalent highlightElement callbacks.

  20. 10.x
  21. 10.7.3

    4 Jun 2021

    Reading the note…

  22. 10.7.2

    4 Apr 2021

    Reading the note…

  23. 10.7.1

    21 Mar 2021

    Reading the note…

  24. 10.7.0

    20 Mar 2021

    Reading the note…

  25. 10.6.0

    8 Feb 2021

    Reading the note…

  26. 10.5.0

    23 Dec 2020

    Reading the note…

  27. 10.4.1

    3 Dec 2020

    Reading the note…

  28. 10.4.0

    18 Nov 2020

    Reading the note…

  29. 10.3.2

    29 Oct 2020

    Reading the note…

  30. 10.3.1

    17 Oct 2020

    Reading the note…

  31. 10.3.0

    17 Oct 2020

    Reading the note…

  32. 10.2.1

    1 Oct 2020

    Reading the note…

  33. 10.2.0

    7 Sep 2020

    Reading the note…

  34. 10.1.2

    23 Jul 2020
    • fix(night) Prevent object prototype values from being returned by getLanguage (#2636) night

  35. 10.1.1

    16 Jun 2020

    Reading the note…

  36. 10.1.0

    11 Jun 2020
    • Deprecated

      htmlbars grammar is now deprecated. Use handlebars instead. (#2344) [Nils Knappmeier]

    • Deprecated

      lexemes is now deprecated in favor of keywords.$pattern key (#2519) [Josh Goebel]

    • Deprecated

      endSameAsBegin is now deprecated. (#2261) [Josh Goebel]

  37. 10.0.3

    12 May 2020

    Reading the note…

  38. 10.0.2

    3 May 2020

    Reading the note…

  39. 10.0.1

    26 Apr 2020

    Reading the note…

  40. 10.0.0

    21 Apr 2020

    Reading the note…

  41. 9.x
  42. 9.18.5

    19 Nov 2020

    Reading the note…

  43. 9.18.4

    18 Nov 2020

    Reading the note…

  44. 9.18.3

    29 Jul 2020

    Reading the note…

  45. 9.18.2

    28 Jul 2020

    Reading the note…

  46. 9.18.1

    1 Feb 2020

    Reading the note…

  47. 9.18.0

    20 Jan 2020

    Reading the note…

  48. 9.17.1

    12 Dec 2019

    Reading the note…

  49. 9.17.0

    11 Dec 2019

    Reading the note…

  50. 9.16.2

    1 Nov 2019

    Reading the note…

  51. 9.16.1

    31 Oct 2019

    Reading the note…

  52. 9.15.10

    20 Aug 2019

    Reading the note…

  53. 9.15.9

    31 Jul 2019

    Reading the note…

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.