Skip to content

Releases: microsoft/tslib

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.

ES Module Support for the 1.x version

06 Oct 15:35
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.

Minor release for TS 4.0

06 Aug 22:35
Compare
Choose a tag to compare
  1. Use Object.prototype.hasOwnProperty.call.
  2. Skip default when iterating exports in __importStar.
  3. Shorter parameter name in __exportStar.

tslib 2.0.0

13 May 23:08
2d12014
Compare
Choose a tag to compare

This release changes __exportStar and __importStar to use __createBinding which is incompatible with versions of TypeScript older than 3.9 (i.e. 3.8 and below).

tslib 1.13.0

13 May 22:55
b7e9c51
Compare
Choose a tag to compare

This release reverts breaking changes in tslib that were not compatible with versions of TypeScript prior to 3.9. The behavior slightly diverges from that of TypeScript 3.9, but generally is compatible with previous versions of TypeScript-authored code.

The new behavior of TypeScript 3.9 will be available in tslib 2.0.0.

See this pull request for more details.