[node] Added globalThis support to global#44700
[node] Added globalThis support to global#44700sheetalkamat merged 10 commits intoDefinitelyTyped:masterfrom
globalThis support to global#44700Conversation
|
👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings. Let’s review the numbers, shall we? node/v*Comparison details for node/* 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. node/v*Comparison details for node/* 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. node/v*Comparison details for node/* 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
…for `global` in "node"
|
@JasonHK Thank you for submitting this PR! Code ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 44700,
"author": "JasonHK",
"owners": [
"Microsoft",
"DefinitelyTyped",
"jkomyno",
"a-tarasyuk",
"alvis",
"r3nya",
"btoueg",
"brunoscheufler",
"smac89",
"touffy",
"DeividasBakanas",
"eyqs",
"Flarna",
"Hannes-Magnusson-CK",
"KSXGitHub",
"hoo29",
"kjin",
"ajafff",
"islishude",
"mwiktorczyk",
"mohsen1",
"n-e",
"octo-sniffle",
"galkin",
"parambirs",
"eps1lon",
"SimonSchick",
"ThomasdenH",
"WilcoBakker",
"wwwy3y3",
"samuela",
"kuehlein",
"j-oliveras",
"bhongy",
"chyzwar",
"trivikr",
"nguymin4",
"yoursunny",
"qwelias",
"ExE-Boss",
"Ryan-Willpower",
"peterblazejewicz",
"addaleax",
"vvakame"
],
"dangerLevel": "MultiplePackagesEdited",
"headCommitAbbrOid": "84bf705",
"headCommitOid": "84bf7058fd34c00276fb0cbd65e1cbabaac7fdd0",
"mergeIsRequested": false,
"stalenessInDays": 0,
"lastCommitDate": "2020-05-21T06:14:58.000Z",
"reopenedDate": "2020-05-13T16:03:44.000Z",
"lastCommentDate": "2020-05-21T08:23:28.000Z",
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/44700/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": false,
"popularityLevel": "Critical",
"anyPackageIsNew": false,
"packages": [
"node",
"window-or-global"
],
"files": [
{
"filePath": "types/node/globals.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/globals.global.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/index.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/ts3.2/base.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/ts3.2/index.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/ts3.5/base.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/ts3.5/globals.global.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/ts3.5/test/globals.ts",
"kind": "test",
"package": "node"
},
{
"filePath": "types/node/ts3.5/tsconfig.json",
"kind": "package-meta",
"package": "node"
},
{
"filePath": "types/node/v12/globals.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v12/globals.global.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v12/index.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v12/package.json",
"kind": "package-meta",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.2/base.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.2/index.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.4/base.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.4/globals.global.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.4/index.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.4/node-tests.ts",
"kind": "test",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.4/test/globals.ts",
"kind": "test",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.4/tsconfig.json",
"kind": "package-meta",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.4/tslint.json",
"kind": "package-meta",
"package": "node"
},
{
"filePath": "types/node/v12/ts3.7/base.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v13/globals.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v13/globals.global.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v13/index.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v13/ts3.2/base.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v13/ts3.2/index.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v13/ts3.5/base.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v13/ts3.5/globals.global.d.ts",
"kind": "definition",
"package": "node"
},
{
"filePath": "types/node/v13/ts3.5/test/globals.ts",
"kind": "test",
"package": "node"
},
{
"filePath": "types/node/v13/ts3.5/tsconfig.json",
"kind": "package-meta",
"package": "node"
},
{
"filePath": "types/window-or-global/index.d.ts",
"kind": "definition",
"package": "window-or-global"
},
{
"filePath": "types/window-or-global/package.json",
"kind": "package-meta",
"package": "window-or-global"
},
{
"filePath": "types/window-or-global/ts3.4/index.d.ts",
"kind": "definition",
"package": "window-or-global"
},
{
"filePath": "types/window-or-global/ts3.4/tsconfig.json",
"kind": "package-meta",
"package": "window-or-global"
},
{
"filePath": "types/window-or-global/ts3.4/tslint.json",
"kind": "package-meta",
"package": "window-or-global"
},
{
"filePath": "types/window-or-global/ts3.4/window-or-global-tests.ts",
"kind": "test",
"package": "window-or-global"
}
],
"hasDismissedReview": false,
"travisResult": "pass",
"lastReviewDate": "2020-05-21T11:14:55.000Z",
"reviewersWithStaleReviews": [],
"approvalFlags": 2,
"isChangesRequested": false
} |
|
🔔 @microsoft @DefinitelyTyped @jkomyno @a-tarasyuk @alvis @r3nya @btoueg @BrunoScheufler @smac89 @Touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @samuela @kuehlein @j-oliveras @bhongy @chyzwar @trivikr @nguymin4 @yoursunny @qwelias @ExE-Boss @Ryan-Willpower @peterblazejewicz @addaleax @vvakame - please review this PR in the next few days. Be sure to explicitly select |
|
@jkomyno @a-tarasyuk @alvis @r3nya @btoueg @BrunoScheufler @smac89 @tellnes @Touffy @DeividasBakanas @eyqs @Flarna @Hannes-Magnusson-CK @KSXGitHub @hoo29 @kjin @ajafff @islishude @mwiktorczyk @mohsen1 @n-e @octo-sniffle @galkin @parambirs @eps1lon @SimonSchick @ThomasdenH @WilcoBakker @wwwy3y3 @samuela @kuehlein @j-oliveras @bhongy @chyzwar @trivikr @nguymin4 @yoursunny @qwelias @ExE-Boss @Ryan-Willpower @peterblazejewicz Could anyone review this PR? I have a feeling that you guys intentionally ignore my PRs for Node.js... |
|
Can we perhaps add these changes to TS3.5 instead to avoid fragmenting versions even further? |
|
You should also add tests for |
@SimonSchick Thanks for your advice, I'll update it today. |
|
@SimonSchick @ExE-Boss The latest commit should have fixed the issues you mentioned, please tell me if there were things that also need to be fixed. |
|
@JasonHK Unfortunately, this pull request currently has a merge conflict 😥. Please update your PR branch to be up-to-date with respect to master. Have a nice day! |
…yTyped into node/global-this-support-for-global
ExE-Boss
left a comment
There was a problem hiding this comment.
LGTM with the following nits.
P.S.: The Node v12.x types should use TS3.4+ instead of TS3.5+.
|
@ExE-Boss 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? |
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
|
I just published |
This is a rewrite of #43308 and #43821. Although this PR brings breaking change to
global, it corrects the type ofglobal.Please fill in this template.
npm test.)npm run lint package-name(ortscif notslint.jsonis present).Select one of these and delete the others:
If changing an existing definition:
tslint.jsoncontaining{ "extends": "dtslint/dt.json" }. If for reason the any rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]and not for whole package so that the need for disabling can be reviewed.