microsoft / tslib

Runtime library for TypeScript helpers.
BSD Zero Clause License
1.26k stars 128 forks source link

Revert changes to pre-3.9 behavior, update version to 1.13.0 #109

Closed DanielRosenwasser closed 4 years ago

DanielRosenwasser commented 4 years ago

Fixes #105 Fixes #106

Here's the plan with this PR:

imhoffd commented 4 years ago

Will projects that want to use TypeScript 3.9 have to wait for transitive dependencies to also be updated to tslib 2.0?

weswigham commented 4 years ago

Will projects that want to use TypeScript 3.9 have to wait for transitive dependencies to also be updated to tslib 2.0?

Naw, with the minor we just published, the latest tslib 1.X should be compatible with TS 3.9, but not provide live bindings, so should also be compatible with emit from TS <3.9, while the 2.X version we're about to publish should be equivalent to the 1.12 we published, and will need TS 3.9+ output to function. So long as you and your dependencies declare at least the major version they depend on, everything should be fine.