Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tslib to support new __spreadArray helper #133

Merged
merged 3 commits into from
Dec 18, 2020
Merged

Conversation

rbuckton
Copy link
Member

@rbuckton rbuckton commented Nov 13, 2020

This applies the same change from microsoft/TypeScript#41523. This also deprecates __spread and __spreadArrays, as they have been subsumed by __spreadArray. If we want to remove __spread and __spreadArrays, that would require a major version bump.

@rbuckton rbuckton requested a review from orta November 13, 2020 01:41
@rbuckton
Copy link
Member Author

export declare function __spreadArrays(...args: any[][]): any[];
export declare function __spreadArray(to: any[], from: any[]): any[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is more correct:

Suggested change
export declare function __spreadArray(to: any[], from: any[]): any[];
export declare function __spreadArray<T, U>(to: T[], from: ReadonlyArray<U>): Array<T | U>;

Although this would be even more correct, it depends on TypeScript 4.0:

export declare function __spreadArray<T extends any[], U extends readonly any[]>(to: T, from: U): [...T, ...U];

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The types here are fairly simplistic. If we were going to add generics here we would want to add them to other functions as well, but that's out of scope for now.

@ExE-Boss
Copy link
Contributor

Do note that /modules/index.js also needs updating.

@orta
Copy link
Contributor

orta commented Nov 18, 2020

Thanks! Got a local repro for the fail

@orta
Copy link
Contributor

orta commented Nov 18, 2020

Great catch on the modules/index.js - ideally that would have just failed the build, will look at that now

Copy link
Contributor

@orta orta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me, and I've validated the CI works as expected.

I'll leave you to decide whether the generic change above is worth it here.

@rbuckton
Copy link
Member Author

@DanielRosenwasser this will probably need to be published before we merge microsoft/TypeScript#41523 so anyone using our nightlies can get a working copy of tslib.

@Finesse
Copy link

Finesse commented Feb 11, 2021

Which version of TypeScript will start using __spreadArray instead of __spread and __spreadArrays?

@ExE-Boss
Copy link
Contributor

ExE-Boss commented Feb 11, 2021

@Finesse TypeScript is using __spreadArray as of TypeScript 4.2 beta (microsoft/TypeScript@44ec8dd).

Gusted pushed a commit to darkreader/darkreader that referenced this pull request Mar 7, 2021
- Since Typescript 4.2 some Helpers to transpile to 4.2 are deprecated/removed. This includes __spread and __spreadArrays microsoft/TypeScript#41523.
- We heavily use the spread syntax in Dark Reader and thus need those helper functions.
- Due the upgrade of 4.2, tslib was outdated and didn't had the new helper function `__spreadArray`.
- After good hours of skimming trough the compiler and using the wrong commands to update tslib(default to 1.x). manually updating it to 2.1 which includes this new functions microsoft/tslib#133
https://github.com/microsoft/tslib/releases/tag/2.1.0
the API can be properly compiled again.
- Resolves #My personal issues with the API.
Gusted pushed a commit to darkreader/darkreader that referenced this pull request Mar 7, 2021
- Since Typescript 4.2 some Helpers to transpile to 4.2 are deprecated/removed. This includes __spread and __spreadArrays microsoft/TypeScript#41523.
- We heavily use the spread syntax in Dark Reader and thus need those helper functions.
- Due the upgrade of 4.2, tslib was outdated and didn't had the new helper function `__spreadArray`.
- After good hours of skimming trough the compiler and using the wrong commands to update tslib(default to 1.x). manually updating it to 2.1 which includes this new functions microsoft/tslib#133
https://github.com/microsoft/tslib/releases/tag/2.1.0
the API can be properly compiled again.
- Resolves #My personal issues with the API.

Note to myself: Now their are 2 versions installed `2.1.10` and `1.14.1` properly configuration setups should default to 2.1.10. But for sakes if I get into problems with this I hope I remember this note and don't waste some hours. Why `1.14.1`, I don't know. `npm --save-dev -E tslib` defaults to 1.14.1. It seems like an NPM bug `yarn add --dev -E tslib` gives the correct 2.1.10. Damn dependency hell =).
efokschaner added a commit to efokschaner/algorithm that referenced this pull request Jul 12, 2021
The version + features of typescript used to compile this lib means that tslib needs to be at version 2.0.0 minimum.

