Skip to content

Commit

Permalink
chore: replace readable-stream with built-in stream (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Nov 10, 2024
1 parent 772c5b8 commit f4b3ca7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
contents: read
strategy:
matrix:
node-version: [18.17, 20, 22]
node-version: [20, 22]
os: [ubuntu-latest]
pino-version: [^9.0.0]
steps:
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { isColorSupported } = require('colorette')
const pump = require('pump')
const { Transform } = require('readable-stream')
const { Transform } = require('stream')
const abstractTransport = require('pino-abstract-transport')
const colors = require('./lib/colors')
const {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"on-exit-leak-free": "^2.1.0",
"pino-abstract-transport": "^2.0.0",
"pump": "^3.0.0",
"readable-stream": "^4.0.0",
"secure-json-parse": "^2.4.0",
"sonic-boom": "^4.0.1",
"strip-json-comments": "^3.1.1"
Expand Down
2 changes: 1 addition & 1 deletion test/basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

process.env.TZ = 'UTC'

const { Writable } = require('readable-stream')
const { Writable } = require('stream')
const os = require('os')
const test = require('tap').test
const pino = require('pino')
Expand Down
2 changes: 1 addition & 1 deletion test/example/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const _prettyFactory = require('../../')
const pino = require('pino')
const { Writable } = require('readable-stream')
const { Writable } = require('stream')

function prettyFactory () {
return _prettyFactory({
Expand Down

0 comments on commit f4b3ca7

Please sign in to comment.