Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fastify): upgrade to v5 #108

Merged
merged 3 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 8
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
Expand Down Expand Up @@ -66,22 +66,22 @@ jobs:
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v2
node-version: 22
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 8
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [20.x, 22.x]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 8
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
Expand Down
2 changes: 1 addition & 1 deletion docs/api/fastify-metrics._default.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Metric plugin
<b>Signature:</b>

```typescript
_default: import('fastify').FastifyPluginAsync<
_default: import('fastify').FastifyPluginCallback<
Partial<IMetricsPluginOptions>,
import('fastify').RawServerDefault,
import('fastify').FastifyTypeProviderDefault,
Expand Down
4 changes: 2 additions & 2 deletions etc/fastify-metrics.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import client from 'prom-client';
import { DefaultMetricsCollectorConfiguration } from 'prom-client';
import { FastifyBaseLogger } from 'fastify';
import { FastifyPluginAsync } from 'fastify';
import { FastifyPluginCallback } from 'fastify';
import { FastifyReply } from 'fastify';
import { FastifyRequest } from 'fastify';
import { FastifyTypeProviderDefault } from 'fastify';
Expand All @@ -17,7 +17,7 @@ import { RouteOptions } from 'fastify';
import { SummaryConfiguration } from 'prom-client';

// @public
const _default: FastifyPluginAsync<
const _default: FastifyPluginCallback<
Partial<IMetricsPluginOptions>,
RawServerDefault,
FastifyTypeProviderDefault,
Expand Down
18 changes: 11 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"test:unit": "jest --passWithNoTests"
},
"dependencies": {
"fastify-plugin": "^4.3.0",
"prom-client": "^15.1.0"
"fastify-plugin": "^5.0.0",
"prom-client": "^15.1.3"
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
Expand All @@ -59,7 +59,7 @@
"@semantic-release/github": "^8.0.7",
"@semantic-release/npm": "^10.0.3",
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/node": "^18.11.0",
"@types/node": "^22.5.5",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"conventional-changelog-cli": "^2.2.2",
Expand All @@ -70,7 +70,7 @@
"eslint-plugin-jest": "^27.1.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-tsdoc": "^0.2.17",
"fastify": "^4.23.1",
"fastify": "^5.0.0",
"jest": "^29.2.0",
"prettier": "^2.7.1",
"prettier-plugin-jsdoc": "^0.4.2",
Expand All @@ -80,10 +80,14 @@
"pretty-quick": "^3.1.3",
"semantic-release": "^21.0.1",
"ts-jest": "^29.0.3",
"ts-node": "^10.9.1",
"typescript": "~4.8.4"
"ts-node": "^10.9.2",
"typescript": "~5.6.2"
},
"peerDependencies": {
"fastify": ">=4"
"fastify": ">=5"
},
"volta": {
"node": "22.8.0",
"pnpm": "9.9.0"
}
}
Loading
Loading