diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e973c2e..91109db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/README.md b/README.md index 1d9f237..a756b8b 100644 --- a/README.md +++ b/README.md @@ -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` | + **** diff --git a/index.js b/index.js index 71db171..7d020b8 100644 --- a/index.js +++ b/index.js @@ -60,7 +60,7 @@ async function fastifyOrama (fastify, options) { } module.exports = fp(fastifyOrama, { - fastify: '4.x', + fastify: '5.x', name: 'fastify-orama' }) diff --git a/package.json b/package.json index 7003c18..b822bf8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..2b43622 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "esModuleInterop": true, + }, +} \ No newline at end of file