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

Fix tsc #1445

Merged
merged 1 commit into from May 11, 2018
Merged

Fix tsc #1445

merged 1 commit into from May 11, 2018

Conversation

ghost
Copy link

@ghost ghost commented May 11, 2018

The recent build failures are due to @types/node being updated to v6.0.109 and is allowed by the semantic versioning in package.json.

DefinitelyTyped/DefinitelyTyped#25407 introduced the breaking change:

It's unclear to me whether this is a bug because, according to docs when targeting es5 and using es6 builtins, tsc should have been throwing errors. Although the es6 features that are being used worked fine with @types/node v6.0.108 and backward to the minimum version in xterm.js/package.json.

The author of the aforementioned PR is asked about type Iterator in a review and it's explained that the type was copied from @types/node v7. The PR was merged but perhaps they should've used type IterableIterator???

Anyways, maybe somebody with more TS knowledge will get some useful pointers from this PR.

Copy link
Member

@bgw bgw left a comment

Choose a reason for hiding this comment

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

Hey, thanks for taking a stab at fixing this. I think it'd be better for us to downgrade our dependency instead.

We need most of our code to be compatible with IE11 (to support this Visual Studio plugin), and excluding these libs helps ensure that's true.

@ghost
Copy link
Author

ghost commented May 11, 2018

@bgw, glad to help. I've set it to v6.0.108.

@bgw bgw merged commit cded6f8 into xtermjs:master May 11, 2018
@bgw
Copy link
Member

bgw commented May 11, 2018

Cool. Thanks for your contribution!

@Tyriar Tyriar added this to the 3.4.0 milestone May 11, 2018
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.

2 participants