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
2025-05-12 11:49:59 -05:00
Brian C
27f34c6aee
Bump libpq & nan version dep for node24 compat ( #3462 )
2025-05-12 01:07:01 -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
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 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
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 C
6ab0c4608c
More tests & exports from pg-protocol ( #3436 )
2025-04-23 13:22:31 -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
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
2025-04-22 10:55:24 -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
Alex Anderson
9b510373a6
eslint: enable recommended ruleset ( #3263 )
2025-04-12 08:17:33 +00: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
2025-03-11 10:25:26 -05:00
dependabot[bot]
1230c86ba9
build(deps-dev): bump lodash from 2.4.2 to 4.17.21 ( #3367 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 2.4.2 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/2.4.2...4.17.21 )
---
updated-dependencies:
- dependency-name: lodash
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-02-13 09:42:45 -06:00
Brian Carlson
5755b78386
Publish
...
- pg-cursor@2.12.3
- pg-native@3.2.2
- pg-query-stream@4.7.3
- pg@8.13.3
2025-02-12 18:29:56 -06:00
francesco
f6e829c564
fix: revert PR #3379 (avoid useless spread) ( #3382 )
...
* Update result.js
* Update build-result.js
* fix: lint
* fix: lint
2025-02-12 18:28:05 -06:00
Brian Carlson
732580782f
Publish
...
- pg-cursor@2.12.2
- pg-native@3.2.1
- pg-pool@3.7.1
- pg-protocol@1.7.1
- pg-query-stream@4.7.2
- pg@8.13.2
2025-02-11 10:19:52 -06:00
francesco
f1586932fd
perf(pg-native): pre-shaped result rows ( #3369 )
...
* perf(pg-native): pre-shaped result rows
Porting on pg-native https://github.com/brianc/node-postgres/issues/3042
* fix: lint
* perf(pg-native): avoid useless spread
2025-02-11 10:12:10 -06:00
francesco
0792f0904a
Update libpq to 1.8.14 and fix #3332 ( #3364 )
...
* Update libpq to 1.8.14 and fix #3332
Update libpq to 1.8.14 and fix #3332
* Add node 23
2025-02-11 10:11:25 -06:00
Nigro Simone
3c48f22b22
perf: pre allocate array instead of push item ( #3250 )
...
* fix: typo
* perf: pre allocate array instead of push item
* perf: refractoring missing push
* perf: avoid useless varible declaration
* perf: short control flow
* fix: lint
* more precise bench
* fix: lint
2025-01-17 15:27:35 -06:00
Arya
2de02f0a63
updated pg-native github url in package.json ( #3320 )
2025-01-13 13:32:45 -06:00
francesco
f12e555b73
chore: align pg-types to vanilla ( #3336 )
2025-01-13 13:31:25 -06:00
Brian Carlson
92cb640fd3
Publish
...
- pg-connection-string@2.7.0
- pg-cursor@2.12.0
- pg-native@3.2.0
- pg-pool@3.7.0
- pg-protocol@1.7.0
- pg-query-stream@4.7.0
- pg@8.13.0
2024-09-17 10:08:42 -05:00
Brian C
f73b22f96e
Handle bad message ordering - make it catchable. Fixes 3174 ( #3289 )
...
* Handle bad message ordering - make it catchable. Fixes 3174
* Close client in test
* Mess w/ github action settings
* update ci config
* Remove redundant tests
* Update code to use handle error event
* Add tests for commandComplete message being out of order
* Lint fix
* Fix native tests
* Fix lint again...airport computer not my friend
* Not a native issue
2024-09-17 09:50:17 -05:00
dependabot[bot]
54eb0fa216
Bump mocha and @types/mocha ( #3273 )
...
Bumps [mocha](https://github.com/mochajs/mocha ) and [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha ). These dependencies needed to be updated together.
Updates `mocha` from 3.4.2 to 10.5.2
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/v3.4.2...v10.5.2 )
Updates `@types/mocha` from 5.2.7 to 10.0.7
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha )
---
updated-dependencies:
- dependency-name: mocha
dependency-type: direct:development
update-type: version-update:semver-major
- dependency-name: "@types/mocha"
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>
2024-07-25 12:20:59 -05:00
Alex Anderson
cd73e9bf86
pg-native/test: remove unused "done" arg from describe() calls ( #3242 )
...
Co-authored-by: alxndrsn <alxndrsn>
2024-06-05 10:51:34 -05:00
Brian C
7fcf941a33
Improve race condition in pg-native cancel test ( #3234 )
2024-06-04 11:39:52 -05:00
Brian Carlson
0f42880861
Publish
...
- pg-cursor@2.11.0
- pg-native@3.1.0
- pg-query-stream@4.6.0
- pg@8.12.0
2024-06-04 11:19:08 -05:00
Alex Anderson
ff47a97f28
Add option to force use of Extended Queries ( #3214 )
...
This feature can be used as follows:
```
client.query({ text: 'SELECT 1', queryMode: 'extended' })
```
This will force the query to be sent with parse/bind/execute even when it has no parameters and disallows multiple statements being executed. This can be useful in scenarios where you want to enforce more security & help prevent sql injection attacks...particularly by library authors.
---------
Co-authored-by: alxndrsn <alxndrsn>
Co-authored-by: Brian Carlson <brian.m.carlson@gmail.com>
2024-06-04 11:14:04 -05:00
Brian C
fe88e825e5
Add pg-native to monorepo ( #3225 )
...
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. This PR re-introduces the native tests on node v20, and updates test matrix to drop unsupported versions of node & add in node v22.
2024-06-04 10:26:11 -05:00