[node] Update vm#55418
Conversation
|
@wafuwafu13 Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PR
@wafuwafu13: I see that you have added yourself as an owner, are you sure you want to become an owner? Code ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 55418,
"author": "wafuwafu13",
"headCommitOid": "8643b09bd4051e41a0c50f1e46cdbc1ad74cbcc7",
"lastPushDate": "2021-08-31T12:45:49.000Z",
"lastActivityDate": "2021-09-07T03:55:39.000Z",
"mergeOfferDate": "2021-09-06T22:15:42.000Z",
"mergeRequestDate": "2021-09-07T03:55:39.000Z",
"mergeRequestUser": "wafuwafu13",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "node",
"kind": "edit",
"files": [
{
"path": "types/node/index.d.ts",
"kind": "definition"
},
{
"path": "types/node/test/vm.ts",
"kind": "test"
},
{
"path": "types/node/vm.d.ts",
"kind": "definition"
}
],
"owners": [
"Microsoft",
"DefinitelyTyped",
"jkomyno",
"alvis",
"r3nya",
"btoueg",
"smac89",
"touffy",
"DeividasBakanas",
"eyqs",
"Hannes-Magnusson-CK",
"hoo29",
"kjin",
"ajafff",
"islishude",
"mwiktorczyk",
"mohsen1",
"n-e",
"galkin",
"parambirs",
"eps1lon",
"SimonSchick",
"ThomasdenH",
"WilcoBakker",
"wwwy3y3",
"samuela",
"kuehlein",
"bhongy",
"chyzwar",
"trivikr",
"nguymin4",
"yoursunny",
"qwelias",
"ExE-Boss",
"Ryan-Willpower",
"peterblazejewicz",
"addaleax",
"JasonHK",
"victorperin",
"ZYSzys",
"NodeJS",
"LinusU"
],
"addedOwners": [
"KSXGitHub",
"wafuwafu13"
],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "orta",
"date": "2021-09-06T22:15:07.000Z",
"isMaintainer": true
},
{
"type": "stale",
"reviewer": "LinusU",
"date": "2021-08-31T12:17:33.000Z",
"abbrOid": "8dbb0db"
},
{
"type": "stale",
"reviewer": "peterblazejewicz",
"date": "2021-08-27T09:06:39.000Z",
"abbrOid": "050232a"
},
{
"type": "stale",
"reviewer": "SimonSchick",
"date": "2021-08-27T02:10:21.000Z",
"abbrOid": "050232a"
}
],
"mainBotCommentID": 906832941,
"ciResult": "pass"
} |
|
🔔 @microsoft @DefinitelyTyped @jkomyno @alvis @r3nya @btoueg @smac89 @Touffy @DeividasBakanas @eyqs @Hannes-Magnusson-CK @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @samuela @kuehlein @bhongy @chyzwar @trivikr @nguymin4 @yoursunny @qwelias @ExE-Boss @Ryan-Willpower @peterblazejewicz @addaleax @JasonHK @victorperin @ZYSzys @nodejs @LinusU — please review this PR in the next few days. Be sure to explicitly select |
types/node/vm.d.ts
Outdated
| * @since v10.6.0 | ||
| */ | ||
| createCachedData(): Buffer; | ||
| cachedDataProduced?: boolean | undefined; |
There was a problem hiding this comment.
- Formatting is messed up.
- You can skip the 'undefined' here.
- Please make these 'readonly'.
- Please move them before the constructor.
There was a problem hiding this comment.
Should it be marked @deprecated as well?
This option is deprecated in favor of
script.createCachedData()
There was a problem hiding this comment.
- Formatting is messed up.
Please see at local envirionment :)
- You can skip the 'undefined' here.
All Optional Property in this file has undefined so I do this.
(But I also think undefined don't need...)
- Please make these 'readonly'.
What is 'these' ? cachedDataRejected is not readonly so I didn't make it readonly.
- Please move them before the constructor.
Why? cachedDataRejected is not at before the constructor.
There was a problem hiding this comment.
- Formatting is messed up.
Please see at local envirionment :)
It seems like you have used tabs on these rows whilst the rest of the file are using spaces, could you change to spaces?
There was a problem hiding this comment.
Thanks for telling me.
|
@wafuwafu13 One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits. Thank you! |
|
@peterblazejewicz, @SimonSchick Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
|
Can you please approve? |
|
The formatting is still messed up. |
|
Fixed. |
|
@LinusU, @peterblazejewicz, @SimonSchick Thank you for reviewing this PR! The author has pushed new commits since your last review. Could you take another look and submit a fresh review? |
orta
left a comment
There was a problem hiding this comment.
Looks good to me node source code 👍🏻
|
@wafuwafu13: Everything looks good here. I am ready to merge this PR (at 8643b09) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@microsoft, @DefinitelyTyped, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @n-e, @galkin, @parambirs, @eps1lon, @SimonSchick, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @nguymin4, @yoursunny, @qwelias, @ExE-Boss, @Ryan-Willpower, @peterblazejewicz, @addaleax, @JasonHK, @victorperin, @ZYSzys, @nodejs, @LinusU: you can do this too.) |
|
Ready to merge |
|
I just published |
Please fill in this template.
npm test <package to test>.Select one of these and delete the others:
If adding a new definition:
.d.tsfiles generated via--declarationdts-gen --dt, not by basing it on an existing project.tslint.jsonshould contain{ "extends": "dtslint/dt.json" }, and no additional rules.tsconfig.jsonshould havenoImplicitAny,noImplicitThis,strictNullChecks, andstrictFunctionTypesset totrue.If changing an existing definition:
Doc: https://nodejs.org/api/vm.html#vm_class_vm_script
Code: https://github.com/nodejs/node/blob/v16.7.0/lib/vm.js#L364-L370
Example: https://github.com/babel/babel/blob/b141c85b17414c864c12e8f65f2e14ee70018d38/packages/babel-helper-transform-fixture-test-runner/src/index.ts#L105-L109
If removing a declaration:
notNeededPackages.json.