fix - Removed import and usage of nodeCrypto when not running on nodejs
Following this discussion I implemented the suggested solution.
Removing the nodeCrypto check inside of md5 function because we anyway only export utils-webcrypto when we're in the correct environment.
Looks like the tests are dying with an 'unrecognized algorithm name' in node:
https://github.com/brianc/node-postgres/actions/runs/10389540544/job/28768489773?pr=3296#step:8:580
@brianc ok I think the reason is because we are checking for node 15 even though node.js only started support webCrypto starting version 22
I am gonna try and change the if statement to check node 22 instead of 15.
Node 15 is correct. Even the version history on the Node 22 docs page mentions versions back to 16.
Is this still required? It's been a while and this might have gone stale. Please feel free to re-open if so (there are merge conflicts now)