Skip to content
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] http.Agent extends from EventEmitter #65408

Merged

Conversation

TooTallNate
Copy link
Contributor

@TooTallNate TooTallNate commented May 5, 2023

$ node
Welcome to Node.js v16.20.0.
Type ".help" for more information.
> http.globalAgent instanceof events.EventEmitter
true

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

```
$ node
Welcome to Node.js v16.20.0.
Type ".help" for more information.
> http.globalAgent instanceof events.EventEmitter
true
```
@typescript-bot
Copy link
Contributor

typescript-bot commented May 5, 2023

@TooTallNate 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.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by a DT maintainer

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": 65408,
  "author": "TooTallNate",
  "headCommitOid": "df04f085ed160f28b023c19ed65b9003e48e5b0d",
  "mergeBaseOid": "08d18de66db9bde5f26c679a7d91f6cd109ad1ec",
  "lastPushDate": "2023-05-05T09:56:04.000Z",
  "lastActivityDate": "2023-05-05T21:05:45.000Z",
  "mergeOfferDate": "2023-05-05T20:21:40.000Z",
  "mergeRequestDate": "2023-05-05T21:05:45.000Z",
  "mergeRequestUser": "TooTallNate",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/http.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/test/http.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v14/http.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v14/test/http.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v16/http.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v16/test/http.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/http.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/test/http.ts",
          "kind": "test"
        }
      ],
      "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",
        "yoursunny",
        "qwelias",
        "ExE-Boss",
        "peterblazejewicz",
        "addaleax",
        "victorperin",
        "ZYSzys",
        "NodeJS",
        "LinusU",
        "wafuwafu13",
        "mcollina",
        "Semigradsky"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "peterblazejewicz",
      "date": "2023-05-05T20:20:59.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "Semigradsky",
      "date": "2023-05-05T10:21:46.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1535655868,
  "ciResult": "pass"
}

@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board May 5, 2023
TooTallNate added a commit to TooTallNate/proxy-agents that referenced this pull request May 5, 2023
Part of #153.

I'd like to also emit this event on the `agent` instance itself, but
this is currently blocked by
DefinitelyTyped/DefinitelyTyped#65408.
@Semigradsky
Copy link
Contributor

@TooTallNate please add these changes to v18 folder too (rebase from master, folder was created recently)

@TooTallNate
Copy link
Contributor Author

Ya, sure thing. Added.

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Code Reviews in New Pull Request Status Board May 5, 2023
Copy link
Contributor

@Semigradsky Semigradsky left a comment

Choose a reason for hiding this comment

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

LGTM!

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label May 5, 2023
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board May 5, 2023
TooTallNate added a commit to TooTallNate/proxy-agents that referenced this pull request May 5, 2023
Part of #153.

I'd like to also emit this event on the `agent` instance itself, but
this is currently blocked by
DefinitelyTyped/DefinitelyTyped#65408.
Copy link
Member

@peterblazejewicz peterblazejewicz left a comment

Choose a reason for hiding this comment

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

@TooTallNate thanks!

@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 5, 2023
@typescript-bot
Copy link
Contributor

@TooTallNate: Everything looks good here. I am ready to merge this PR (at df04f08) on your behalf whenever you think it's ready.

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

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Author to Merge in New Pull Request Status Board May 5, 2023
@TooTallNate
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board May 5, 2023
@typescript-bot typescript-bot merged commit 35eb0e6 into DefinitelyTyped:master May 5, 2023
2 checks passed
@TooTallNate TooTallNate deleted the node-agent-event-emitter branch May 5, 2023 21:06
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board May 6, 2023
Desplandis pushed a commit to Desplandis/DefinitelyTyped that referenced this pull request Jul 3, 2023
…entEmitter` by @TooTallNate

* [node] `http.Agent` extends from `EventEmitter`

```
$ node
Welcome to Node.js v16.20.0.
Type ".help" for more information.
> http.globalAgent instanceof events.EventEmitter
true
```

* Remove `/`

* Add Node 18

* .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical package Maintainer Approved Owner Approved A listed owner of this package signed off on the pull request. 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.

None yet

4 participants