Skip to content

Comments

Update iterator types to align with microsoft/TypeScript#59506#70221

Merged
typescript-bot merged 2 commits intomasterfrom
builtin_iterator_return2
Aug 7, 2024
Merged

Update iterator types to align with microsoft/TypeScript#59506#70221
typescript-bot merged 2 commits intomasterfrom
builtin_iterator_return2

Conversation

@rbuckton
Copy link
Collaborator

@rbuckton rbuckton commented Aug 5, 2024

This updates various libraries to align with the changes in microsoft/TypeScript#59506 which renames BuiltinIterator to IteratorObject and introduces specific IteratorObject subtypes for built-ins such as ArrayIterator, MapIterator, SetIterator, etc..

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: <>

@rbuckton rbuckton marked this pull request as draft August 5, 2024 18:36
@rbuckton
Copy link
Collaborator Author

rbuckton commented Aug 5, 2024

Marking as a draft until microsoft/TypeScript#59506 has merged and is available in nightly

@jakebailey jakebailey closed this Aug 6, 2024
@jakebailey jakebailey reopened this Aug 6, 2024
@rbuckton rbuckton marked this pull request as ready for review August 7, 2024 20:55
@typescript-bot
Copy link
Contributor

typescript-bot commented Aug 7, 2024

@rbuckton Thank you for submitting this PR!

This is a live comment that I will keep updated.

6 packages 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
  • ✅ A DT maintainer needs to approve changes that affect more than one package

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": 70221,
  "author": "rbuckton",
  "headCommitOid": "db116018ff28477b904a53365eba750c798a6181",
  "mergeBaseOid": "454c171426225dbc4f0b58a2482b31c238dd34d2",
  "lastPushDate": "2024-08-05T18:36:35.000Z",
  "lastActivityDate": "2024-08-07T21:57:52.000Z",
  "mergeOfferDate": "2024-08-07T21:10:24.000Z",
  "mergeRequestDate": "2024-08-07T21:57:52.000Z",
  "mergeRequestUser": "rbuckton",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "call-bind",
      "kind": "edit",
      "files": [
        {
          "path": "types/call-bind/test/callBound.test.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "ljharb",
        "ExE-Boss"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    },
    {
      "name": "es-abstract",
      "kind": "edit",
      "files": [
        {
          "path": "types/es-abstract/test/es2015.test.ts",
          "kind": "test"
        },
        {
          "path": "types/es-abstract/test/helpers/callBound.test.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "ljharb",
        "ExE-Boss"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    },
    {
      "name": "es-get-iterator",
      "kind": "edit",
      "files": [
        {
          "path": "types/es-get-iterator/es-get-iterator-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "JasonHK",
        "ljharb"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    },
    {
      "name": "lodash",
      "kind": "edit",
      "files": [
        {
          "path": "types/lodash/lodash-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "bczengel",
        "chrootsu",
        "aj-r",
        "e-cloud",
        "thorn0",
        "jtmthf",
        "DomiR",
        "WilliamChelman"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    },
    {
      "name": "regenerator-runtime",
      "kind": "edit",
      "files": [
        {
          "path": "types/regenerator-runtime/regenerator-runtime-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "ExE-Boss"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    },
    {
      "name": "string.prototype.matchall",
      "kind": "edit",
      "files": [
        {
          "path": "types/string.prototype.matchall/string.prototype.matchall-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "peterblazejewicz"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "jakebailey",
      "date": "2024-08-07T21:09:48.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 2274333323,
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @ljharb @ExE-Boss @JasonHK @bczengel @chrootsu @aj-r @e-cloud @thorn0 @jtmthf @DomiR @WilliamChelman @peterblazejewicz — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

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

@rbuckton: Everything looks good here. I am ready to merge this PR (at db11601) 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! ❤️

@rbuckton
Copy link
Collaborator Author

rbuckton commented Aug 7, 2024

Ready to merge

@typescript-bot typescript-bot merged commit e394678 into master Aug 7, 2024
@rbuckton rbuckton deleted the builtin_iterator_return2 branch August 7, 2024 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Edits multiple packages 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.

3 participants