Skip to content

Conversation

* an HTML string. The HTML output by this stream is exactly equal to what
* `ReactDOMServer.renderToString()` would return.
*
* @deprecated
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eps1lon eps1lon mentioned this pull request Apr 7, 2022
6 tasks
@DangerBotOSS
Copy link

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

Generated by 🚫 dangerJS against ef79a84

@eps1lon eps1lon marked this pull request as ready for review April 7, 2022 19:03
@eps1lon eps1lon requested a review from Jessidhia as a code owner April 7, 2022 19:03
@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 7, 2022

@eps1lon 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": 59748,
  "author": "eps1lon",
  "headCommitOid": "ef79a845efad2b2878f7faa848f404223ed09023",
  "mergeBaseOid": "55dc209ceb6dbcd59c4c68cc8dfb77faadd9de12",
  "lastPushDate": "2022-04-07T18:50:33.000Z",
  "lastActivityDate": "2022-04-14T21:02:59.000Z",
  "mergeOfferDate": "2022-04-14T21:00:26.000Z",
  "mergeRequestDate": "2022-04-14T21:02:59.000Z",
  "mergeRequestUser": "eps1lon",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "react-dom",
      "kind": "edit",
      "files": [
        {
          "path": "types/react-dom/server.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/react-dom/test/react-dom-tests.tsx",
          "kind": "test"
        }
      ],
      "owners": [
        "MartynasZilinskas",
        "theruther4d",
        "Jessidhia",
        "eps1lon"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "jakebailey",
      "date": "2022-04-14T20:59:46.000Z",
      "isMaintainer": true
    },
    {
      "type": "approved",
      "reviewer": "sebmarkbage",
      "date": "2022-04-07T19:36:42.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1092100770,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Critical package Author is Owner The author of this PR is a listed owner of the package. labels Apr 7, 2022
@typescript-bot
Copy link
Contributor

🔔 @MartynasZilinskas @theruther4d @Jessidhia — 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 the Other Approved This PR was reviewed and signed-off by a community member. label Apr 7, 2022
@artem-malko
Copy link
Contributor

@MartynasZilinskas @theruther4d @Jessidhia up) We need these types)

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Apr 14, 2022
@eps1lon
Copy link
Collaborator Author

eps1lon commented Apr 14, 2022

Ready to merge

@typescript-bot typescript-bot merged commit 1da06c0 into DefinitelyTyped:master Apr 14, 2022
@eps1lon eps1lon deleted the feat/react-dom/update-server-entrypoing branch April 14, 2022 22:11
@OliverJAsh
Copy link
Contributor

It looks like this hasn't been released yet? https://unpkg.com/@types/react-dom/server.d.ts

@OliverJAsh
Copy link
Contributor

Ah, it has been released as 18.0.1 (source), but for some reason npm thinks that 18.0.0 is the latest version.

@eps1lon
Copy link
Collaborator Author

eps1lon commented Apr 28, 2022

Ah, it has been released as 18.0.1 (source), but for some reason npm thinks that 18.0.0 is the latest version.

Nice catch! Seems like the types publisher did not point @latest to 18.0.2:

$ npm dist-tag @types/react-dom
latest: 18.0.0

@eps1lon
Copy link
Collaborator Author

eps1lon commented Apr 28, 2022

Tracking outdated distribution tag in microsoft/DefinitelyTyped-tools#443

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. Critical package Maintainer Approved Other Approved This PR was reviewed and signed-off by a community member. 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.

7 participants