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

[react] Mark script's charSet attribute as deprecated #48581

Merged
merged 1 commit into from Oct 11, 2020
Merged

[react] Mark script's charSet attribute as deprecated #48581

merged 1 commit into from Oct 11, 2020

Conversation

mbelsky
Copy link
Contributor

@mbelsky mbelsky commented Oct 7, 2020

Please fill in this template.

  • Use a meaningful title for the pull request. Include the name of the package modified.
  • Test the change in your own code. (Compile and run.)
  • Add or edit tests to reflect the change. (Run with npm test YOUR_PACKAGE_NAME.)
  • Follow the advice from the readme.
  • Avoid common mistakes.
  • Run npm run lint package-name (or tsc if no tslint.json is present).
  • Provide a URL to documentation or source code which provides context for the suggested changes: mdn, html standard
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.
  • Include tests for your changes
  • If you are making substantial changes, consider adding a tslint.json containing { "extends": "dtslint/dt.json" }. If for reason the any rule need to be disabled, disable it for that line using // tslint:disable-next-line [ruleName] and not for whole package so that the need for disabling can be reviewed.

@typescript-bot typescript-bot added Critical package Untested Change This PR does not touch tests labels Oct 7, 2020
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Oct 7, 2020
@typescript-bot
Copy link
Contributor

typescript-bot commented Oct 7, 2020

@mbelsky Thank you for submitting this PR!

This is a live comment which I will keep updated.

This PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Have you considered adding tests to cover the change you're making? Including tests allows this PR to be merged by yourself and the owners of this module. This can potentially save days of time for you.

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.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ❌ Only a DT maintainer can approve changes without tests

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 48581,
  "author": "mbelsky",
  "owners": [
    "johnnyreilly",
    "bbenezech",
    "pzavolinsky",
    "digiguru",
    "ericanderson",
    "DovydasNavickas",
    "theruther4d",
    "guilhermehubner",
    "ferdaber",
    "jrakotoharisoa",
    "pascaloliv",
    "hotell",
    "franklixuefei",
    "Jessidhia",
    "saranshkataria",
    "lukyth",
    "eps1lon",
    "zieka",
    "dancerphil",
    "dimitropoulos",
    "disjukr",
    "vhfmag",
    "hellatan"
  ],
  "dangerLevel": "ScopedAndUntested",
  "headCommitAbbrOid": "0e2995f",
  "headCommitOid": "0e2995f42d4440ebbc607e781e03c891de86a0d2",
  "mergeIsRequested": false,
  "stalenessInDays": 0,
  "lastPushDate": "2020-10-11T08:51:41.000Z",
  "lastCommentDate": "2020-10-07T18:29:46.000Z",
  "maintainerBlessed": false,
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/48581/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": false,
  "popularityLevel": "Critical",
  "newPackages": [],
  "packages": [
    "react"
  ],
  "files": [
    {
      "path": "types/react/index.d.ts",
      "kind": "definition",
      "package": "react"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "pass",
  "lastReviewDate": "2020-10-11T10:49:51.000Z",
  "reviewersWithStaleReviews": [],
  "approvalFlags": 2,
  "isChangesRequested": false
}

@typescript-bot
Copy link
Contributor

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. The CI failed When GH Actions fails labels Oct 7, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Oct 7, 2020
@typescript-bot
Copy link
Contributor

@mbelsky The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot removed Owner Approved A listed owner of this package signed off on the pull request. The CI failed When GH Actions fails labels Oct 7, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Oct 7, 2020
types/react/index.d.ts Outdated Show resolved Hide resolved
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Oct 7, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Oct 7, 2020
@typescript-bot
Copy link
Contributor

@mbelsky The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot
Copy link
Contributor

👋 Hi there! I’ve run some quick measurements against master and your PR. These metrics should help the humans reviewing this PR gauge whether it might negatively affect compile times or editor responsiveness for users who install these typings.

Let’s review the numbers, shall we?

Comparison details 📊
master #48581 diff
Batch compilation
Memory usage (MiB) 119.8 118.9 -0.8%
Type count 34676 34688 0%
Assignability cache size 8145 8145 0%
Language service
Samples taken 2345 2345 0%
Identifiers in tests 2905 2905 0%
getCompletionsAtPosition
    Mean duration (ms) 328.7 347.1 +5.6%
    Mean CV 8.1% 7.9%
    Worst duration (ms) 1248.7 1222.8 -2.1%
    Worst identifier x props
getQuickInfoAtPosition
    Mean duration (ms) 326.1 343.2 +5.2%
    Mean CV 8.1% 7.9% -2.7%
    Worst duration (ms) 997.1 997.9 +0.1%
    Worst identifier ref x

It looks like nothing changed too much. I won’t post performance data again unless it gets worse.

@typescript-bot typescript-bot added the Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. label Oct 7, 2020
@mbelsky mbelsky changed the title [react] Actualize script attributes [react] Mark script's charSet attribute as deprecated Oct 7, 2020
@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Oct 7, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Waiting for Code Reviews in New Pull Request Status Board Oct 7, 2020
@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Oct 7, 2020
@typescript-bot typescript-bot moved this from Waiting for Code Reviews to Needs Author Action in New Pull Request Status Board Oct 7, 2020
@typescript-bot
Copy link
Contributor

@mbelsky The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Oct 11, 2020
@typescript-bot typescript-bot moved this from Needs Author Action to Needs Maintainer Review in New Pull Request Status Board Oct 11, 2020
@typescript-bot
Copy link
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?

@typescript-bot typescript-bot added the Owner Approved A listed owner of this package signed off on the pull request. label Oct 11, 2020
@johnnyreilly
Copy link
Member

Thanks!

@johnnyreilly johnnyreilly merged commit 397e42c into DefinitelyTyped:master Oct 11, 2020
@typescript-bot typescript-bot removed this from Needs Maintainer Review in New Pull Request Status Board Oct 11, 2020
@typescript-bot
Copy link
Contributor

I just published @types/react@16.9.52 to npm.

@mbelsky mbelsky deleted the react-script branch October 11, 2020 16:31
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. Perf: Same typescript-bot determined that this PR will not significantly impact compilation performance. Untested Change This PR does not touch tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants