Packages

core-js

3.51.0 · 19 Oct 2026MIT100.8M / weekRepositoryHomepagenpmAtom feed

Your version

2.1.0

8 Feb 2016Where it was published

2.6.12 is the newest release of 2.x.

npm marks 2.1.0 as deprecated: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.

In short

10 new9 fixed7 changed

Release note

2.1.0 - 2016.02.09

  • 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/)es5

    • Added 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: Object statics - should accept primitives, new whitespaces lists in String#trim, parse(Int|float), RegExp#toString logic, String#split, etc

        • Should be changed in the future: @@species and ToLength logic in Array methods, Date parsing, Function#bind, etc

        • Should not be changed only several features like Array.isArray and Date.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.getOwnPropertyDescriptors moved to the stage 3, January TC39 meeting

  • API: Added umd option for custom build process, #169

  • API: Returned entry points for Array statics, removed in 2.0, for compatibility with babel 6 and for future fixes

  • Deprecated: Reflect.enumerate deprecated and will be removed from the next major release, January TC39 meeting

  • New Features: Added Reflect metadata API as a pre-strawman feature, #152:

    • Reflect.defineMetadata

    • Reflect.deleteMetadata

    • Reflect.getMetadata

    • Reflect.getMetadataKeys

    • Reflect.getOwnMetadata

    • Reflect.getOwnMetadataKeys

    • Reflect.hasMetadata

    • Reflect.hasOwnMetadata

    • Reflect.metadata

  • New Features: Implementation / fixes Date#toJSON

  • New Features: Fixes for parseInt and Number.parseInt

  • New Features: Fixes for parseFloat and Number.parseFloat

  • New Features: Fixes for RegExp#toString

  • New Features: Fixes for Array#sort

  • New Features: Fixes for Number#toFixed

  • New Features: Fixes for Number#toPrecision

  • New Features: Additional fixes for String#split (RegExp#@@split)

  • Improvements: Correct subclassing wrapped collections, Number and RegExp constructors with native class syntax

  • Improvements: Correct support SharedArrayBuffer and buffers from other realms in typed arrays wrappers

  • Improvements: Additional validations for Object.{defineProperty, getOwnPropertyDescriptor} and Reflect.defineProperty

  • Bug Fixes: Fixed some cases Array#lastIndexOf with negative second argument

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.