Skip to content

Commit

Permalink
Require "node:stream" instead of "stream", and adjust minimum nodejs …
Browse files Browse the repository at this point in the history
…version accordingly.

Also removed package-lock.json and added it to .gitignore.
  • Loading branch information
boenrobot committed Jul 26, 2024
1 parent bc86a3d commit 2de2188
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4,837 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ node_modules

# Users Environment Variables
.lock-wscript
.esm-cache
.esm-cache

# Ignore lock file, because this is a library
/package-lock.json
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
language: node_js
node_js:
- "8"
- "10"
- "12"
- "14.18.0"
- "14"
- "16.0.0"
- "16"
sudo: false
cache:
directories:
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Copyright (c) 2014-2022 Teambition
* Licensed under the MIT license.
*/
const Stream = require('stream')
const Stream = require('node:stream')
const PassThrough = Stream.PassThrough
const slice = Array.prototype.slice

Expand Down
Loading

0 comments on commit 2de2188

Please sign in to comment.