From 11a193c0367719949457d8ac42fb78a8109fd2e3 Mon Sep 17 00:00:00 2001 From: Manuel Spigolon Date: Wed, 23 Oct 2024 11:18:37 +0200 Subject: [PATCH 1/4] major: upgrade to fastify v5 --- .github/workflows/ci.yml | 2 +- README.md | 7 +++++++ index.js | 2 +- package.json | 4 ++-- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e973c2e..158270c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [18, 20] + node-version: [20, 22] steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 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", From 9143278fd34431b66021edc542f1cbe3512b75be Mon Sep 17 00:00:00 2001 From: Manuel Spigolon Date: Wed, 23 Oct 2024 11:28:55 +0200 Subject: [PATCH 2/4] ci is hard --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 158270c..6efcc01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,12 +16,14 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: macos-latest strategy: matrix: node-version: [20, 22] steps: - uses: actions/checkout@v4 + with: + persist-credentials: false - uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} From dfb27b2f32e9066b796ce652b747d0d3d0a3ce09 Mon Sep 17 00:00:00 2001 From: Manuel Spigolon Date: Sat, 18 Jan 2025 10:22:30 +0100 Subject: [PATCH 3/4] empty From 7bd759459cde032761db26ea978629ac2e692245 Mon Sep 17 00:00:00 2001 From: Manuel Spigolon Date: Sat, 18 Jan 2025 10:30:22 +0100 Subject: [PATCH 4/4] ts is hard --- .github/workflows/ci.yml | 2 +- tsconfig.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6efcc01..91109db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ on: jobs: test: - runs-on: macos-latest + runs-on: ubuntu-latest strategy: matrix: node-version: [20, 22] 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