core-js
3.51.0 · 19 Oct 2026MIT100.8M / weekRepositoryHomepagenpmAtom feed
263 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
3.24.0
25 Jul 2022Recent updates of the iterator helpers proposal, #1101:
%TypedArray%.prototype.toSplicedmethod removed from the change array by copy proposal and marked as obsolete incore-js, proposal-change-array-by-copy/88Polyfill
Promisewithunhandledrejectionevent support (browser style) in Deno < 1.24
Recent updates of the iterator helpers proposal, #1101:
.asIndexedPairsrenamed to.indexed, proposal-iterator-helpers/183:Iterator.prototype.asIndexedPairs->Iterator.prototype.indexedAsyncIterator.prototype.asIndexedPairs->AsyncIterator.prototype.indexed
Avoid exposing spec fiction
%AsyncFromSyncIteratorPrototype%inAsyncIterator.fromandIterator.prototype.toAsync, proposal-iterator-helpers/182, proposal-iterator-helpers/202Avoid unnecessary promise creation in
%WrapForValidAsyncIteratorPrototype%.next, proposal-iterator-helpers/197Do not validate value in
%WrapForValid(Async)IteratorPrototype%.next, proposal-iterator-helpers/197 and proposal-iterator-helpers/205Do not forward the parameter of
.next/.returnto an underlying iterator by the extended iterator protocol, a part of proposal-iterator-helpers/194.throwmethods removed from all wrappers / helpers prototypes, a part of proposal-iterator-helpers/194Close inner iterators of
{ Iterator, AsyncIterator }.prototype.flatMapproxy iterators on.return, proposal-iterator-helpers/195Throw
RangeErroronNaNin{ Iterator, AsyncIterator }.prototype.{ drop, take }, proposal-iterator-helpers/181Many other updates and fixes of this proposal
%TypedArray%.prototype.toSplicedmethod removed from the change array by copy proposal and marked as obsolete incore-js, proposal-change-array-by-copy/88Polyfill
Promisewithunhandledrejectionevent support (browser style) in Deno < 1.24Available new targets in
core-js-compat/core-js-builderand added compat data for them:Added Samsung Internet 18.0 compat data mapping
3.23.5
17 Jul 2022Added Opera Android 70 compat data mapping
Added Opera Android 70 compat data mapping
3.23.4
9 Jul 2022Added a workaround of the Bun ~ 0.1.1 bug that define some globals with incorrect property descriptors and that causes a crash of
core-jsFixed
{ Map, WeakMap }.prototype.emplacelogic, #1102
Added a workaround of the Bun ~ 0.1.1 bug that define some globals with incorrect property descriptors and that causes a crash of
core-jsAdded a fix of the FF103+
structuredClonebugs (1774866 (fixed in FF104) and 1777321 (still not fixed)) that now can clone errors, but.stackof the clone is an empty stringFixed
{ Map, WeakMap }.prototype.emplacelogic, #1102Fixed order of errors throwing on iterator helpers
3.23.3
25 Jun 2022Changed the order of operations in
%TypedArray%.prototype.toSplicedfollowing proposal-change-array-by-copy/89Fixed regression of some IE8- issues
3.23.2
20 Jun 2022Avoided creation of extra properties for the handling of
%TypedArray%constructors in new methods, #1092 (comment)Added Deno 1.23 compat data mapping
3.23.0
13 Jun 2022Arrayfind from last moved to the stable ES, according to June 2022 TC39 meeting:Methods from the
Arraygrouping proposal renamed, according to June 2022 TC39 meeting:Changed the order of operations in
%TypedArray%.prototype.withfollowing proposal-change-array-by-copy/86, according to June 2022 TC39 meeting
Arrayfind from last moved to the stable ES, according to June 2022 TC39 meeting:Array.prototype.findLastArray.prototype.findLastIndex%TypedArray%.prototype.findLast%TypedArray%.prototype.findLastIndex
Methods from the
Arraygrouping proposal renamed, according to June 2022 TC39 meeting:Array.prototype.groupBy->Array.prototype.groupArray.prototype.groupByToMap->Array.prototype.groupToMap
Changed the order of operations in
%TypedArray%.prototype.withfollowing proposal-change-array-by-copy/86, according to June 2022 TC39 meetingDecorator Metadata proposal extracted from Decorators proposal as a separate stage 2 proposal, according to March 2022 TC39 meeting,
Symbol.metadataKeyreplacesSymbol.metadataAdded
Array.prototype.pushpolyfill with some fixes for modern enginesAdded
Array.prototype.unshiftpolyfill with some fixes for modern enginesFixed a bug in the order of getting flags in
RegExp.prototype.flagsin the actual version of V8Fixed property descriptors of some
MathandNumberconstantsAdded a workaround of V8
ArrayBufferDetachingprotector cell invalidation and performance degradation onstructuredClonefeature detection, one more case of #679Added detection of NodeJS bug in
structuredClonethat can not cloneDOMException(just in case for future versions that will fix other issues)Compat data:
Added NodeJS 18.3 compat data mapping
Added and fixed Deno 1.22 and 1.21 compat data mapping
Added Opera Android 69 compat data mapping
Updated Electron 20.0 compat data mapping
3.22.8
1 Jun 2022Fixed possible multiple call of
ToBigInt/ToNumberconversion of the argument passed to%TypedArray%.prototype.fillin V8 ~ Chrome < 59, Safari < 14.1, FF < 55, Edge <=18Fixed some cases of
DeletePropertyOrThrowin IE9-Fixed the kind of error (
TypeErrorinstead ofError) on incorrectexecresult inRegExp.prototype.testpolyfill
Fixed possible multiple call of
ToBigInt/ToNumberconversion of the argument passed to%TypedArray%.prototype.fillin V8 ~ Chrome < 59, Safari < 14.1, FF < 55, Edge <=18Fixed some cases of
DeletePropertyOrThrowin IE9-Fixed the kind of error (
TypeErrorinstead ofError) on incorrectexecresult inRegExp.prototype.testpolyfillFixed dependencies of
{ actual, full, features }/typed-array/atentriesAdded Electron 20.0 compat data mapping
Added iOS Safari 15.5 compat data mapping
Refactoring
3.22.4
2 May 2022Ensured proper
.lengthof polyfilled functions even in compressed code (excepting some ancient engines)Ensured proper
.nameof polyfilled accessors (excepting some ancient engines)Ensured proper source /
ToStringconversion of polyfilled accessors
Ensured proper
.lengthof polyfilled functions even in compressed code (excepting some ancient engines)Ensured proper
.nameof polyfilled accessors (excepting some ancient engines)Ensured proper source /
ToStringconversion of polyfilled accessorsActualized Rhino compat data
Refactoring
3.22.3
28 Apr 2022Added a fix for FF99+
Array.prototype.includesbroken on sparse arrays
3.22.2
21 Apr 2022Fixed
URLSearchParamsin IE8- that was broken in the previous releaseFixed
__lookupGetter__entries
3.22.1
19 Apr 2022Improved some cases of
RegExpflags handlingPrevented experimental warning in NodeJS ~ 18.0 on detection
fetchAPIAdded NodeJS 18.0 compat data
3.22.0
15 Apr 2022- Breaking
Avoided propagation of removed parts of proposals to upper stages. For example,
%TypedArray%.prototype.groupBywas removed from theArraygrouping proposal a long time ago. We can't completely remove this method since it's a breaking change. But this proposal has been promoted to stage 3 - so the proposal should be promoted without this method, this method should not be available in/actual/entries - but it should be available in early-stage entries to avoid breakage. - Breaking
Significant internal refactoring and splitting of modules (but without exposing to public API since it will be a breaking change - it will be exposed in the next major version)
Change
Arrayby copy proposal:Moved to Stage 3, March TC39 meeting
Disabled forced replacement and added
/actual/entry points for methods from this proposalArray.prototype.toSplicedthrows aTypeErrorinstead ofRangeErrorif the result length is more thanMAX_SAFE_INTEGER, proposal-change-array-by-copy/70
Added some more
atob/btoafixes:NodeJS <17.9
atobdoes not ignore spaces, node/42530Actual NodeJS
atobdoes not validate encoding, node/42646FF26- implementation does not properly convert argument to string
IE / Edge <16 implementation have wrong arity
Added
/full/namespace as the replacement for/features/since it's more descriptive in context of the rest namespaces (/es/⊆/stable/⊆/actual/⊆/full/)- Breaking
Avoided propagation of removed parts of proposals to upper stages. For example,
%TypedArray%.prototype.groupBywas removed from theArraygrouping proposal a long time ago. We can't completely remove this method since it's a breaking change. But this proposal has been promoted to stage 3 - so the proposal should be promoted without this method, this method should not be available in/actual/entries - but it should be available in early-stage entries to avoid breakage. - Breaking
Significant internal refactoring and splitting of modules (but without exposing to public API since it will be a breaking change - it will be exposed in the next major version)
Bug fixes:
Tooling: Stabilized proposals are filtered out from the
core-js-compat->core-js-builder->core-js-bundleoutput. That mean that if the output contains, for example,es.object.has-own, the legacy reference to it,esnext.object.has-own, no longer added.Tooling: Aligned modules filters of
core-js-builderandcore-js-compat, now it'smodulesandexcludeoptionsTooling: Added support of entry points, modules, regexes, and arrays of them to those filters
Tooling: Missed
targetsoption ofcore-js-compatmeans that thetargetsfilter just will not be applied, so the result will contain modules required for all possible enginesCompat data:
.stackproperty onDOMExceptionmarked as supported from Deno 1.15Added Deno 1.21 compat data mapping
Added Electron 19.0 and updated 18.0 compat data mapping
Added Samsung Internet 17.0 compat data mapping
Added Opera Android 68 compat data mapping
3.21.1
16 Feb 20223.21.0
1 Feb 2022Added Base64 utility methods:
Added the proper validation of arguments to some methods from web standards
Forced replacement of all features from early-stage proposals for avoiding possible web compatibility issues in the future
Added Base64 utility methods:
atobbtoa
Added the proper validation of arguments to some methods from web standards
Forced replacement of all features from early-stage proposals for avoiding possible web compatibility issues in the future
Added Rhino 1.7.14 compat data
Added Deno 1.19 compat data mapping
Added Opera Android 66 and 67 compat data mapping
Added iOS Safari 15.3 and 15.4 compat data mapping
3.20.3
15 Jan 2022Detects and replaces broken third-party
Function#bindpolyfills, uses only nativeFunction#bindin the internalsstructuredCloneshould throw an error if no arguments passedChanged the structure of notes in
__core-js_shared__
3.20.2
1 Jan 2022Added fixes of some different
%TypedArray%.prototype.setbugs, affects modern engines (like Chrome < 95 or Safari < 14.1)
3.20.1
23 Dec 2021Fixed the order of calling reactions of already fulfilled / rejected promises in
Promise.prototype.then, #1026Fixed possible memory leak in specific promise chains
Fixed some missed dependencies of entries
Fixed the order of calling reactions of already fulfilled / rejected promises in
Promise.prototype.then, #1026Fixed possible memory leak in specific promise chains
Fixed some missed dependencies of entries
Added Deno 1.18 compat data mapping
3.20.0
15 Dec 2021Added
structuredClonemethod from the HTML spec, see MDNAdded
DOMExceptionpolyfill, the Web IDL spec, see MDN
Added
structuredClonemethod from the HTML spec, see MDNIncludes 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
DOMExceptionpolyfill, the Web IDL spec, see MDNIncludes
DOMExceptionand its attributes polyfills with fixes of many different engines bugsIncludes
DOMException#stackproperty polyfill in engines that should have itReuses native
DOMExceptionimplementations where it's possible (for example, in old NodeJS where it's not exposed as global)
Added
Error.prototype.toStringmethod polyfill with fixes of many different bugs of JS enginesAdded
Number.prototype.toExponentialmethod polyfill with fixes of many different bugs of JS enginesMoved to stage 3
Added
Array.prototype.groupByToMapmethodRemoved
@@speciessupport
Added change
Arrayby copy stage 2 proposal:Array.prototype.toReversedArray.prototype.toSortedArray.prototype.toSplicedArray.prototype.with%TypedArray%.prototype.toReversed%TypedArray%.prototype.toSorted%TypedArray%.prototype.toSpliced%TypedArray%.prototype.with
Added
Iterator.prototype.toAsyncmethod from the iterator helpers stage 2 proposalArray.fromAsyncproposal moved to stage 2Added
Function.{ isCallable, isConstructor }stage 0 proposal:Function.isCallableFunction.isConstructor
Added a workaround of most cases breakage modern
String#atafter loading obsoleteString#atproposal module, #1019Fixed
Array.prototype.{ values, @@iterator }.namein 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/**namespaceAdded entry points for each finished post-ES6 proposal
3.19.3
6 Dec 2021Fixed internal slots check in methods of some built-in types, #1017
Fixed
URLSearchParamsiterator.nextthat should be enumerable by the specRefactored
Subscription
Fixed internal slots check in methods of some built-in types, #1017
Fixed
URLSearchParamsiterator.nextthat should be enumerable by the specRefactored
SubscriptionAdded NodeJS 17.2 compat data mapping
3.19.2
29 Nov 2021Added handling of comments and specific spaces to
Function#namepolyfill, #1010, thanks @ildar-shaimordanovPrevented some theoretical cases of breaking / observing the internal state by patching
Array.prototype[@@species]
Added a workaround for a UC Browser specific version bug with unobservable
RegExp#stickyflag, #1008, #1015Added handling of comments and specific spaces to
Function#namepolyfill, #1010, thanks @ildar-shaimordanovPrevented some theoretical cases of breaking / observing the internal state by patching
Array.prototype[@@species]Refactored
URLandURLSearchParamsAdded iOS Safari 15.2 compat data mapping
Added Electron 17.0 compat data mapping
Updated Deno compat data mapping
3.19.1
2 Nov 2021Added a workaround for FF26- bug where
ArrayBuffers are non-extensible, butObject.isExtensibledoes not report it:Fixed
Object#toStringonAggregateErrorin IE10-Fixed possible lack of dependencies of
WeakMapin IE8-
Added a workaround for FF26- bug where
ArrayBuffers are non-extensible, butObject.isExtensibledoes not report it:Fixed in
Object.{ isExtensible, isSealed, isFrozen }andReflect.isExtensibleFixed handling of
ArrayBuffers as collections keys
Fixed
Object#toStringonAggregateErrorin IE10-Fixed possible lack of dependencies of
WeakMapin IE8-.findLastmethods family marked as supported from Chrome 97Fixed inheritance of Electron compat data
web.modulesFixed Safari 15.1 compat data (some features were not added)
Added iOS Safari 15.1 compat data mapping
3.19.0
25 Oct 2021Most built-ins are encapsulated in
core-jsfor preventing possible cases of breaking / observing the internal state by patching / deleting of themClearing of
Errorstack from extra entries experimentally added toAggregateError, #996, in case lack of problems it will be extended to other casesIn engines with native
Symbolsupport, new well-known symbols created with usageSymbol.forfor ensuring the same keys in different realms, #998
Most built-ins are encapsulated in
core-jsfor preventing possible cases of breaking / observing the internal state by patching / deleting of themAvoid
.call/.applyprototype methods that could be patchedAvoid
instanceofoperator - implicit.prototype/@@hasInstanceaccess that could be patchedAvoid
RegExp#test,String#matchand some over methods - implicit.execandRegExpwell-known symbols access that could be patched
Clearing of
Errorstack from extra entries experimentally added toAggregateError, #996, in case lack of problems it will be extended to other casesIn engines with native
Symbolsupport, new well-known symbols created with usageSymbol.forfor ensuring the same keys in different realms, #998Added a workaround of a BrowserFS NodeJS
processpolyfill bug that incorrectly reports V8 version that's used in some cases ofcore-jsfeature detectionFixed normalization of
messageAggregateErrorargumentFixed order of arguments conversion in
Math.scale, a spec draft bugFixed
core-js-builderwork in NodeJS 17, added a workaround ofwebpack+ NodeJS 17 issueAdded NodeJS 17.0 compat data mapping
Added Opera Android 65 compat data mapping
Updated Electron 16.0 compat data mapping
Many other minor fixes and improvements
3.18.3
12 Oct 2021Fixed the prototype chain of
AggregateErrorconstructor that should containErrorconstructorFixed incorrect
AggregateError.prototypeproperties descriptorsFixed
InstallErrorCauseinternal operation
Fixed the prototype chain of
AggregateErrorconstructor that should containErrorconstructorFixed incorrect
AggregateError.prototypeproperties descriptorsFixed
InstallErrorCauseinternal operationAdded NodeJS 16.11 compat data mapping
Added Deno 1.16 compat data mapping
Object.hasOwnmarked as supported from Safari 15.1
3.18.2
5 Oct 2021Early
{ Array, %TypedArray% }.fromAsyncerrors moved to the promise, per the latest changes of the spec draftInternal
ToInteger(OrInfinity)operation returns+0for-0argument, ES2020+ updateFixed theoretical problems with handling bigint in
Numberconstructor wrapper
Early
{ Array, %TypedArray% }.fromAsyncerrors moved to the promise, per the latest changes of the spec draftInternal
ToInteger(OrInfinity)operation returns+0for-0argument, ES2020+ updateFixed theoretical problems with handling bigint in
Numberconstructor wrapperFixed
String.rawwith extra argumentsFixed some missed dependencies in entry points
Some other minor fixes and improvements
Refactoring
3.18.1
26 Sep 2021Fixed
String.prototype.substrfeature detection and compat dataAdded
causetoAggregateErrorconstructor implementation (still without adding to the feature detection)
Fixed
String.prototype.substrfeature detection and compat dataRemoved mistakenly added
.forEachfrom prototypes of some DOM collections where it shouldn't be, #988, #987, thanks @moorejsAdded
causetoAggregateErrorconstructor implementation (still without adding to the feature detection)Families of
.atand.findLastmethods marked as supported in Safari TPAdded Electron 16.0 compat data mapping
3.18.0
19 Sep 2021.nameand.toString()on polyfilled functions improved in many different casesImproved internal
IsConstructorandIsCallablechecks
Added
Array.fromAsyncstage 1 proposal:Array.fromAsync%TypedArray%.fromAsync
.nameand.toString()on polyfilled functions improved in many different casesImproved internal
IsConstructorandIsCallablechecksFixed some internal cases of
GetMethodoperationFixed a bug of MS Edge 18-
parseInt/parseFloatwith boxed symbolsFixed
es.array.{ index-of, last-index-of }compat dataAdded Deno 1.15 compat data mapping
Some other minor fixes and optimizations
3.17.3
9 Sep 2021Fixed some possible problems related to possible extension of
%IteratorPrototype%and%AsyncIteratorPrototype%in the futureFixed
DOMTokenList.prototype.{ forEach, @@iterator, keys, values, entries }in old WebKit versions whereelement.classListis not an instance of globalDOMTokenListAdded NodeJS 16.9 compat data mapping
Fixed some possible problems related to possible extension of
%IteratorPrototype%and%AsyncIteratorPrototype%in the futureFixed
DOMTokenList.prototype.{ forEach, @@iterator, keys, values, entries }in old WebKit versions whereelement.classListis not an instance of globalDOMTokenListAdded NodeJS 16.9 compat data mapping
Added Samsung Internet 16.0 compat data mapping
3.17.1
1 Sep 2021Fixed missed
modules-by-versionsdata
3.17.0
1 Sep 2021Accessible
Object.prototype.hasOwnProperty(Object.hasOwn) proposal moved to the stable ES, per August 2021 TC39 meetingRelative indexing method (
.at) proposal moved to the stable ES, per August 2021 TC39 meetingExposed by default the stable version of
String.prototype.at. It was not exposed because of the conflict with the alternative obsolete proposal (that will be completely removed in the next major version). For the backward compatibility, in the case of loading this proposal, it will be overwritten.
Accessible
Object.prototype.hasOwnProperty(Object.hasOwn) proposal moved to the stable ES, per August 2021 TC39 meetingRelative indexing method (
.at) proposal moved to the stable ES, per August 2021 TC39 meetingExposed by default the stable version of
String.prototype.at. It was not exposed because of the conflict with the alternative obsolete proposal (that will be completely removed in the next major version). For the backward compatibility, in the case of loading this proposal, it will be overwritten.Some more iteration closing fixes
Fixed an ES3 reserved words usage, #980
3.16.4
29 Aug 2021AsyncFromSyncIteratormade stricter, related mainly toAsyncIterator.fromandAsyncIterator.prototype.flatMapHandling of optional
.nextarguments in(Async)Iteratormethods is aligned with the current spec draft (mainly - ignoring the first passed to.nextargument in built-in generators)Behavior of
.next,.return,.throwmethods onAsyncIteratorhelpers proxy iterators aligned with the current spec draft (built-in async generators) (mainly - some early errors moved to returned promises)
AsyncFromSyncIteratormade stricter, related mainly toAsyncIterator.fromandAsyncIterator.prototype.flatMapHandling of optional
.nextarguments in(Async)Iteratormethods is aligned with the current spec draft (mainly - ignoring the first passed to.nextargument in built-in generators)Behavior of
.next,.return,.throwmethods onAsyncIteratorhelpers proxy iterators aligned with the current spec draft (built-in async generators) (mainly - some early errors moved to returned promises)Fixed some cases of safe iteration closing
Fixed dependencies of some entry points
3.16.0
30 Jul 2021Arrayfind from last proposal moved to the stage 3, July 2021 TC39 meeting
Arrayfind from last proposal moved to the stage 3, July 2021 TC39 meetingArrayfiltering stage 1 proposal:Array.prototype.filterRejectreplacesArray.prototype.filterOut%TypedArray%.prototype.filterRejectreplaces%TypedArray%.prototype.filterOut
Added
Arraygrouping stage 1 proposal:Array.prototype.groupBy%TypedArray%.prototype.groupBy
Work with symbols made stricter: some missed before cases of methods that should throw an error on symbols now works as they should
Handling
@@toPrimitivein some cases ofToPrimitiveinternal logic made stricterFixed work of
Requestwith polyfilledURLSearchParams, #965Fixed possible exposing of collections elements metadata in some cases, #427
Fixed crashing of
Object.create(null)on WSH, #966Fixed some cases of typed arrays subclassing logic
Fixed a minor bug related to string conversion in
RegExp#execFixed
Date.prototype.getYearfeature detectionFixed content of some entry points
Some minor optimizations and refactoring
Deno: Added Deno support (sure, after bundling since Deno does not support CommonJS)
Deno: Allowed
denotarget incore-js-compat/core-js-builderDeno: A bundle for Deno published on deno.land/x/corejs
Added / updated compat data / mapping:
Added
summaryoption tocore-js-builder, see more info in theREADME, #910
3.15.0
20 Jun 2021Added missed polyfills of Annex B features (required mainly for some non-browser engines), #336, #945:
escapeunescapeString.prototype.substrDate.prototype.getYearDate.prototype.setYearDate.prototype.toGMTString
Fixed detection of forbidden host code points in
URLpolyfillAllowed
rhinotarget incore-js-compat/core-js-builder, added compat data forrhino1.7.13, #942, thanks @gausie.atmarked as supported from FF90
3.13.0
25 May 2021Accessible
Object#hasOwnProperty(Object.hasOwn) proposal moved to the stage 3, May 2021 TC39 meeting
3.12.1
8 May 2021Fixed some cases of
Function#toStringwith multiplecore-jsinstancesFixed some possible
String#splitpolyfill problems in V8 5.1
3.12.0
6 May 2021Added well-known symbol
Symbol.metadatafor decorators stage 2 proposalAdded well-known symbol
Symbol.matcherfor pattern matching stage 1 proposalFixed regression of V8 ~ Node 0.12
String(Symbol())bug, #933
3.11.3
5 May 2021Native promise-based APIs
Promise#{ catch, finally }returns polyfilledPromiseinstances when it's required
3.11.2
3 May 2021Added a workaround of WebKit ~ iOS 10.3 Safari
Promisebug, #932Promise#thenof incorrect nativePromiseimplementations with correct subclassing no longer wrappedChanged the order of
Promisefeature detection, removed unhandled rejection tracking check in non-browser non-node platforms
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.