Skip to content

Commit ec16a4d

Browse files
authored
Update fastify to v3 (#32)
1 parent 2c29b77 commit ec16a4d

File tree

5 files changed

+46
-25
lines changed

5 files changed

+46
-25
lines changed

.dependabot/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: 1
2+
update_configs:
3+
- package_manager: "javascript"
4+
directory: "/"
5+
update_schedule: "daily"

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI workflow
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node: [10, 12, 14]
12+
db: [
13+
"mysql:8.0"
14+
]
15+
16+
name: Node.js ${{ matrix.node }} - ${{ matrix.db }}
17+
18+
services:
19+
mysql:
20+
image: ${{ matrix.db }}
21+
env:
22+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
23+
MYSQL_DATABASE: mysql
24+
ports:
25+
- 3306:3306
26+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
27+
28+
steps:
29+
- uses: actions/checkout@v2
30+
with:
31+
node-version: ${{ matrix.node-version }}
32+
33+
- name: Install
34+
run: npm install
35+
36+
- name: Run tests
37+
run: npm run test

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# fastify-mysql
22

3-
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/) [![Build Status](https://travis-ci.org/fastify/fastify-mysql.svg?branch=master)](https://travis-ci.org/fastify/fastify-mysql) [![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-mysql.svg)](https://greenkeeper.io/)
3+
![CI workflow](https://github.com/fastify/fastify-mysql/workflows/CI%20workflow/badge.svg)
4+
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
45

56
Fastify MySQL connection plugin, with this you can share the same MySQL connection pool in every part of your server.
67
Under the hood the [mysql2](https://github.com/sidorares/node-mysql2) is used, the options that you pass to `register` will be passed to the MySQL pool builder.

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,12 @@
2828
},
2929
"homepage": "https://github.com/fastify/fastify-mysql#readme",
3030
"dependencies": {
31-
"fastify-plugin": "^1.5.0",
31+
"fastify-plugin": "^2.0.0",
3232
"mysql2": "^2.0.0"
3333
},
3434
"devDependencies": {
35-
"fastify": "^2.3.0",
35+
"fastify": "^3.0.0-rc.1",
3636
"standard": "^14.0.0",
3737
"tap": "^12.7.0"
38-
},
39-
"greenkeeper": {
40-
"ignore": [
41-
"tap"
42-
]
4338
}
4439
}

0 commit comments

Comments
 (0)