unstale

npm / core-js

core-js

What changed in core-js 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

39 breaking1 security81 new APIs and options6 performance7 behavior and defaults64 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

core-js 3170 changes

Breaking changes 29

  • Throws a TypeError instead of a RangeError when chunkSize is a non-integer number.

    3.50.0release notes

  • Throws a RangeError for a finite unsafe integer limit.

    3.50.0release notes

  • Throws a TypeError instead of a RangeError when windowSize is a non-integer number.

    3.50.0release notes

  • Fixes array-replacer behavior: key order follows the replacer, and inherited and non-enumerable properties are no longer ignored.

    3.50.0release notes

  • The pure version now forces replacement to ensure results are properly wrapped Iterator instances; the polyfill also errors early when given a primitive as an iterator.

    3.49.0release notes

  • The polyfill now throws for unterminated object and array literals and numbers with a decimal point but no fraction.

    3.49.0release notes

  • The polyfill now throws when called with only one argument.

    3.49.0release notes

  • Renames Array#flatten to Array#flat and updates the related Array#flatMap feature.

    3.0.0upgrade guide

  • The core object is no longer available in the global version; former core-returning entry points return globalThis, and no global core property is set.

    3.0.0upgrade guide

  • Replaces the core-js/shim entry point with core-js.

    3.0.0upgrade guide

  • Removes bundling logic from core-js and leaves it in the core-js-builder package.

    3.0.0upgrade guide

  • Moves the single pair of global bundles with all polyfills into the core-js-bundle package.

    3.0.0upgrade guide

  • Removes deprecated array entry points for pop, push, reverse, shift, and unshift.

    3.0.0upgrade guide

  • Extracts the version without global namespace pollution into a separate package, replacing core-js/library.

    3.0.0upgrade guide

  • Renames the core-js(/library)/fn path to core-js(-pure)/features.

    3.0.0upgrade guide

  • Use the stage entry points instead of the removed core-js/es7 proposal path.

    3.0.0upgrade guide

  • Removes the withdrawn Error.isError feature.

    3.0.0upgrade guide

  • Removes global, replaced by globalThis.

    3.0.0upgrade guide

  • Renames the global proposal from global to globalThis.

    3.0.0upgrade guide

  • Removes the rejected Map#toJSON feature.

    3.0.0upgrade guide

  • Removes the remaining non-standard features, including Dict, Object helpers, Function#part, Number#@@iterator, HTML string helpers, and delay.

    3.0.0upgrade guide

  • Replaces the old asap proposal with queueMicrotask.

    3.0.0upgrade guide

  • Removes Reflect.enumerate, which was removed from the spec.

    3.0.0upgrade guide

  • Removes the rejected RegExp.escape feature.

    3.0.0upgrade guide

  • Removes the rejected Set#toJSON feature.

    3.0.0upgrade guide

  • Stops treating Mongolian vowel separator U+180E as whitespace for trimming methods.

    3.0.0upgrade guide

  • Removes System.global, replaced by globalThis.

    3.0.0upgrade guide

  • Polyfilled Promises now trigger unhandled rejection events instead of relying only on global handlers.

    3.0.0upgrade guide

  • Renames the web.dom namespace to web.dom-collections.

    3.0.0upgrade guide

Security 1

  • Fixed exposure of buffer mutations in the polyfill.

    3.49.0release notes

