Repository navigation
Silence deprecation warnings without NODE_OPTIONS - #80
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
|
This works, but to get it to work in this codebase we'd need to fight the linter and ts. Idk why it is absent from the Node types. Crimes we'd need to commit:
|
|
Fine with the proposed crimes 1/2/3. We can come back and clean this up once folks are unblocked. |
|
yeah I'm thinking we just remove the |
|
@tibo-openai, I think a better options is what I've just pushed Just pass the cli flag, simple enough. I don't think this breaks anyone NODE_OPTIONS is a useful convention for multiple flags, but if we can get away with just a flag then lets ship it |
d692a71 to
5bd5013
Compare
|
Im thrashing in this PR rn, excuse the sloppy work. NODE_OPTIONS is designed to help with this specific issue, where So still searching for the correct portable way to do this |
|
Here's what I'll do, I'll restore the hacky approach that works A better fix can land later |
5bd5013 to
e1d41e5
Compare
e1d41e5 to
e81d461
Compare
|
ty!! |
|
For context, after #96 users wont have a failure on startup. So this PR is only needed now to silence any deprecations they may see in the console |
|
Seeing Could you resolve? |
|
Yeah, I'll rebase. The merge commit that I assume you did via github UI wiped out the signoff I had. I guess your DCO check requires all commits signed? Merge commits are commits too, so will run afoul of this unless signed |
Signed-off-by: Jon Church <[email protected]>
20ecc08 to
8ca9877
Compare
|
This shebang line would also work btw, less messy to deal with. Tested the following #!/usr/bin/env -S node --no-deprecation
console.log("works") |
|
@runofthemillgeek The crux of the issue is that Which is the original issue in #42 |
Saw that but as #42 (comment) said, that's not the case at all. I just think passing it at front like that is prolly causing issues on some OS versions (works fine on my macOS 15.4 too). Anyway, just thought to share that. |
TIL this even works, wow, it feels like a hack though for sure.
Can override process.noDeprecations to silence warnings. This use isnt even documented, but works in local testing
Specifically it was
punycodein node 22 that is being used in the transitive dep tree, and giving deprecation warnings.Closes #42