diff --git a/lib/index.js b/lib/index.js index f9d5082..3b84ff6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,5 +1,5 @@ 'use strict' -const MiniPass = require('minipass') +const { Minipass } = require('minipass') const EE = require('events').EventEmitter const fs = require('fs') @@ -34,7 +34,7 @@ const _writing = Symbol('_writing') const _defaultFlag = Symbol('_defaultFlag') const _errored = Symbol('_errored') -class ReadStream extends MiniPass { +class ReadStream extends Minipass { constructor (path, opt) { opt = opt || {} super(opt) diff --git a/package.json b/package.json index 5a02a40..93d55f9 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "homepage": "https://github.com/npm/fs-minipass#readme", "description": "fs read and write streams based on minipass", "dependencies": { - "minipass": "^4.0.0" + "minipass": "^5.0.0" }, "devDependencies": { "@npmcli/eslint-config": "^4.0.1",