[node] Add new v8 feature: relative indexing method#55061
[node] Add new v8 feature: relative indexing method#55061Semigradsky wants to merge 1 commit intoDefinitelyTyped:masterfrom Semigradsky:nodejs
Conversation
https://github.com/nodejs/node/releases/tag/v16.6.0 - v8: introduces the new `Array.prototype.at` method
|
@Semigradsky Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode 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
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": 55061,
"author": "Semigradsky",
"headCommitOid": "8ce5a3e2159f7f6b9483b269345cd134773a2b59",
"lastPushDate": "2021-08-10T18:09:23.000Z",
"lastActivityDate": "2021-08-11T21:40:40.000Z",
"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/globals.ts",
"kind": "test"
},
{
"path": "types/node/ts3.6/base.d.ts",
"kind": "definition"
}
],
"owners": [
"Microsoft",
"DefinitelyTyped",
"jkomyno",
"alvis",
"r3nya",
"btoueg",
"smac89",
"touffy",
"DeividasBakanas",
"eyqs",
"Hannes-Magnusson-CK",
"KSXGitHub",
"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": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "changereq",
"reviewer": "amcasey",
"date": "2021-08-10T21:35:14.000Z"
}
],
"mainBotCommentID": 896206568,
"ciResult": "pass"
} |
|
🔔 @microsoft @DefinitelyTyped @jkomyno @alvis @r3nya @btoueg @smac89 @Touffy @DeividasBakanas @eyqs @Hannes-Magnusson-CK @KSXGitHub @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 |
…Dependencies.txt` Related PR: DefinitelyTyped/DefinitelyTyped#55061
|
I'm not sure we can add a dependency like this to |
amcasey
left a comment
There was a problem hiding this comment.
Please work with @SimonSchick to find an appropriate approach.
|
@Semigradsky 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! |
|
@SimonSchick so will you add full support |
|
I wonder why |
|
@yoursunny |
|
@yoursunny DT needs to still support TS 3.6 (soon 3.7), we sadly can't always rely on bleeding edge libs be available. |
|
Users who need |
|
@yoursunny this seems pretty inconvenient to users, how do we explain to them that, in order to use modern JS features on an older TS version, they must to install some 'proposal-' package? I think for convenience and simplicities sake the typings should be shipped in node. |
The recommended method shall be setting an appropriate target, using a TypeScript version that supports said target. |
|
Landed in node via #55057 |
16.6.0 released
https://github.com/nodejs/node/releases/tag/v16.6.0
Array.prototype.atmethod (also on Typed Arrays and strings)Please fill in this template.
npm test <package to test>.If changing an existing definition: