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] Update types to v18.18 #66750

Merged
merged 1 commit into from
Sep 25, 2023

Conversation

Semigradsky
Copy link
Contributor

https://github.com/nodejs/node/releases/tag/v18.18.0

  • child_process: support Symbol.dispose
  • dgram: socket add asyncDispose
  • events: allow safely adding listener to abortSignal
  • fs, stream: initial Symbol.dispose and Symbol.asyncDispose support
  • module: add SourceMap.findOrigin
  • net: server add asyncDispose
  • net: add autoSelectFamily global getter and setter
  • test_runner: fixed test shorthands return type
  • timers: support Symbol.dispose
  • url: add value argument to has and delete methods

@typescript-bot
Copy link
Contributor

typescript-bot commented Sep 25, 2023

@Semigradsky 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": 66750,
  "author": "Semigradsky",
  "headCommitOid": "94939d7df90111ac50dcf20a69565f945c4c93eb",
  "mergeBaseOid": "a40c3eebe42de18e2ba72036ecc9f79b74eaa6ef",
  "lastPushDate": "2023-09-19T15:26:40.000Z",
  "lastActivityDate": "2023-09-25T19:33:52.000Z",
  "mergeOfferDate": "2023-09-25T19:28:40.000Z",
  "mergeRequestDate": "2023-09-25T19:33:52.000Z",
  "mergeRequestUser": "Semigradsky",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/net.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/child_process.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/dgram.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/fs/promises.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/globals.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/net.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/stream.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/test.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/test/child_process.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/test/dgram.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/test/events.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/test/http.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/test/net.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/test/stream.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/test/test.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/test/timers.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/test/tls.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/timers.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/child_process.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/dgram.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/events.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/fs/promises.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/globals.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/module.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/net.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/node-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/stream.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/test.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/test/child_process.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/test/dgram.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/test/events.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/test/http.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/test/net.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/test/stream.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/test/test.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/test/timers.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/test/tls.ts",
          "kind": "test"
        },
        {
          "path": "types/node/v18/ts4.8/timers.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/ts4.8/url.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/v18/url.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",
        "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-09-25T19:27:56.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 1733055371,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Critical package Author is Owner The author of this PR is a listed owner of the package. labels Sep 25, 2023
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Sep 25, 2023
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Sep 25, 2023
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Sep 25, 2023
@typescript-bot
Copy link
Contributor

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

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

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Sep 25, 2023
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Sep 25, 2023
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Sep 25, 2023
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Sep 25, 2023
@typescript-bot
Copy link
Contributor

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

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

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

https://github.com/nodejs/node/releases/tag/v18.18.0

- child_process: support Symbol.dispose
- dgram: socket add asyncDispose
- events: allow safely adding listener to abortSignal
- fs, stream: initial Symbol.dispose and Symbol.asyncDispose support
- module: add SourceMap.findOrigin
- net: server add asyncDispose
- net: add autoSelectFamily global getter and setter
- test_runner: fixed test shorthands return type
- timers: support Symbol.dispose
- url: add value argument to has and delete methods
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Sep 25, 2023
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Sep 25, 2023
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Sep 25, 2023
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.

LGTM!
@Semigradsky 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 Sep 25, 2023
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Author to Merge in New Pull Request Status Board Sep 25, 2023
@Semigradsky
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 Sep 25, 2023
@typescript-bot typescript-bot merged commit 7312ef8 into DefinitelyTyped:master Sep 25, 2023
2 checks passed
function describe(name?: string, fn?: SuiteFn): void;
function describe(options?: TestOptions, fn?: SuiteFn): void;
function describe(fn?: SuiteFn): void;
function describe(name?: string, options?: TestOptions, fn?: SuiteFn): Promise<void>;
Copy link
Contributor

Choose a reason for hiding this comment

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

This caused our linter to start failing with @typescript-eslint/no-floating-promises, as nobody awaits the calls to describe/it. Furthermore, actually awaiting the it calls causes the second it to be delayed, which in-turn causes an error. For now, I've turned off that rule for test files, but ideally test files would be covered with that rule.

Example failure: https://github.com/wixplosives/sample-monorepo/actions/runs/6304680777/job/17116535127?pr=711

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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. Critical package Maintainer Approved 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