Skip to content

Conversation

@SimonSchick
Copy link
Contributor

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

cc @connor4312

@typescript-bot typescript-bot added Critical package Author is Owner The author of this PR is a listed owner of the package. labels Apr 29, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 29, 2021

@SimonSchick Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ A DT maintainer needs to approve changes which affect module config files

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": 52646,
  "author": "SimonSchick",
  "headCommitOid": "97d3636f0e30651e9e1d7fd399f7656cd9c81762",
  "lastPushDate": "2021-05-13T19:21:19.000Z",
  "lastActivityDate": "2021-05-14T18:40:32.000Z",
  "mergeOfferDate": "2021-05-14T15:58:59.000Z",
  "mergeRequestDate": "2021-05-14T18:40:32.000Z",
  "mergeRequestUser": "SimonSchick",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/child_process.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/diagnostic_channel.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/fs.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/fs/promises.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/http.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/http2.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/path.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/perf_hooks.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/readline.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/test/buffer.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/child_process.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/diagnostic_channel.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/events.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/fs.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/http.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/http2.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/path.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/process.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/readline.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/util.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/util_types.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/v8.ts",
          "kind": "test"
        },
        {
          "path": "types/node/test/worker_threads.ts",
          "kind": "test"
        },
        {
          "path": "types/node/ts3.6/base.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/ts3.6/node-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/node/tsconfig.json",
          "kind": "package-meta",
          "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-tsconfigjson) and not moving towards it (check: `compilerOptions.lib.0`, `compilerOptions.target`)"
        },
        {
          "path": "types/node/util.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/util/types.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v8.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/worker_threads.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"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "andrewbranch",
      "date": "2021-05-14T15:58:23.000Z",
      "isMaintainer": true
    },
    {
      "type": "stale",
      "reviewer": "connor4312",
      "date": "2021-04-29T05:42:26.000Z",
      "abbrOid": "a757a65"
    }
  ],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 29, 2021

@typescript-bot
Copy link
Contributor

👋 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?

These typings are for a version of node that doesn’t yet exist on master, so I’ve compared them with v15.0.

Comparison details 📊
15.0@master 15.2 in #52646 diff
Batch compilation
Memory usage (MiB) 131.6 141.1 +7.3%
Type count 26341 26397 0%
Assignability cache size 9307 9333 0%
Language service
Samples taken 46 46 0%
Identifiers in tests 46 46 0%
getCompletionsAtPosition
    Mean duration (ms) 859.0 839.8 -2.2%
    Mean CV 8.4% 10.3%
    Worst duration (ms) 1051.9 971.1 -7.7%
    Worst identifier a a
getQuickInfoAtPosition
    Mean duration (ms) 833.5 827.6 -0.7%
    Mean CV 9.0% 9.0%
    Worst duration (ms) 989.7 1005.7 +1.6%
    Worst identifier a a
System information
Node version v14.16.1 v14.16.1
CPU count 2 2
CPU speed 2.294 GHz 2.397 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz Intel(R) Xeon(R) CPU E5-2673 v3 @ 2.40GHz
CPU Architecture x64 x64
Memory 6.8 GiB 6.8 GiB
Platform linux linux
Release 4.15.0-1113-azure 4.15.0-1113-azure

First off, note that the system varied slightly between these two runs, so you’ll have to take these measurements with a grain of salt.

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. The CI failed When GH Actions fails labels Apr 29, 2021
@typescript-bot
Copy link
Contributor

@SimonSchick The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Apr 29, 2021
@typescript-bot
Copy link
Contributor

@SimonSchick The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot added Other Approved This PR was reviewed and signed-off by a community member. The CI failed When GH Actions fails and removed Other Approved This PR was reviewed and signed-off by a community member. The CI failed When GH Actions fails labels Apr 29, 2021
@typescript-bot
Copy link
Contributor

@SimonSchick The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@SimonSchick
Copy link
Contributor Author

Build failure unrelated.

@typescript-bot typescript-bot added Check Config Changes a module config files and removed The CI failed When GH Actions fails labels Apr 30, 2021
@SimonSchick SimonSchick changed the title feat(node): v15.2 feat(node): v15.3 Apr 30, 2021
@SimonSchick
Copy link
Contributor Author

Added v15.3 as well, this will be the max version for the PR.

@SimonSchick
Copy link
Contributor Author

