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.
- 2.x
2.6.0
5 Dec 2018Add direct
.execcalling toRegExp#{@@replace, @@split, @@match, @@search}. Also, added fixes forRegExp#execmethod. #428, #435, #458, thanks @nicolo-ribaudo.
2.5.6
7 May 2018Forced replace native
Promisein V8 6.6 (Node 10 and Chrome 66) because of a bug with resolving custom thenablesAdded a workaround for usage buggy native LG WebOS 2
Promisein microtask implementation, #396Added modern version internal debugging information about used versions
2.5.4
27 Mar 20182.5.1
31 Aug 2017Updated
Promise#finallyper tc39/proposal-promise-finally#37Optimized usage of some internal helpers for reducing size of
shimversionFixed some entry points for virtual methods
2.5.0
6 Aug 2017Added
Promise#finallystage 3 proposal, #225Added
Promise.trystage 1 proposalAdded
Array#flattenandArray#flatMapstage 1 proposal
Added
Promise#finallystage 3 proposal, #225Added
Promise.trystage 1 proposalAdded
Array#flattenandArray#flatMapstage 1 proposalAdded
.ofand.frommethods on collection constructors stage 1 proposal:Map.ofSet.ofWeakSet.ofWeakMap.ofMap.fromSet.fromWeakSet.fromWeakMap.from
Added
Mathextensions stage 1 proposal, #226:Math.clampMath.DEG_PER_RADMath.degreesMath.fscaleMath.RAD_PER_DEGMath.radiansMath.scale
Added
Math.signbitstage 1 proposalUpdated
globalstage 3 proposal - addedglobalglobal object,System.globaldeprecatedUpdated
Object.getOwnPropertyDescriptorsto the final version - it should not create properties if descriptors areundefinedUpdated the list of iterable DOM collections, #249, added:
CSSStyleDeclaration#@@iteratorCSSValueList#@@iteratorClientRectList#@@iteratorDOMRectList#@@iteratorDOMStringList#@@iteratorDataTransferItemList#@@iteratorFileList#@@iteratorHTMLAllCollection#@@iteratorHTMLCollection#@@iteratorHTMLFormElement#@@iteratorHTMLSelectElement#@@iteratorMimeTypeArray#@@iteratorNamedNodeMap#@@iteratorPaintRequestList#@@iteratorPlugin#@@iteratorPluginArray#@@iteratorSVGLengthList#@@iteratorSVGNumberList#@@iteratorSVGPathSegList#@@iteratorSVGPointList#@@iteratorSVGStringList#@@iteratorSVGTransformList#@@iteratorSourceBufferList#@@iteratorTextTrackCueList#@@iteratorTextTrackList#@@iteratorTouchList#@@iterator
Updated stages of proposals:
Updated typed arrays to the modern (ES2016+) arguments validation, #293
Fixed
%TypedArray%.fromSafari bug, #285Fixed compatibility with old version of Prototype.js, #278, #289
Function#nameno longer cache the result for correct behavior with inherited constructors, #296Added errors on incorrect context of collection methods, #272
Fixed conversion typed array constructors to string, fix #300
Fixed
Set#sizewith debugger ReactNative for Android, #297Fixed an issue with Electron-based debugger, #230
Fixed compatibility with incomplete third-party
WeakMappolyfills, #252Added a fallback for
Date#toJSONin engines without nativeDate#toISOString, #220Added support for Sphere Dispatch API, #286
Seriously changed the coding style and the ESLint config
Updated many dev dependencies (
webpack,uglify, etc)Some other minor fixes and optimizations
2.4.0
8 May 2016Added
Observable, stage 1 proposalFixed behavior
Object.{getOwnPropertySymbols, getOwnPropertyDescriptor}andObject#propertyIsEnumerableonObject.prototypeReflect.constructandReflect.applyshould throw an error ifargumentsListargument is not an object, #194
2.3.0
23 Apr 2016Added
asapfor enqueuing microtasks, stage 0 proposalAdded well-known symbol
Symbol.asyncIteratorfor stage 2 async iteration proposalAdded well-known symbol
Symbol.observablefor stage 1 observables proposal
Added
asapfor enqueuing microtasks, stage 0 proposalAdded well-known symbol
Symbol.asyncIteratorfor stage 2 async iteration proposalAdded well-known symbol
Symbol.observablefor stage 1 observables proposalString#{padStart, padEnd}returns original string if filler is empty string, TC39 meeting notesObject.valuesandObject.entriesmoved to stage 4 from 3, TC39 meeting notesSystem.globalmoved to stage 2 from 1, TC39 meeting notesMap#toJSONandSet#toJSONrejected and will be removed from the next major release, TC39 meeting notesError.isErrorwithdrawn and will be removed from the next major release, TC39 meeting notesAdded fallback for
Function#nameon non-extensible functions and functions with brokentoStringconversion, #193
2.2.2
6 Apr 2016Added conversion
-0to+0toArray#{indexOf, lastIndexOf}, ES2016 fixAdded fixes for some
Mathmethods in Tor BrowserArray.{from, of}no longer calls prototype setters
Added conversion
-0to+0toArray#{indexOf, lastIndexOf}, ES2016 fixAdded fixes for some
Mathmethods in Tor BrowserArray.{from, of}no longer calls prototype settersAdded workaround over Chrome DevTools strange behavior, #186
2.2.0
15 Mar 2016Added
String#matchAll, proposalAdded
Object#__(define|lookup)[GS]etter__, annex B ES2017Added
@@toPrimitivemethods toDateandSymbol
Added
String#matchAll, proposalAdded
Object#__(define|lookup)[GS]etter__, annex B ES2017Added
@@toPrimitivemethods toDateandSymbolFixed
%TypedArray%#slicein Edge ~ 13 (throws with@@speciesand wrapped / inherited constructor)Some other minor fixes
2.1.3
29 Feb 2016Added fallback for
es6-promisepackage bug, #176
2.1.2
29 Feb 2016Some minor
Promisefixes:
2.1.1
22 Feb 2016Some
Promiseimprovements:
2.1.0
8 Feb 2016API: ES5 polyfills are split and logic, used in other polyfills, moved to internal modules
API:
Object.getOwnPropertyDescriptorsmoved to the stage 3, January TC39 meetingAPI: Added
umdoption for custom build process, #169
API: ES5 polyfills are split and logic, used in other polyfills, moved to internal modules
All entry point works in ES3 environment like IE8- without
core-js/(library/)es5Added all missed single entry points for ES5 polyfills
Separated ES5 polyfills moved to the ES6 namespace. Why?
Mainly, for prevent duplication features in different namespaces - logic of most required ES5 polyfills changed in ES6+:
Already added changes for:
Objectstatics - should accept primitives, new whitespaces lists inString#trim,parse(Int|float),RegExp#toStringlogic,String#split, etcShould be changed in the future:
@@speciesandToLengthlogic inArraymethods,Dateparsing,Function#bind, etcShould not be changed only several features like
Array.isArrayandDate.now
Some ES5 polyfills required for modern engines
All old entry points should work fine, but in the next major release API can be changed
API:
Object.getOwnPropertyDescriptorsmoved to the stage 3, January TC39 meetingAPI: Added
umdoption for custom build process, #169API: Returned entry points for
Arraystatics, removed in2.0, for compatibility withbabel6and for future fixesDeprecated:
Reflect.enumeratedeprecated and will be removed from the next major release, January TC39 meetingNew Features: Added
Reflectmetadata API as a pre-strawman feature, #152:Reflect.defineMetadataReflect.deleteMetadataReflect.getMetadataReflect.getMetadataKeysReflect.getOwnMetadataReflect.getOwnMetadataKeysReflect.hasMetadataReflect.hasOwnMetadataReflect.metadata
New Features: Implementation / fixes
Date#toJSONNew Features: Fixes for
parseIntandNumber.parseIntNew Features: Fixes for
parseFloatandNumber.parseFloatNew Features: Fixes for
RegExp#toStringNew Features: Fixes for
Array#sortNew Features: Fixes for
Number#toFixedNew Features: Fixes for
Number#toPrecisionNew Features: Additional fixes for
String#split(RegExp#@@split)Improvements: Correct subclassing wrapped collections,
NumberandRegExpconstructors with native class syntaxImprovements: Correct support
SharedArrayBufferand buffers from other realms in typed arrays wrappersImprovements: Additional validations for
Object.{defineProperty, getOwnPropertyDescriptor}andReflect.definePropertyBug Fixes: Fixed some cases
Array#lastIndexOfwith negative second argument
2.0.2
3 Jan 2016Temporarily removed
lengthvalidation fromUint8Arrayconstructor wrapper. Reason - bug inwsmodule (->socket.io) which passes toBufferconstructor ->Uint8Arrayfloat and uses theV8bug for conversion to int (by the spec should be thrown an error). It creates problems for many people. I hope, it will be returned after fixing this bug inV8.
2.0.0
24 Dec 2015- Removed
Removed usage shortcuts for
argumentsobject - old WebKit bug, #150 Added implementations and fixes Typed Arrays-related features
Added implementations and fixes Typed Arrays-related features
ArrayBuffer,ArrayBuffer.isView,ArrayBuffer#sliceDataViewwith all getter / setter methodsInt8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32ArrayandFloat64Arrayconstructors%TypedArray%.{from, of},%TypedArray%#{copyWithin, every, fill, filter, find, findIndex, forEach, indexOf, includes, join, lastIndexOf, map, reduce, reduceRight, reverse, set, slice, some, sort, subarray, values, keys, entries, @@iterator, ...}
RegExp.escapemoved from thees7to the non-standardcorenamespace, July TC39 meeting - too slow, but it's condition of stability, #116Some performance optimizations
Added basic support
rejectionHandledevent /onrejectionhandledhandler to the polyfillRemoved usage
@@speciesfromPromise.{all, race}, November TC39 meeting
Some improvements collections polyfills
O(1)and preventing possible leaks with frozen keys, #134Correct observable state object keys
Renamed
String#{padLeft, padRight}->String#{padStart, padEnd}, proposal, November TC39 meeting (they want to rename it on each meeting?O_o), #132Added
String#{trimStart, trimEnd}as aliases forString#{trimLeft, trimRight}, proposal, November TC39 meetingAdded annex B HTML methods - ugly, but also the part of the spec
Added little fix for
Date#toString-new Date(NaN).toString()should be'Invalid Date'Added
{keys, values, entries, @@iterator}methods to DOM collections which should have iterable interface or should be inherited fromArray-NodeList,DOMTokenList,MediaList,StyleSheetList,CSSRuleList.Removed Mozilla
Arraygenerics - deprecated and will be removed from FF, looks like strawman is dead, available alternative shimRemoved
core.logmoduleCommonJS API
Added entry points for virtual methods
Added entry points for stages proposals
Some other minor changes
Custom build from external scripts moved to the separate package for preventing problems with dependencies
Changed
$prefix for internal modules file names because Team Foundation Server does not support it, #129Additional fix for
SameValueZeroin V8 ~ Chromium 39-42 collectionsAdditional fix for FF27
Arrayiterator- Removed
Removed usage shortcuts for
argumentsobject - old WebKit bug, #150 {Map, Set}#forEachnon-generic, #144Many other improvements
- 1.x
1.2.6
9 Nov 2015Reject with
TypeErroron attempt resolve promise itselfCorrect behavior with broken
Promisesubclass constructors / methodsAdded
Promise-based fallback for microtask
Reject with
TypeErroron attempt resolve promise itselfCorrect behavior with broken
Promisesubclass constructors / methodsAdded
Promise-based fallback for microtaskFixed V8 and FF
Array#{values, @@iterator}.nameFixed IE7-
[1, 2].join(undefined) -> '1,2'Some other fixes / improvements / optimizations
1.2.5
2 Nov 2015Some more
Numberconstructor fixes:
1.2.3
22 Oct 2015Fixed some problems related old V8 bug
Object('a').propertyIsEnumerable(0) // => false, for example,Object.assign({}, 'qwe')from the last releaseFixed
.nameproperty andFunction#toStringconversion some polyfilled methodsFixed
Math.imularity in Safari 8-
1.2.2
18 Oct 2015Improved optimisations for V8
Fixed build process from external packages, #120
One more
Object.{assign, values, entries}fix for very specific case
1.2.1
1 Oct 2015Replaced fix
JSON.stringify+Symbolbehavior from.toJSONmethod to wrappingJSON.stringify- little more correct, compat-table/642
Replaced fix
JSON.stringify+Symbolbehavior from.toJSONmethod to wrappingJSON.stringify- little more correct, compat-table/642
1.2.0
26 Sep 2015Added browser
Promiserejection hook, #106Added correct
IsRegExplogic toString#{includes, startsWith, endsWith}andRegExpconstructor,@@matchcase, exampleUpdated
String#leftPadwith proposal: string filler truncated from the right side
Added browser
Promiserejection hook, #106Added correct
IsRegExplogic toString#{includes, startsWith, endsWith}andRegExpconstructor,@@matchcase, exampleUpdated
String#leftPadwith proposal: string filler truncated from the right sideReplaced V8
Object.assign- its properties order not only incorrect, it is non-deterministic and it causes some problemsFixed behavior with deleted in getters properties for
Object.{assign,entries, values}, exampleFixed
Math.sinhwith very small numbers in V8 near Chromium 38Some other fixes and optimizations
1.1.4
5 Sep 2015Fixed support symbols in FF34-35
Object.assignFixed collections iterators in FF25-26
Fixed non-generic WebKit
Array.of
Fixed support symbols in FF34-35
Object.assignFixed collections iterators in FF25-26
Fixed non-generic WebKit
Array.ofSome other fixes and optimizations
1.1.2
28 Aug 2015Added
toJSONmethod toSymbolpolyfill and to MS Edge implementation for expectedJSON.stringifyresult w/o patching this methodReplaced
Reflect.constructimplementations w/o correct support third argumentFixed
globaldetection with changeddocument.domainin ~IE8, #100
1.1.0
17 Aug 2015Updated string padding to actual proposal - renamed, minor internal changes:
Added string trim functions - proposal, defacto standard - required only for IE11- and fixed for some old engines:
String#trimfixed for some engines by es6 spec and moved fromes5to singlees6module
Updated string padding to actual proposal - renamed, minor internal changes:
String#lpad->String#padLeftString#rpad->String#padRight
Added string trim functions - proposal, defacto standard - required only for IE11- and fixed for some old engines:
String#trimLeftString#trimRight
String#trimfixed for some engines by es6 spec and moved fromes5to singlees6moduleSplitted
es6.object.statics-accept-primitivesCaps for
freeze-familyObjectmethods moved fromes5toes6namespace and joined with es6 wrapperses5namespace also includes modules, moved toes6namespace - you can use it as beforeIncreased
MessageChannelpriority in$.task, #95Does not get
global.Symbolon each getting iterator, if you wanna use alternativeSymbolshim - add it beforecore-jsReflect.constructoptimized and fixed for some casesSimplified
Reflect.enumerate, see this questionSome corrections in
Math.acoshFixed
Math.imulfor old WebKitSome fixes in string / RegExp well-known symbols logic
Some other fixes and optimizations
1.0.0
21 Jul 2015Added logic for well-known symbols:
Actualized and optimized work with iterables:
Uses enumerable properties in shimmed instances - collections, iterators, etc for optimize performance.
Added logic for well-known symbols:
Symbol.matchSymbol.replaceSymbol.splitSymbol.search
Actualized and optimized work with iterables:
optimized
Map,Set,WeakMap,WeakSetconstructors,Promise.all,Promise.racefor defaultArray Iterator.optimized
Array.fromfor defaultArray Iterator.added
core.getIteratorMethodhelper.
Uses enumerable properties in shimmed instances - collections, iterators, etc for optimize performance.
Added support native constructors to
Reflect.constructwith 2 arguments.Added support native constructors to
Function#bindshim withnew.Removed obsolete
.clearmethods nativeWeak-collections.Maximum modularity, reduced minimal custom build size, separated into submodules:
internal modules (
$,$.iter, etc)
Many other optimizations
Final cleaning non-standard features:
moved
$forto separate library. This work for syntax -for-ofloop and comprehensions.moved
Date#{format, formatUTC}to separate library. Standard way for this -ECMA-402.removed
Mathmethods fromNumber.prototype. Slight sugar for simpleMathmethods calling.removed
{Array#, Array, Dict}.turn.removed
core.global.
Uses
ToNumberinstead ofToLengthinNumber Iterator,Array.from(2.5)will be[0, 1, 2]instead of[0, 1].Fixed #85 - invalid
Promiseunhandled rejection message in nestedsetTimeout.Fixed #86 - support FF extensions.
Fixed #89 - behavior
Numberconstructor in strange case.
- 0.9.x
0.9.18
17 Jun 2015Removed
/fromRegExp.escapeescaped characters
0.9.17
13 Jun 2015Updated
RegExp.escapeto the latest proposalFixed conflict with webpack dev server + IE buggy behavior
0.9.16
11 Jun 2015More correct order resolving thenable in
PromisepolyfillUses polyfill instead of buggy V8
Promise
0.9.15
9 Jun 2015Collections from
libraryversion return wrapped native instancesFixed collections prototype methods in
libraryversionOptimized
Math.hypot
0.9.14
3 Jun 2015Updated
Promise.resolvebehaviorAdded fallback for IE11 buggy
Object.getOwnPropertyNames+ iframeSome other fixes
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.