Skip to content
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
Support Node.js v21
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Oct 23, 2023
commit c89e0f64f0571aec4c7b9d9c0a5875279a48cc07
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}