New APIs and options 68

  • Adds the Iterator.prototype.chunks built-in from the iterator chunking proposal.

    3.50.0release notes

  • Adds the Iterator.prototype.includes built-in from the stage 3 proposal.

    3.50.0release notes

  • Adds the Iterator.prototype.join built-in from the stage 3 proposal.

    3.50.0release notes

  • Adds the Iterator.prototype.windows built-in from the iterator chunking proposal.

    3.50.0release notes

  • Adds the Iterator.zip built-in from the joint iteration proposal.

    3.50.0release notes

  • Adds the Iterator.zipKeyed built-in from the joint iteration proposal.

    3.50.0release notes

  • Adds the Promise.allKeyed built-in from the Await dictionary of Promises proposal.

    3.50.0release notes

  • Adds the Promise.allSettledKeyed built-in from the Await dictionary of Promises proposal.

    3.50.0release notes

  • Adds es namespace modules and /es/ and /stable/ namespace entries for the Map upsert proposal.

    3.48.0release notes

  • Added JSON.parse support for the source text access proposal.

    3.47.0release notes

  • Adds a proposed way to get the last index from an Array.

    3.0.0upgrade guide

  • Adds a proposed way to get the last item from an Array.

    3.0.0upgrade guide

  • Adds the proposed compositeKey method.

    3.0.0upgrade guide

  • Adds the proposed compositeSymbol method.

    3.0.0upgrade guide

  • Adds a package with module-necessity data and APIs for selecting required modules from a browserslist query, plus entry-point and minor-version module data.

    3.0.0upgrade guide

  • Provides a unified namespace for stable ES5 through ES2019 features.

    3.0.0upgrade guide

  • Allows more granular feature inclusion through the /es/ path.

    3.0.0upgrade guide

  • Adds instance entry points that provide the related method's polyfill for a passed instance.

    3.0.0upgrade guide

  • Adds entry points for including all features from one proposal.

    3.0.0upgrade guide

  • Adds stable-feature entry points without proposals.

    3.0.0upgrade guide

  • Adds .forEach to iterable DOM collections.

    3.0.0upgrade guide

  • Adds the proposed Map deleteAll method.

    3.0.0upgrade guide

  • Adds the proposed Map every method.

    3.0.0upgrade guide

  • Adds the proposed Map filter method.

    3.0.0upgrade guide

  • Adds the proposed Map find method.

    3.0.0upgrade guide

  • Adds the proposed Map findKey method.

    3.0.0upgrade guide

  • Adds the proposed Map includes method.

    3.0.0upgrade guide

  • Adds the proposed Map keyOf method.

    3.0.0upgrade guide

  • Adds the proposed Map mapKeys method.

    3.0.0upgrade guide

  • Adds the proposed Map mapValues method.

    3.0.0upgrade guide

  • Adds the proposed Map merge method.

    3.0.0upgrade guide

  • Adds the proposed Map reduce method.

    3.0.0upgrade guide

  • Adds the proposed Map some method.

    3.0.0upgrade guide

  • Adds the proposed Map update method.

    3.0.0upgrade guide

  • Adds the proposed Map.groupBy method.

    3.0.0upgrade guide

  • Adds the proposed Map.keyBy method.

    3.0.0upgrade guide

  • Adds the proposed seeded pseudo-random number generator.

    3.0.0upgrade guide

  • Adds the proposed Number.fromString method.

    3.0.0upgrade guide

  • Adds the ECMAScript 2019 Object.fromEntries feature.

    3.0.0upgrade guide

  • Adds the proposed Promise.allSettled method.

    3.0.0upgrade guide

  • Adds Promise.any with AggregateError.

    3.0.0upgrade guide

  • Adds the proposed Set addAll method.

    3.0.0upgrade guide

  • Adds the proposed Set deleteAll method.

    3.0.0upgrade guide

  • Adds the proposed Set every method.

    3.0.0upgrade guide

  • Adds the proposed Set filter method.

    3.0.0upgrade guide

  • Adds the proposed Set find method.

    3.0.0upgrade guide

  • Adds the proposed Set intersection method.

    3.0.0upgrade guide

  • Adds the proposed Set disjointness method.

    3.0.0upgrade guide

  • Adds the proposed Set subset method.

    3.0.0upgrade guide

  • Adds the proposed Set superset method.

    3.0.0upgrade guide

  • Adds the proposed Set join method.

    3.0.0upgrade guide

  • Adds the proposed Set map method.

    3.0.0upgrade guide

  • Adds the proposed Set reduce method.

    3.0.0upgrade guide

  • Adds the proposed Set some method.

    3.0.0upgrade guide

  • Adds the proposed Set symmetric difference method.

    3.0.0upgrade guide

  • Adds the proposed Set union method.

    3.0.0upgrade guide

  • Adds the proposed String codePoints method.

    3.0.0upgrade guide

  • Adds the proposed String replaceAll method.

    3.0.0upgrade guide

  • Adds the Symbol description feature.

    3.0.0upgrade guide

  • Adds Symbol.dispose for the using statement proposal.

    3.0.0upgrade guide

  • Adds Symbol.patternMatch for the pattern matching proposal.

    3.0.0upgrade guide

  • Adds a browserslist query targets option to core-js-builder.

    3.0.0upgrade guide

  • Splits typed array polyfills so individual methods can be loaded independently.

    3.0.0upgrade guide

  • Adds URL and its listed properties and methods from the URL standard.

    3.0.0upgrade guide

  • Adds URLSearchParams and its listed methods and iterators from the URL standard.

    3.0.0upgrade guide

  • Adds the proposed WeakMap deleteAll method.

    3.0.0upgrade guide

  • Adds the proposed WeakSet addAll method.

    3.0.0upgrade guide

  • Adds the proposed WeakSet deleteAll method.

    3.0.0upgrade guide

