Packages

lowlight

3.3.0 · 14 Dec 2024MIT22.1M / weekRepositoryHomepagenpmAtom feed

Your version

3.0.0

major4 Sep 2023Where it was published

3.3.0 is the newest release of 3.x.

In short

1 breaking4 changed

  • Breaking

    Change to require Node.js 16 migrate: update too

Release note

Change

  • Breaking

    Change to require Node.js 16
    migrate: update too

  • Change to use exports
    migrate: don’t use private APIs

  • Change API to allow different instances
    migrate: now, createLowlight, all, and common are exported;
    do createLowlight() to create a lowlight with nothing yet,
    createLowlight(common) for one with common languages, etc.

  • Rename registerLanguage to register
    migrate: rename registerLanguage to register

  • Remove use of global highlight instance

    migrate: make sure to register languages you want with lowlight

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.