Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
module: block requiring test/reporters without scheme#47831
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
nodejs-github-bot commented May 3, 2023
Review requested:
|
VoltrexKeyva commented May 3, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
s/shcema/scheme in commit message. |
targos commented May 3, 2023
It should be scheme (or prefix), not schema. |
957ba10 to 92c05c2Comparetest/reporters without shcematest/reporters without schemenodejs-github-bot commented May 3, 2023
RaisinTen left a comment
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.
LGTM but should we also add a test that requiring this without the scheme throws?
MoLow commented May 3, 2023
@RaisinTen added a test, can you please re-approve? |
RaisinTen left a comment
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.
Thanks, still LGTM
nodejs-github-bot commented May 3, 2023
ljharb commented May 3, 2023
Is this not a breaking change? |
MoLow commented May 3, 2023
no, it is a bugfix. according to documentation:
|
ljharb commented May 3, 2023
I get that you can call it a patch, but it will be a breakage for anyone using is-core-module, including anyone using resolve. |
targos commented May 3, 2023
Anyone using it? Really? Don't they have to pass |
ljharb commented May 3, 2023
What i mean is, tooling based on resolve will consider the schemeless one a core module. So yes, they’d have to be requiring it, but it’s a pretty big assumption that nobody’s doing that already. |
benjamingr commented May 3, 2023
So I checked is-core-module and found inspect-js/is-core-module@9d5341a from 3 weeks ago so it doesn't look like a lot of time passed and the breakage seems reasonable in this case to not require a major. On a different note next time you see this sort of bug or oddity please report it :] |
aduh95 left a comment
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.
LGTM, I agree it makes sense to land this as a patch
ljharb commented May 3, 2023
@benjamingr the bug or oddity imo is that |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot commented May 3, 2023
nodejs-github-bot commented May 5, 2023
Landed in d55b84b |
PR-URL: #47831Fixes: #47828 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: #47831Fixes: #47828 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
PR-URL: nodejs#47831Fixes: nodejs#47828 Reviewed-By: Filip Skokan <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Jacob Smith <[email protected]>
Fixes: #47828