FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: simplify node modules traverse path by anonrig · Pull Request #53061 · nodejs/node · GitHub

/ node Public

src: simplify node modules traverse path - #53061

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
anonrig:simplify-node-modules
May 21, 2024
Merged

src: simplify node modules traverse path#53061
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
anonrig:simplify-node-modules

Conversation

anonrig commented May 19, 2024

Copy link
Copy Markdown
Member

Since we now support C++20, we can simplify our node_modules.cc implementation with filesystem and several C++20 functions.

cc @nodejs/cpp-reviewers @GeoffreyBooth @aduh95

nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels May 19, 2024
anonrig force-pushed the simplify-node-modules branch from 6c4dd78 to 168e137 Compare May 19, 2024 19:45
anonrig force-pushed the simplify-node-modules branch from 168e137 to bd17978 Compare May 19, 2024 19:55
GeoffreyBooth requested a review from guybedford May 19, 2024 22:19
GeoffreyBooth added the module Issues and PRs related to the module subsystem. label May 19, 2024
anonrig force-pushed the simplify-node-modules branch from bd17978 to c981546 Compare May 20, 2024 00:26

lemire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

ends_with and other C++20 features can probably simplify a lot of code. Good work.

anonrig added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels May 20, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 20, 2024

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

Comment thread src/node_modules.cc Outdated
anonrig force-pushed the simplify-node-modules branch from c981546 to 1e3f1cc Compare May 21, 2024 00:15

Copy link
Copy Markdown
Collaborator

anonrig requested review from guybedford and lemire May 21, 2024 14:32
anonrig added the review wanted PRs that need reviews. label May 21, 2024

anonrig commented May 21, 2024

Copy link
Copy Markdown
Member Author

@lemire @guybedford can you review again?

mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm

lemire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

tniessen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for modernizing this @anonrig!

On a side note, the fact that operator/ is overloaded is hilarious to me 😄

anonrig added commit-queue Add this label to land a pull request using GitHub Actions. and removed review wanted PRs that need reviews. labels May 21, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 21, 2024
nodejs-github-bot merged commit a7dad43 into nodejs:main May 21, 2024

Copy link
Copy Markdown
Collaborator

Landed in a7dad43

targos pushed a commit that referenced this pull request Jun 1, 2024
PR-URL: #53061
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
RafaelGSS mentioned this pull request Jun 7, 2024
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
PR-URL: nodejs#53061
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. module Issues and PRs related to the module subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL