2777 Commits

Author SHA1 Message Date
Andrew Bowerman
06c46ac12b
2.1.0 2019-06-18 20:12:03 -07:00
Vitaly Tomilov
2c7be86104 minor text improvement in defaults (#1893) 2019-06-17 16:51:16 -05:00
Herman J. Radtke III
4db1a7e9ab
Merge pull request #18 from benny-medflyt/patch-1
Fix typings
2019-06-11 15:37:06 -07:00
benny-medflyt
726f6202fa
Update index.d.ts 2019-05-27 08:30:21 -04:00
Herman J. Radtke III
d7b96e6f44
Merge pull request #28 from hjr3/ssl-parsing
ssl=0 is now parses to false
2019-05-23 14:29:22 -07:00
Herman J. Radtke III
7b62226d57 ssl=0 is now parses to false
Fixes #20
2019-05-23 14:27:46 -07:00
Herman J. Radtke III
43114f4c99
Merge pull request #17 from ywkim/master
Add supporting username and password for socket connections
2019-05-23 13:20:33 -07:00
Herman J. Radtke III
b53c2bd224
Merge pull request #24 from benjie/patch-1
Only publish the required files
2019-05-23 13:17:32 -07:00
Herman J. Radtke III
ac63695b60
Merge pull request #26 from hjr3/ssl-support
Add support for TLS parameters in URI
2019-05-23 13:16:41 -07:00
Herman J. Radtke III
e9270e89af Add support for TLS parameters in URI
The connection string now supports the following parameters:

- sslcert
- sslkey
- sslrootcert

Fixes #25.
2019-05-17 07:58:09 -07:00
Sehrope Sarkuni
8ba1d2c572 Enable eslint:recommended and plugin/node/recommended (#1856)
* Fix typo

* Enable eslint:recommended and remove unused eslint plugins

Enables eslint:recommended by disabling the options that would not pass. Also removes
dependencies for included but unused eslint plugins.

* Convert console.error(...) calls to use %s placeholders

* Enable eslint no-console rule

* Add and enable eslint-node-plugin

* Correct typo

* Enable eslint no-unused-vars
2019-05-10 12:23:49 -05:00
Brian M. Carlson
61cc3d26e2 Bump version v7.11.0 2019-05-10 12:12:16 -05:00
Brian M. Carlson
697bdae507 Update changelog 2019-05-10 12:12:02 -05:00
Peter Boromissza
0993e4b61a Added the missing connect_timeout and keepalives_idle config parameters (#1847)
* Added the missing connect_timeout and keepalives_idle config parameters

* Implementation and tests for keepAliveInitialDelayMillis and connectionTimeoutMillis [squashed 4]
2019-05-10 11:48:38 -05:00
Benjie Gillam
c11dbb1c2b
Only publish the required files
Details: https://docs.npmjs.com/files/package.json#files
2019-04-18 14:46:36 +01:00
Brian M. Carlson
4b530a9e0f Bump version v7.10.0 2019-04-16 17:35:20 -05:00
Brian M. Carlson
0f50d92ea6 Update changelog 2019-04-16 17:35:08 -05:00
Sehrope Sarkuni
13c14f1de0 fix: Catch and emit query parameter prepareValue(...) errors (#1855)
Adds a try/catch block around the prepareValue(...) invocations in query.prepare(...)
to ensure that any that throw an error are caught and bubbled up to the caller.
2019-04-16 17:29:40 -05:00
Tony Wooster
566058de17 Add support for per per-query types (#1825)
The documentation states that you can pass custom type processors to
query objects. See:

https://node-postgres.com/features/queries#types

This didn't actually work. This commit adds an initial implementation
of per-query type-parsing. Caveats:

* It does not work with pg-native. That would require a separate pull
  request to pg-native, and a rather significant change to how that
  library handles query results.

* Per-query types do not "inherit" from types assigned to the Client,
  ala TypeOverrides.
2019-04-16 17:27:39 -05:00
Malcolm
43ebcfb6bc Fix input preparation for date objects with a BC year (#1864)
* test: BC date input preparation

* Fix input preparation for BC dates
2019-04-15 18:38:20 -05:00
Malcolm
4d84909cbd Fix integration test for v1.0.4 of postgres-date sub-dependency (#1867) 2019-04-15 18:37:33 -05:00
Brian M. Carlson
6b8176e841 Bump version v7.9.0 2019-03-15 13:42:56 -05:00
Brian M. Carlson
b12881209b Update CHANGELOG.md 2019-03-15 13:42:24 -05:00
Brian M. Carlson
9cf3d32467 Update SPONSORS.md 2019-03-15 13:42:04 -05:00
andreme
5a92ba3701 sasl/scram authentication (#1835) 2019-03-07 11:02:21 -06:00
Rhys Arkins
41706e64d4 chore: don't publish Travis to npm (#1851) 2019-03-07 10:37:14 -06:00
Brian M. Carlson
bae9fd734a Bump version v7.8.2 2019-03-07 08:58:13 -06:00
Rich Harris
e6a878cbb5 compare prepared statement text with previous to prevent incorrect queries (#1814)
* compare prepared statement text with previous to prevent incorrect queries - fixes #1813

* make suggested changes to error message
2019-03-06 09:35:30 -06:00
Ben Holden-Crowther
4c6c0e9b77 Update license date in readme (#1823) 2019-03-06 09:34:06 -06:00
Brian M. Carlson
e0ebdeff88 Bump version v7.8.1 2019-02-20 14:36:50 -06:00
Brian C
bf84db7c22
Bump packet-reader version (#1840)
* Bump packet-reader version

This should fix the deprecation warning from using `new Buffer`.

* Remove node 11 tests - its a non-stable (odd) version
2019-02-20 14:36:27 -06:00
Brian M. Carlson
fcd0f02210 Bump version v7.8.0 2019-01-11 08:32:29 -06:00
Brian M. Carlson
00123861fb Update changelog 2019-01-11 08:32:23 -06:00
Brian M. Carlson
896faa56f7 Update SPONSORS.md 2019-01-11 08:30:37 -06:00
Ben Holden-Crowther
c8f2f23845 Update license date (#1800)
From 2018 to 2019
2019-01-11 08:16:54 -06:00
Ben Drucker
0e11b5c781 deps: update pg-types to 2 (#1806)
drops node < 4 support but pg previously did so (not major)
2019-01-11 08:16:29 -06:00
Gregory Lepsky
ccbccc9716 Issue #1769 - Inability to restrict communication protocols to set in ssl configuration (#1804)
- Propagate client's ssl.secureOptions config to TLS.
2019-01-08 09:08:43 -06:00
Brian M. Carlson
7d27bd2086 Bump version. Drop version of pg.js via pg-cursor. 2019-01-08 09:00:19 -06:00
Brian M. Carlson
5b2816a6f5 Bump version of pg-cursor 2019-01-08 09:00:04 -06:00
Amila Welihinda
28e43b8b73 Create LICENSE (#34) 2019-01-08 08:57:47 -06:00
Amila Welihinda
d822fc8e7a Added --save flags to installation steps (#35) 2019-01-08 08:57:35 -06:00
Amila Welihinda
c999aae6af Updated readme examples to es6 (#36) 2019-01-08 08:55:35 -06:00
Brian M. Carlson
1cdad4d8d2 Bump version. Drop support for pg.js 2019-01-08 08:53:58 -06:00
Brian M. Carlson
71dde045ea Merge branch 'master' of github.com:brianc/node-pg-cursor 2019-01-08 08:52:25 -06:00
Brian C
67b880a4bd
Merge pull request #35 from jakobrun/master
return rowCount on insert
2019-01-08 08:52:20 -06:00
Brian M. Carlson
1200da5c74 Fix test 2019-01-08 08:52:05 -06:00
Brian C
0a1052516f
Merge pull request #44 from jafl/redshift-requires-portal-name
fix: AWS Redshift requires a portal name to honor fetchSize
2019-01-08 08:28:39 -06:00
Brian C
73506d36b9
Merge pull request #47 from pistor/remove-pg.js-support
Remove support for deprecated pg.js package
2019-01-08 08:27:07 -06:00
Brian M. Carlson
d7f6ed0c7c Bump version 2019-01-02 12:14:50 -06:00
Brian C
4d2ad36951
Upgrade to test on node 10 (#114)
* Upgrade to test on node 10

* Use errno instead of code

* Only check errno if it exists
2019-01-02 12:11:21 -06:00