Packages

core-js

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

Your version

3.28.0

13 Feb 2023Where it was published

3.51.0 is the newest release of 3.x.

In short

1 removed1 security12 new3 fixed13 changed

  • Removed

    Moved to stable ES, January 2023 TC39 meeting

  • Security

    Fixed theoretically possible ReDoS vulnerabilities in String.prototype.{ trim, trimEnd, trimRight }, parse(Int|Float), Number, atob, and URL polyfills in some ancient engines

Release note

3.28.0 - 2023.02.14

  • Change Array by copy proposal:

    • Methods: Array.prototype.toReversed

    • Methods: Array.prototype.toSorted

    • Methods: Array.prototype.toSpliced

    • Methods: Array.prototype.with

    • Methods: %TypedArray%.prototype.toReversed

    • Methods: %TypedArray%.prototype.toSorted

    • Methods: %TypedArray%.prototype.with

    • Moved to stable ES, January 2023 TC39 meeting

    • Added es. namespace modules, /es/ and /stable/ namespaces entries

  • Added JSON.parse source text access Stage 3 proposal

    • Methods: JSON.parse patched to support source in reviver function arguments

    • Methods: JSON.rawJSON

    • Methods: JSON.isRawJSON

    • Methods: JSON.stringify patched to support JSON.rawJSON

  • Added ArrayBuffer.prototype.transfer and friends Stage 3 proposal:

    • Built-ins: ArrayBuffer.prototype.detached

    • Built-ins: ArrayBuffer.prototype.transfer (only in runtimes with native structuredClone with ArrayBuffer transfer support)

    • Built-ins: ArrayBuffer.prototype.transferToFixedLength (only in runtimes with native structuredClone with ArrayBuffer transfer support)

    • In backwards, in runtimes with native ArrayBuffer.prototype.transfer, but without proper structuredClone, added ArrayBuffer transfer support to structuredClone polyfill

  • Iterator Helpers proposal:

  • Explicit Resource Management Stage 3 and Async Explicit Resource Management Stage 2 proposals:

  • Added Symbol predicates Stage 2 proposal

    • Methods: Symbol.isRegistered

    • Methods: Symbol.isWellKnown

  • Number.range Stage 1 proposal and method renamed to Iterator.range

  • Function.prototype.unThis Stage 0 proposal and method renamed to Function.prototype.demethodize

  • Fixed Safari String.prototype.toWellFormed ToString conversion bug

  • Improved some cases handling of array-replacer in JSON.stringify symbols handling fix

  • Fixed many other old JSON.{ parse, stringify } bugs (numbers instead of strings as keys in replacer, handling negative zeroes, spaces, some more handling symbols cases, etc.)

  • Fixed configurability and ToString conversion of some accessors

  • Added throwing proper errors on an incorrect context in some ArrayBuffer and DataView methods

  • Some minor DataView and %TypedArray% polyfills optimizations

  • Added proper error on the excess number of trailing = in the atob polyfill

  • Security

    Fixed theoretically possible ReDoS vulnerabilities in String.prototype.{ trim, trimEnd, trimRight }, parse(Int|Float), Number, atob, and URL polyfills in some ancient engines

  • Compat data improvements:

    • RegExp.prototype.flags marked as fixed from V8 ~ Chrome 111

    • Added Opera Android 73 compat data mapping

  • Added TypeScript definitions to core-js-builder

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.