From a52b375587c0a6dc0b9420ac185fb19e997bdf4c Mon Sep 17 00:00:00 2001 From: Simone Corsi Date: Tue, 10 May 2022 11:26:29 +0200 Subject: [PATCH] feat: update node BREAKING CHANGE: Node.js 12 is deprecated --- .github/workflows/merge.yml | 5 +---- .github/workflows/release.yml | 10 ++-------- README.md | 2 +- package.json | 4 ++-- 4 files changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 35d51db..7816444 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] runs-on: ${{ matrix.os }} steps: @@ -18,7 +18,4 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Update NPM - run: npm i -g npm@8.3.1 # avoid npm@8.4 win32 bug - - run: npm it diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index daa95c3..6e5cfb6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - node-version: [12.x, 14.x, 16.x] + node-version: [14.x, 16.x, 18.x] runs-on: ${{ matrix.os }} steps: @@ -18,9 +18,6 @@ jobs: with: node-version: ${{ matrix.node-version }} - - name: Update NPM - run: npm i -g npm@8.3.1 # avoid npm@8.4 win32 bug - - name: Install dependencies run: npm it @@ -30,15 +27,12 @@ jobs: steps: - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: lts/* - uses: actions/checkout@v3 with: persist-credentials: false token: ${{ secrets.GITHUB_TOKEN }} - - name: Update NPM - run: npm i -g npm@8.3.1 # avoid npm@8.4 win32 bug - - name: Install dependencies run: npm i diff --git a/README.md b/README.md index 93e44a8..558c85b 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ If you write your services and apps using `Fastify` and also use `statsd`, this It automatically collects Node.js process metrics along with routes stats like hit count, timings and errors and uses the [`Dats`](https://github.com/immobiliare/dats) client to send them to a `stasd` collector. -It supports Fastify versions `>=3.0.0`. +It supports Fastify versions `>=3.0.0` on Node.js `>=14.0.0`, if you are a Node.js `v12` user refer to `fastify-metrics@2.x.x`. ## Table of Content diff --git a/package.json b/package.json index 5568e99..35a3f53 100644 --- a/package.json +++ b/package.json @@ -85,7 +85,7 @@ "fastify-plugin": "^3.0.1" }, "volta": { - "node": "16.12.0", - "npm": "8.1.1" + "node": "16.15.0", + "npm": "8.9.0" } }