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

Merged

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

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": 67035,
  "author": "khaosdoctor",
  "headCommitOid": "099f0eecd96f383e14269192cce9e70f9a3327f8",
  "mergeBaseOid": "15024fd054cd63fa11739f178a166d7c836b248e",
  "lastPushDate": "2023-10-12T01:06:51.000Z",
  "lastActivityDate": "2024-01-17T06:22:02.000Z",
  "mergeOfferDate": "2024-01-16T20:47:57.000Z",
  "mergeRequestDate": "2024-01-17T06:22:02.000Z",
  "mergeRequestUser": "Semigradsky",
  "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",
        "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": "2024-01-16T20:47:16.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "Semigradsky",
      "date": "2024-01-13T15:41:44.000Z",
      "isMaintainer": false
    },
    {
      "type": "stale",
      "reviewer": "sheetalkamat",
      "date": "2023-10-30T21:41:26.000Z",
      "abbrOid": "41eba7f"
    }
  ],
  "mainBotCommentID": 1763034642,
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

typescript-bot commented Oct 14, 2023

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

@Semigradsky
Copy link
Contributor

@khaosdoctor Will you open new? I thought you will rebase from master this PR

@khaosdoctor
Copy link
Contributor Author

From what I've seen they have already added the types for the mocks in the review 🧐 didn't they?

@Semigradsky
Copy link
Contributor

I have only updated doc comments

Semigradsky added a commit to Semigradsky/DefinitelyTyped that referenced this pull request Jan 13, 2024
- test_runner: Add Date to the supported mock APIs // copied from DefinitelyTyped#67035
- esm: add import.meta.dirname and import.meta.filename // changed to non-optional fields
@khaosdoctor khaosdoctor reopened this Jan 13, 2024
@khaosdoctor
Copy link
Contributor Author

Oh sorry I didn't see it! Reopened, will fix the conflicts and open to be ready for review!

@khaosdoctor khaosdoctor marked this pull request as ready for review January 13, 2024 14:41
@khaosdoctor
Copy link
Contributor Author

@Semigradsky ready for review!

@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 Revision needed This PR needs code changes before it can be merged. labels Jan 13, 2024
@typescript-bot typescript-bot moved this from Needs Author Action to Needs Maintainer Action in New Pull Request Status Board Jan 13, 2024
@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Jan 13, 2024
@typescript-bot
Copy link
Contributor

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

@Semigradsky
Copy link
Contributor

@peterblazejewicz please take a look 🙏

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.

@khaosdoctor thx!
sorry it went under the radar 🙇🏻

@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 Jan 16, 2024
@typescript-bot typescript-bot moved this from Needs Maintainer Action to Waiting for Author to Merge in New Pull Request Status Board Jan 16, 2024
@Semigradsky
Copy link
Contributor

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board Jan 17, 2024
@typescript-bot typescript-bot merged commit 4238428 into DefinitelyTyped:master Jan 17, 2024
3 checks passed
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Jan 17, 2024
@khaosdoctor khaosdoctor deleted the node/add-incoming-date-mock branch January 17, 2024 21:34
@khaosdoctor
Copy link
Contributor Author

Yay! Thanks peeps

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

6 participants