Because `antvis/algorithm` doesn't specify an explicit version, it is not guaranteed that developers receive the necessary version.
This causes the following error at import time:
```
./node_modules/@antv/algorithm/es/gaddi.js
Attempted import error: '__spreadArray' is not exported from 'tslib'.
```

You can see here all the other projects updating their tslib dependencies similarly in the references to this PR: microsoft/tslib#133

This relates to
antvis/G6#2702
and
antvis/G6#2713
it is likely necessary, but may not be sufficient, to fix those reported issues. There could be other `antvis` packages with the same issue.
jcfranco referenced this pull request in Esri/calcite-design-system Jul 16, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tslib](https://www.typescriptlang.org/)
([source](https://togithub.com/Microsoft/tslib)) | [`2.6.2` ->
`2.6.3`](https://renovatebot.com/diffs/npm/tslib/1.14.1/2.6.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tslib/2.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tslib/2.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tslib/1.14.1/2.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tslib/1.14.1/2.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>Microsoft/tslib (tslib)</summary>

### [`v2.6.3`](https://togithub.com/microsoft/tslib/releases/tag/v2.6.3)

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/v2.6.2...v2.6.3)

#### What's Changed

- 'await using' normative changes by
[@&#8203;rbuckton](https://togithub.com/rbuckton) in
[https://github.com/microsoft/tslib/pull/258](https://togithub.com/microsoft/tslib/pull/258)

**Full Changelog**:
microsoft/tslib@v2.6.2...v2.6.3

###
[`v2.6.2`](https://togithub.com/microsoft/tslib/releases/tag/v2.6.2):
tslib 2.6.2

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/v2.6.1...v2.6.2)

#### What's Changed

- Fix path to `exports["module"]["types"]` by
[@&#8203;andrewbranch](https://togithub.com/andrewbranch) in
[https://github.com/microsoft/tslib/pull/217](https://togithub.com/microsoft/tslib/pull/217)

**Full Changelog**:
microsoft/tslib@v2.6.1...v2.6.2

###
[`v2.6.1`](https://togithub.com/microsoft/tslib/releases/tag/v2.6.1):
tslib 2.6.1

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.6.0...v2.6.1)

#### What's Changed

- Allow functions as values in \__addDisposableResource by
[@&#8203;rbuckton](https://togithub.com/rbuckton) in
[https://github.com/microsoft/tslib/pull/215](https://togithub.com/microsoft/tslib/pull/215)
- Stop using es6 syntax in the es6 file by
[@&#8203;andrewbranch](https://togithub.com/andrewbranch) in
[https://github.com/microsoft/tslib/pull/216](https://togithub.com/microsoft/tslib/pull/216)

**Full Changelog**:
microsoft/tslib@2.6.0...v2.6.1

### [`v2.6.0`](https://togithub.com/microsoft/tslib/releases/tag/2.6.0):
tslib 2.6.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/v2.5.3...2.6.0)

#### What's Changed

- Add helpers for `using` and `await using` by
[@&#8203;rbuckton](https://togithub.com/rbuckton) in
[https://github.com/microsoft/tslib/pull/213](https://togithub.com/microsoft/tslib/pull/213)

**Full Changelog**:
microsoft/tslib@v2.5.3...2.6.0

###
[`v2.5.3`](https://togithub.com/microsoft/tslib/releases/tag/v2.5.3):
tslib 2.5.3

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.5.2...v2.5.3)

#### What's Changed

- Do not reference tslib.es6.js from package.json exports by
[@&#8203;andrewbranch](https://togithub.com/andrewbranch) in
[https://github.com/microsoft/tslib/pull/208](https://togithub.com/microsoft/tslib/pull/208)

**Full Changelog**:
microsoft/tslib@2.5.2...v2.5.3

### [`v2.5.2`](https://togithub.com/microsoft/tslib/releases/tag/2.5.2):
tslib 2.5.2

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.5.1...2.5.2)

This release [explicitly re-exports
helpers](https://togithub.com/microsoft/tslib/pull/204) to work around
TypeScript's incomplete symbol resolution for tslib.

### [`v2.5.1`](https://togithub.com/microsoft/tslib/releases/tag/2.5.1):
tslib 2.5.1

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.5.0...2.5.1)

This release of tslib provides fixes for two issues.

First, [it reverses the order of `init` hooks provided by
decorators](https://togithub.com/microsoft/tslib/pull/202) to correctly
reflect proposed behavior.

Second, it [corrects the `exports` field of tslib's `package.json` and
provides accurate declaration
files](https://togithub.com/microsoft/tslib/pull/202) so that it may be
consumed under the `node16` and `bundler` settings for
`moduleResolution.`

### [`v2.5.0`](https://togithub.com/microsoft/tslib/releases/tag/2.5.0):
tslib 2.5.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.4.1...2.5.0)

#### What's New

- Fix asyncDelegator reporting done too early by
[@&#8203;apendua](https://togithub.com/apendua) in
[https://github.com/microsoft/tslib/pull/187](https://togithub.com/microsoft/tslib/pull/187)
- Add support for TypeScript 5.0's `__esDecorate` and related helpers by
[@&#8203;rbuckton](https://togithub.com/rbuckton) in
[https://github.com/microsoft/tslib/pull/193](https://togithub.com/microsoft/tslib/pull/193)

**Full Changelog**:
microsoft/tslib@2.4.1...2.5.0

### [`v2.4.1`](https://togithub.com/microsoft/tslib/releases/tag/2.4.1):
tslib 2.4.1

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.4.0...2.4.1)

This release contains [fixes for early `return`s and `throw`s invoked on
generators](https://togithub.com/microsoft/tslib/pull/186).

### [`v2.4.0`](https://togithub.com/microsoft/tslib/releases/tag/2.4.0):
tslib 2.4.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.3.1...2.4.0)

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

### [`v2.3.1`](https://togithub.com/microsoft/tslib/releases/tag/2.3.1):
tslib 2.3.1

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.3.0...2.3.1)

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 `NodeList`s and `HTMLCollection`s.

### [`v2.3.0`](https://togithub.com/microsoft/tslib/releases/tag/2.3.0):
tslib 2.3.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.2.0...2.3.0)

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
[https://github.com/microsoft/tslib/pull/151](https://togithub.com/microsoft/tslib/pull/151)
for more details.

### [`v2.2.0`](https://togithub.com/microsoft/tslib/releases/tag/2.2.0):
tslib 2.2.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.1.0...2.2.0)

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
[https://github.com/microsoft/tslib/pull/146](https://togithub.com/microsoft/tslib/pull/146)
for more details.

### [`v2.1.0`](https://togithub.com/microsoft/tslib/releases/tag/2.1.0):
tslib 2.1.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.0.3...2.1.0)

This release adds a new `__spreadArray` helper which avoids side-effects
compared to the now-deprecated `__spreadArrays` and `__spread` helpers.
See
[https://github.com/microsoft/tslib/pull/133](https://togithub.com/microsoft/tslib/pull/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
[https://github.com/microsoft/tslib/pull/138](https://togithub.com/microsoft/tslib/pull/138)
for more details.

### [`v2.0.3`](https://togithub.com/microsoft/tslib/releases/tag/2.0.3):
Webpack 5 Compatibility - 2.x

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.0.2...2.0.3)

Full discussion in the [webpack
issue](https://togithub.com/webpack/webpack/issues/11613)

### [`v2.0.2`](https://togithub.com/microsoft/tslib/releases/tag/2.0.2):
ES Module Support

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.0.1...2.0.2)

This release adds support for using tslib in Node using esmodule
imports, further context in
[#&#8203;126](https://togithub.com/Microsoft/tslib/issues/126) and the
related issues.

### [`v2.0.1`](https://togithub.com/microsoft/tslib/releases/tag/2.0.1):
Minor release for TS 4.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.0.0...2.0.1)

1.  Use Object.prototype.hasOwnProperty.call.
2.  Skip default when iterating exports in \__importStar.
3.  Shorter parameter name in \__exportStar.

### [`v2.0.0`](https://togithub.com/microsoft/tslib/releases/tag/2.0.0):
tslib 2.0.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/v1.14.1...2.0.0)

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).

</details>

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbImNob3JlIiwiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
calcite-admin referenced this pull request in Esri/calcite-design-system Jul 30, 2024
This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [tslib](https://www.typescriptlang.org/)
([source](https://togithub.com/Microsoft/tslib)) | [`2.6.2` ->
`2.6.3`](https://renovatebot.com/diffs/npm/tslib/1.14.1/2.6.3) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tslib/2.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tslib/2.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tslib/1.14.1/2.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tslib/1.14.1/2.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>Microsoft/tslib (tslib)</summary>

### [`v2.6.3`](https://togithub.com/microsoft/tslib/releases/tag/v2.6.3)

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/v2.6.2...v2.6.3)

#### What's Changed

- 'await using' normative changes by
[@&#8203;rbuckton](https://togithub.com/rbuckton) in
[https://github.com/microsoft/tslib/pull/258](https://togithub.com/microsoft/tslib/pull/258)

**Full Changelog**:
microsoft/tslib@v2.6.2...v2.6.3

###
[`v2.6.2`](https://togithub.com/microsoft/tslib/releases/tag/v2.6.2):
tslib 2.6.2

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/v2.6.1...v2.6.2)

#### What's Changed

- Fix path to `exports["module"]["types"]` by
[@&#8203;andrewbranch](https://togithub.com/andrewbranch) in
[https://github.com/microsoft/tslib/pull/217](https://togithub.com/microsoft/tslib/pull/217)

**Full Changelog**:
microsoft/tslib@v2.6.1...v2.6.2

###
[`v2.6.1`](https://togithub.com/microsoft/tslib/releases/tag/v2.6.1):
tslib 2.6.1

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.6.0...v2.6.1)

#### What's Changed

- Allow functions as values in \__addDisposableResource by
[@&#8203;rbuckton](https://togithub.com/rbuckton) in
[https://github.com/microsoft/tslib/pull/215](https://togithub.com/microsoft/tslib/pull/215)
- Stop using es6 syntax in the es6 file by
[@&#8203;andrewbranch](https://togithub.com/andrewbranch) in
[https://github.com/microsoft/tslib/pull/216](https://togithub.com/microsoft/tslib/pull/216)

**Full Changelog**:
microsoft/tslib@2.6.0...v2.6.1

### [`v2.6.0`](https://togithub.com/microsoft/tslib/releases/tag/2.6.0):
tslib 2.6.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/v2.5.3...2.6.0)

#### What's Changed

- Add helpers for `using` and `await using` by
[@&#8203;rbuckton](https://togithub.com/rbuckton) in
[https://github.com/microsoft/tslib/pull/213](https://togithub.com/microsoft/tslib/pull/213)

**Full Changelog**:
microsoft/tslib@v2.5.3...2.6.0

###
[`v2.5.3`](https://togithub.com/microsoft/tslib/releases/tag/v2.5.3):
tslib 2.5.3

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.5.2...v2.5.3)

#### What's Changed

- Do not reference tslib.es6.js from package.json exports by
[@&#8203;andrewbranch](https://togithub.com/andrewbranch) in
[https://github.com/microsoft/tslib/pull/208](https://togithub.com/microsoft/tslib/pull/208)

**Full Changelog**:
microsoft/tslib@2.5.2...v2.5.3

### [`v2.5.2`](https://togithub.com/microsoft/tslib/releases/tag/2.5.2):
tslib 2.5.2

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.5.1...2.5.2)

This release [explicitly re-exports
helpers](https://togithub.com/microsoft/tslib/pull/204) to work around
TypeScript's incomplete symbol resolution for tslib.

### [`v2.5.1`](https://togithub.com/microsoft/tslib/releases/tag/2.5.1):
tslib 2.5.1

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.5.0...2.5.1)

This release of tslib provides fixes for two issues.

First, [it reverses the order of `init` hooks provided by
decorators](https://togithub.com/microsoft/tslib/pull/202) to correctly
reflect proposed behavior.

Second, it [corrects the `exports` field of tslib's `package.json` and
provides accurate declaration
files](https://togithub.com/microsoft/tslib/pull/202) so that it may be
consumed under the `node16` and `bundler` settings for
`moduleResolution.`

### [`v2.5.0`](https://togithub.com/microsoft/tslib/releases/tag/2.5.0):
tslib 2.5.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.4.1...2.5.0)

#### What's New

- Fix asyncDelegator reporting done too early by
[@&#8203;apendua](https://togithub.com/apendua) in
[https://github.com/microsoft/tslib/pull/187](https://togithub.com/microsoft/tslib/pull/187)
- Add support for TypeScript 5.0's `__esDecorate` and related helpers by
[@&#8203;rbuckton](https://togithub.com/rbuckton) in
[https://github.com/microsoft/tslib/pull/193](https://togithub.com/microsoft/tslib/pull/193)

**Full Changelog**:
microsoft/tslib@2.4.1...2.5.0

### [`v2.4.1`](https://togithub.com/microsoft/tslib/releases/tag/2.4.1):
tslib 2.4.1

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.4.0...2.4.1)

This release contains [fixes for early `return`s and `throw`s invoked on
generators](https://togithub.com/microsoft/tslib/pull/186).

### [`v2.4.0`](https://togithub.com/microsoft/tslib/releases/tag/2.4.0):
tslib 2.4.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.3.1...2.4.0)

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

### [`v2.3.1`](https://togithub.com/microsoft/tslib/releases/tag/2.3.1):
tslib 2.3.1

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.3.0...2.3.1)

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 `NodeList`s and `HTMLCollection`s.

### [`v2.3.0`](https://togithub.com/microsoft/tslib/releases/tag/2.3.0):
tslib 2.3.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.2.0...2.3.0)

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
[https://github.com/microsoft/tslib/pull/151](https://togithub.com/microsoft/tslib/pull/151)
for more details.

### [`v2.2.0`](https://togithub.com/microsoft/tslib/releases/tag/2.2.0):
tslib 2.2.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.1.0...2.2.0)

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
[https://github.com/microsoft/tslib/pull/146](https://togithub.com/microsoft/tslib/pull/146)
for more details.

### [`v2.1.0`](https://togithub.com/microsoft/tslib/releases/tag/2.1.0):
tslib 2.1.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.0.3...2.1.0)

This release adds a new `__spreadArray` helper which avoids side-effects
compared to the now-deprecated `__spreadArrays` and `__spread` helpers.
See
[https://github.com/microsoft/tslib/pull/133](https://togithub.com/microsoft/tslib/pull/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
[https://github.com/microsoft/tslib/pull/138](https://togithub.com/microsoft/tslib/pull/138)
for more details.

### [`v2.0.3`](https://togithub.com/microsoft/tslib/releases/tag/2.0.3):
Webpack 5 Compatibility - 2.x

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.0.2...2.0.3)

Full discussion in the [webpack
issue](https://togithub.com/webpack/webpack/issues/11613)

### [`v2.0.2`](https://togithub.com/microsoft/tslib/releases/tag/2.0.2):
ES Module Support

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.0.1...2.0.2)

This release adds support for using tslib in Node using esmodule
imports, further context in
[#&#8203;126](https://togithub.com/Microsoft/tslib/issues/126) and the
related issues.

### [`v2.0.1`](https://togithub.com/microsoft/tslib/releases/tag/2.0.1):
Minor release for TS 4.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/2.0.0...2.0.1)

1.  Use Object.prototype.hasOwnProperty.call.
2.  Skip default when iterating exports in \__importStar.
3.  Shorter parameter name in \__exportStar.

### [`v2.0.0`](https://togithub.com/microsoft/tslib/releases/tag/2.0.0):
tslib 2.0.0

[Compare
Source](https://togithub.com/Microsoft/tslib/compare/v1.14.1...2.0.0)

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).

</details>

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjQxMy4yIiwidGFyZ2V0QnJhbmNoIjoiZGV2IiwibGFiZWxzIjpbImNob3JlIiwiZGVwZW5kZW5jaWVzIl19-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants