core-js
3.51.0 · 19 Oct 2026MIT100.8M / weekRepositoryHomepagenpmAtom feed
3.51.0 is the newest release of 3.x.
In short
8 new81 fixed12 changed
Release note
Iterator.rangeupdated following the actual spec versionThrow a
RangeErroronNaNstart/end/stepAllow
nullasoptionOrStep
Improved accuracy of
Math.{ asinh, atanh }polyfills with big and small valuesImproved accuracy of
Number.prototype.toExponentialpolyfills with big and small valuesImproved performance of
atob,btoa,Uint8Array.fromHex,Uint8Array.prototype.setFromHex, andUint8Array.prototype.toHex, #1503, #1464, #1510, thanks @johnzhou721Minor performance optimization polyfills of methods from
Mapupsert proposalPolyfills of methods from
Mapupsert proposal from the pure version made generic to make it work with polyfilled and native collectionsWrap
Symbol.forinSymbol.prototype.descriptionpolyfill for correct handling of empty string descriptionsFixed a modern Safari bug in
Array.prototype.includeswith sparse arrays andfromIndexFixed one more case (
Iterator.prototype.take) of a V8 ~ Chromium < 126 bugForced replacement of
Iterator.{ concat, zip, zipKeyed }in the pure version for ensuring proper wrappedIteratorinstances as the resultFixed proxying
.return()on exhausted iterator from some methods of iterator helpers polyfill to the underlying iteratorFixed double
.return()calling in case of throwing error in this method in the internaliteratehelper that affected some polyfillsFixed closing iterator on
IteratorValueerrors in the internaliteratehelper that affected some polyfillsFixed iterator closing in
Array.frompolyfill on failure to create array propertyFixed order of arguments validation in
Array.fromAsyncpolyfillFixed a lack of counter validation on
MAX_SAFE_INTEGERinArray.fromAsyncpolyfillFixed order of arguments validation in
Array.prototype.flatpolyfillFixed handling strings as iterables in
Iterator.{ zip, zipKeyed }polyfillsFixed some cases of iterators closing in
Iterator.{ zip, zipKeyed }polyfillsFixed validation of iterators
.next()results as objects inIterator.{ zip, zipKeyed }polyfillsFixed a lack of early error in
Iterator.concatpolyfill on primitive as an iteratorFixed buffer mutation exposure in
Iterator.prototype.windowspolyfillFixed iterator closing in
Set.prototype.{ isDisjointFrom, isSupersetOf }polyfillFixed (updated following the final spec) one more case
Set.prototype.differencepolyfill with updatingthisFixed
DataView.prototype.setFloat16polyfill in (0, 1) rangeFixed order of arguments validation in
String.prototype.{ padStart, padEnd }polyfillsFixed order of arguments validation in
String.prototype.{ startsWith, endsWith }polyfillsFixed some cases of
Infinityhandling inString.prototype.substrpolyfillFixed
String.prototype.repeatpolyfill with a counter exceeding 2 ** 32Fixed some cases of chars case in
escapepolyfillFixed named backreferences in
RegExpNCG polyfillFixed some cases of
RegExpNCG polyfill in combination with other types of groupsFixed some cases of
RegExpNCG polyfill in combination withdotAllFixed
String.prototype.replacewithstickypolyfill, #810, #1514Fixed
RegExpstickypolyfill with alternationFixed handling of some line terminators in case of
multiline+stickymode inRegExppolyfillFixed
.inputslicing on result object withRegExpstickymode polyfillFixed handling of empty groups with
globalandunicodemodes in polyfillsFixed
URLSearchParams.prototype.deletepolyfill with duplicate key-value pairsFixed possible removal of unnecessary entries in
URLSearchParams.prototype.deletepolyfill with second argumentFixed an error in some cases of non-special URLs without a path in the
URLpolyfillFixed some percent encode cases / character sets in the
URLpolyfillFixed parsing of non-IPv4 hosts ends in a number in the
URLpolyfillFixed some cases of
''andnullhost handling in theURLpolyfillFixed host parsing with
hostname = host:portin theURLpolyfillFixed host inheritance in some cases of file scheme in the
URLpolyfillFixed block of protocol change for file with empty host in the
URLpolyfillFixed invalid code points handling in UTF-8 decode in the
URLSearchParamspolyfillFixed some cases of serialization in
URLpolyfill (/.prefix for non-special URLs withnullhost and path starting with empty segment)Fixed
URLpolyfill.origingetter withblobschemeFixed a lack of error in
URLSearchParams.prototype.setpolyfill on calling only with 1 argumentFixed handling invalid UTF-8 continuation bytes in
URLSearchParamspolyfillFixed incomplete sequences with out-of-range continuation bytes handling in
URLSearchParamspolyfillFixed allowing unexpected symbols in scheme in the
URLpolyfillFixed repeated
ToPropertyKeycalling inReflect.{ get, set, deleteProperty }polyfillsFixed
Reflect.setpolyfill with some descriptors casesFixed
Reflect.setpolyfill with some non-extensible receiver casesFixed the order of
Reflect.constructpolyfill arguments validation (observable only in the error message)Fixed a lack of error in
Reflect.definePropertypolyfill with malformed descriptorFixed a lack of error in
JSON.parsepolyfill on unterminated object and array literalsFixed a lack of error in
JSON.parsepolyfill on numbers with., but without a fraction partFixed a lack of error on
\u{}inString.dedentpolyfillFixed some cases of hex escaping in the end of string in
String.dedentpolyfillFixed
%AsyncFromSyncIteratorPrototype%to make it a little stricterFixed counter in some cases of some
AsyncIteratormethodsFixed order of async iterators closing
Fixed iterator closing in
AsyncIterator.prototype.flatMappolyfillFixed iterator closing in
AsyncIterator.prototype.mappolyfill on error in underlying iterator.next()Fixed iterator closing in
AsyncIterator.prototype.takepolyfill withreturn: nullFixed validation
.return()result as object inAsyncIterator.prototype.takepolyfillFixed a lack of error in
structuredClonepolyfill on attempt to transfer multiple objects, some of which are non-transferableFixed resizable
ArrayBuffertransferring wherenewByteLengthexceeds the originalmaxByteLengthFixed possible loss of symbol enumerability in
Object.definePropertyinSymbolpolyfillFixed return value of
Object.definePropertyinSymbolpolyfill in Android ~ 2Fixed order of
%TypedArray%.fromarguments validationFixed a lack of error on passing an
ArrayBufferand a negative length to the%TypedArray%andDataViewconstructors polyfillsFixed some cases of
@@toStringTagon%TypedArray%polyfillFixed some cases of
ToUint8ClampconversionFixed
NaNhandling inDate.prototype.setYearpolyfillFixed false positive on a
WeakMapvalidation in the pure versionFixed some minor
{ Map, Set }.prototype.forEachmoments in the pure versionFixed possible error in
Array.isTemplateObjectpolyfill on frozen arrayFixed semantics of
Observable.fromwith multiple subscriptions of the obsolete ECMAScriptObservableproposal polyfillFixed handling of ending zeroes in the fraction part in
Number.fromStringpolyfillFixed
esmodules: intersectoption ofcore-js-compatFixed a lack of
reactnativealias incore-js-compattypesFixed a minor logical bug in the debugging output of
core-js-builderFixed ignorance of the obsolete
blacklistoption ofcore-js-builder- it should be removed only in the next major releaseIn case of bugs in
String.prototype.{ match, matchAll, replace, split }in modern engines, adds,dandvflag support to polyfills of those methodsJust in case, added an extra input string validation to the polyfill of obsolete
Number.fromStringproposalSimplified
iOSdetectionMany minor stylistic fixes and optimizations
Compat data improvements:
Math.sumPrecisemarked as shipped in V8 ~ Chrome 147Iterator.concatmarked as shipped in V8 ~ Chrome 146Iterator.concatmarked as shipped in Safari 26.4Because of a bug,
Array.prototype.includesmarked as not supported in modern SafariFixed compat data for
parseIntandparseFloatAdded Electron 42 compat data mapping
Added Oculus Quest Browser 42 compat data mapping
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.