Brian M. Carlson
1e04fdb7e0
Add changes for v6.3.0
2017-06-19 16:07:12 -05:00
Brian M. Carlson
b5b49eb895
Add deprecations
...
This adds deprecations in preparation for `pg@7.0`
- deprecate using event emitters on automatically created results from client.query.
- deprecate query.promise() - it should never have been a public method and it's not documented. I need to do better about using _ prefix on private methods in the future.
- deprecate singleton pool on the `pg` object. `pg.connect`, `pg.end`, and `pg.cancel`.
2017-06-19 16:00:37 -05:00
Brian M. Carlson
a83655a396
Remove console.log statement
2017-06-18 17:23:58 -05:00
Brian M. Carlson
da71ea58f6
Add query validity check
...
Passing nothing for both the query.text and query.name is unsupported but previously crashed with an impossible to catch error.
2017-06-18 17:15:46 -05:00
Brian M. Carlson
bd87cddc72
Fix connection / disconnection issues
2017-06-18 16:48:14 -05:00
Brian M. Carlson
729d4e9c47
Tweak travis.yml
2017-06-18 16:48:14 -05:00
Brian M. Carlson
0f1f8626cf
Add use strict to every file
2017-06-18 16:48:14 -05:00
Brian M. Carlson
49c5976947
Tweak travis node versions
2017-06-18 16:48:14 -05:00
Brian M. Carlson
ed9a33d3d1
Fix test for older version of postgres
2017-06-18 16:48:14 -05:00
Brian M. Carlson
2300445646
Cleanup a bit of dead code
2017-06-18 16:48:14 -05:00
Brian M. Carlson
1bc1758579
Remove deprecated methods
2017-06-18 16:48:14 -05:00
Brian M. Carlson
313c41a39f
Cleanup
2017-06-18 16:48:14 -05:00
Brian M. Carlson
94a628a16f
Update engine support
2017-06-18 15:34:44 -05:00
Brian M. Carlson
0c32c57e0e
Bump version
2017-06-18 14:09:54 -05:00
Brian C
f7b1edc7bb
Add client to error event emitter ( #65 )
...
When the pool emits an error pass the client as the 2nd parameter to the `on('error')` handler.
2017-06-18 14:09:18 -05:00
Brian Carlson
63b23bc93a
Merge branch 'master' into 7.0
2017-06-16 21:44:24 -05:00
Brian M. Carlson
cfd9caa925
Deprecate query.on & query.once
2017-06-16 21:43:45 -05:00
Brian M. Carlson
76c1000567
Add event-emitters back
2017-06-16 21:43:45 -05:00
Brian M. Carlson
0ce8a6c675
Fix brittle unit tests
2017-06-16 21:43:45 -05:00
Brian Carlson
5f5e40f03c
Add tests to support deprecated event listeners
2017-06-16 21:43:45 -05:00
Brian Carlson
fc3634045b
Move attach listeners into its own function
...
Just for readability
2017-06-16 21:43:45 -05:00
Brian M. Carlson
a4b42ac36b
Add co to dev deps
2017-06-15 10:32:38 -05:00
Brian M. Carlson
e100152fb0
Remove failing travis test
2017-06-15 10:32:38 -05:00
Brian M. Carlson
132861f43f
Test cleanup
2017-06-15 10:32:38 -05:00
Brian M. Carlson
f12eb0a6fd
Format more tests
2017-06-15 10:32:38 -05:00
Brian M. Carlson
d615ebee17
Start cleaning up tests
2017-06-15 10:32:38 -05:00
Brian M. Carlson
3074436236
Tidy up a bit of testing
2017-06-15 10:32:38 -05:00
Brian M. Carlson
2c3f55e5bd
Make all tests pass
2017-06-15 10:32:38 -05:00
Brian M. Carlson
c961c900d6
Almost all tests passing
2017-06-15 10:32:38 -05:00
Brian M. Carlson
3219db993a
All tests passing
2017-06-15 10:32:38 -05:00
Brian M. Carlson
f41839b83a
Work on test
2017-06-15 10:32:38 -05:00
Brian M. Carlson
72560850d7
Working on disconnect issue
2017-06-15 10:32:38 -05:00
Brian M. Carlson
3a7b226fe3
WIP
2017-06-15 10:32:38 -05:00
Brian M. Carlson
02bcc9d97a
Start working on promsie tests
2017-06-15 10:32:38 -05:00
Brian M. Carlson
bc2f550402
Remove promise-interop from native query
2017-06-15 10:32:38 -05:00
Brian M. Carlson
55c3b3691c
Use normalizeQueryConfig in native query
2017-06-15 10:32:38 -05:00
Brian M. Carlson
df36bece86
Restructure native file paths
...
Make file paths more closely match the non-native files, to make auto-complete file names slightly easier.
2017-06-15 10:32:38 -05:00
Brian M. Carlson
970d83aca4
Remove weird quasi-promise interface on JS query
2017-06-15 10:32:38 -05:00
Brian M. Carlson
d3ec938b82
Fix remainder of error tests
2017-06-15 10:32:38 -05:00
Brian M. Carlson
2add7e3407
Make almost all tests pass
2017-06-15 10:32:38 -05:00
Brian M. Carlson
e284cfc110
Make all integration tests pass
2017-06-15 10:32:38 -05:00
Brian M. Carlson
b8c2bebcac
Fix more tests to use query instance
2017-06-15 10:32:38 -05:00
Brian M. Carlson
2f3d72a28c
Start fixing integration tests
2017-06-15 10:32:38 -05:00
Brian M. Carlson
96b7fc38a6
Fix unit tests
2017-06-15 10:32:38 -05:00
Brian M. Carlson
6d98b0847c
Actual promisification of client.query
2017-06-15 10:32:38 -05:00
Brian C
25a98f5099
Create LICENSE
2017-06-15 10:32:38 -05:00
Amila Welihinda
bc00f90c6a
Added MIT License
2017-06-15 10:32:38 -05:00
Brian C
bbb759fba4
Create LICENSE
2017-06-12 10:14:31 -05:00
Amila Welihinda
5421e9dc0f
Added MIT License
2017-06-12 10:14:31 -05:00
Brian M. Carlson
a829eee334
Merge origin/master
2017-06-09 16:24:39 -05:00