Upgrading core-js 0.9 to 1
Breaking0.9.18 → 1.2.7Breaking8New8Changed14Fixed36Other3
BreakingUpgrade verdict
8 breaking changes.
In plain terms
- 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.
Must act Top 3 of 8 that need code or config changes
What you must change
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#padRightRemoves obsolete .clear methods from native Weak collections.
WeakMapWeakSet.clearRemoves Math methods from Number.prototype.
Number.prototypeRemoves {Array#, Array, Dict}.turn.
Array#.turnArray.turnDict.turnRemoves core.global.
core.globalMoves $for to the separate forof library.
$forMoves Date#{format, formatUTC} to the separate dtf library.
Date#formatDate#formatUTCUses ToNumber instead of ToLength in Number Iterator, so Array.from(2.5) yields [0, 1, 2] instead of [0, 1].
ToNumberToLengthNumber IteratorArray.from