diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ed9c7e..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@v3 + uses: fastify/workflows/.github/workflows/plugins-ci-postgres.yml@v5.0.0 with: license-check: true lint: true 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/ 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 diff --git a/package.json b/package.json index 437f54f..bb2c28a 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "@fastify/postgres", - "version": "5.2.2", + "version": "6.0.0", "description": "Fastify PostgreSQL connection plugin", "main": "index.js", + "type": "commonjs", "types": "index.d.ts", "scripts": { "check-examples": "tsc --build examples/typescript/*", @@ -11,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", @@ -35,18 +36,18 @@ }, "homepage": "https://github.com/fastify/fastify-postgres#readme", "dependencies": { - "fastify-plugin": "^4.0.0" + "fastify-plugin": "^5.0.0" }, "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.29.0", - "typescript": "^5.0.2" + "@tsconfig/node10": "^1.0.9", + "@types/pg": "^8.11.4", + "fastify": "^5.0.0-alpha.4", + "pg": "^8.11.3", + "pg-native": "^3.0.1", + "standard": "^17.1.0", + "tap": "^18.7.1", + "tsd": "^0.31.1", + "typescript": "^5.4.3" }, "peerDependencies": { "pg": ">=6.0.0"