Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace readable-stream with built-in stream #542

Merged
merged 2 commits into from
Nov 10, 2024
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
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