Skip to content

Commit 8cc7308

Browse files
authored
Merge pull request brianc#1369 from brianc/7.0
7.0
2 parents bc0b03e + ca4ac99 commit 8cc7308

File tree

126 files changed

+6089
-6350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+6089
-6350
lines changed

.eslintrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "standard",
3+
"rules": {
4+
"no-new-func": "off"
5+
}
6+
}

.jshintrc

-5
This file was deleted.

.travis.yml

+12-21
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,30 @@ before_script:
66
env:
77
- CC=clang CXX=clang++ npm_config_clang=1 PGUSER=postgres PGDATABASE=postgres
88

9-
node_js: "6"
10-
addons:
11-
postgresql: "9.6"
12-
139
matrix:
1410
include:
15-
- node_js: "0.10"
16-
addons:
17-
postgresql: "9.6"
18-
env: []
19-
- node_js: "0.12"
11+
- node_js: "lts/argon"
2012
addons:
2113
postgresql: "9.6"
22-
env: []
23-
- node_js: "4"
24-
addons:
25-
postgresql: "9.6"
26-
- node_js: "5"
27-
addons:
28-
postgresql: "9.6"
29-
- node_js: "6"
14+
- node_js: "lts/boron"
3015
addons:
3116
postgresql: "9.1"
3217
dist: precise
33-
- node_js: "6"
18+
- node_js: "lts/boron"
3419
addons:
3520
postgresql: "9.2"
36-
- node_js: "6"
21+
- node_js: "lts/boron"
3722
addons:
3823
postgresql: "9.3"
39-
- node_js: "6"
24+
- node_js: "lts/boron"
4025
addons:
4126
postgresql: "9.4"
42-
- node_js: "6"
27+
- node_js: "lts/boron"
4328
addons:
4429
postgresql: "9.5"
30+
- node_js: "lts/boron"
31+
addons:
32+
postgresql: "9.6"
33+
- node_js: "8"
34+
addons:
35+
postgresql: "9.6"

CHANGELOG.md

-10
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@ For richer information consult the commit log on github with referenced pull req
44

55
We do not include break-fix version release in this file.
66

7-
### v6.4.0
8-
9-
- Add support for passing `client_encoding` as a connection parameter. Used when decoding strings in the JavaScript driver. The default is still `utf8`.
10-
11-
### v6.3.0
12-
13-
- Deprecate `pg.connect` `pg.end` and `pg.cancel` - favor using `new pg.Pool()` instead of pg singleton.
14-
- Deprecate undocumented but possibly used `query.promise()` method. Use the promise returned directly from `client.query` / `pool.query`.
15-
- Deprecate returning an automatically created query result from `client.query`. Instead return more idomatic responses for callback/promise methods.
16-
177
### v6.2.0
188

199
- Add support for [parsing `replicationStart` messages](https://github.com/brianc/node-postgres/pull/1271/files).

Makefile

+7-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ params := $(connectionString)
77
node-command := xargs -n 1 -I file node file $(params)
88

99
.PHONY : test test-connection test-integration bench test-native \
10-
jshint publish test-missing-native update-npm
10+
lint publish test-missing-native update-npm
1111

1212
all:
1313
npm install
@@ -17,7 +17,7 @@ help:
1717

1818
test: test-unit
1919

20-
test-all: jshint test-missing-native test-unit test-integration test-native test-binary
20+
test-all: lint test-missing-native test-unit test-integration test-native
2121

2222

2323
update-npm:
@@ -36,8 +36,10 @@ test-connection:
3636
test-missing-native:
3737
@echo "***Testing optional native install***"
3838
@rm -rf node_modules/pg-native
39+
@rm -rf node_modules/libpq
3940
@node test/native/missing-native.js
4041
@rm -rf node_modules/pg-native
42+
@rm -rf node_modules/libpq
4143

4244
node_modules/pg-native/index.js:
4345
@npm i pg-native
@@ -58,6 +60,6 @@ test-binary: test-connection
5860
test-pool:
5961
@find test/integration/connection-pool -name "*.js" | $(node-command) binary
6062

61-
jshint:
62-
@echo "***Starting jshint***"
63-
@./node_modules/.bin/jshint lib
63+
lint:
64+
@echo "***Starting lint***"
65+
eslint lib

0 commit comments

Comments
 (0)