brianc / node-postgres

PostgreSQL client for node.js.
https://node-postgres.com
MIT License
12.04k stars 1.21k forks source link

Add pg-native to monorepo #3225

Closed brianc closed 4 weeks ago

brianc commented 1 month ago

Makes fixing things like #3214 easier and generally makes contributing a bit easier. I didn't do much to "modernize" the pg-native codebase other than running it through the standard eslint --fix that is applied to the rest of the code. There's some easy opportunities there to update it to es6 and so on...it still uses some pretty antiquated coding styles in places.

cloudflare-pages[bot] commented 1 month ago

Deploying node-postgres with  Cloudflare Pages  Cloudflare Pages

Latest commit: e1514a3
Status: ✅  Deploy successful!
Preview URL: https://878262f4.node-postgres.pages.dev
Branch Preview URL: https://bmc-add-pg-native.node-postgres.pages.dev

View logs

brianc commented 4 weeks ago

Took me a bit to fiddle w/ the cloudflare stuff I didn't write (but now I maintain, i suppose!) - that wrangler package was doing some at-runtime npx stuff, so I upgraded it. Anyways...also re-enabled native tests for node 20, and added node 22 to the test matrix - so libpq is building & working on all nodes again. yay. Will publish this in the am (so I can be around in case there's some weird regression introduced)