Skip to content

Commit

Permalink
Merge 9c7e20e into e66d269
Browse files Browse the repository at this point in the history
  • Loading branch information
cemremengu committed Dec 8, 2018
2 parents e66d269 + 9c7e20e commit 9a3a8e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
[![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-accepts-serializer.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/fastify/fastify-accepts-serializer.svg?branch=master)](https://travis-ci.org/fastify/fastify-accepts-serializer) [![Coverage Status](https://coveralls.io/repos/github/fastify/fastify-accepts-serializer/badge.svg?branch=master)](https://coveralls.io/github/fastify/fastify-accepts-serializer?branch=master)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

Serializer according to the `Accept` header. Supports Fastify versions `^1.10.0`
Serializer according to the `Accept` header. Supports Fastify versions `>=2.0.0`

Please refer to [this branch](https://github.com/fastify/fastify-accepts-serializer/tree/1.x) and related versions for Fastify ^1.10.0 compatibility.

## Install
```sh
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ function acceptsSerializerPlugin (fastify, options, next) {
}

module.exports = fp(acceptsSerializerPlugin, {
fastify: '^1.10.0',
fastify: '>=2.x',
name: 'fastify-accepts-serializer'
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"homepage": "https://github.com/fastify/fastify-accepts-serializer#readme",
"devDependencies": {
"fastify": "^1.10.0",
"fastify": "next",
"msgpack5": "^4.2.1",
"pre-commit": "^1.2.2",
"protobufjs": "^6.8.8",
Expand Down

0 comments on commit 9a3a8e6

Please sign in to comment.