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

update(puppeteer): product option support #43716

Merged

Conversation

peterblazejewicz
Copy link
Member

  • product option support as per 2.1
  • version bump
  • test updated

https://github.com/puppeteer/puppeteer/releases/tag/v2.1.0
puppeteer/puppeteer#5137

Thanks!

  • 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.)
  • 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
  • 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.

@typescript-bot typescript-bot added this to Waiting for Reviewers in Pull Request Status Board Apr 7, 2020
@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). Awaiting reviewer feedback labels Apr 7, 2020
@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 7, 2020

@peterblazejewicz Thank you for submitting this PR!

🔔 @marvinhagemeister @cdeutsch @ksm2 @SimonSchick @serbanghita @JasonKaz @davecardwell @angrykoala - 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.

If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead.

@typescript-bot typescript-bot added Popular package This PR affects a popular package (as counted by NPM download counts). and removed Popular package This PR affects a popular package (as counted by NPM download counts). labels Apr 7, 2020
@typescript-bot typescript-bot moved this from Waiting for Reviewers to Review in Pull Request Status Board Apr 12, 2020
@typescript-bot typescript-bot added the Unmerged The author did not merge the PR when it was ready. label Apr 12, 2020
@typescript-bot
Copy link
Contributor

After 5 days, no one has reviewed the PR 😞. A maintainer will be reviewing the PR in the next few days and will either merge it or request revisions. Thank you for your patience!

* At this time, this is either `chrome` or `firefox`. See also `PUPPETEER_PRODUCT`.
* @default 'chrome'
*/
product?: 'chrome' | 'firefox';
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this to a union string. eg. ProductType = 'chrome' | 'firefox';

Copy link
Member Author

Choose a reason for hiding this comment

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

@SimonSchick
Done, amended!

@typescript-bot typescript-bot moved this from Review to Needs Author Attention in Pull Request Status Board Apr 12, 2020
@typescript-bot typescript-bot added Revision needed This PR needs code changes before it can be merged. and removed Awaiting reviewer feedback Unmerged The author did not merge the PR when it was ready. labels Apr 12, 2020
@typescript-bot
Copy link
Contributor

@peterblazejewicz One or more reviewers has requested changes. Please address their comments. I'll be back once they sign off or you've pushed new commits or comments. Thank you!

@typescript-bot
Copy link
Contributor

🔔 @SimonSchick - Thanks for your review of this PR! Can you please look at the new code and update your review status if appropriate?

@typescript-bot
Copy link
Contributor

typescript-bot commented Apr 29, 2020

@peterblazejewicz Thank you for submitting 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": 43716,
  "author": "peterblazejewicz",
  "owners": [
    "marvinhagemeister",
    "cdeutsch",
    "ksm2",
    "SimonSchick",
    "SerbanGhita",
    "JasonKaz",
    "davecardwell",
    "angrykoala"
  ],
  "dangerLevel": "ScopedAndTested",
  "headCommitAbbrOid": "716f774",
  "headCommitOid": "716f774e60db972586897df9b6ae51409d954300",
  "mergeIsRequested": true,
  "stalenessInDays": 12,
  "lastCommitDate": "2020-04-29T20:22:27.000Z",
  "lastCommentDate": "2020-05-11T21:02:52.000Z",
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43716/files",
  "hasMergeConflict": false,
  "authorIsOwner": false,
  "isFirstContribution": false,
  "popularityLevel": "Popular",
  "anyPackageIsNew": false,
  "packages": [
    "puppeteer"
  ],
  "files": [
    {
      "filePath": "types/puppeteer/index.d.ts",
      "kind": "definition",
      "package": "puppeteer"
    },
    {
      "filePath": "types/puppeteer/puppeteer-tests.ts",
      "kind": "test",
      "package": "puppeteer"
    }
  ],
  "hasDismissedReview": false,
  "travisResult": "pass",
  "lastReviewDate": "2020-05-11T20:56:56.000Z",
  "reviewersWithStaleReviews": [
    {
      "reviewedAbbrOid": "4d4ca94",
      "reviewer": "SimonSchick"
    }
  ],
  "approvalFlags": 4,
  "isChangesRequested": false
}

@typescript-bot typescript-bot removed the Revision needed This PR needs code changes before it can be merged. label Apr 29, 2020
@typescript-bot typescript-bot added this to Waiting for Code Reviews in New Pull Request Status Board Apr 29, 2020
@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 #43716 diff
Batch compilation
Memory usage (MiB) 108.2 108.4 +0.1%
Type count 19393 19407 0%
Assignability cache size 38361 38364 0%
Language service
Samples taken 1180 1199 +2%
Identifiers in tests 1180 1199 +2%
getCompletionsAtPosition
    Mean duration (ms) 609.6 612.8 +0.5%
    Mean CV 8.7% 8.8%
    Worst duration (ms) 869.7 775.1 -10.9%
    Worst identifier j includes
getQuickInfoAtPosition
    Mean duration (ms) 601.2 603.7 +0.4%
    Mean CV 8.5% 8.3% -2.4%
    Worst duration (ms) 890.9 796.4 -10.6%
    Worst identifier jsonValue rev

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 Apr 29, 2020
@typescript-bot
Copy link
Contributor

@SimonSchick 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
Copy link
Contributor

🔔 @marvinhagemeister @cdeutsch @ksm2 @SimonSchick @serbanghita @JasonKaz @davecardwell @angrykoala - 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 moved this from Waiting for Code Reviews to Needs Maintainer Review in New Pull Request Status Board May 11, 2020
@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels May 11, 2020
@typescript-bot typescript-bot moved this from Needs Maintainer Review to Waiting for Author to Merge in New Pull Request Status Board May 11, 2020
@typescript-bot
Copy link
Contributor

@peterblazejewicz Everything looks good here. Great job! I am ready to merge this PR 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! ❤️

@peterblazejewicz
Copy link
Member Author

Ready to merge

@typescript-bot typescript-bot moved this from Waiting for Author to Merge to Recently Merged in New Pull Request Status Board May 11, 2020
@typescript-bot typescript-bot merged commit 81f1a46 into DefinitelyTyped:master May 11, 2020
@peterblazejewicz peterblazejewicz deleted the update/puppeteer branch May 11, 2020 21:03
@typescript-bot
Copy link
Contributor

I just published @types/puppeteer@2.1.0 to npm.

andreialecu pushed a commit to andreialecu/DefinitelyTyped that referenced this pull request May 12, 2020
jjballano-qatium pushed a commit to jjballano-qatium/DefinitelyTyped that referenced this pull request Jun 16, 2020
@typescript-bot typescript-bot removed this from Recently Merged in New Pull Request Status Board Jul 13, 2020
@elibarzilay elibarzilay removed this from Needs Author Attention in Pull Request Status Board Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintainer Approved 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.

None yet

4 participants