Skip to content

[react] Add support for legacy context in class components in JSXElementConstructor#65988

Merged
typescript-bot merged 2 commits into
DefinitelyTyped:masterfrom
NMinhNguyen:07-06-write_tests
Jul 26, 2023
Merged

[react] Add support for legacy context in class components in JSXElementConstructor#65988
typescript-bot merged 2 commits into
DefinitelyTyped:masterfrom
NMinhNguyen:07-06-write_tests

Conversation

@NMinhNguyen

@NMinhNguyen NMinhNguyen commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

This is a follow-up to #65566 for class components referencing legacy context in the constructor.

If changing an existing definition:

@NMinhNguyen NMinhNguyen force-pushed the 07-06-write_tests branch 2 times, most recently from 385ca72 to 8bb235b Compare July 6, 2023 09:58
@NMinhNguyen NMinhNguyen marked this pull request as ready for review July 6, 2023 10:04
@typescript-bot

typescript-bot commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

@NMinhNguyen Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it.

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 type definition owners or DT maintainers

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": 65988,
  "author": "NMinhNguyen",
  "headCommitOid": "55301dc1c372262567483b51e8ba9a706a02cb12",
  "mergeBaseOid": "b031043b7423efe6abd393f04d30f08bd50f1fd9",
  "lastPushDate": "2023-07-06T09:42:43.000Z",
  "lastActivityDate": "2023-07-26T17:42:50.000Z",
  "maintainerBlessed": "Waiting for Code Reviews",
  "mergeOfferDate": "2023-07-26T17:18:39.000Z",
  "mergeRequestDate": "2023-07-26T17:42:50.000Z",
  "mergeRequestUser": "NMinhNguyen",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "react",
      "kind": "edit",
      "files": [
        {
          "path": "types/react/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react/test/index.ts",
          "kind": "test"
        },
        {
          "path": "types/react/test/tsx.tsx",
          "kind": "test"
        },
        {
          "path": "types/react/ts5.0/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react/ts5.0/test/index.ts",
          "kind": "test"
        },
        {
          "path": "types/react/ts5.0/test/tsx.tsx",
          "kind": "test"
        }
      ],
      "owners": [
        "johnnyreilly",
        "bbenezech",
        "pzavolinsky",
        "ericanderson",
        "DovydasNavickas",
        "theruther4d",
        "guilhermehubner",
        "ferdaber",
        "jrakotoharisoa",
        "pascaloliv",
        "hotell",
        "franklixuefei",
        "Jessidhia",
        "saranshkataria",
        "lukyth",
        "eps1lon",
        "zieka",
        "dancerphil",
        "dimitropoulos",
        "disjukr",
        "vhfmag",
        "hellatan",
        "priyanshurav",
        "Semigradsky"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "eps1lon",
      "date": "2023-07-26T17:17:55.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1623396831,
  "ciResult": "pass"
}

@typescript-bot

Copy link
Copy Markdown
Contributor

@DangerBotOSS

DangerBotOSS commented Jul 6, 2023

Copy link
Copy Markdown

Inspecting the JavaScript source for this package found some properties that are not in the .d.ts files.
The check for missing properties isn't always right, so take this list as advice, not a requirement.

react (unpkg)

was missing the following properties:

  1. unstable_act

Generated by 🚫 dangerJS against 55301dc

Comment thread types/react/test/tsx.tsx Outdated
@typescript-bot

Copy link
Copy Markdown
Contributor

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

@andrewbranch andrewbranch requested a review from eps1lon July 12, 2023 18:34
@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 Jul 17, 2023
@typescript-bot

Copy link
Copy Markdown
Contributor

Re-ping @johnnyreilly, @bbenezech, @pzavolinsky, @ericanderson, @DovydasNavickas, @theruther4d, @guilhermehubner, @ferdaber, @jrakotoharisoa, @pascaloliv, @Hotell, @franklixuefei, @Jessidhia, @saranshkataria, @lukyth, @eps1lon, @zieka, @dancerphil, @dimitropoulos, @disjukr, @vhfmag, @hellatan, @priyanshurav, @Semigradsky:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@typescript-bot

Copy link
Copy Markdown
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @NMinhNguyen.

(Ping @johnnyreilly, @bbenezech, @pzavolinsky, @ericanderson, @DovydasNavickas, @theruther4d, @guilhermehubner, @ferdaber, @jrakotoharisoa, @pascaloliv, @Hotell, @franklixuefei, @Jessidhia, @saranshkataria, @lukyth, @eps1lon, @zieka, @dancerphil, @dimitropoulos, @disjukr, @vhfmag, @hellatan, @priyanshurav, @Semigradsky.)

@typescript-bot typescript-bot added 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 and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Jul 26, 2023
@typescript-bot

Copy link
Copy Markdown
Contributor

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

(@johnnyreilly, @bbenezech, @pzavolinsky, @ericanderson, @DovydasNavickas, @theruther4d, @guilhermehubner, @ferdaber, @jrakotoharisoa, @pascaloliv, @Hotell, @franklixuefei, @Jessidhia, @saranshkataria, @lukyth, @eps1lon, @zieka, @dancerphil, @dimitropoulos, @disjukr, @vhfmag, @hellatan, @priyanshurav, @Semigradsky: you can do this too.)

@NMinhNguyen

Copy link
Copy Markdown
Contributor Author

Ready to merge

@typescript-bot typescript-bot merged commit 8169bc6 into DefinitelyTyped:master Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

5 participants