Closed rbuckton closed 3 years ago
Can someone review please? We would need to ship an updated tslib
before I can merge https://github.com/microsoft/TypeScript/pull/44527, since using a nightly with --importHelpers
would result in a checker error until an updated tslib
is available.
@DanielRosenwasser can you let me know when this is published? As far as versioning is concerned, this is a backwards compatible change (the only slight difference would be for [1, , 2, ...[3]]
, which we would have incorrectly turned into [1, undefined, 2, 3]
anways).
@rbuckton it sounds like for any existing user (ignoring people manually writing out weird references to tslib), this is backwards-compatible. Otherwise, it's just enabling TypeScript 4.4 to make a breaking change. Is that accurate?
I'm going to version this as 2.3.0.
Its not even a breaking change. TS 4.4 would work with old tslib, but would be slower and have the older incorrect array-packing behavior, and TS 4.3 will work with the new tslib and likely be faster but mostly maintaining the older incorrect array-packing behavior.
2.3.0 should be available shortly.
Updates the
__spreadArray
helper to align with https://github.com/microsoft/TypeScript/pull/44527