Packages

core-js

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

Your version

2.5.0

6 Aug 2017Where it was published

2.6.12 is the newest release of 2.x.

npm marks 2.5.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

48 new6 fixed11 changed

Release note

2.5.0 - 2017.08.05

  • Added Promise#finally stage 3 proposal, #225

  • Added Promise.try stage 1 proposal

  • Added Array#flatten and Array#flatMap stage 1 proposal

  • Added .of and .from methods on collection constructors stage 1 proposal:

    • Map.of

    • Set.of

    • WeakSet.of

    • WeakMap.of

    • Map.from

    • Set.from

    • WeakSet.from

    • WeakMap.from

  • Added Math extensions stage 1 proposal, #226:

    • Math.clamp

    • Math.DEG_PER_RAD

    • Math.degrees

    • Math.fscale

    • Math.RAD_PER_DEG

    • Math.radians

    • Math.scale

  • Added Math.signbit stage 1 proposal

  • Updated global stage 3 proposal - added global global object, System.global deprecated

  • Updated Object.getOwnPropertyDescriptors to the final version - it should not create properties if descriptors are undefined

  • Updated the list of iterable DOM collections, #249, added:

    • CSSStyleDeclaration#@@iterator

    • CSSValueList#@@iterator

    • ClientRectList#@@iterator

    • DOMRectList#@@iterator

    • DOMStringList#@@iterator

    • DataTransferItemList#@@iterator

    • FileList#@@iterator

    • HTMLAllCollection#@@iterator

    • HTMLCollection#@@iterator

    • HTMLFormElement#@@iterator

    • HTMLSelectElement#@@iterator

    • MimeTypeArray#@@iterator

    • NamedNodeMap#@@iterator

    • PaintRequestList#@@iterator

    • Plugin#@@iterator

    • PluginArray#@@iterator

    • SVGLengthList#@@iterator

    • SVGNumberList#@@iterator

    • SVGPathSegList#@@iterator

    • SVGPointList#@@iterator

    • SVGStringList#@@iterator

    • SVGTransformList#@@iterator

    • SourceBufferList#@@iterator

    • TextTrackCueList#@@iterator

    • TextTrackList#@@iterator

    • TouchList#@@iterator

  • Updated stages of proposals:

  • Updated typed arrays to the modern (ES2016+) arguments validation,
    #293

  • Fixed %TypedArray%.from Safari bug, #285

  • Fixed compatibility with old version of Prototype.js, #278, #289

  • Function#name no longer cache the result for correct behavior with inherited constructors, #296

  • Added errors on incorrect context of collection methods, #272

  • Fixed conversion typed array constructors to string, fix #300

  • Fixed Set#size with debugger ReactNative for Android, #297

  • Fixed an issue with Electron-based debugger, #230

  • Fixed compatibility with incomplete third-party WeakMap polyfills, #252

  • Added a fallback for Date#toJSON in engines without native Date#toISOString, #220

  • Added 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

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.