-
Notifications
You must be signed in to change notification settings - Fork 30k
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
[Proposal] Deprecate --without-intl compilation flag #35942
Comments
+1 |
Do we know if anyone builds Node with that option in the wild? |
Users of nexe, pkg and boxednode (@addaleax) |
I use it for reducing the binary size. |
Yeah, I think it’s still a decent option for decreasing binary size if the target environment profits from this. To be clear, I’m not using this myself – just saying I can see that there are valid use cases. |
What is the difference in size between |
To be clear, I'm not advocating for removal the compilation option. Maybe deprecating is not the correct wording, but I think we need to rethink the status of those builds. |
You can find the size differences here: After I switched from |
I use it. |
I use it for https://github.com/patr0nus/rust-nodejs. |
I think we can/should leave My life would have been complete without taking time to figure out how to keep Unicode syntax highlighting from breaking the documentation build on intl. We landed something, @richardlau had to roll it back (because no one thought "this needs to be tested on full CI", which I guess is a separate issue to address), and then we had a discussion (involving @targos and @aduh95 too) about how to get it working. I guess we could skip building docs if building |
E.g. #35092 (review) is an example of what could have been broken with |
@ChALkeR Do you mean supporting |
I meant only that there are PRs that are seemingly unrelated to intl on the first glance, that might get broken on |
Yeah, I almost want to suggest that our CI for |
Do you mean something beyond what the |
I mean less than that because that runs the full test suite. |
I think we should be going the other direction on that -- making sure more PRs go through a full CI run. A full CI run doesn't even take that long, considering there isn't anything that really needs to be merged before the time it takes for a full CI run to complete. |
I disagree, I don't think more CI runs is an appropriate response:
The most recent breakage of the CI came from |
That's fine as long as CI either doesn't try to build docs before running any actual tests or skips building docs if intl isn't available so that tests can still run. |
That's the path in #41091. One issue we have is that we don't run |
Is your feature request related to a problem? Please describe.
Currently, Node.js supports the compilation with disabled ICU. I think we would benefit from officially deprecating it:
punycode
core module (punycode: runtime deprecation #35092)Intl
built-in methods in node core.Describe the solution you'd like
Having a warning in the console when compiling using
--without-intl
flag, and document that Node.js versions compiled without ICU are expected to have some unavailable features.Also, I think the project should allow initiatives like #27662 to land even if it doesn't work on
--without-intl
node
versions.If you are yourself a user of non-ICU versions of Node.js, please join the discussion, I'd be interested to hear what are the use-cases.
cc/ @nodejs/tsc
The text was updated successfully, but these errors were encountered: