Packages

core-js

3.51.0 · 19 Oct 2026MIT100.8M / weekRepositoryHomepagenpmAtom feed

Your version

3.20.0

15 Dec 2021Where it was published

3.51.0 is the newest release of 3.x.

npm marks 3.20.0 as deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

In short

20 new2 fixed4 changed

Release note

3.20.0 - 2021.12.16

  • Added structuredClone method from the HTML spec, see MDN

    • Includes all cases of cloning and transferring of required ECMAScript and platform types that can be polyfilled, for the details see the caveats

    • Uses native structured cloning algorithm implementations where it's possible

    • Includes the new semantic of errors cloning from html/5749

  • Added DOMException polyfill, the Web IDL spec, see MDN

    • Includes DOMException and its attributes polyfills with fixes of many different engines bugs

    • Includes DOMException#stack property polyfill in engines that should have it

    • Reuses native DOMException implementations where it's possible (for example, in old NodeJS where it's not exposed as global)

  • Added support of cause on all Error types

  • Added Error.prototype.toString method polyfill with fixes of many different bugs of JS engines

  • Added Number.prototype.toExponential method polyfill with fixes of many different bugs of JS engines

  • Array grouping proposal:

    • Moved to stage 3

    • Added Array.prototype.groupByToMap method

    • Removed @@species support

  • Added change Array by copy stage 2 proposal:

    • Array.prototype.toReversed

    • Array.prototype.toSorted

    • Array.prototype.toSpliced

    • Array.prototype.with

    • %TypedArray%.prototype.toReversed

    • %TypedArray%.prototype.toSorted

    • %TypedArray%.prototype.toSpliced

    • %TypedArray%.prototype.with

  • Added Iterator.prototype.toAsync method from the iterator helpers stage 2 proposal

  • Array.fromAsync proposal moved to stage 2

  • Added String.cooked stage 1 proposal

  • Added Function.prototype.unThis stage 0 proposal

  • Added Function.{ isCallable, isConstructor } stage 0 proposal:

    • Function.isCallable

    • Function.isConstructor

  • Added a workaround of most cases breakage modern String#at after loading obsolete String#at proposal module, #1019

  • Fixed Array.prototype.{ values, @@iterator }.name in V8 ~ Chrome 45-

  • Fixed validation of typed arrays in typed arrays iteration methods in V8 ~ Chrome 50-

  • Extension of the API, #1012

    • Added a new core-js/actual/** namespace

    • Added entry points for each finished post-ES6 proposal

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.