-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
[node] Adds a 'typesVersions' entry so that Node definitions can start leveraging new compiler features. #30477
Conversation
69def3c
to
b11b99e
Compare
@rbuckton Thank you for submitting this PR! Because this is a new definition, a DefinitelyTyped maintainer will be reviewing this PR in the next few days once the Travis CI build passes. In the meantime, if the build fails or a merge conflict occurs, I'll let you know. Have a nice day! |
@rbuckton The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
Looks like the |
After 5 days, no one has reviewed the PR 😞. A maintainer will be reviewing the PR in the next few days and will either merge it or request revisions. Thank you for your patience! |
Honestly speaking I'm not a fan of duplicating node definitions. Isn't it possible to move the common part (I expect this is >95%) into one file and include it by the 2.1 and 3.1 version? |
In the long term, yes. While this is supported by the |
Would it work to put the common part in |
Possibly, but if I can I will try to narrow down the dtslint issues in the next few days and possibly revise this PR. |
The bug is actually in types-publisher. I have a PR up to address it: microsoft/types-publisher#520 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
create a common file to be included in 2.1 and 3.1 variants to avoid duplication.
@rbuckton I requested changes to this PR as discussed above. I have seen that your dtslint fix has been merged therefore I expect this should not land as it is. |
The tests are still duplicated, lso tslint and quite some part of the typescript config but for these two it's not that critical. |
I removed the duplication in |
8026a36
to
3e00e17
Compare
@rbuckton The Travis CI build failed! Please review the logs for more information. Once you've pushed the fixes, the build will automatically re-run. Thanks! |
3e00e17
to
7e77187
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine from my point of view. Would be nice if others working on node typings add also there votes.
Can we make this 3.2 so we can use bigint? |
I have a little concern regarding the file structure: We'll have to modify Basically, for changes like #27346 we'll have to do the following:
I suggest to split
Here
In most cases we would like to reuse modules from the previous It will help to avoid confusion referencing different typescript versions ( Also it should be useful when e.g. So "symlink" version of
Where
simply referencing the same module of the previous |
@KonanMentor I think splitting the files is a good idea, independent of this change. As long as old typescript versions shall be supported by node type definitions I would avoid to use new features where possible. In the end we have to find a 2.1 variant for anything and as a result both variants needs to be maintained. |
@Flarna, @KonanMentor: Given that this PR has become stale and splitting out node is a fairly large change on its own, I've created #32567 to address the split on its own (without |
Closing in favor of #32691. |
Please fill in this template.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).