Packages

terser

5.51.2 · 27 Aug 2026BSD-2-Clause118.8M / weekRepositoryHomepagenpmAtom feed

Upgrading terser From 5.2.0 to 5.14.2

29 releases in betweenevery note read

Other targets from 5.2.0Newest 5.x5.51.4Latest5.51.2
  1. 5.2.0yours
  2. 10 releases
  3. 5.4.0breaking
  4. 17 releases
  5. 5.14.2target

Before you upgrade

Tick each one off as you go
  • Breaking5.4.0

Security

Fixes 1 advisory affecting 5.2.0

  • Security fix for RegExps that should not be evaluated (regexp DDOS)

    5.14.2

Release by release

  1. 5.14.2

    Security fix13 Jul 2022
    • Security

      Security fix for RegExps that should not be evaluated (regexp DDOS)

  2. 5.14.1

    10 Jun 20221 fix
    • Fixed

      Fixed parsing of nested template strings

  3. 5.14.0

    30 May 20221 fix
    • Fixed

      Fixed source maps with non-terminated segments

  4. 5.13.1

    29 Apr 20221 new
    • New

      Allow multiple identifiers with the same name in var destructuring (eg var { a, a } = x)

  5. 5.13.0nothing new or fixed in the note

  6. 5.12.1

    14 Mar 20222 fixes
    • Fixed

      Fixed an issue with function definitions inside blocks

    • Fixed

      Fixed parens of new in some situations (closes #1159)

  7. 5.11.0 – 5.12.02 releases, nothing new or fixed in the notes

  8. 5.10.0

    15 Nov 20211 new · 5 fixes
    • New

      New CI/CD pipeline with github actions

    • Fixed

      Fix delete optional?.property

    • Fixed

      Fix reordering of switch branches (#1092),

    • Fixed

      Fix error when creating a class property called get

    • Fixed

      Fix mangling collision with exported variables

    • Fixed

      Fix an issue with return someVariable = (async () => { ... })()

57 other lines we could not sort, mostly version bumps
  • Source maps improvements

    5.14.2
  • Performance improvements in long property access evaluation

    5.14.2
  • keep_numbers option added to TypeScript defs

    5.14.1
  • Switched to @jridgewell/source-map for sourcemap generation (#1190, #1181)

    5.14.0
  • Enabled typescript types to be imported from the package

    5.14.0
  • Extra DOM props have been added

    5.14.0
  • Delete the AST while generating code, as a means to save RAM

    5.14.0
  • Removed self-assignments (varname=varname) (closes #1081)

    5.13.1
  • Separated inlining code (for inlining things into references, or removing IIFEs)

    5.13.1
  • All calls to eval() were removed (#1171, #1184)

    5.13.0

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.