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.x · latest line
3.11.0
22 Apr 2021Fixed a possible
RegExpconstructor problem with multiple globalcore-jsinstances
3.10.2
19 Apr 2021URLandURLSearchParamsmarked as supported from Safari 14.0Polyfilled built-in constructors protected from calling on instances
3.10.0
31 Mar 2021Arrayfind from last proposal moved to the stage 2, March TC39 meetingPrevented possible
RegExp#execproblems in some old engines, #920Updated compat data mapping:
3.9.1
28 Feb 2021Added a workaround for Chrome 38-40 bug which does not allow to inherit symbols (incl. well-known) from DOM collections prototypes to instances, #37
Used
NumericRangeIteratoras toStringTag instead ofRangeIteratorin{ Number, BigInt }.rangeiterator, per this PRTypedArray constructors marked as supported from Safari 14.0
Added a workaround for Chrome 38-40 bug which does not allow to inherit symbols (incl. well-known) from DOM collections prototypes to instances, #37
Used
NumericRangeIteratoras toStringTag instead ofRangeIteratorin{ Number, BigInt }.rangeiterator, per this PRTypedArray constructors marked as supported from Safari 14.0
Updated compat data mapping for iOS Safari and Opera for Android
3.9.0
18 Feb 2021- Removed
Dropped
ToLengthdetection from array methods feature detection which could cause hanging FF11-21 and some versions of old WebKit, #764 Added
%TypedArray%#uniqueBymethod for array deduplication stage 1 proposal
Added
Arrayfind from last stage 1 proposalArray#findLastArray#findLastIndex%TypedArray%#findLast%TypedArray%#findLastIndex
Added
%TypedArray%#uniqueBymethod for array deduplication stage 1 proposal%TypedArray%#uniqueBy
- Removed
Dropped
ToLengthdetection from array methods feature detection which could cause hanging FF11-21 and some versions of old WebKit, #764 Minified bundle from
core-js-bundleusesterserinstead ofuglify-js
3.8.1
6 Dec 2020Fixed work of new
%TypedArray%methods onBigIntarraysAdded ESNext methods to ES3 workaround for
Numberconstructor wrapper
3.8.0
25 Nov 2020- Deprecated
Deprecate
core-js-builderblacklistoption in favor ofexclude
Added relative indexing method stage 3 proposal
Array#at%TypedArray%#at
Added
Number.rangestage 1 proposalNumber.rangeBigInt.range
Added array filtering stage 1 proposal
Array#filterOut%TypedArray%#filterOut
Added array deduplication stage 1 proposal
Array#uniqueBy
Added code points / code units explicit feature detection in
String#atfor preventing breakage code which use obsoleteString#atproposal polyfillAdded the missed
(es|stable)/instance/replace-allentriesUpdated compat data mapping for Opera - from Opera 69, the difference with Chrome versions increased to 14
Compat data mapping for modern Android WebView to Chrome moved from targets parser directly to compat data
- Deprecated
Deprecate
core-js-builderblacklistoption in favor ofexclude
3.7.0
6 Nov 2020String#replaceAllmoved to the stable ES, per June TC39 meetingPromise.anyandAggregateErrormoved to the stable ES, per July TC39 meetingAdded
Reflect[@@toStringTag], per July TC39 meeting
String#replaceAllmoved to the stable ES, per June TC39 meetingPromise.anyandAggregateErrormoved to the stable ES, per July TC39 meetingAdded
Reflect[@@toStringTag], per July TC39 meetingForced replacement of
Array#{ reduce, reduceRight }in Chrome 80-82 because of a bug, #766Following the changes in the
upsertproposal,{ Map, WeakMap }#emplacereplace{ Map, WeakMap }#upsert, these obsolete methods will be removed in the next major releaseBy the current spec,
AggregateError#errorsis own data propertyAdded correct iteration closing in the iteration helpers according to the current version of the proposal
process.nextTickhave a less priority thanPromisein the microtask implementation, #855Fixed microtask implementation in engines with
MutationObserver, but withoutdocument, #865, #866Fixed
core-js-builderwith an empty (after the targets engines or another filtration) modules list, #822Fixed possible twice call of
window.onunhandledrejection, #760Fixed some possible problems related multiple global copies of
core-js, #880Added a workaround for 3rd party
Reflect.setpolyfill bug, #847Updated compat data:
Chrome up to 86
FF up to 82
Safari up to 14
Updated compat data mapping:
iOS up to 14
NodeJS up to 15.0
Electron up to 11.0
Samsung Internet up to 13.0
Opera Android up to 60
The rest automatically
Updated all required dependencies
3.6.5
9 Apr 20203.6.4
13 Jan 2020Prevented a possible almost infinite loop in non-standard implementations of some backward iteration array methods
3.6.3
10 Jan 2020Fixed replacement of substitutes of undefined capture groups in
.replacein Safari 13.0-, #471, #745, thanks @mattclough1Improved compat data for old engines
3.6.2
6 Jan 2020Fixed early implementations of
Array#{ every, forEach, includes, indexOf, lastIndexOf, reduce, reduceRight, slice, some, splice }for the usage ofToLengthAdded
RegExp#execdependency to methods which depends on the correctness of logic of this method (3.6.0-3.6.1issue), #741Refactored some internals
3.6.0
18 Dec 2019Added support of sticky (
y)RegExpflag, #372, #732, #492, thanks @cvle and @nicolo-ribaudo
Added support of sticky (
y)RegExpflag, #372, #732, #492, thanks @cvle and @nicolo-ribaudoAdded
RegExp#testdelegation toRegExp#exec, #732, thanks @cvleFixed some cases of
Object.create(null)in IE8-, #727, #728, thanks @aleen42Allowed object of minimum environment versions as
core-js-compatandcore-js-buildertargetsargumentAllowed corresponding to Babel
targets.esmodules,targets.browsers,targets.nodeoptions incore-js-compatandcore-js-builderEngines in compat data and results of targets parsing sorted alphabetically
Fixed
features/instance/match-allentry compat dataFixed
Array.prototype[@@unscopables]descriptor (was writable)Added Samsung Internet 11 compat data mapping
3.5.0
12 Dec 20193.4.8
8 Dec 2019Added one more workaround for broken in previous versions
inspectSourcehelper, #719Added Opera Mobile compat data
Updated Samsung Internet, iOS, old Node and Android compat data mapping
Added one more workaround for broken in previous versions
inspectSourcehelper, #719Added Opera Mobile compat data
Updated Samsung Internet, iOS, old Node and Android compat data mapping
es.string.match-allmarked as completely supported in FF73Generate
core-js-compat/modulessince often we need just the list ofcore-jsmodules
3.4.7
2 Dec 2019Fixed an NPM publishing issue
3.4.6
2 Dec 2019Improved iOS compat data - added missed mapping iOS 12.2 -> Safari 12.1, added bug fixes from patch releases
Added Safari 13.1 compat data
Added missed in
core-js-compathelpersie_mobnormalization
Improved iOS compat data - added missed mapping iOS 12.2 -> Safari 12.1, added bug fixes from patch releases
Added Safari 13.1 compat data
Added missed in
core-js-compathelpersie_mobnormalizationNormalize the result of
getModulesListForTargetVersioncore-js-compathelperImproved CI detection in the
postinstallscript, #707
3.4.5
27 Nov 2019Detect incorrect order of operations in
Object.assign, MS Edge bugDetect usage of
ToLengthinArray#{ filter, map }, FF48-49 and MS Edge 14- issuesDetect incorrect MS Edge 17-18
Reflect.setwhich allows setting the property to object with non-writable property on the prototype
Detect incorrect order of operations in
Object.assign, MS Edge bugDetect usage of
ToLengthinArray#{ filter, map }, FF48-49 and MS Edge 14- issuesDetect incorrect MS Edge 17-18
Reflect.setwhich allows setting the property to object with non-writable property on the prototypeFixed
inspectSourcehelper with multiplecore-jscopies and some related features like some edge cases ofPromisefeature detection
3.4.4
27 Nov 2019Added feature detection for Safari non-generic
Promise#finallybug (critical forcore-js-pure)Fixed missed
esnext.string.code-pointsincore-js/features/stringentry pointUpdated
Iteratorproposal feature detection for the case of non-standardIteratorin FF44-
3.4.3
26 Nov 2019Fixed missed
es.json.stringifyand some modules from iteration helpers proposal in some entry pointsAdded a workaround of
String#{ endsWith, startsWith }MDN polyfills bugs, #702Fixed
.sizeproperty descriptor ofMap/Setin the pure version
Fixed missed
es.json.stringifyand some modules from iteration helpers proposal in some entry pointsAdded a workaround of
String#{ endsWith, startsWith }MDN polyfills bugs, #702Fixed
.sizeproperty descriptor ofMap/Setin the pure versionRefactoring, some internal improvements
3.4.2
21 Nov 2019Don't use polyfilled symbols as internal uids, a workaround for some incorrect use cases
String#replaceAllis available only in nightly FF buildsImproved
Promisefeature detection for the case of V8 6.6 with multiplecore-jscopies
Don't use polyfilled symbols as internal uids, a workaround for some incorrect use cases
String#replaceAllis available only in nightly FF buildsImproved
Promisefeature detection for the case of V8 6.6 with multiplecore-jscopiesSome internals optimizations
Added Node 13.2 -> V8 7.9 compat data mapping
Returned usage of
node -einpostinstallscripts
3.4.1
12 Nov 2019Throw when
(Async)Iterator#flatMapmapper returns a non-iterable, per tc39/proposal-iterator-helpers/55 and tc39/proposal-iterator-helpers/59Removed own
AggregateError#toString, per tc39/proposal-promise-any/49Global
core-jsPromisepolyfill passes feature detection in the pure versions
Throw when
(Async)Iterator#flatMapmapper returns a non-iterable, per tc39/proposal-iterator-helpers/55 and tc39/proposal-iterator-helpers/59Removed own
AggregateError#toString, per tc39/proposal-promise-any/49Global
core-jsPromisepolyfill passes feature detection in the pure versionsFixed indexes in
String#replaceAllcallbacksString#replaceAllmarked as supported by FF72
3.4.0
6 Nov 2019Added well-formed
JSON.stringify, ES2019 feature, thanks @ExE-Boss and @WebReflection for the ideaFixed
Math.signbit, #687, thanks @chicoxyzzy
3.3.5
28 Oct 2019Added a workaround of V8 deoptimization which causes serious performance degradation (~4x in my tests) of
Array#concat, #679Added a workaround of V8 deoptimization which causes slightly performance degradation of
Promise, #679Added
(Async)Iterator.prototype.constructor -> (Async)Iteratorper this issue
Added a workaround of V8 deoptimization which causes serious performance degradation (~4x in my tests) of
Array#concat, #679Added a workaround of V8 deoptimization which causes slightly performance degradation of
Promise, #679Added
(Async)Iterator.prototype.constructor -> (Async)Iteratorper this issueAdded compat data for Chromium-based Edge
3.3.4
25 Oct 2019Added a workaround of V8 deoptimization which causes serious performance degradation (~20x in my tests) of some
RegExp-related methods likeString#split, #306Added a workaround of V8 deoptimization which causes serious performance degradation (up to 100x in my tests) of
Array#spliceand slightlyArray#{ filter, map }, #677Fixed work of
fetchwith polyfilledURLSearchParams, #674
Added a workaround of V8 deoptimization which causes serious performance degradation (~20x in my tests) of some
RegExp-related methods likeString#split, #306Added a workaround of V8 deoptimization which causes serious performance degradation (up to 100x in my tests) of
Array#spliceand slightlyArray#{ filter, map }, #677Fixed work of
fetchwith polyfilledURLSearchParams, #674Fixed an edge case of
String#replaceAllwith an empty search valueAdded compat data for Chrome 80
package-lock.jsonno longer generated in libraries
3.3.3
21 Oct 2019- Removed
gopherremoved fromURLspecial cases per this issue and this PR Added compat data for iOS 13 and Node 13.0
3.3.1
13 Oct 2019Fixed an NPM publishing issue
3.3.0
13 Oct 2019- 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 meeting
- 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
3.2.0
8 Aug 2019Promise.allSettledmoved to stable ES, per July TC39 meetingPromise.anymoved to stage 2,.errorsproperty ofAggregateErrorinstances made non-enumerable, per July TC39 meetingusingstatement proposal moved to stage 2, addedSymbol.asyncDispose, per July TC39 meeting
Promise.allSettledmoved to stable ES, per July TC39 meetingPromise.anymoved to stage 2,.errorsproperty ofAggregateErrorinstances made non-enumerable, per July TC39 meetingusingstatement proposal moved to stage 2, addedSymbol.asyncDispose, per July TC39 meetingAdded
Array.isTemplateObjectstage 2 proposal, per June TC39 meetingAdded
Map#updateOrInsertstage 1 proposal, per July TC39 meetingAdded a fix for
Math.hypotV8 7.7 bug, since it's still not stable without adding results tocore-js-compatAdded a workaround for APIs where not possible to replace broken native
Promise, #579 - added.finallyand patched.thento / on nativePromiseprototypeFixed crashing of Opera Presto, #595
Fixed incorrect early breaking of
{ Map, Set, WeakMap, WeakSet }.deleteAllFixed some missed dependencies in entry points
Added compat data for Node 12.5, FF 67, Safari 13
Added support of
DISABLE_OPENCOLLECTIVEenv variable topostinstallscriptRemoved
core-js-puredependency fromcore-js-compat, #590Fixed generation of
core-js-compaton Windows, #606
3.1.4
15 Jun 2019Refactoring. Many minor internal improvements and fixes like:
3.1.1
20 May 2019Reverted
esnext.string.match-allin some entry points for fix autogeneration ofcore-js-compat/entriesand backward@babel/preset-envcompatibility
3.1.0
19 May 2019String#matchAllmoved to stable ES, exposedSymbol.matchAll, #516Promise.allSettledmoved to stage 3, #515
String#matchAllmoved to stable ES, exposedSymbol.matchAll, #516Promise.allSettledmoved to stage 3, #515String#replaceAllmoved to stage 2, behavior updated by the spec draft, #524Promise.anymoved to stage 1, #517- Removed
Removed
es.regexp.flagsdependency fromes.regexp.to-string, #536, #537 Fixed IE8- non-enumerable properties support in
Object.{ assign, entries, values }, #541Fixed support of primitives in
Object.getOwnPropertySymbolsin Chrome 38 / 39, #539window.postMessage-based task implementation uses location origin over'*', #542Lookup
PromiseConstructor.resolveonly once inPromisecombinators, tc39/ecma262#1506Temporarily removed
core-jsdependency fromcore-js-compatsince it's required for missed at this moment featureShow a message on
postinstallAdded compat data for Chrome 76, FF 67, Node 12
3.0.0
19 Mar 2019Features
Bug and compatibility fixes:
Repository: Change
core-jsrepository structure to monorepo with packages in/packages/directory.
Features
Add new features:
Object.fromEntries(ECMAScript 2019)Symbol#description(ECMAScript 2019)New
Setmethods (stage 2 proposal)Set#differenceSet#intersectionSet#isDisjointFromSet#isSubsetOfSet#isSupersetOfSet#symmetricDifferenceSet#union
Promise.allSettled(stage 2 proposal)Getting last item from
Array(stage 1 proposal)Array#lastItemArray#lastIndex
String#replaceAll(stage 1 proposal)String#codePoints(stage 1 proposal)New collections methods (stage 1 proposal)
Map.groupByMap.keyByMap#deleteAllMap#everyMap#filterMap#findMap#findKeyMap#includesMap#keyOfMap#mapKeysMap#mapValuesMap#mergeMap#reduceMap#someMap#updateSet#addAllSet#deleteAllSet#everySet#filterSet#findSet#joinSet#mapSet#reduceSet#someWeakMap#deleteAllWeakSet#addAllWeakSet#deleteAll
compositeKeyandcompositeSymbolmethods (stage 1 proposal)Number.fromString(stage 1 proposal)Math.seededPRNG(stage 1 proposal)Symbol.patternMatch(for stage 1 pattern matching proposal)Symbol.dispose(for stage 1usingstatement proposal)Promise.any(withAggregateError) (stage 0 proposal)URLandURLSearchParamsfromURLstandard, also stage 0 proposal to ECMAScriptURL:
URL#hrefURL:
URL#originURL:
URL#protocolURL:
URL#usernameURL:
URL#passwordURL:
URL#hostURL:
URL#hostnameURL:
URL#portURL:
URL#pathnameURL:
URL#searchURL:
URL#searchParamsURL:
URL#hashURL:
URL#toStringURL:
URL#toJSONURLSearchParams:
URLSearchParams#appendURLSearchParams:
URLSearchParams#deleteURLSearchParams:
URLSearchParams#getURLSearchParams:
URLSearchParams#getAllURLSearchParams:
URLSearchParams#hasURLSearchParams:
URLSearchParams#setURLSearchParams:
URLSearchParams#sortURLSearchParams:
URLSearchParams#toStringURLSearchParams:
URLSearchParams#keysURLSearchParams:
URLSearchParams#valuesURLSearchParams:
URLSearchParams#entriesURLSearchParams:
URLSearchParams#@@iterator
.forEachmethod on iterable DOM collections
Improve existing features:
Add triggering unhandled
Promiserejection events (instead of only global handlers), #205.Wrap
fetchfor correct with polyfilledPromiseand preventing problems like #178, #332, #371.Add support of
@@isConcatSpreadabletoArray#concat.Add support of
@@speciestoArray#{concat, filter, map, slice, splice}.Add direct
.execcalling toRegExp#{@@replace, @@split, @@match, @@search}. Also, added fixes forRegExp#execmethod. #411, #434, #453, thanks @nicolo-ribaudo.Correct iterators prototypes chain, related #261.
Correct Typed Arrays prototypes chain, related #378.
Make the internal state of polyfilled features completely unobservable, #146.
Add validation of receiver's internal class to missed non-generic methods.
Fix descriptors of global properties.
In the version without global pollution, if
Object#toStringdoes not support@@toStringTag, add to wrapped prototypes owntoStringmethod with@@toStringTaglogic, see #199.
Update standard features and proposals:
asap(old stage 0 proposal) replaced byqueueMicrotask(a part of HTML spec)Update
Observable(#257, #276, etc.)Update
Array#flatten->Array#flatandArray#flatMapUpdate
globalstage 3 proposal - renameglobaltoglobalThisUpdate
String#matchAll(proposal-string-matchall#17, proposal-string-matchall#38, proposal-string-matchall#41, etc.) and move to the stage 3Update
.nameproperties ofString#{trimStart, trimEnd , trimLeft, trimRight}, move to the stage 3Remove Mongolian vowel separator (U+180E) from the list of whitespaces for methods like
String#trim(ES6 -> ES7)
Mark ES2016, ES2017, ES2018, ES2019 features as stable:
Array#{ flat, flatMap }{ Array, %TypedArray% }#includesObject.{ values, entries}Object.getOwnPropertyDescriptorsString#{ padStart, padEnd }String#{ trimStart, trimEnd, trimLeft, trimRight }Promise#finallySymbol.asyncIteratorObject#__(define|lookup)[GS]etter__
Remove obsolete features:
Error.isError(withdrawn)System.globalandglobal(replaced byglobalThis)Map#toJSONandSet#toJSON(rejected)RegExp.escape(rejected)Reflect.enumerate(removed from the spec)Unnecessary iteration methods from
CSSRuleList,MediaList,StyleSheetList
No more non-standard features, finally removed:
DictObject.{classof, isObject, define, make}Function#partNumber#@@iteratorString#{escapeHTML, unescapeHTML}delay
Add
.shamflag to features which can't be properly polyfilled and / or not recommended for usage:Symbolconstructor - we can't add new primitives.Object.prototypeaccessors too expensive.Object.{create, defineProperty, defineProperties, getOwnPropertyDescriptor, getOwnPropertyDescriptors},Reflect.{defineProperty, getOwnPropertyDescriptor}can't be properly polyfilled without descriptors support.Object.{freeze, seal, preventExtensions},Reflect.preventExtensionscan't be properly polyfilled in ES3 environment.Object.getPrototypeOfcan be deceived in ES3 environment.Reflect.constructcan't be polyfilled for a correct work withnewTargetargument on built-ins.Typed Array constructors polyfill is quite correct but too expensive.
URLconstructor in engines without descriptors support.
Bug and compatibility fixes:
Fix deoptimisation of iterators in V8, #377.
Fix import of property before constructor which should contain this property, #262.
Fix some cases of IE11
WeakMapfrozen keys fallback, #384.Fix non-enumerable integer keys issue because of Nashorn ~ JDK8 bug, #389.
One more fix for microtasks in iOS related #339.
Many other internal fixes and improvements.
Repository: Change
core-jsrepository structure to monorepo with packages in/packages/directory.Repository: Clean-up it, remove all possible duplicates, generated files, etc.
Packages: Extract a version without global namespace pollution to a separate
core-js-purepackage (replacement forcore-js/library).Packages: Leave only one pair of bundles (global, with all polyfills) and move it to
core-js-bundlepackage.Packages: Remove bundling logic from
core-jspackage, leave it only incore-js-builderpackage.Packages: Clean-up packages.
Packages: Because of all approaches, reduce size of packages from ~2mb for
core-js@2to:~500kb for
core-jspackage~440kb for
core-js-purepackage
Packages: Finally remove
bower.jsonCommonJS API, namespaces:
Add availability configuration of aggressiveness.
Move
core-js/libraryto separatecore-js-purepackage.Because of removing all non-standard features, we no longer need
core-js/shimentry point, replace it just withcore-js.Move all features from ES5, ES2015, ES2016, ES2017, ES2018 and ES2019 to one namespace for stable ES - it's available as
core-js/es, all those features inmodulesfolder hases.prefix.Change prefix for ES proposals from
es7.toesnext., they no longer available incore-js/es7, usecore-js/stage/*instead of that.Rename
core-js(/library)/fntocore-js(-pure)/featuresfor improve readability.Allow more granular inclusion of features from
/es/path (for example,core-js/es/array/from).Add
/stable/entry points as an equal of/features/for stable features, without proposals.Add
/proposals/entry points for allow include all features from one proposal (for example,core-js/proposals/reflect-metadata).Add
/es|stable|features/instance/entry points for getting polyfill of the related method for passed instance (could be used in cases likebabel-runtime).Split typed arrays polyfills. Now you can, for example, load only required method (for example,
core-js/es/typed-array/from).Extract well-known symbols definition from
es.symbolmodule for loading only required features, for example, in MS Edge.Rename
web.domnamespace toweb.dom-collections.Rename
es6.regexp.{match, replace, search, split}->es.string.{match, replace, search, split}- mainly it's fixes / adding support of well-known symbols to string methods, only in second place adding related methods to regexp prototype.Relax
/modules/directory by moving internal modules to/internals/directory.Remove deprecated array entry points:
core-js(/library)/fn/array/{pop, push, reverse, shift, unshift}.coreobject no longer available in the global version, entry points which previously returned it now returnsglobalThisobject. Also, don't set globalcoreproperty.Add some missing entry points.
Tools, tests, code quality:
Added
core-js-compatpackage with:Data about the necessity of
core-jsmodules and API for getting a list of requiredcore-jsmodules bybrowserslistquery, #466.Data which modules load by each entry point (mainly useful for tools like
@babel/preset-env).Data which modules added in minor versions (mainly useful for tools like
@babel/preset-env).
core-js-builderpackage:Added
targetsoption withbrowserslistquery.Removed an option for generation bundle of a version without global namespace pollution - now it's an odd use case.
Removed UMD wrapper from a generated code of bundles - we don't need it for a global polyfill.
Getting rid of LiveScript, usage another language in JS standard library looks strange and impedes usage of tools like ESLint:
Tests are rewritten to JS.
Scripts are rewritten to JS.
Babel with minimalistic config (which should work anywhere) used on tests.
ESLint used on tests and tools.
Source code refactored for improving readability.
- 2.x
2.6.12
25 Nov 2020Added code points / code units explicit feature detection in
String#atfor preventing breakage code which use obsoleteString#atproposal polyfillAdded
OPEN_SOURCE_CONTRIBUTORdetection inpostinstallAdded Drone CI detection in
postinstall
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.