| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
It's not just boolean values that were ignored. I don't know exactly what is the current behavior but at least numbers and null are also ignored. |
Sorry, something went wrong.
I see. I updated the PR. Thank you @targos |
Sorry, something went wrong.
Sorry, something went wrong.
There was a problem hiding this comment.
Shoudn't it be wip until tests are added?
Sorry, something went wrong.
If this is excluded in v20 release, I'll spend more time to add tests in this PR. If not, we can merge it as it is to unblock the release. |
Sorry, something went wrong.
I’m not really sure it needs tests, to be honest, because Node itself doesn’t take a position on non-string values of package.json values AFAIK. This is to fix CITGM tests that break, and it’s also debatable whether those tests are correct. We may very well want to support values like "main": false in the future, so adding a test now to prohibit that in the future would box us in. |
Sorry, something went wrong.
|
Can the PR title be updated to match the current PR’s behavior? |
Sorry, something went wrong.
It would not, it's definitely OK to change tests in semver-major PRs. Not having a test only gives a chance that such breaking change slips through in a semver-minor or semver-patch PR. |
Sorry, something went wrong.
If we add tests, any change we make in the future will be semver-major but we don't claim that we support non-string use cases since they are invalid. I think this is the correct approach. |
Sorry, something went wrong.
|
The tests don't map to claimed support though, do they? |
Sorry, something went wrong.
|
It's better to catch regression in tests instead of citgm |
Sorry, something went wrong.
|
@targos Why did we add don't-land-on-v21? The dependent PR issue is fixed in this PR and therefore, we can remove the do not land issues on this PR and parent PR. |
Sorry, something went wrong.
|
Feel free to change labels on both PRs if that's the correct thing to do. I just acted based on the parent PR labels. |
Sorry, something went wrong.
PR-URL: #50965 Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
| Back | FazBrowse Home | New Git URL |
Omit "main": false in package.json and do not throw an error for it.
FYI: This PR has missing tests.
cc @RafaelGSS @targos @nodejs/loaders