2499 Commits

Author SHA1 Message Date
Brian M. Carlson
4d203aedee Publish
- pg-query-stream@3.4.1
pg-query-stream@3.4.1
2020-11-10 16:04:19 -06:00
Brian M. Carlson
3d0f68aa7b Update keyword to force patch apply 2020-11-10 16:04:12 -06:00
Brian C
897d774509
Run build before publish (#2409) 2020-11-10 16:01:44 -06:00
Brian M. Carlson
ec1dcab966 Publish
- pg-cursor@2.5.0
 - pg-protocol@1.4.0
 - pg-query-stream@3.4.0
 - pg@8.5.0
pg-cursor@2.5.0 pg-protocol@1.4.0 pg-query-stream@3.4.0 pg@8.5.0
2020-11-10 11:01:03 -06:00
Brian M. Carlson
dce02e8d77 Update sponsors & changelog 2020-11-10 11:00:41 -06:00
Charmander
0012a43d95
Forward options’ ssl.key even when non-enumerable (#2394)
* Test client certificate authentication

* Forward options’ ssl.key even when non-enumerable
2020-11-09 11:30:40 -06:00
Charmander
8bed670aee Add more error handling to error handling tests 2020-11-05 23:19:59 -08:00
Brian C
07988f985a
Speed up bind functionality (#2286)
Move from 3 loops (prepareValue, check for buffers, write param types, write param values) to a single loop. This speeds up the insert benchmark by around 100 queries per second. Performance improvement depends on number of parameters being bound.
2020-11-04 08:27:40 -06:00
Marcin K
78a14a164d
feat(): pg-query-stream typescript (#2376)
* feat(): start converting pg-query stream

* feat(): solution project, initial version of typescript-pg-query stream

* chore(): mocha with typescript

* fix(): eslint ignore query stream dist

* refactor(pg-query-stream): convert test to ts

* chore(): fixed type errors

* chore(): fix helper usage

* chore(): use ts-node compatibile with node v8

* fix(): addd es extension

* chore(): remove emitClose and added compilation for async iterators

* chore(): condition for asyc iteration test

* chore(): rename class to match ts-defs

* chore(): tests to import from src instead of dist

* chore(): remove prettier from peer deps:

* chore(): update lock file
2020-11-03 11:17:49 -06:00
chyzwar
52dfca493c chore(): remove postgres from lint travis task 2020-11-02 10:39:51 -06:00
chyzwar
c22c2f0ebd chore(): update eslint, run lint only on latest lts 2020-11-02 10:39:51 -06:00
Casey Foster
415bf09041 Remove console.error on pg-native module not found 2020-11-02 10:33:55 -06:00
Brian M. Carlson
b6d69d5bc2 Publish
- pg-cursor@2.4.2
 - pg-pool@3.2.2
 - pg-query-stream@3.3.2
 - pg@8.4.2
pg-cursor@2.4.2 pg-pool@3.2.2 pg-query-stream@3.3.2 pg@8.4.2
2020-10-26 12:19:03 -05:00
Lewis Cowles
80c500ffbf Update packages/pg-pool/index.js
Co-authored-by: Charmander <~@charmander.me>
2020-10-20 12:53:25 -05:00
Lewis Cowles
e82137e6d3 Tests 2020-10-20 12:53:25 -05:00
Lewis Cowles
fd2c3563a5 Security: simplify defineProperty non-enumerables
* `password` already has this set, but was a little long considering we only want to override default of one property
* `ssl.key` was showing up in tracebacks
2020-10-20 12:53:25 -05:00
Brian M. Carlson
36342c9a84 Publish
- pg-cursor@2.4.1
 - pg-query-stream@3.3.1
 - pg@8.4.1
pg-cursor@2.4.1 pg-query-stream@3.3.1 pg@8.4.1
2020-10-08 15:53:16 -05:00
Brian M. Carlson
d8681fc2cd Comments & cleanup 2020-10-08 15:17:34 -05:00
Brian M. Carlson
dd3ce616d0 Fixes based on postgres maintainer advice 2020-10-08 15:17:34 -05:00
Brian M. Carlson
d31486fb7c Change when sync is sent during pipelining 2020-10-08 15:17:34 -05:00
Brian M. Carlson
b45051d72a Update comments 2020-10-08 15:17:34 -05:00
Brian M. Carlson
f55d879c52 Apply fix 2020-10-08 15:17:34 -05:00
Brian M. Carlson
17e7e9ed3d Remove fix to fail tests 2020-10-08 15:17:34 -05:00
Brian M. Carlson
9c678e108c Fix double-sync crash on postgres 9.x 2020-10-08 15:17:34 -05:00
Brian M. Carlson
7ffe68eba0 Publish
- pg-connection-string@2.4.0
 - pg-cursor@2.4.0
 - pg-protocol@1.3.0
 - pg-query-stream@3.3.0
 - pg@8.4.0
pg-connection-string@2.4.0 pg-cursor@2.4.0 pg-protocol@1.3.0 pg-query-stream@3.3.0 pg@8.4.0
2020-10-04 14:26:29 -05:00
Brian M. Carlson
125a2686e8 Update changelog 2020-10-04 14:26:04 -05:00
dependabot[bot]
da2bb85987 Bump node-fetch from 2.6.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.6.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-04 14:15:19 -05:00
Brian C
7649890bfa Update SPONSORS.md 2020-10-04 14:14:58 -05:00
Benjie Gillam
c5445f0288 Fix metadata for pg-connection-string 2020-10-04 13:36:55 -05:00
Bogdan Chadkin
a02dfac5ad Replace semver with optional peer dependencies
See example bb74168c95/package.json (L42-L49)

This feature is supported by both npm and yarn.
2020-10-04 13:35:16 -05:00
Tom Carrio
58258430d5 Public export of DatabaseError
- Updated root exports of 'pg-protocol' to include DatabaseError

Ref: #2340
2020-10-04 13:33:49 -05:00
Benjie Gillam
e421167d46 Add ssl=true into the test 2020-10-04 13:33:21 -05:00
Benjie Gillam
9cbea21587 Solve issues caused by config.ssl = true 2020-10-04 13:33:21 -05:00
Benjie Gillam
6be3b9022f Add support for ?sslmode connection string param 2020-10-04 13:33:21 -05:00
John
f0fc470d88
Update README.md (#2330) 2020-09-03 22:10:50 +00:00
Brian M. Carlson
95b5daadaa Publish
- pg-cursor@2.3.3
 - pg-query-stream@3.2.3
 - pg@8.3.3
pg-cursor@2.3.3 pg-query-stream@3.2.3 pg@8.3.3
2020-08-26 15:59:37 -05:00
Brian M. Carlson
1f0d3d567f Add test for pgpass check function scope 2020-08-26 15:58:37 -05:00
Pimm "de Chinchilla" Hogeling
0758b766aa Fix context (this) in _checkPgPass. 2020-08-26 15:58:37 -05:00
Brian M. Carlson
acfbafac82 Publish
- pg-cursor@2.3.2
 - pg-query-stream@3.2.2
 - pg@8.3.2
pg-cursor@2.3.2 pg-query-stream@3.2.2 pg@8.3.2
2020-08-18 09:38:12 -05:00
Brian M. Carlson
07ee1bad37 Bump version 2020-08-18 09:37:35 -05:00
Brian M. Carlson
65156e7d24 Small readme updates & auto-formatting 2020-08-18 09:22:05 -05:00
Brian C
61e4b7f03b
Merge pull request #2309 from chris--young/ssl-err
Prevents bad ssl credentials from causing a crash
2020-08-18 08:23:55 -05:00
Christopher Young
f4d123b09e Prevents bad ssl credentials from causing a crash
Fixes: https://github.com/brianc/node-postgres/issues/2307
Fixes: https://github.com/brianc/node-postgres/issues/2004
2020-08-12 07:22:34 -07:00
Brian C
316bec3b43
Merge pull request #2294 from charmander/test-fixes
Fix most SSL negotiation packet tests being ignored
2020-08-05 09:45:10 -05:00
Charmander
3edcbb784f Fix most SSL negotiation packet tests being ignored
`tc` was only one variable and the tests are asynchronous, so every test was writing 'E'.
2020-07-26 20:54:43 -07:00
Charmander
1b022f8c5f Remove accidentally duplicated methods
Fixes #2293.
2020-07-26 10:30:01 -07:00
Brian C
b8773ce236
Merge pull request #2289 from brianc/dependabot/npm_and_yarn/lodash-4.17.19
Bump lodash from 4.17.15 to 4.17.19
2020-07-21 20:36:41 -05:00
Michael Chris Lopez
692e418e0f
Fix documenation typo in README (#2291) 2020-07-21 07:02:21 +00:00
dependabot[bot]
7b74392ce3
Bump lodash from 4.17.15 to 4.17.19
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>
2020-07-19 02:56:21 +00:00
Brian C
8291b233b8
Merge pull request #2277 from brianc/bmc/remove-comments
Remove out of date unneeded copyright / license comments
2020-07-16 09:58:20 -05:00