Skip to content

[@types/underscore] Collection and Array Tests - Union, Intersection, and Difference#46419

Merged
typescript-bot merged 3 commits intoDefinitelyTyped:masterfrom
reubenrybnik:underscore-tests-union-intersection-difference
Jul 29, 2020
Merged

[@types/underscore] Collection and Array Tests - Union, Intersection, and Difference#46419
typescript-bot merged 3 commits intoDefinitelyTyped:masterfrom
reubenrybnik:underscore-tests-union-intersection-difference

Conversation

@reubenrybnik
Copy link
Copy Markdown
Contributor

  • 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.)
  • 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: https://underscorejs.org/
  • Include tests for your changes

This PR continues the planned set that will together add up to #45201 and includes the following changes:

@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 Jul 28, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Jul 28, 2020

@reubenrybnik Thank you for submitting this PR!

This is a live comment which I will keep updated.

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": 46419,
  "author": "reubenrybnik",
  "owners": [
    "borisyankov",
    "jbaldwin",
    "ccurrens",
    "confususs",
    "jgonggrijp",
    "ffflorian",
    "regevbr",
    "peterblazejewicz",
    "reubenrybnik"
  ],
  "dangerLevel": "ScopedAndTested",
  "headCommitAbbrOid": "543cdae",
  "headCommitOid": "543cdae2dd46399cdc70943038fd6fbd88cce111",
  "mergeIsRequested": true,
  "stalenessInDays": 0,
  "lastPushDate": "2020-07-29T16:56:27.000Z",
  "lastCommentDate": "2020-07-29T19:44:09.000Z",
  "maintainerBlessed": false,
  "reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46419/files",
  "hasMergeConflict": false,
  "authorIsOwner": true,
  "isFirstContribution": false,
  "popularityLevel": "Popular",
  "anyPackageIsNew": false,
  "packages": [
    "underscore"
  ],
  "files": [
    {
      "path": "types/underscore/index.d.ts",
      "kind": "definition",
      "package": "underscore"
    },
    {
      "path": "types/underscore/underscore-tests.ts",
      "kind": "test",
      "package": "underscore"
    }
  ],
  "hasDismissedReview": false,
  "ciResult": "pass",
  "lastReviewDate": "2020-07-29T19:40:25.000Z",
  "reviewersWithStaleReviews": [
    {
      "reviewedAbbrOid": "c1c07a1",
      "reviewer": "w3bdesign",
      "date": "2020-07-29T00:31:04Z"
    }
  ],
  "approvalFlags": 2,
  "isChangesRequested": false
}

@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @borisyankov @jbaldwin @ccurrens @confususs @jgonggrijp @ffflorian @regevbr @peterblazejewicz — 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 Jul 29, 2020
@typescript-bot
Copy link
Copy Markdown
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 #46419 diff
Batch compilation
Memory usage (MiB) 66.8 67.8 +1.6%
Type count 12952 12965 0%
Assignability cache size 1521 1521 0%
Language service
Samples taken 7436 7537 +1%
Identifiers in tests 7436 7537 +1%
getCompletionsAtPosition
    Mean duration (ms) 218.2 219.2 +0.5%
    Mean CV 6.8% 6.8%
    Worst duration (ms) 441.0 429.5 -2.6%
    Worst identifier _ _
getQuickInfoAtPosition
    Mean duration (ms) 211.9 214.5 +1.2%
    Mean CV 6.7% 7.0% +3.9%
    Worst duration (ms) 490.0 483.4 -1.3%
    Worst identifier extractUnderscoreTypes extractUnderscoreTypes

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 Jul 29, 2020
Copy link
Copy Markdown
Contributor

@jgonggrijp jgonggrijp left a comment

Choose a reason for hiding this comment

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

I'm fine with this as-is, though I made two minor comments that you may want to follow up on.

@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 Jul 29, 2020
@typescript-bot typescript-bot removed Self Merge This PR can now be self-merged by the PR author or an owner Other Approved This PR was reviewed and signed-off by a community member. Owner Approved A listed owner of this package signed off on the pull request. labels Jul 29, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

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

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

(@borisyankov, @jbaldwin, @ccurrens, @confususs, @jgonggrijp, @ffflorian, @regevbr, @peterblazejewicz: you can do this too.)

@reubenrybnik
Copy link
Copy Markdown
Contributor Author

Ready to merge

@typescript-bot typescript-bot merged commit e6d8966 into DefinitelyTyped:master Jul 29, 2020
@typescript-bot
Copy link
Copy Markdown
Contributor

I just published @types/underscore@1.10.17 to npm.

astorije pushed a commit to astorije/DefinitelyTyped that referenced this pull request Jul 30, 2020
…rray Tests - Union, Intersection, and Difference by @reubenrybnik

* Updating type definitions for union, intersection, and difference and adding tests.

* Also testing mixes of arrays and lists.

* Taking a stab at the documentation updates requested by @jgonggrijp.
danielrearden pushed a commit to danielrearden/DefinitelyTyped that referenced this pull request Sep 22, 2020
…rray Tests - Union, Intersection, and Difference by @reubenrybnik

* Updating type definitions for union, intersection, and difference and adding tests.

* Also testing mixes of arrays and lists.

* Taking a stab at the documentation updates requested by @jgonggrijp.
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/underscore error TS2322 for _.chain after upgrade to v1.9

4 participants