-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
feat(pnpapi): Add process.versions.pnp
#47107
feat(pnpapi): Add process.versions.pnp
#47107
Conversation
@ExE-Boss Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PRCode ReviewsBecause you edited one package and updated the tests (👏), I can help you merge this PR once someone else signs off on it. Status
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": 47107,
"author": "ExE-Boss",
"owners": [
"arcanis"
],
"dangerLevel": "ScopedAndTested",
"headCommitAbbrOid": "f29b364",
"headCommitOid": "f29b364f973ec6625a0d27e600e83303110ffafe",
"mergeIsRequested": true,
"stalenessInDays": 0,
"lastPushDate": "2020-09-30T12:10:04.000Z",
"reopenedDate": "2020-09-29T20:42:59.000Z",
"lastCommentDate": "2020-09-30T19:59:27.000Z",
"maintainerBlessed": false,
"reviewLink": "https://github.com/DefinitelyTyped/DefinitelyTyped/pull/47107/files",
"hasMergeConflict": false,
"authorIsOwner": false,
"isFirstContribution": false,
"popularityLevel": "Well-liked by everyone",
"newPackages": [],
"packages": [
"pnpapi"
],
"files": [
{
"path": "types/pnpapi/index.d.ts",
"kind": "definition",
"package": "pnpapi"
},
{
"path": "types/pnpapi/pnpapi-tests.ts",
"kind": "test",
"package": "pnpapi"
}
],
"hasDismissedReview": false,
"ciResult": "pass",
"lastReviewDate": "2020-09-30T19:15:10.000Z",
"reviewersWithStaleReviews": [
{
"reviewedAbbrOid": "5ff2d86",
"reviewer": "SimenB",
"date": "2020-08-28T16:17:17Z"
}
],
"approvalFlags": 4,
"isChangesRequested": false
} |
🔔 @arcanis — please review this PR in the next few days. Be sure to explicitly select |
👋 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 📊
It looks like nothing changed too much. I won’t post performance data again unless it gets worse. |
000f9c1
to
5ff2d86
Compare
types/pnpapi/index.d.ts
Outdated
declare global { | ||
namespace NodeJS { | ||
interface ProcessVersions { | ||
pnp: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it still be optional? Just loading the types doesn't mean it's pnp at runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed 👍
Closing as abandoned. |
Sorry, I didn't see it before! @SimenB's comment should be addressed, then it's fine by me 😃 |
@ExE-Boss My mistake. The comment from 30 days ago was unaddressed, so I assumed this was no longer interesting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the feedback from @SimenB.
@ExE-Boss 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. If you disagree with the reviewer's comments, you can "dismiss" the review using GitHub's review UI. Thank you! |
0d57bb3
to
f29b364
Compare
Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
@@ -1,3 +1,4 @@ | |||
/// <reference types="node"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SimenB 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? |
Updated numbers for you here from d883808. Comparison details 📊
It looks like there are several metrics that changed quite a bit. You might want to take a look and make sure your changes won’t cause slow-downs for users consuming these types. |
Ready to merge |
I just published |
Please fill in this template.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).If changing an existing definition:
process.versions.pnp
property #46700 (comment) (https://yarnpkg.com/advanced/pnpapi#processversionspnp)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.