Skip to content

Commit

Permalink
major: upgrade to fastify v5 (#185)
Browse files Browse the repository at this point in the history
* major: upgrade to fastify v5

* ci is hard

* empty

* ts is hard
  • Loading branch information
Eomm authored Jan 18, 2025
1 parent 125c2ae commit 45b8752
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
node-version: [20, 22]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@
npm install fastify-orama
```

### Compatibility

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

****


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

module.exports = fp(fastifyOrama, {
fastify: '4.x',
fastify: '5.x',
name: 'fastify-orama'
})

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@
"dependencies": {
"@orama/orama": "^2.0.0",
"@orama/plugin-data-persistence": "^2.0.0",
"fastify-plugin": "^4.5.1"
"fastify-plugin": "^5.0.0"
},
"devDependencies": {
"@types/node": "^22.0.0",
"c8": "^10.0.0",
"fastify": "^4.24.2",
"fastify": "^5.0.0",
"husky": "^9.0.5",
"snazzy": "^9.0.0",
"standard": "^17.1.0",
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"esModuleInterop": true,
},
}

0 comments on commit 45b8752

Please sign in to comment.