From 3dd1d4d47642b48b1fcfa1a5778b88907fe36e7f Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 23 Oct 2023 19:11:52 +0200 Subject: [PATCH 1/2] Support Node.js v21 (#1834) Signed-off-by: Matteo Collina --- .github/workflows/ci.yml | 2 +- lib/proto.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f6ea9c1d..91ce2afcd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: fail-fast: false matrix: os: [macOS-latest, windows-latest, ubuntu-latest] - node-version: [14, 16, 18, 19, 20] + node-version: [14, 16, 18, 19, 20, 21] exclude: - os: windows-latest node-version: 14 diff --git a/lib/proto.js b/lib/proto.js index 624f809ab..b82fd0c26 100644 --- a/lib/proto.js +++ b/lib/proto.js @@ -226,7 +226,7 @@ function flush (cb) { const stream = this[streamSym] - if ('flush' in stream) { + if (typeof stream.flush === 'function') { stream.flush(cb || noop) } else if (cb) cb() } From 186a49d2f028d2daa028344cca6d1cb026135895 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Mon, 23 Oct 2023 19:12:23 +0200 Subject: [PATCH 2/2] Bumped v8.16.1 Signed-off-by: Matteo Collina --- lib/meta.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/meta.js b/lib/meta.js index d879fb5be..cfb9fb347 100644 --- a/lib/meta.js +++ b/lib/meta.js @@ -1,3 +1,3 @@ 'use strict' -module.exports = { version: '8.16.0' } +module.exports = { version: '8.16.1' } diff --git a/package.json b/package.json index e58982e65..bd0d18017 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pino", - "version": "8.16.0", + "version": "8.16.1", "description": "super fast, all natural json logger", "main": "pino.js", "type": "commonjs",