Skip to content

Commit

Permalink
major: upgrade to fastify v5 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm authored Sep 18, 2024
1 parent b035b52 commit 233f361
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ on:

jobs:
test:
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v3
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v5.0.0
with:
lint: true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,5 @@ dist
.tern-port
package-lock.json
.vscode/
.tap/
asd*
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# fastify-user-agent
User-agent information plugin for Fastify.

[![ci](https://github.com/Eomm/fastify-user-agent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Eomm/fastify-user-agent/actions/workflows/ci.yml)
[![npm](https://img.shields.io/npm/v/fastify-user-agent)](https://www.npmjs.com/package/fastify-user-agent)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![Build Status](https://github.com/Eomm/fastify-user-agent/workflows/ci/badge.svg)](https://github.com/Eomm/fastify-user-agent/actions)


## Install
Expand All @@ -15,6 +16,7 @@ npm install fastify-user-agent

| Plugin version | Fastify version |
| -------------- |:---------------:|
| `^2.0.0` | `^5.0.0` |
| `^1.0.0` | `^4.0.0` |


Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function fastifyUserAgent (fastify, options, next) {
}

const plugin = fp(fastifyUserAgent, {
fastify: '^4.x',
fastify: '^5.x',
name: 'fastify-user-agent'
})

Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"lint": "standard",
"lint:fix": "standard --fix",
"test": "tap test/**/*.test.js"
"test": "tap --show-full-coverage"
},
"repository": {
"type": "git",
Expand All @@ -19,18 +19,19 @@
"useragent"
],
"author": "Manuel Spigolon <behemoth89@gmail.com> (https://github.com/Eomm)",
"funding": "https://github.com/Eomm/fastify-user-agent?sponsor=1",
"license": "MIT",
"bugs": {
"url": "https://github.com/Eomm/fastify-user-agent/issues"
},
"homepage": "https://github.com/Eomm/fastify-user-agent#readme",
"dependencies": {
"fastify-plugin": "^4.4.0",
"fastify-plugin": "^5.0.0",
"useragent": "^2.3.0"
},
"devDependencies": {
"fastify": "^4.10.2",
"standard": "^17.0.0",
"tap": "^16.3.2"
"fastify": "^5.0.0",
"standard": "^17.1.0",
"tap": "^21.0.0"
}
}

0 comments on commit 233f361

Please sign in to comment.