Brian Carlson
abff18d6f9
Publish
...
- pg-connection-string@2.9.0
- pg-cursor@2.15.0
- pg-esm-test@1.2.0
- pg-native@3.5.0
- pg-pool@3.10.0
- pg-protocol@1.10.0
- pg-query-stream@4.10.0
- pg@8.16.0
pg-connection-string@2.9.0
pg-cursor@2.15.0
pg-esm-test@1.2.0
pg-native@3.5.0
pg-pool@3.10.0
pg-protocol@1.10.0
pg-query-stream@4.10.0
pg@8.16.0
2025-05-12 11:49:59 -05:00
Brian Carlson
e43d4b7eb6
Update changelog
2025-05-12 11:49:41 -05:00
Herman J. Radtke III
e8fde07227
chore: document keepAliveInitialDelayMillis option ( #3460 )
2025-05-12 01:15:55 -05:00
Brian C
27f34c6aee
Bump libpq & nan version dep for node24 compat ( #3462 )
2025-05-12 01:07:01 -05:00
maltewirz
e30b41d481
Update connecting.mdx ( #3266 )
...
Changes tested myself and inspired by documention on aws rds signer https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-rds-signer/
2025-05-10 22:23:27 -05:00
Herman J. Radtke III
6be857e9d3
chore(pg-connection-string): use tsx for tests
2025-05-06 06:49:24 -04:00
dependabot[bot]
9bfc967e91
build(deps-dev): bump eslint-config-prettier from 9.1.0 to 10.1.2 ( #3453 )
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 9.1.0 to 10.1.2.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v9.1.0...v10.1.2 )
---
updated-dependencies:
- dependency-name: eslint-config-prettier
dependency-version: 10.1.2
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-01 12:33:50 -05:00
dependabot[bot]
79351af32e
build(deps-dev): bump eslint-plugin-prettier from 5.2.5 to 5.2.6 ( #3455 )
...
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) from 5.2.5 to 5.2.6.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.2.5...v5.2.6 )
---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
dependency-version: 5.2.6
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-01 12:33:37 -05:00
dependabot[bot]
52ec1293f2
build(deps-dev): bump @cloudflare/vitest-pool-workers ( #3456 )
...
Bumps [@cloudflare/vitest-pool-workers](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/vitest-pool-workers ) from 0.8.12 to 0.8.23.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases )
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/vitest-pool-workers/CHANGELOG.md )
- [Commits](https://github.com/cloudflare/workers-sdk/commits/@cloudflare/vitest-pool-workers@0.8.23/packages/vitest-pool-workers )
---
updated-dependencies:
- dependency-name: "@cloudflare/vitest-pool-workers"
dependency-version: 0.8.23
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-05-01 12:33:24 -05:00
Brian C
2647f7ecaf
Create README.md ( #3451 )
2025-04-30 20:20:35 -05:00
Brian C
980752ce00
Hard-pin 3rd party dependencies ( #3450 )
...
Co-authored-by: Brian Carlson <brian.carlson@getcruise.com>
2025-04-29 13:34:14 -05:00
francesco
264e30f424
docs: require to import ( #3448 )
2025-04-29 11:06:32 -05:00
Davide Violante
f528433e9d
chore: minor eslint fixes, reenable no-unused vars ( #3445 )
2025-04-28 11:59:26 -05:00
Davide Violante
93aa1ba2f1
chore: replace var with const in md files ( #3446 )
2025-04-28 09:54:46 +00:00
Brian C
9e7a5d97cf
Replace all usages of var with let / const - eslint auto applied ( #3444 )
2025-04-27 11:50:33 -05:00
Brian C
7a009381e6
Update pool docs ( #3442 )
...
* Update docs for pool
* Letting my robot overlords proofread for me
---------
Co-authored-by: Brian Carlson <brian.carlson@getcruise.com>
2025-04-25 15:21:44 -05:00
Harish T
ff40638868
Support Min connection pool parameter #3009 ( #3438 )
...
* Support Min connection pool parameter #3009
* Remove extraneous change
* streamline code
2025-04-25 14:41:02 -05:00
Brian C
229de3006b
Remove circluar dep for test dependency - I think this is managed w learna and not needed ( #3441 )
...
Co-authored-by: Brian Carlson <brian.carlson@getcruise.com>
2025-04-25 14:34:31 -05:00
Brian Carlson
81d875fe09
Publish
...
- pg-cursor@2.14.6
- pg-esm-test@1.1.6
- pg-pool@3.9.6
- pg-query-stream@4.9.6
- pg@8.15.6
pg-cursor@2.14.6
pg-esm-test@1.1.6
pg-pool@3.9.6
pg-query-stream@4.9.6
pg@8.15.6
2025-04-25 14:09:08 -05:00
Brian C
39e134d0b5
Make pg-cursor compatible with older versions of pg ( #3440 )
...
Co-authored-by: Brian Carlson <brian.carlson@getcruise.com>
2025-04-24 15:12:48 -05:00
Brian C
0c1629bea2
Update docs - add ESM info
...
* Update docs - start
* Add logo & discord
* Start updating docs for esm style imports
* Update docs with logo & info on pooling
* Update more import statements
---------
Co-authored-by: Brian Carlson <brian.carlson@getcruise.com>
2025-04-23 16:46:21 -05:00
Brian Carlson
56e2862577
Publish
...
- pg-cloudflare@1.2.5
- pg-connection-string@2.8.5
- pg-cursor@2.14.5
- pg-esm-test@1.1.5
- pg-native@3.4.5
- pg-pool@3.9.5
- pg-protocol@1.9.5
- pg-query-stream@4.9.5
- pg@8.15.5
pg-cloudflare@1.2.5
pg-connection-string@2.8.5
pg-cursor@2.14.5
pg-esm-test@1.1.5
pg-native@3.4.5
pg-pool@3.9.5
pg-protocol@1.9.5
pg-query-stream@4.9.5
pg@8.15.5
2025-04-23 13:48:25 -05:00
Brian Carlson
2919f28d31
Manually advance patch versions to re-align with lerna
2025-04-23 13:48:13 -05:00
Brian Carlson
36fd0a61db
Only allow publish from master
2025-04-23 13:46:01 -05:00
Brian C
6ab0c4608c
More tests & exports from pg-protocol ( #3436 )
2025-04-23 13:22:31 -05:00
Brian C
ad3e6035f4
Expose TypeOverrides in esm & cjs from root of package ( #3433 )
2025-04-23 12:37:52 -05:00
Brian C
e8280d58f6
Add tests for issues fixed in #3428 ( #3432 )
2025-04-23 11:53:54 -05:00
Breno A.
2da196cc1f
fix(exports): resolve issues with module imports and requires ( #3428 )
...
* fix(exports): resolve issues with module imports and requires
* fix(pg-native): add support for lib module resolution in package.json
2025-04-23 11:39:35 -05:00
Meghan Denny
bbc84b2690
pg-connection-string: fix 'parse' type signature
2025-04-23 10:43:34 -04:00
Brian Carlson
fb25f7bdb3
Publish
...
- pg-connection-string@2.8.1
- pg-cursor@2.14.1
- pg-esm-test@1.1.1
- pg-pool@3.9.1
- pg-query-stream@4.9.1
- pg@8.15.1
pg-connection-string@2.8.1
pg-cursor@2.14.1
pg-esm-test@1.1.1
pg-pool@3.9.1
pg-query-stream@4.9.1
pg@8.15.1
2025-04-22 15:27:31 -05:00
Herman J. Radtke III
557716d1fa
fix(pg-connection-string): export default from esm wrapper ( #3425 )
...
Prior to v2.8.0, the parse function was the default when using import.
When esm compatibility was introduced in v2.8.0, there was not default
specified. This broke existing code that relied on that default.
Fixes #3424
2025-04-22 15:24:48 -05:00
Herman J. Radtke III
9cc7d8eb94
docs: add missing parameters on pg.Client Config ( #3422 )
...
- client_encoding
- fallback_application_name
- options
2025-04-22 11:04:17 -05:00
Brian Carlson
9ec9e5f58d
Publish
...
- pg-cloudflare@1.2.0
- pg-connection-string@2.8.0
- pg-cursor@2.14.0
- pg-esm-test@1.1.0
- pg-native@3.4.0
- pg-pool@3.9.0
- pg-protocol@1.9.0
- pg-query-stream@4.9.0
- pg@8.15.0
pg-cloudflare@1.2.0
pg-connection-string@2.8.0
pg-cursor@2.14.0
pg-esm-test@1.1.0
pg-native@3.4.0
pg-pool@3.9.0
pg-protocol@1.9.0
pg-query-stream@4.9.0
pg@8.15.0
2025-04-22 10:55:24 -05:00
Brian Carlson
60817cd914
Update changelog
2025-04-22 10:55:10 -05:00
Brian C
940479bc4b
Add esm exports ( #3423 )
...
* build: add esm exports
* fix: add defaults as per arethetypeswrong report
* fix: add missing types
* lint
* Fix broken tests
* Add (failing) test for esm compat
* Begin moving files to proper extension and adding tests
* Add tests for connection-string and fix cloudflare module type and esm compat
* Add query-stream and cursor as esm exports
* Update PR copilot review
* Publish
- pg-cloudflare@1.1.2-alpha.0
- pg-connection-string@2.7.1-alpha.0
- pg-cursor@2.13.2-alpha.0
- pg-esm-test@1.0.1-alpha.0
- pg-native@3.3.1-alpha.0
- pg-pool@3.8.1-alpha.0
- pg-protocol@1.8.1-alpha.0
- pg-query-stream@4.8.2-alpha.0
- pg@8.14.2-alpha.0
* More cf compat work
* Publish
- pg-cloudflare@1.1.2-alpha.1
- pg-cursor@2.13.2-alpha.1
- pg-esm-test@1.0.1-alpha.1
- pg-pool@3.8.1-alpha.1
- pg-query-stream@4.8.2-alpha.1
- pg@8.14.2-alpha.1
* Add more cf compat and update tests
* Make tests pass - update exports for esm
* Use env vars for test connection in cf tests
* Fix lint
* Fit vitest into existing legacy framework
* Skip worker tests on node below 18
* Revert doc changes for now
* Remove legacy worker test in favor of vitest
---------
Co-authored-by: Luca Ban <mesqueeb@users.noreply.github.com>
2025-04-22 10:53:22 -05:00
Patrick Malouin
81ec0635fc
feat(pg-connection-string): get closer to libpq semantics for sslmode
...
Allows user to change the semantics of `sslmode` to be as close as possible to libpq semantics. The opt in can be enabled using `useLibpqCompat` parsing option or the non-standard `uselibpqcompat` query string parameter.
---------
Co-authored-by: Charmander <~@charmander.me>
Co-authored-by: Herman J. Radtke III <herman@hermanradtke.com>
2025-04-20 08:13:33 -04:00
Charmander
d8fb2f9c35
test: Avoid silencing errors from idle timeout test’s child process ( #3419 )
...
This hid the error fixed in #3263 , for example.
2025-04-13 07:18:33 +00:00
Alex Anderson
9b510373a6
eslint: enable recommended ruleset ( #3263 )
2025-04-12 08:17:33 +00:00
Herman J. Radtke III
5a8b1a7d24
feat(pg-connection-string): ClientConfig helper functions
...
Two new functions are introduced to make it easy for TypeScript
users to use a PostgresSQL connection string with pg Client.
Fixes #2280
2025-04-08 20:06:28 -04:00
Charmander
a9fd34fb42
Revert "docs: fix bug in transaction example ( #3414 )"
...
This reverts commit dcb4257898d1d8d37110a4364922206dad33f9fe.
The change doesn’t fix the bug it claims to (`finally` always runs) and introduces a resource leak if the `ROLLBACK` query fails. The related bug that a broken client can be returned to the pool remains unaffected either way.
2025-04-03 15:10:49 -07:00
dependabot[bot]
a5d03a0774
build(deps-dev): bump eslint-plugin-prettier from 5.1.2 to 5.2.5 ( #3412 )
...
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) from 5.1.2 to 5.2.5.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v5.1.2...v5.2.5 )
---
updated-dependencies:
- dependency-name: eslint-plugin-prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-01 15:38:44 -05:00
lucaesposto
dcb4257898
docs: fix bug in transaction example ( #3414 )
...
Throwing error will not allow "finally" execution, so client.release() must be invoked before it.
2025-04-01 15:38:14 -05:00
Brian Carlson
a3fefe3183
Update sponsorship info
2025-03-22 10:58:51 -05:00
Brian Carlson
477f812984
Publish
...
- pg-cursor@2.13.1
- pg-query-stream@4.8.1
- pg@8.14.1
pg-cursor@2.13.1
pg-query-stream@4.8.1
pg@8.14.1
2025-03-17 10:37:54 -05:00
Brian C
c53a472a60
Batch network packets in prepared statements ( #3402 )
...
* Batch network packets in prepared statements
Fixes #3340
Fixes #3325
Fixes #3098
* Fix type-o but mostly retrigger build for CF pages preview
2025-03-17 10:28:46 -05:00
Brian Carlson
f7c92e487c
Publish
...
- pg-cursor@2.13.0
- pg-native@3.3.0
- pg-pool@3.8.0
- pg-protocol@1.8.0
- pg-query-stream@4.8.0
- pg@8.14.0
pg-cursor@2.13.0
pg-native@3.3.0
pg-pool@3.8.0
pg-protocol@1.8.0
pg-query-stream@4.8.0
pg@8.14.0
2025-03-11 10:25:26 -05:00
Brian Carlson
1c45dd2828
Update changelog
2025-03-11 10:25:12 -05:00
Alex Anderson
b823a23f67
simple-query-tests: remove no-op test ( #3390 )
...
Originally skipped in daa370a61
Co-authored-by: alxndrsn <alxndrsn>
2025-03-10 13:14:01 -05:00
George MacKerron
b4022aa5c0
Add support for SCRAM-SHA-256-PLUS i.e. channel binding ( #3356 )
...
* Added support for SCRAM-SHA-256-PLUS i.e. channel binding
* Requested tweaks to channel binding
* Additional tweaks to channel binding
* Fixed lint complaints
* Update packages/pg/lib/crypto/sasl.js
Co-authored-by: Charmander <~@charmander.me>
* Update packages/pg/lib/crypto/sasl.js
Co-authored-by: Charmander <~@charmander.me>
* Update packages/pg/lib/client.js
Co-authored-by: Charmander <~@charmander.me>
* Tweaks to channel binding
* Now using homegrown certificate signature algorithm identification
* Update ssl.mdx with channel binding changes
* Allow for config object being undefined when assigning enableChannelBinding
* Fixed a test failing on an updated error message
* Removed - from hash names like SHA-256 for legacy crypto (Node 14 and below)
* Removed packageManager key from package.json
* Added some SASL/channel binding unit tests
* Added a unit test for continueSession to check expected SASL session data
* Modify tests: don't require channel binding (which cannot then work) if not using SSL
---------
Co-authored-by: Charmander <~@charmander.me>
2025-03-10 13:13:32 -05:00
francesco
1876f2000a
Add "unref" to timers ( #3396 )
...
* chore: add unref to timer
see https://nodejs.org/api/timers.html#timeoutunref
* chore: add unref to timer
see https://nodejs.org/api/timers.html#timeoutunref
* fix: lint
* fix: lint
* fix: lint
* fix: lint
2025-03-10 12:16:57 -05:00