Skip to content

Releases: microsoft/tslib

tslib 2.5.0

26 Jan 20:40
e388a23
Compare
Choose a tag to compare

What's New

  • Fix asyncDelegator reporting done too early by @apendua in #187
  • Add support for TypeScript 5.0's __esDecorate and related helpers by @rbuckton in #193

Full Changelog: 2.4.1...2.5.0

tslib 2.4.1

31 Oct 18:26
8acd4b3
Compare
Choose a tag to compare

tslib 2.4.0

22 Apr 00:28
a7129c7
Compare
Choose a tag to compare

This release includes the __classPrivateFieldIn helper as well as an update to __createBinding to reduce indirection between multiple re-exports.

tslib 2.3.1

11 Aug 22:55
Compare
Choose a tag to compare

This release updates the __spreadArray helper for TypeScript 4.4 to correctly operate on collections that are not "concat-spreadable" such as the DOM's NodeLists and HTMLCollections.

tslib 2.3.0

11 Jun 22:33
Compare
Choose a tag to compare

This release updates tslib to use TypeScript 4.4's upcoming __spreadArray helper which correctly preserves sparse array inputs (e.g. arrays containing "missing" elements like [1, 2, , 4]). This new version of __spreadArray is backwards-compatible and is often also faster. See #151 for more details.

tslib 2.2.0

05 Apr 18:21
Compare
Choose a tag to compare

This release supports TypeScript 4.3's new functionality for ECMAScript private methods and accessors, and private static class members.

It does so by expanding the scope of __classPrivateFieldGet and __classPrivateFieldSet. See #146 for more details.

tslib 2.1.0

05 Jan 23:28
54a056a
Compare
Choose a tag to compare

This release adds a new __spreadArray helper which avoids side-effects compared to the now-deprecated __spreadArrays and __spread helpers. See #133 for more details.

This release also provides a more-specific error message when extending from a type which is not a function and not null. See #138 for more details.

Webpack 5 Compatibility - 2.x

09 Oct 23:35
Compare
Choose a tag to compare

Webpack 5 compatibility support - 1.x

09 Oct 23:34
Compare
Choose a tag to compare

ES Module Support

06 Oct 15:38
Compare
Choose a tag to compare

This release adds support for using tslib in Node using esmodule imports, further context in #126 and the related issues.