From 6637f207cba0aa5a8a0de2a611774e67202a7a5b Mon Sep 17 00:00:00 2001 From: Michiel De Mey Date: Tue, 12 Feb 2019 15:35:05 +0100 Subject: [PATCH 1/3] Bring your own node-postgres version --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 1fb6b3c..0ceab4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fastify-postgres", - "version": "1.3.2", + "version": "2.0.0", "description": "Fastify PostgreSQL connection plugin", "main": "index.js", "scripts": { @@ -27,13 +27,16 @@ }, "homepage": "https://github.com/fastify/fastify-postgres#readme", "dependencies": { - "fastify-plugin": "^1.4.0", - "pg": "^7.8.0" + "fastify-plugin": "^1.4.0" }, "devDependencies": { "fastify": "^1.13.4", + "pg": "*", "pg-native": "^3.0.0", "standard": "^12.0.0", "tap": "^12.5.2" + }, + "peerDependencies": { + "pg": ">=6.0.0" } } From 2d654e6287a8b9de2d91f851addaacc8b6e44cec Mon Sep 17 00:00:00 2001 From: Michiel De Mey Date: Tue, 12 Feb 2019 15:37:20 +0100 Subject: [PATCH 2/3] Updated installation instructions --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 202b633..a748f09 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Under the hood the [node-postgres](https://github.com/brianc/node-postgres) is u ## Install ``` -npm i fastify-postgres --save +npm i pg fastify-postgres --save ``` ## Usage Add it to you project with `register` and you are done! From b1f47844eb20ee54afb75e5b1997e188486f5b22 Mon Sep 17 00:00:00 2001 From: Michiel De Mey Date: Tue, 12 Feb 2019 15:48:09 +0100 Subject: [PATCH 3/3] Revert package version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0ceab4a..226b1a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fastify-postgres", - "version": "2.0.0", + "version": "1.3.2", "description": "Fastify PostgreSQL connection plugin", "main": "index.js", "scripts": {