Performance 4

Behavior and default changes 7

  • Compat data now marks the method as unsupported in modern Safari because of a browser bug.

    3.49.0release notes

  • Methods from the Map upsert proposal have minor performance optimizations; pure-version methods are now generic and work with polyfilled and native collections.

    3.49.0release notes

  • Adds the Map upsert method as a stable ES feature.

    3.48.0release notes

  • Adds the Map upsert method as a stable ES feature.

    3.48.0release notes

  • Adds the WeakMap upsert method as a stable ES feature.

    3.48.0release notes

  • Adds the WeakMap upsert method as a stable ES feature.

    3.48.0release notes

  • Marks the listed ES2016–ES2019 features as stable.

    3.0.0upgrade guide

Fixes and other changes 61

  • Adds missed detection of imprecise native implementations in V8 < 5.4 and Rhino.

    3.51.0release notes

  • Adds missed detection of imprecise native implementations in FF < 48 and engines that use glibc cbrt.

    3.51.0release notes

  • Adds the missed MAX_SAFE_INTEGER excess check to the polyfill.

    3.50.0release notes

  • Ensures opaque paths always roundtrip in the URL polyfill.

    3.50.0release notes

  • Uses PromiseResolve semantics.

    3.50.0release notes

  • Fixes the conversion order in the polyfill.

    3.50.0release notes

  • Fixes a possible crash on some keys.

    3.50.0release notes

  • Makes URL parsing more correct, including character sets and percent coding.

    3.50.0release notes

  • Fixes URL#toJSON when URL#toString is reassigned after core-js is imported.

    3.50.0release notes

  • Makes URLSearchParams parsing more correct, including character sets and percent coding.

    3.50.0release notes

  • Fixed iterator closing when array property creation fails.

    3.49.0release notes

  • Fixed argument validation order and validation of counters at MAX_SAFE_INTEGER.

    3.49.0release notes

  • Fixed a possible error when the polyfill receives a frozen array.

    3.49.0release notes

  • Fixed argument validation order.

    3.49.0release notes

  • Fixed behavior with sparse arrays and fromIndex, including a modern Safari bug.

    3.49.0release notes

  • Fixed resizable ArrayBuffer transfer when newByteLength exceeds the original maxByteLength.

    3.49.0release notes

  • Fixed counter behavior and iterator closing order, including closing and return-result validation in flatMap, map, and take.

    3.49.0release notes

  • The obsolete blacklist option is no longer ignored; it will be removed only in the next major release.

    3.49.0release notes

  • Compat data was updated for Math.sumPrecise, Iterator.concat, parseInt, parseFloat, Deno, Electron, Opera for Android, and Oculus Quest Browser.

    3.49.0release notes

  • Fixed the esmodules: intersect option and added a missing reactnative alias in the types.

    3.49.0release notes

  • The constructor polyfill now errors when passed an ArrayBuffer and a negative length.

    3.49.0release notes

  • Fixed the polyfill for values in the (0, 1) range.

    3.49.0release notes

  • Fixed NaN handling in the polyfill.

    3.49.0release notes

  • Fixed some character casing cases in the polyfill.

    3.49.0release notes

  • Fixed another case of a V8/Chromium bug in the polyfill.

    3.49.0release notes

  • Fixed string iterable handling, iterator closing, and validation of iterator next results; the pure version forces replacement to return properly wrapped Iterator instances.

    3.49.0release notes

  • Fixed string iterable handling, iterator closing, and validation of iterator next results; the pure version forces replacement to return properly wrapped Iterator instances.

    3.49.0release notes

  • Improves polyfill accuracy with big and small values.

    3.49.0release notesrelease notes

  • The polyfill is more accurate with big and small values.

    3.49.0release notes

  • Fixed handling of ending zeroes in the fraction part and added extra input string validation.

    3.49.0release notes

  • The polyfill is more accurate with big and small values.

    3.49.0release notes

  • Fixed possible loss of symbol enumerability and the return value in the Symbol polyfill.

    3.49.0release notes

  • Fixed semantics for multiple subscriptions in the obsolete Observable proposal polyfill.

    3.49.0release notes

  • Fixed argument validation order, which is observable in the error message.

    3.49.0release notes

  • The polyfill now throws for malformed descriptors.

    3.49.0release notes

  • Fixed repeated ToPropertyKey conversion, descriptor handling, and non-extensible receiver cases.

    3.49.0release notes

  • Fixed named backreferences and interactions among groups, dotAll, sticky, multiline, global, and Unicode modes; polyfills gain s, d, and v flag support where modern-engine bugs occur.

    3.49.0release notes

  • Updated the polyfill to the final spec for a case where this is updated.

    3.49.0release notesupgrade guide

  • Fixed iterator closing in the polyfill.

    3.49.0release notes

  • Fixed missing errors for \u{} and some hex escaping at the end of strings.

    3.49.0release notes

  • Fixed argument validation order in the polyfill.

    3.49.0release notes

  • Fixed behavior with a counter exceeding 2 ** 32.

    3.49.0release notes

  • Fixed the sticky-mode polyfill.

    3.49.0release notes

  • Fixed argument validation order in the polyfill.

    3.49.0release notes

  • Fixed some cases of Infinity handling.

    3.49.0release notes

  • The polyfill now errors when multiple objects are transferred and some are non-transferable.

    3.49.0release notes

  • The polyfill wraps Symbol.for to correctly handle empty string descriptions.

    3.49.0release notes

  • Fixed constructor errors for an ArrayBuffer with negative length, some @@toStringTag cases, and some ToUint8Clamp conversions.

    3.49.0release notes

  • Fixed argument validation order.

    3.49.0release notes

  • Fixed parsing and serialization across non-special URLs, hosts, file URLs, percent encoding, protocol changes, and the origin getter for blob URLs.

    3.49.0release notes

  • Fixed deletion with duplicate key-value pairs and cases where the second argument could remove unnecessary entries.

    3.49.0release notes

  • Fixed handling of invalid UTF-8 code points, continuation bytes, and incomplete sequences.

    3.49.0release notes

  • Fixed a false positive in pure-version validation.

    3.49.0release notes

  • Adds workarounds for Safari before 13 silently ignoring writes to non-writable array length.

    3.48.0release notes

  • Uses CreateDataProperty and CreateDataPropertyOrThrow in previously missed cases.

    3.48.0release notes

  • Fixes and optimizes the RegExp constructor polyfill for NCG and dotAll.

    3.48.0release notes

  • Fixed increasing .size in the URLSearchParams.prototype.append polyfill in IE8-.

    3.47.0release notes

  • Adds support for @@isConcatSpreadable to Array#concat.

    3.0.0upgrade guide

  • Adds @@species support to Array concat, filter, map, slice, and splice.

    3.0.0upgrade guide

  • Wraps fetch to work correctly with a polyfilled Promise and prevent related problems.

    3.0.0upgrade guide

  • Adds direct .exec calling to RegExp replacement, split, match, and search operations, with fixes to RegExp#exec.

    3.0.0upgrade guide

