From 0a4e8534861c03aa347fc002bf5ff57e626b75eb Mon Sep 17 00:00:00 2001 From: Ben Weintraub Date: Mon, 26 Jun 2023 15:11:14 -0400 Subject: [PATCH] fix: prevent crash when accessing TextDecoder The TextDecoder object was never imported before being used. This bug was introduced in [1] and included in release 6.5.0. [1] 123b68c --- lib/server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/server.ts b/lib/server.ts index 2dba26db..355e14d5 100644 --- a/lib/server.ts +++ b/lib/server.ts @@ -16,6 +16,7 @@ import type { CookieSerializeOptions } from "cookie"; import type { CorsOptions, CorsOptionsDelegate } from "cors"; import type { Duplex } from "stream"; import { WebTransport } from "./transports/webtransport"; +import { TextDecoder } from "util"; const debug = debugModule("engine");