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

fix(52056): re-introduce v4 for webpack-terser-plugin #52062

Merged
merged 1 commit into from
Mar 31, 2021

Conversation

peterblazejewicz
Copy link
Member

To allow using v4 not passthrough version the proper tsconfig needs to
be in place and types be published with a change.

See #51712 for details.

Thanks!

/cc @rchl

Fixes: #52056

  • 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.)
  • Run npm test <package to test>.

how-to:

  • checkout detached branch from latest 4.2 version commit
  • move current into v4 and commit changes
  • restore/rebase from current master and run tests

To allow using v4 not passthrough version the proper tsconfig needs to
be in place and types be published with a change.

Thanks!

/cc @rchl

Fixes: DefinitelyTyped#52056
@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Author is Owner The author of this PR is a listed owner of the package. labels Mar 29, 2021
@typescript-bot
Copy link
Contributor

typescript-bot commented Mar 29, 2021

@peterblazejewicz Thank you for submitting this PR!

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.

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": 52062,
  "author": "peterblazejewicz",
  "headCommitOid": "273eaaa1797d65f02a0b6d9b81f919197c8d9b48",
  "lastPushDate": "2021-03-29T16:04:36.000Z",
  "lastActivityDate": "2021-03-31T18:06:02.000Z",
  "maintainerBlessed": false,
  "mergeOfferDate": "2021-03-31T12:00:08.000Z",
  "mergeRequestDate": "2021-03-31T18:06:02.000Z",
  "mergeRequestUser": "peterblazejewicz",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "terser-webpack-plugin",
      "kind": "edit",
      "files": [
        {
          "path": "types/terser-webpack-plugin/v4/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/terser-webpack-plugin/v4/package.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/terser-webpack-plugin/v4/terser-webpack-plugin-tests.ts",
          "kind": "test"
        },
        {
          "path": "types/terser-webpack-plugin/v4/tsconfig.json",
          "kind": "package-meta-ok"
        },
        {
          "path": "types/terser-webpack-plugin/v4/tslint.json",
          "kind": "package-meta-ok"
        }
      ],
      "owners": [
        "Danscho",
        "peterblazejewicz"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "Danscho",
      "date": "2021-03-31T11:59:32.000Z",
      "isMaintainer": false
    }
  ],
  "ciResult": "pass"
}

@typescript-bot
Copy link
Contributor

🔔 @Danscho — 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
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 #52062 diff
Batch compilation
Memory usage (MiB) 74.6 74.4 -0.3%
Type count 11430 11430 0%
Assignability cache size 2302 2302 0%
Language service
Samples taken 107 107 0%
Identifiers in tests 107 107 0%
getCompletionsAtPosition
    Mean duration (ms) 407.7 405.9 -0.4%
    Mean CV 10.8% 10.7%
    Worst duration (ms) 508.0 508.3 0.0%
    Worst identifier TerserPlugin safari10
getQuickInfoAtPosition
    Mean duration (ms) 403.9 398.4 -1.4%
    Mean CV 10.0% 8.6%
    Worst duration (ms) 503.0 489.8 -2.6%
    Worst identifier extractComments TerserPlugin

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 Mar 29, 2021
@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 labels Mar 31, 2021
@typescript-bot
Copy link
Contributor

@peterblazejewicz Everything looks good here. Great job! I am ready to merge this PR (at 273eaaa) on your behalf.

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! ❤️

(@Danscho: you can do this too.)

@peterblazejewicz
Copy link
Member Author

Ready to merge 💋

@typescript-bot typescript-bot merged commit e67d672 into DefinitelyTyped:master Mar 31, 2021
@peterblazejewicz peterblazejewicz deleted the fix/52056 branch March 31, 2021 18:07
@typescript-bot
Copy link
Contributor

I just published @types/terser-webpack-plugin@4.2.1 to npm.

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. 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. Popular package This PR affects a popular package (as counted by NPM download counts). 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.

[@types/terser-webpack-plugin] v4.2.0 depends on webpack 5 types
3 participants