core-js 228 changes

Breaking changes 10

New APIs and options 13

  • Added the annex B HTML methods from the specification.

    2.0.0release notes

  • Added CommonJS entry points for virtual methods and stage proposals.

    2.0.0release notes

  • Added keys, values, entries, and @@iterator methods to NodeList, DOMTokenList, MediaList, StyleSheetList, and CSSRuleList.

    2.0.0release notes

  • Added the Error.isError proposal.

    2.0.0release notes

  • Added Math.iaddh as part of a proposal.

    2.0.0release notes

  • Added Math.imulh as part of a proposal.

    2.0.0release notes

  • Added Math.isubh as part of a proposal.

    2.0.0release notes

  • Added Math.umulh as part of a proposal.

    2.0.0release notes

  • The Promise polyfill added basic support for the rejectionHandled event and onrejectionhandled handler.

    2.0.0release notes

  • Added String#trimEnd as an alias for String#trimRight.

    2.0.0release notes

  • Added String#trimStart as an alias for String#trimLeft.

    2.0.0release notes

  • Added the System.global proposal.

    2.0.0release notes

  • Added implementations and fixes for ArrayBuffer, DataView, typed-array constructors, and %TypedArray% methods.

    2.0.0release notes

Performance 2

  • Collection polyfills became O(1) and prevent possible leaks with frozen keys; observable state object keys were corrected.

    2.0.0release notes

  • Promise received performance optimisations.

    2.0.0release notes

Fixes and other changes 3

  • Added a fix for the Array iterator in Firefox 27.

    2.0.0release notes

  • Fixed Date#toString so new Date(NaN).toString() returns 'Invalid Date'.

    2.0.0release notes

  • Added a fix for SameValueZero in V8 collections in Chromium 39–42.

    2.0.0release notes