Packages

katex

0.19.1 · 23 Oct 2026MIT47.8M / weekRepositoryHomepagenpmAtom feed

Your version

0.14.0

30 Oct 2021Where it was published

0.19.1 is the newest release of 0.14.x.

In short

1 breaking1 new

  • Breaking

    With module loaders that support conditional exports and ECMAScript modules, import katex from 'katex'; will import the ECMAScript module.

Security

5 advisories affect 0.14.0; 0.18.2 fixes them

Release note

Features

  • Conditionally export ECMAScript modules

Breaking changes

  • Breaking

    With module loaders that support conditional exports and ECMAScript modules, import katex from 'katex'; will import the ECMAScript module.

You can now use:

BeforeAfter
require('katex/dist/contrib/[name].js')require('katex/contrib/[name]')
import katex from 'katex/dist/katex.mjs'import katex from 'katex'
import 'katex/dist/contrib/[name].mjs'import 'katex/contrib/[name]'

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.