Skip to content

Commit 02b9561

Browse files
authored
Update fastify to v3 (#33)
* update fastify to v3 * add dependabot config * add github actions config * update dependabot config * add build status badge * update tap version
1 parent 224138e commit 02b9561

File tree

5 files changed

+26
-22
lines changed

5 files changed

+26
-22
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI workflow
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [10.x, 12.x, 14.x]
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- name: Install Dependencies
16+
run: npm install --ignore-scripts
17+
- name: Lint
18+
run: npm run lint-ci
19+
- name: Test
20+
run: npm run test-ci

.travis.yml

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

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# fastify-caching
22

3-
[![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-caching.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/fastify/fastify-caching.svg?branch=master)](https://travis-ci.org/fastify/fastify-caching)
3+
![CI workflow](https://github.com/fastify/fastify-caching/workflows/CI%20workflow/badge.svg)
44

55
*fastify-caching* is a plugin for the [Fastify](http://fastify.io/) framework
66
that provides mechanisms for manipulating HTTP cache headers according to
7-
[RFC 2616 §14.9](https://tools.ietf.org/html/rfc2616#section-14.9).
7+
[RFC 2616 §14.9](https://tools.ietf.org/html/rfc2616#section-14.9).
88

99
Supports Fastify versions ^2.0.0.
1010

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
},
3030
"homepage": "https://github.com/fastify/fastify-caching#readme",
3131
"devDependencies": {
32-
"fastify": "^2.0.0",
32+
"fastify": "^3.0.0-rc.1",
3333
"pre-commit": "^1.2.2",
3434
"snazzy": "^8.0.0",
3535
"standard": "^14.0.0",
36-
"tap": "^12.6.6"
36+
"tap": "^14.10.7"
3737
},
3838
"dependencies": {
3939
"abstract-cache": "^1.0.1",
40-
"fastify-plugin": "^1.2.1",
40+
"fastify-plugin": "^2.0.0",
4141
"uid-safe": "^2.1.5"
4242
},
4343
"greenkeeper": {

plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function fastifyCachingPlugin (instance, options, next) {
8888
}
8989

9090
module.exports = fp(fastifyCachingPlugin, {
91-
fastify: '^2.0.0',
91+
fastify: '^3.0.0',
9292
name: 'fastify-caching'
9393
})
9494

0 commit comments

Comments
 (0)