From 18c6636c4674fe70d66c8b97ad80f3a31ea6c8e3 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Fri, 27 Oct 2023 14:55:21 +0100 Subject: [PATCH 01/12] chore(package): explicitly declare js module type (#166) --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 437f54f..54469ea 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "5.2.2", "description": "Fastify PostgreSQL connection plugin", "main": "index.js", + "type": "commonjs", "types": "index.d.ts", "scripts": { "check-examples": "tsc --build examples/typescript/*", From ce90bc6b72bbf01b24984ec3a6ac40d407daeffb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 18 Dec 2023 04:16:02 +0000 Subject: [PATCH 02/12] build(deps-dev): bump tsd from 0.29.0 to 0.30.0 (#167) Bumps [tsd](https://github.com/tsdjs/tsd) from 0.29.0 to 0.30.0. - [Release notes](https://github.com/tsdjs/tsd/releases) - [Commits](https://github.com/tsdjs/tsd/compare/v0.29.0...v0.30.0) --- updated-dependencies: - dependency-name: tsd dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 54469ea..d9cae34 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "pg-native": "^3.0.0", "standard": "^17.0.0", "tap": "^16.0.0", - "tsd": "^0.29.0", + "tsd": "^0.30.0", "typescript": "^5.0.2" }, "peerDependencies": { From 838be321f7f1b534e87448c3c6e10d74420cc771 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Thu, 8 Feb 2024 20:11:07 +0000 Subject: [PATCH 03/12] chore(.gitignore): add .tap/ dir (#170) --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 3c21249..2b6aed4 100644 --- a/.gitignore +++ b/.gitignore @@ -147,3 +147,6 @@ yarn.lock # editor files .vscode .idea + +#tap files +.tap/ From fbdda512c40e17b93a9782b8e7b3fca225a58827 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 04:34:18 +0000 Subject: [PATCH 04/12] build(deps-dev): bump tsd from 0.30.7 to 0.31.0 (#173) Bumps [tsd](https://github.com/tsdjs/tsd) from 0.30.7 to 0.31.0. - [Release notes](https://github.com/tsdjs/tsd/releases) - [Commits](https://github.com/tsdjs/tsd/compare/v0.30.7...v0.31.0) --- updated-dependencies: - dependency-name: tsd dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d9cae34..08f44d5 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "pg-native": "^3.0.0", "standard": "^17.0.0", "tap": "^16.0.0", - "tsd": "^0.30.0", + "tsd": "^0.31.0", "typescript": "^5.0.2" }, "peerDependencies": { From f72f5d81b466b52db986de5581407d73bb451c3e Mon Sep 17 00:00:00 2001 From: James Sumners <321201+jsumners@users.noreply.github.com> Date: Sat, 29 Jun 2024 06:26:08 -0400 Subject: [PATCH 05/12] Merge `next` into `master` (#174) * Update for Fastify v5 (#171) * upgrade for fastify 5 * fixed typo * Update for Fastify v5 (#171) * upgrade for fastify 5 * fixed typo * update deps --------- Co-authored-by: Cristian Barlutiu --- .github/workflows/ci.yml | 2 +- package.json | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ed9c7e..d3c718d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci-postgres.yml@v3 + uses: fastify/workflows/.github/workflows/plugins-ci-postgres.yml@v4.1.0 with: license-check: true lint: true diff --git a/package.json b/package.json index 08f44d5..848c34a 100644 --- a/package.json +++ b/package.json @@ -12,10 +12,10 @@ "load-data": "docker exec -it fastify-postgres psql -c 'CREATE TABLE users(id serial PRIMARY KEY, username VARCHAR (50) NOT NULL);' -U postgres -d postgres", "postgres": "docker run -p 5432:5432 --name fastify-postgres -e POSTGRES_PASSWORD=postgres -d postgres:11-alpine", "test": "npm run test:unit && npm run test:typescript", - "test:unit": "tap -J test/*.test.js", - "test:report": "standard && tap -J --coverage-report=html test/*.test.js", + "test:unit": "tap test/*.test.js", + "test:report": "standard && tap --coverage-report=html test/*.test.js", "test:typescript": "tsd", - "test:verbose": "standard && tap -J test/*.test.js -Rspec" + "test:verbose": "standard && tap test/*.test.js -Rspec" }, "repository": { "type": "git", @@ -36,18 +36,18 @@ }, "homepage": "https://github.com/fastify/fastify-postgres#readme", "dependencies": { - "fastify-plugin": "^4.0.0" + "fastify-plugin": "^5.0.0-pre.fv5.1" }, "devDependencies": { - "@tsconfig/node10": "^1.0.8", - "@types/pg": "^8.6.1", - "fastify": "^4.0.0-rc.2", - "pg": "^8.7.1", - "pg-native": "^3.0.0", - "standard": "^17.0.0", - "tap": "^16.0.0", - "tsd": "^0.31.0", - "typescript": "^5.0.2" + "@tsconfig/node10": "^1.0.9", + "@types/pg": "^8.11.4", + "fastify": "^5.0.0-alpha.3", + "pg": "^8.11.3", + "pg-native": "^3.0.1", + "standard": "^17.1.0", + "tap": "^18.7.1", + "tsd": "^0.30.7", + "typescript": "^5.4.3" }, "peerDependencies": { "pg": ">=6.0.0" From ace0759fe14252629629c8efe1ad1847842a5630 Mon Sep 17 00:00:00 2001 From: James Sumners Date: Sat, 29 Jun 2024 06:26:40 -0400 Subject: [PATCH 06/12] v6.0.0-pre.fv5.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 848c34a..37ca06a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fastify/postgres", - "version": "5.2.2", + "version": "6.0.0-pre.fv5.1", "description": "Fastify PostgreSQL connection plugin", "main": "index.js", "type": "commonjs", From 8b3fff9e44f77024d8bd25c2df789e05e39152b6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 04:16:09 +0000 Subject: [PATCH 07/12] build(deps-dev): bump tsd from 0.30.7 to 0.31.1 (#175) Bumps [tsd](https://github.com/tsdjs/tsd) from 0.30.7 to 0.31.1. - [Release notes](https://github.com/tsdjs/tsd/releases) - [Commits](https://github.com/tsdjs/tsd/compare/v0.30.7...v0.31.1) --- updated-dependencies: - dependency-name: tsd dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 37ca06a..a4f0cb2 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "pg-native": "^3.0.1", "standard": "^17.1.0", "tap": "^18.7.1", - "tsd": "^0.30.7", + "tsd": "^0.31.1", "typescript": "^5.4.3" }, "peerDependencies": { From c8f908498fe83940d4e0be7b27090e9462e2405f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 04:44:08 +0000 Subject: [PATCH 08/12] build(deps): bump fastify/workflows from 4.1.0 to 4.2.1 (#176) Bumps [fastify/workflows](https://github.com/fastify/workflows) from 4.1.0 to 4.2.1. - [Release notes](https://github.com/fastify/workflows/releases) - [Commits](https://github.com/fastify/workflows/compare/v4.1.0...v4.2.1) --- updated-dependencies: - dependency-name: fastify/workflows dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d3c718d..1dae195 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci-postgres.yml@v4.1.0 + uses: fastify/workflows/.github/workflows/plugins-ci-postgres.yml@v4.2.1 with: license-check: true lint: true From 293cb13c5036667beba65a0f4677e6a1709c86e6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 1 Aug 2024 04:27:10 +0000 Subject: [PATCH 09/12] build(deps): bump fastify/workflows from 4.2.1 to 5.0.0 (#179) Bumps [fastify/workflows](https://github.com/fastify/workflows) from 4.2.1 to 5.0.0. - [Release notes](https://github.com/fastify/workflows/releases) - [Commits](https://github.com/fastify/workflows/compare/v4.2.1...v5.0.0) --- updated-dependencies: - dependency-name: fastify/workflows dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1dae195..f1e004f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ on: jobs: test: - uses: fastify/workflows/.github/workflows/plugins-ci-postgres.yml@v4.2.1 + uses: fastify/workflows/.github/workflows/plugins-ci-postgres.yml@v5.0.0 with: license-check: true lint: true From a114e8de987390fcc15ab7c7407cb1a22895e7a1 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 6 Aug 2024 17:07:20 +0100 Subject: [PATCH 10/12] chore: update min fastify version (#178) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 429fe85..168693c 100644 --- a/index.js +++ b/index.js @@ -191,7 +191,7 @@ function fastifyPostgres (fastify, options, next) { } module.exports = fp(fastifyPostgres, { - fastify: '4.x', + fastify: '5.x', name: '@fastify/postgres' }) module.exports.default = fastifyPostgres From 5cc304963a34b624cc439755d8e1cc290c756300 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 7 Aug 2024 17:28:37 +0100 Subject: [PATCH 11/12] v6.0.0-pre.fv5.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a4f0cb2..8f8ee91 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fastify/postgres", - "version": "6.0.0-pre.fv5.1", + "version": "6.0.0-pre.fv5.2", "description": "Fastify PostgreSQL connection plugin", "main": "index.js", "type": "commonjs", From ecb2f969ccce573402040b5b0c655fcdbfa4610d Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Fri, 6 Sep 2024 17:23:23 +0200 Subject: [PATCH 12/12] Bumped v6.0.0 Signed-off-by: Matteo Collina --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8f8ee91..bb2c28a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fastify/postgres", - "version": "6.0.0-pre.fv5.2", + "version": "6.0.0", "description": "Fastify PostgreSQL connection plugin", "main": "index.js", "type": "commonjs", @@ -36,12 +36,12 @@ }, "homepage": "https://github.com/fastify/fastify-postgres#readme", "dependencies": { - "fastify-plugin": "^5.0.0-pre.fv5.1" + "fastify-plugin": "^5.0.0" }, "devDependencies": { "@tsconfig/node10": "^1.0.9", "@types/pg": "^8.11.4", - "fastify": "^5.0.0-alpha.3", + "fastify": "^5.0.0-alpha.4", "pg": "^8.11.3", "pg-native": "^3.0.1", "standard": "^17.1.0",