-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: add npm query cmd #5000
feat: add npm query cmd #5000
Conversation
no statistically significant performance changes detected timing results
|
0fb004a
to
4511d0d
Compare
@darcyclarke I would love to know more about bugs you've mentioned encountering |
276da62
to
06e91a8
Compare
9f1d8f4
to
677db95
Compare
d2c7c33
to
319c837
Compare
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.
awesome stuff @wraithgar!
I'm curious about the perf issues, I see you were using p-map
before and I thought the improvements were due to that but it's no longer being used atm 🤔
Nothing under the hood was doing anything asynchronously. Removing async functions altogether for functions that were completely synchronous made it faster. We're also in the "make it right" phase. Performance isn't really an issue right now, it takes less than a second to query the cli tree. We can worry about performance next, after we "make it right". |
0345c40
to
bde355b
Compare
Refactor completed. No more melting cpus on workspace / has queries. include-workspace-root flag is obeyed. Lots of other cleanups and code consolidations. This may be ready to go. |
Giant refactor: - adds case insensitivity to attribute selectors - fixes --include-workspace-root - fixes -w results - docs updates - consolidating state into the `results` object and passing that to the functions that the ast walker functions use. - optimizing and refactoring other loops - code consolidation and consistency between two different attribute selectors - Un-asyncify functions that don't do async operators. We leave the exported fn async so we can add some in the future. - lots of other minor tweaks/cleanups
8a9a7cd
to
a1ed199
Compare
c5a0dfc
to
ab0b6f4
Compare
ab0b6f4
to
9349592
Compare
@wraithgar I'm curious on what was the issue with the melting cpus in the original implementation of the |
@ruyadorno I'm not 100% certain to be honest. iirc there were a couple of places where the wrong values where being passed into |
I see, sounds good! thanks for taking care and cleaning up all that 👍 I'm looking forward to this release 🤩 |
🥳 |
Nice work guys. Thank you all 🚀 |
Implemented Arborist
querySelectorAll
method that enables easierretrieval of installed packages using a css-selector-like syntax.
It also includes a new command
npm query
that exposes that same logicto users of the npm cli.
References
Original RFC: npm/rfcs#564