diff options
author | 2023-07-17 20:05:01 +0300 | |
---|---|---|
committer | 2023-07-17 20:05:01 +0300 | |
commit | 570a44d73a14b73614d6bdd8787f08545dd63c37 (patch) | |
tree | 2d328b1c4c3794190333da7f9f2a987abbedf454 | |
parent | 5218a33fb67f90d25f2fcfe0a55b6000469ab069 (diff) | |
download | bun-570a44d73a14b73614d6bdd8787f08545dd63c37.tar.gz bun-570a44d73a14b73614d6bdd8787f08545dd63c37.tar.zst bun-570a44d73a14b73614d6bdd8787f08545dd63c37.zip |
workaround `readable-stream` compatibility (#3626)
- update `bun link` tests
- update `tests/bun.lockb`
- drop unused import in test
-rw-r--r-- | src/bun.js/module_loader.zig | 8 | ||||
-rwxr-xr-x | test/bun.lockb | bin | 148733 -> 148733 bytes | |||
-rw-r--r-- | test/js/bun/websocket/websocket-server.test.ts | 1 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/bun.js/module_loader.zig b/src/bun.js/module_loader.zig index e7e4d700e..1bf8dcb12 100644 --- a/src/bun.js/module_loader.zig +++ b/src/bun.js/module_loader.zig @@ -2204,9 +2204,11 @@ pub const HardcodedModule = enum { .{ "path/win32", .{ .path = "node:path/win32" } }, .{ "perf_hooks", .{ .path = "node:perf_hooks" } }, .{ "process", .{ .path = "node:process" } }, - .{ "readable-stream", .{ .path = "node:stream" } }, - .{ "readable-stream/consumer", .{ .path = "node:stream/consumers" } }, - .{ "readable-stream/web", .{ .path = "node:stream/web" } }, + // Older versions of `readable-stream` is incompatible with latest + // version of Node.js Stream API, which `bun` implements + // .{ "readable-stream", .{ .path = "node:stream" } }, + // .{ "readable-stream/consumer", .{ .path = "node:stream/consumers" } }, + // .{ "readable-stream/web", .{ .path = "node:stream/web" } }, .{ "readline", .{ .path = "node:readline" } }, .{ "readline/promises", .{ .path = "node:readline/promises" } }, .{ "stream", .{ .path = "node:stream" } }, diff --git a/test/bun.lockb b/test/bun.lockb Binary files differindex 01afbfa4e..12f9a5519 100755 --- a/test/bun.lockb +++ b/test/bun.lockb diff --git a/test/js/bun/websocket/websocket-server.test.ts b/test/js/bun/websocket/websocket-server.test.ts index 7a31fa396..191bb6f92 100644 --- a/test/js/bun/websocket/websocket-server.test.ts +++ b/test/js/bun/websocket/websocket-server.test.ts @@ -2,7 +2,6 @@ import { describe, it, expect, afterEach } from "bun:test"; import type { Server, Subprocess, WebSocketHandler } from "bun"; import { serve, spawn } from "bun"; import { bunEnv, bunExe, nodeExe } from "harness"; -import { drainMicrotasks, fullGC } from "bun:jsc"; const strings = [ { |