Skip to content

Upgrading core-js 0.9 to 1

Breaking0.9.18 → 1.2.7Breaking8New8Changed14Fixed36Other3

BreakingUpgrade verdict

8 breaking changes.

  • The names of the string padding helpers changed, so code using the old names must be updated.
  • The .clear method is no longer added to WeakMap and WeakSet.
  • Math helper methods are no longer added to numbers.
  • The turn helper is no longer available.
Top 3 of 8 that need code or config changes
Breaking8
Renames string padding methods String#lpad to String#padLeft and String#rpad to String#padRight to match the actual proposal.
String#lpadString#padLeftString#rpadString#padRight
Removes obsolete .clear methods from native Weak collections.
WeakMapWeakSet.clear
Removes Math methods from Number.prototype.
Number.prototype
Removes {Array#, Array, Dict}.turn.
Array#.turnArray.turnDict.turn
Removes core.global.
core.global
Moves $for to the separate forof library.
$for
Moves Date#{format, formatUTC} to the separate dtf library.
Date#formatDate#formatUTC
Uses ToNumber instead of ToLength in Number Iterator, so Array.from(2.5) yields [0, 1, 2] instead of [0, 1].
ToNumberToLengthNumber IteratorArray.from