Skip to content

Commit 81a1324

Browse files
committed
Updated to Fastify 1.0.0.
1 parent 39603c1 commit 81a1324

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ node_js:
44
- "9"
55
- "8"
66
- "6"
7-
- "4"
87

98
services:
109
- postgresql

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@ fastify.listen(3000, err => {
123123
})
124124
```
125125

126+
## Development and Testing
127+
128+
First, start postgres with:
129+
130+
```
131+
$ npm run postgres
132+
```
133+
134+
Then in another terminal:
135+
136+
```
137+
$ npm test
138+
```
139+
126140
## Acknowledgements
127141

128142
This project is kindly sponsored by:

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const fp = require('fastify-plugin')
4-
let pg = require('pg')
4+
var pg = require('pg')
55

66
function fastifyPostgres (fastify, options, next) {
77
if (options.native) {
@@ -44,6 +44,6 @@ function fastifyPostgres (fastify, options, next) {
4444
}
4545

4646
module.exports = fp(fastifyPostgres, {
47-
fastify: '>=0.39.1',
47+
fastify: '>=1.1.0',
4848
name: 'fastify-postgres'
4949
})

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
"pg": "^7.3.0"
3131
},
3232
"devDependencies": {
33-
"fastify": "^0.39.1",
33+
"fastify": "^1.1.0",
3434
"pg-native": "^2.2.0",
35-
"standard": "^10.0.3",
35+
"standard": "^11.0.0",
3636
"tap": "^11.0.1"
3737
}
3838
}

0 commit comments

Comments
 (0)