You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I perform any axios request with a script envoked with bun run index.ts I see no deprecation warnings. But if I run the same script with bun build --compile index.ts --outfile out, ./out I see a DeprecationWarning for url.parse().
Here's an example script that shows the behaviour:
I'd like to not see any unexpected deprecation warnings after compiling the binary. I'd be happy to simply turn off the warnings for the compiled binary.
What do you see instead?
DeprecationWarning: `url.parse()`behavior is notstandardizedandpronetoerrorsthathavesecurityimplications.UsetheWHATWGURLAPIinstead.CVEsarenotissuedfor`url.parse()`vulnerabilities.code: "DEP0169"aturlParse(node:url:32:45)atgetProxyForUrl(/$bunfs/root/out:9442:56)atsetProxy(/$bunfs/root/out:11622:66)at<anonymous>(/$bunfs/root/out:11867:15)atdispatchHttpRequest(/$bunfs/root/out:11685:57)at<anonymous>(/$bunfs/root/out:11671:18)atnewPromise(1:11)atwrapAsync(/$bunfs/root/out:11654:10)atdispatchRequest(/$bunfs/root/out:12640:17)
Additional information
I'm using axios 1.7.9 if that helps.
No response
The text was updated successfully, but these errors were encountered:
Deprecation warnings for url.parse() are not emitted for files within node_modules. Bun determines this by scanning the call stack. You're seeing this warning now since compiled binaries have their paths clobbered.
What version of Bun is running?
1.2.0+b0c5a7655
What platform is your computer?
Darwin 23.6.0 arm64 arm
What steps can reproduce the bug?
If I perform any axios request with a script envoked with
bun run index.ts
I see no deprecation warnings. But if I run the same script withbun build --compile index.ts --outfile out
,./out
I see a DeprecationWarning forurl.parse()
.Here's an example script that shows the behaviour:
What is the expected behavior?
I'd like to not see any unexpected deprecation warnings after compiling the binary. I'd be happy to simply turn off the warnings for the compiled binary.
What do you see instead?
Additional information
I'm using axios 1.7.9 if that helps.
No response
The text was updated successfully, but these errors were encountered: