diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e08f055a..ba696fda 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/index.js b/index.js index 0368a660..528b2b0c 100644 --- a/index.js +++ b/index.js @@ -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 { diff --git a/package.json b/package.json index 4f878716..2cfccafd 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/test/basic.test.js b/test/basic.test.js index 3437d1e4..e2a58304 100644 --- a/test/basic.test.js +++ b/test/basic.test.js @@ -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') diff --git a/test/example/example.js b/test/example/example.js index f16c181d..f9a7452e 100644 --- a/test/example/example.js +++ b/test/example/example.js @@ -2,7 +2,7 @@ const _prettyFactory = require('../../') const pino = require('pino') -const { Writable } = require('readable-stream') +const { Writable } = require('stream') function prettyFactory () { return _prettyFactory({