File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ project adheres to [Semantic Versioning](http://semver.org/).
18
18
- Run test WPT test against our impl [ #109 ]
19
19
- File name are now casted to string [ #109 ]
20
20
- Slicing in the middle of multiple parts added more bytes than what what it should have [ #109 ]
21
+ - Prefixed ` stream/web ` import with ` node: ` to allow easier static analysis detection of Node built-ins [ #122 ]
21
22
22
23
## v3.1.2
23
24
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const POOL_SIZE = 65536;
4
4
5
5
if ( ! globalThis . ReadableStream ) {
6
6
try {
7
- Object . assign ( globalThis , require ( 'stream/web' ) )
7
+ Object . assign ( globalThis , require ( 'node: stream/web' ) )
8
8
} catch ( error ) {
9
9
// TODO: Remove when only supporting node >= 16.5.0
10
10
Object . assign ( globalThis , require ( 'web-streams-polyfill/dist/ponyfill.es2018.js' ) )
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ test('returns a readable stream', t => {
390
390
391
391
test ( 'checking instanceof blob#stream' , async t => {
392
392
// eslint-disable-next-line node/no-unsupported-features/es-syntax
393
- const { ReadableStream} = await import ( 'stream/web' ) . catch ( _ => import ( 'web-streams-polyfill/dist/ponyfill.es2018.js' ) ) ;
393
+ const { ReadableStream} = await import ( 'node: stream/web' ) . catch ( _ => import ( 'web-streams-polyfill/dist/ponyfill.es2018.js' ) ) ;
394
394
const stream = new File ( [ ] , '' ) . stream ( ) ;
395
395
t . true ( stream instanceof ReadableStream ) ;
396
396
} ) ;
You can’t perform that action at this time.
0 commit comments