Skip to content

Conversation

@eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Jun 10, 2023

TL;DR:
react@next is now react@canary and we reflect that now types.
To get types for react@canary use

-<reference types="react/next" />
+<reference types="react/canary" />

or

-import {} from 'react/next'
+import {} from 'react/canary'

See https://react.dev/blog/2023/05/03/react-canaries

@DangerBotOSS
Copy link

DangerBotOSS commented Jun 10, 2023

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-dom (unpkg)

was missing the following properties:

  1. createRoot
  2. hydrateRoot
  3. createRoot
  4. hydrateRoot

react-is (unpkg)

was missing the following properties:

  1. SuspenseList
  2. isConcurrentMode
  3. isSuspenseList

react (unpkg)

was missing the following properties:

  1. unstable_act

Generated by 🚫 dangerJS against 21cb4ea

@eps1lon eps1lon marked this pull request as ready for review June 10, 2023 09:07
@typescript-bot
Copy link
Contributor

typescript-bot commented Jun 10, 2023

@eps1lon Thank you for submitting this PR!

This is a live comment which I will keep updated.

3 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 which 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.

Inactive

This PR has been inactive for 6 days.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 65734,
  "author": "eps1lon",
  "headCommitOid": "21cb4ea18ef448705fe53ae0dee994fafda6c854",
  "mergeBaseOid": "a578a934d741796e02f961f6303dec3dc9b6e2a5",
  "lastPushDate": "2023-06-10T09:15:46.000Z",
  "lastActivityDate": "2023-06-19T12:22:45.000Z",
  "mergeOfferDate": "2023-06-12T17:51:25.000Z",
  "mergeRequestDate": "2023-06-19T12:22:45.000Z",
  "mergeRequestUser": "eps1lon",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "react-dom",
      "kind": "edit",
      "files": [
        {
          "path": "types/react-dom/canary.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react-dom/experimental.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react-dom/package.json",
          "kind": "package-meta",
          "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-packagejson) and not moving towards it (check: `exports`)"
        },
        {
          "path": "types/react-dom/test/canary-tests.tsx",
          "kind": "test"
        },
        {
          "path": "types/react-dom/tsconfig.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "MartynasZilinskas",
        "theruther4d",
        "Jessidhia",
        "eps1lon"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    },
    {
      "name": "react-is",
      "kind": "edit",
      "files": [
        {
          "path": "types/react-is/canary.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react-is/test/canary-tests.tsx",
          "kind": "test"
        },
        {
          "path": "types/react-is/tsconfig.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "AviVahl",
        "christianchown",
        "eps1lon"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    },
    {
      "name": "react",
      "kind": "edit",
      "files": [
        {
          "path": "types/react/OTHER_FILES.txt",
          "kind": "package-meta",
          "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-other_filestxt) and not moving towards it"
        },
        {
          "path": "types/react/canary.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react/experimental.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react/package.json",
          "kind": "package-meta",
          "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-packagejson) and not moving towards it (check: `exports`)"
        },
        {
          "path": "types/react/test/canary.tsx",
          "kind": "test"
        },
        {
          "path": "types/react/ts5.0/OTHER_FILES.txt",
          "kind": "package-meta",
          "suspect": "not [the expected form](https://github.com/DefinitelyTyped/DefinitelyTyped#user-content-other_filestxt) and not moving towards it"
        },
        {
          "path": "types/react/ts5.0/canary.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react/ts5.0/experimental.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react/ts5.0/test/canary.tsx",
          "kind": "test"
        },
        {
          "path": "types/react/ts5.0/tsconfig.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/react/tsconfig.json",
          "kind": "package-meta-ok"
        }
      ],
      "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": "sheetalkamat",
      "date": "2023-06-12T17:50:31.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 1585577627,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Critical package Author is Owner The author of this PR is a listed owner of the package. Check Config Changes a module config files labels Jun 10, 2023
@typescript-bot
Copy link
Contributor

typescript-bot commented Jun 10, 2023

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

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

@eps1lon
Copy link
Collaborator Author

eps1lon commented Jun 19, 2023

Ready to merge

@typescript-bot typescript-bot merged commit 291b21e into DefinitelyTyped:master Jun 19, 2023
@eps1lon eps1lon deleted the feat/react/canary branch June 22, 2023 09:28
Desplandis pushed a commit to Desplandis/DefinitelyTyped that referenced this pull request Jul 3, 2023
…ry by @eps1lon

* [react] react@next is now react@canary

* Same for react-dom

* Same for react-is
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. Check Config Changes a module config files 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.

4 participants