deno: move from std node polyfills to node: specifier#771
deno: move from std node polyfills to node: specifier#771Kyiro wants to merge 2 commits intoporsager:masterfrom
node: specifier#771Conversation
|
same 👍 |
|
It'd honestly be good to get this merged and resolve the error issue at a later date because of those warnings, could we get this PR reviewed? |
|
I'm thinking a hard cut in v4 where we just remove the deno polyfill completely if possible? |
|
As Deno got npm compatibility a while back, I think it might be the right play but this could still get accepted for v3 to avoid headaches |
Yes, the current version on supabase/edge-runtime it's not just a warning, but it triggers an error and become unusable: While switching to use this PR the error is gone. |
|
Note that removing tls polyfill cause ssl connections fail to a database with self signed certificate. This breaks cloud services like Supabase as well. The reason for that is the incompatibility of tls socket options in different runtimes. In nodejs, you set |
|
the |
4fd011e to
a92f470
Compare
|
hey @porsager can we have this merged? |
|
Here is a way to override the imports locally and ensure the warning is gone: #788 (comment) The only difference with the PR is on
|
4a0fe34 to
3a43815
Compare
Hello
I've been using postgres.js in a Deno project for a while but I just noticed how outdated the compatibility really is.
Before this gets accepted though, I'd also like to solve these errors when the connection string is invalid/can't connect. I have no idea if these happen on node but I'd assume not.