Packages

highlight.js

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

Your version

10.1.0

11 Jun 2020Where it was published

10.7.3 is the newest release of 10.x.

npm marks 10.1.0 as deprecated: Potential vulnerability. Upgrade to @latest

In short

3 deprecated2 changed

  • 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]

Security

2 advisories affect 10.1.0; 10.4.1 fixes them

Release note

Just your typical minor release. Plenty of fixes and enhancements, few new themes.

Some deprecations language maintainers might want to pay attention to:

  • Deprecated

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

  • When using highlightBlock result.re deprecated. Use result.relevance instead. (#2552) [Josh Goebel]

  • Ditto for result.second_best.re => result.second_best.relevance

  • Deprecated

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

  • Deprecated

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

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.