explicit cc @ExE-Boss since you authored some of the changes yourself.

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Apr 30, 2021
@typescript-bot
Copy link
Contributor

@SimonSchick The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot added The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Apr 30, 2021
@typescript-bot
Copy link
Contributor

@SimonSchick The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Apr 30, 2021
@SimonSchick
Copy link
Contributor Author

@victorperin if you want you can prepare a PR that contains all changes explicitly listed in the v16 release notes and file it as a draft so we can iterate on it.

I've worked up to 15.7 tonight and am optimistic to reach 15.14 by end of week.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label May 4, 2021
@typescript-bot
Copy link
Contributor

Updated numbers for you here from 0eba690.

These typings are for a version of node that doesn’t yet exist on master, so I’ve compared them with v15.0.

Comparison details 📊
15.0@master 15.3 in #52646 diff
Batch compilation
Memory usage (MiB) 131.6 129.6 -1.5%
Type count 26341 26610 +1%
Assignability cache size 9307 9414 +1%
Language service
Samples taken 46 46 0%
Identifiers in tests 46 46 0%
getCompletionsAtPosition
    Mean duration (ms) 859.0 1060.6 +23.5% 🔸
    Mean CV 8.4% 14.0%
    Worst duration (ms) 1051.9 1266.3 +20.4% 🔸
    Worst identifier a a
getQuickInfoAtPosition
    Mean duration (ms) 833.5 1049.1 +25.9% 🔸
    Mean CV 9.0% 14.9%
    Worst duration (ms) 989.7 1237.5 +25.0% 🔸
    Worst identifier a throws
System information
Node version v14.16.1 v14.16.1
CPU count 2 2
CPU speed 2.294 GHz 2.095 GHz
CPU model Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
CPU Architecture x64 x64
Memory 6.8 GiB 6.8 GiB
Platform linux linux
Release 4.15.0-1113-azure 4.15.0-1113-azure

First off, note that the system varied slightly between these two runs, so you’ll have to take these measurements with a grain of salt.

It looks like there are several metrics that changed quite a bit. You might want to take a look and make sure your changes won’t cause slow-downs for users consuming these types.

@typescript-bot typescript-bot added Perf: Worse typescript-bot determined that this PR has a negative impact on compilation performance. The CI failed When GH Actions fails and removed Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. labels May 4, 2021
@typescript-bot
Copy link
Contributor

@SimonSchick The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot added Edits multiple packages The CI failed When GH Actions fails and removed Author is Owner The author of this PR is a listed owner of the package. The CI failed When GH Actions fails labels May 4, 2021
@typescript-bot
Copy link
Contributor

@SimonSchick The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@SimonSchick
Copy link
Contributor Author

Build failure appears to be unrelated still.

@SimonSchick
Copy link
Contributor Author

Rebased, again, hoping tests pass now, this should not block this PR though...

@typescript-bot typescript-bot added Author is Owner The author of this PR is a listed owner of the package. and removed Edits multiple packages The CI failed When GH Actions fails labels May 13, 2021
@typescript-bot
Copy link
Contributor

@connor4312 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?

"compilerOptions": {
"module": "commonjs",
"target": "es6",
"target": "esnext",
Copy link
Member

Choose a reason for hiding this comment

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

What’s this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Been a moment but I believe this is to fix bigint support in tests.

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels May 14, 2021
@typescript-bot
Copy link
Contributor

@SimonSchick Everything looks good here. Great job! I am ready to merge this PR (at 97d3636) on your behalf.

If you'd like that to happen, please post a comment saying:

Ready to merge

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, @KSXGitHub, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @n-e, @galkin, @parambirs, @eps1lon, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @nguymin4, @yoursunny, @qwelias, @ExE-Boss, @Ryan-Willpower, @peterblazejewicz, @addaleax, @JasonHK, @victorperin, @ZYSzys: you can do this too.)

@SimonSchick
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot merged commit e38d387 into DefinitelyTyped:master May 14, 2021
@typescript-bot
Copy link
Contributor

I just published @types/node@15.3.0 to npm.

@SimonSchick SimonSchick deleted the node/v15.3 branch May 15, 2021 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author is Owner The author of this PR is a listed owner of the package. Check Config Changes a module config files Critical package Maintainer Approved Perf: Worse typescript-bot determined that this PR has a negative impact on compilation performance. Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants