core-js
3.51.0 · 19 Oct 2026MIT100.8M / weekRepositoryHomepagenpmAtom feed
3.51.0 is the newest release of 3.x.
In short
1 breaking31 new2 fixed5 changed
- Breaking
String#{ matchAll, replaceAll }throws an error on non-global regex argument per the decision from TC39 meetings (+ this PR). It's a breaking change, but since it's a breaking change in the ES spec, it's added at the minor release
Release note
- Breaking
String#{ matchAll, replaceAll }throws an error on non-global regex argument per the decision from TC39 meetings (+ this PR). It's a breaking change, but since it's a breaking change in the ES spec, it's added at the minor release globalThismoved to stable ES, per October TC39 meetingPromise.anymoved to stage 3, some minor internal changes, per October TC39 meetingString#replaceAllmoved to stage 3, per October TC39 meetingAdded iterator helpers stage 2 proposal:
Iterator:
Iterator.fromIterator:
Iterator#asIndexedPairsIterator:
Iterator#dropIterator:
Iterator#everyIterator:
Iterator#filterIterator:
Iterator#findIterator:
Iterator#flatMapIterator:
Iterator#forEachIterator:
Iterator#mapIterator:
Iterator#reduceIterator:
Iterator#someIterator:
Iterator#takeIterator:
Iterator#toArrayIterator:
Iterator#@@toStringTagAsyncIterator:
AsyncIterator.fromAsyncIterator:
AsyncIterator#asIndexedPairsAsyncIterator:
AsyncIterator#dropAsyncIterator:
AsyncIterator#everyAsyncIterator:
AsyncIterator#filterAsyncIterator:
AsyncIterator#findAsyncIterator:
AsyncIterator#flatMapAsyncIterator:
AsyncIterator#forEachAsyncIterator:
AsyncIterator#mapAsyncIterator:
AsyncIterator#reduceAsyncIterator:
AsyncIterator#someAsyncIterator:
AsyncIterator#takeAsyncIterator:
AsyncIterator#toArrayAsyncIterator:
AsyncIterator#@@toStringTag
Updated
Map#upsert(Map#updateOrInsertbefore) proposalMoved to stage 2, per October TC39 meeting
Map#updateOrInsertrenamed toMap#upsertAdded
WeakMap#upsertYou can don't pass one of the callbacks
Added a workaround for iOS Safari MessageChannel + bfcache bug, #624
Added a workaround for Chrome 33 / Android 4.4.4
Promisebug, #640Replaced broken
URLconstructor in Safari andURLSearchParamsin Chrome 66-, #656Added compat data for Node up to 12.11, FF 69, Samsung up to 10.2 and Phantom 1.9
Math.hypotmarked as not supported in Chrome 77 since a bug in this method was not fixed before the stable Chrome 77 releaseFixed unnecessary exposing on
Symbol.matchAllinesnext.string.match-all, #626Fixed missed cases access the
.nextmethod once, at the beginning, of the iteration protocolShow similar
postinstallmessages only once pernpm i, #597, thanks @remy
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.