Skip to content

Conversation

@EetuAH
Copy link

@EetuAH EetuAH commented Dec 8, 2025

This PR improves Deno 2 compatibility to the postgres Deno build.
The existing Deno imports and polyfills are a bit outdated and should be refreshed.

Changes

  • Updated transpile.deno.js to use proper node:* imports for Deno 2 compatibility
  • Simplified and modernized deno/polyfill.js
  • Added HmacSha256 as the only remaining polyfill, as the previous node:net compatibility were no longer needed and have been removed.
  • Rest of the files are generated by npm run build:deno

Test results

$ deno --allow-all ./index.js
✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅✅🎉

- Updated transpile.deno.js to use proper node:* imports for Deno 2 compatibility
- Simplified and modernized deno/polyfill.js
- Added HmacSha256 implementation to polyfills
- Simplified transpile.deno.js
- Improved and cleaned up deno/polyfill.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant