From 06947ee5c3c66819596a6d86fe89ec9aa36e02ff Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Sun, 15 May 2022 00:31:22 +0200 Subject: [PATCH 1/2] Bumped Fastify v4 --- index.js | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 39794e3..b741275 100644 --- a/index.js +++ b/index.js @@ -46,8 +46,8 @@ function fastifyMysql (fastify, options, next) { } module.exports = fp(fastifyMysql, { - fastify: '>=1.0.0', - name: 'fastify-mysql' + fastify: '4.x', + name: '@fastify/mysql' }) function _createConnection ({ connectionType, options, usePromise }, cb) { @@ -55,9 +55,9 @@ function _createConnection ({ connectionType, options, usePromise }, cb) { const mysql = usePromise ? require('mysql2/promise') : require('mysql2') const db = { - format: format, - escape: escape, - escapeId: escapeId + format, + escape, + escapeId } let client = {} diff --git a/package.json b/package.json index cc88fd3..defa02f 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ }, "devDependencies": { "@types/node": "^17.0.0", - "fastify": "^3.0.0", + "fastify": "^4.0.0-rc.2", "standard": "^17.0.0", "tap": "^16.0.0", "tsd": "^0.20.0" From 619bb57fe6fb53ad8c488c799015d5718331fa3c Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Sun, 15 May 2022 01:01:34 +0200 Subject: [PATCH 2/2] drop old nodes --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8f3356..8fc3d56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,9 @@ jobs: strategy: matrix: node-version: - - 10 - - 12 - 14 - 16 + - 18 db: - mysql:8.0 name: Node.js ${{ matrix.node }} - ${{ matrix.db }}