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: add types for the new Date mocks in the upcoming version #67035

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

khaosdoctor
Copy link
Contributor

@khaosdoctor khaosdoctor commented Oct 12, 2023

This PR adds the types for Date mocks coming in the next minor release of Node. I'm attaching the original PR.

Select one of these and delete the others:

If changing an existing definition:

Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
@typescript-bot typescript-bot added this to Needs Author Action in New Pull Request Status Board Oct 12, 2023
@khaosdoctor
Copy link
Contributor Author

Version is still unknown since it wasn't released yet. As soon as it's released I'll update with the node version number

Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
@khaosdoctor khaosdoctor marked this pull request as ready for review October 14, 2023 16:33
@khaosdoctor
Copy link
Contributor Author

This change is coming in the next version, so if you want to wait until the merge

@typescript-bot
Copy link
Contributor

typescript-bot commented Oct 14, 2023

@khaosdoctor 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

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": 67035,
  "author": "khaosdoctor",
  "headCommitOid": "41eba7f898929e70ef79163f6b2752e4595f150c",
  "mergeBaseOid": "a95a9d92473b8b8bcf8317c3df1ddf37b5c608c4",
  "lastPushDate": "2023-10-12T01:06:51.000Z",
  "lastActivityDate": "2023-12-14T04:12:34.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/test.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/test/test.ts",
          "kind": "test"
        },
        {
          "path": "types/node/ts4.8/test.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/node/ts4.8/test/test.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",
        "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": "changereq",
      "reviewer": "Semigradsky",
      "date": "2023-10-31T08:19:20.000Z"
    },
    {
      "type": "approved",
      "reviewer": "sheetalkamat",
      "date": "2023-10-30T21:41:26.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 1763034642,
  "ciResult": "pass"
}

@typescript-bot typescript-bot moved this from Needs Author Action to Needs Maintainer Review in New Pull Request Status Board Oct 14, 2023
@peterblazejewicz
Copy link
Member

Please convert to draft (to save CPU/planet)

coming in the next minor release of Node

@khaosdoctor khaosdoctor marked this pull request as draft October 14, 2023 22:34
@khaosdoctor
Copy link
Contributor Author

@peterblazejewicz sure thing

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Needs Author Action in New Pull Request Status Board Oct 14, 2023
@khaosdoctor khaosdoctor marked this pull request as ready for review October 24, 2023 17:27
@khaosdoctor
Copy link
Contributor Author

This was merged :)

@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Oct 24, 2023
@typescript-bot typescript-bot moved this from Needs Author Action to Needs Maintainer Review in New Pull Request Status Board Oct 24, 2023
@typescript-bot
Copy link
Contributor

1 similar comment
@typescript-bot
Copy link
Contributor

@Semigradsky
Copy link
Contributor

Need a wait for a new Node.js 20.x release with this change.

types/node/test.d.ts Outdated Show resolved Hide resolved
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.

Please make the same changes in types/node/ts4.8 folder (for users who use TypeScript <= 4.8)

@typescript-bot typescript-bot added Revision needed This PR needs code changes before it can be merged. and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Oct 24, 2023
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Needs Author Action in New Pull Request Status Board Oct 24, 2023
@typescript-bot
Copy link
Contributor

@khaosdoctor 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!

@typescript-bot typescript-bot added Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. and removed The CI failed When GH Actions fails labels Oct 27, 2023
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Oct 27, 2023
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board Oct 27, 2023
@typescript-bot
Copy link
Contributor

@typescript-bot typescript-bot moved this from Needs Maintainer Review to Needs Maintainer Action in New Pull Request Status Board Oct 30, 2023
@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Oct 30, 2023
@typescript-bot typescript-bot moved this from Needs Maintainer Action to Waiting for Author to Merge in New Pull Request Status Board Oct 30, 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.

Need a wait for a new Node.js 20.x release with this change.

@typescript-bot typescript-bot added Revision needed This PR needs code changes before it can be merged. and removed Self Merge This PR can now be self-merged by the PR author or an owner Maintainer Approved labels Oct 31, 2023
@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Needs Author Action in New Pull Request Status Board Oct 31, 2023
@typescript-bot
Copy link
Contributor

@khaosdoctor 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!

@khaosdoctor
Copy link
Contributor Author

New version has been launched with the change: https://nodejs.org/en/blog/release/v21.2.0

@khaosdoctor
Copy link
Contributor Author

@Semigradsky I think it's safe to merge now

@jakebailey
Copy link
Member

That's v21, but the types are v20. My understanding is that DT doesn't ever contain the odd numbered versions, so this has to wait for a backport to v20 or v18.

@khaosdoctor
Copy link
Contributor Author

That's v21, but the types are v20. My understanding is that DT doesn't ever contain the odd numbered versions, so this has to wait for a backport to v20 or v18.

But then if someone wants to use it on a current version this is then not defined? Like, if I wanted to install and use Node 21.2, especially for testing this feature for example, shouldn't we have the types for it as well?

@jakebailey
Copy link
Member

jakebailey commented Nov 17, 2023

Well, there was actually a v13, v15, and v17, but no v19 and so far no v21. So my blanket statement was not correct historically. Sorry about that.

In any case it's up to the node types maintainers to decide if they want to deal with yet another version in the types.

But, it still hasn't been done in years, it seems.

@typescript-bot typescript-bot added the Abandoned This PR had no activity for a long time, and is considered abandoned label Dec 10, 2023
@typescript-bot
Copy link
Contributor

@khaosdoctor I haven't seen any activity on this PR in more than three weeks, and it still has problems that prevent it from being merged. The PR will be closed on Dec 17th (in a week) if the issues aren't addressed.

@khaosdoctor
Copy link
Contributor Author

Can I reopen this once we have a new release?

@typescript-bot typescript-bot removed the Abandoned This PR had no activity for a long time, and is considered abandoned label Dec 13, 2023
@Semigradsky
Copy link
Contributor

You can mark as draft. Draft shouldn't be closed

@khaosdoctor
Copy link
Contributor Author

Nice, I'm drafting it then until the Node team launches the next stable

@khaosdoctor khaosdoctor marked this pull request as draft December 14, 2023 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Critical package Revision needed This PR needs code changes before it can be merged.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants