Packages

core-js

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

Your version

3.42.0

29 Apr 2025Where it was published

3.51.0 is the newest release of 3.x.

In short

16 new12 fixed13 changed

Release note

3.42.0 - 2025.04.30

  • Map upsert proposal:

    • Moved to stage 2.7, April 2025 TC39 meeting

    • Validation order of WeakMap.prototype.getOrInsertComputed updated following tc39/proposal-upsert#79

    • Built-ins: Map.prototype.getOrInsert

    • Built-ins: Map.prototype.getOrInsertComputed

    • Built-ins: WeakMap.prototype.getOrInsert

    • Built-ins: WeakMap.prototype.getOrInsertComputed

  • Don't call well-known Symbol methods for RegExp on primitive values following tc39/ecma262#3009:

    • For avoid performance regression, temporarily, only in own core-js implementations

    • Built-ins: String.prototype.matchAll

    • Built-ins: String.prototype.match

    • Built-ins: String.prototype.replaceAll

    • Built-ins: String.prototype.replace

    • Built-ins: String.prototype.search

    • Built-ins: String.prototype.split

  • Added workaround for the Uint8Array.prototype.setFromBase64 bug in some of Linux builds of WebKit

  • Implemented early-error iterator closing following tc39/ecma262#3467, including fix of a WebKit bug, in the following methods:

    • Iterator.prototype.drop

    • Iterator.prototype.every

    • Iterator.prototype.filter

    • Iterator.prototype.find

    • Iterator.prototype.flatMap

    • Iterator.prototype.forEach

    • Iterator.prototype.map

    • Iterator.prototype.reduce

    • Iterator.prototype.some

    • Iterator.prototype.take

  • Fixed missing forced replacement of AsyncIterator helpers

  • Added closing of sync iterator when async wrapper yields a rejection following tc39/ecma262#2600. Affected methods:

  • Added detection for throwing on undefined initial parameter in Iterator.prototype.reduce (see WebKit bug)

  • core-js-compat and core-js-builder API:

    • Added 'intersect' support for targets.esmodules (Babel 7 behavior)

    • Fixed handling of targets.esmodules: true (Babel 7 behavior)

  • Compat data improvements:

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.