From fbf329d5e30142043c7b6f105cc02683553b9d13 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 19 May 2026 16:42:49 +0200 Subject: [PATCH 1/3] feat: enable text imports by default --- lib/lib.rs | 1 - src/graph.rs | 9 +- tests/ecosystem_test.rs | 1 - tests/helpers/mod.rs | 9 -- tests/specs/graph/bytes_and_text/basic.txt | 2 +- .../bytes_and_text_same_file.txt | 2 +- .../bytes_import_then_regular_import.txt | 2 +- .../dynamic_bytes_then_dynamic_regular.txt | 2 +- .../dynamic_bytes_then_static_regular.txt | 2 +- .../bytes_and_text/jsr_checksum_mismatch.txt | 2 +- .../graph/bytes_and_text/not_enabled.txt | 4 +- .../bytes_and_text/not_enabled_bytes.txt | 103 ------------------ .../graph/bytes_and_text/not_enabled_text.txt | 103 ------------------ .../specs/graph/bytes_and_text/not_exists.txt | 2 +- tests/specs/graph/bytes_and_text/redirect.txt | 2 +- .../wasm_bytes_source_phase_import.txt | 2 +- tests/specs_test.rs | 4 - 17 files changed, 14 insertions(+), 238 deletions(-) delete mode 100644 tests/specs/graph/bytes_and_text/not_enabled_bytes.txt delete mode 100644 tests/specs/graph/bytes_and_text/not_enabled_text.txt diff --git a/lib/lib.rs b/lib/lib.rs index dbc14fd0b..0df5dd607 100644 --- a/lib/lib.rs +++ b/lib/lib.rs @@ -312,7 +312,6 @@ pub async fn js_create_graph( is_dynamic: false, skip_dynamic_deps: false, unstable_bytes_imports: true, - unstable_text_imports: true, resolver: maybe_resolver.as_ref().map(|r| r as &dyn Resolver), // todo(dsherret): actually implement this for Wasm users // and don't just use a RealSys here as it would be better diff --git a/src/graph.rs b/src/graph.rs index d544ca0f7..dfef6eb62 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -1692,8 +1692,6 @@ pub struct BuildOptions<'a> { pub skip_dynamic_deps: bool, /// Support unstable bytes imports. pub unstable_bytes_imports: bool, - /// Support unstable text imports. - pub unstable_text_imports: bool, pub executor: &'a dyn Executor, pub locker: Option<&'a mut dyn Locker>, pub file_system: &'a FileSystem, @@ -1717,7 +1715,6 @@ impl Default for BuildOptions<'_> { is_dynamic: false, skip_dynamic_deps: false, unstable_bytes_imports: false, - unstable_text_imports: false, executor: Default::default(), locker: None, file_system: &NullFileSystem, @@ -4557,7 +4554,6 @@ struct Builder<'a, 'graph> { skip_dynamic_deps: bool, was_dynamic_root: bool, unstable_bytes_imports: bool, - unstable_text_imports: bool, file_system: &'a FileSystem, jsr_url_provider: &'a dyn JsrUrlProvider, jsr_version_resolver: Cow<'a, JsrVersionResolver>, @@ -4591,7 +4587,6 @@ impl<'a, 'graph> Builder<'a, 'graph> { skip_dynamic_deps: options.skip_dynamic_deps, was_dynamic_root: options.is_dynamic, unstable_bytes_imports: options.unstable_bytes_imports, - unstable_text_imports: options.unstable_text_imports, file_system: options.file_system, jsr_url_provider: options.jsr_url_provider, jsr_version_resolver: options.jsr_version_resolver, @@ -5347,10 +5342,12 @@ impl<'a, 'graph> Builder<'a, 'graph> { ); return; } + + if let Some(attribute) = &options.maybe_attribute_type { let is_allowed = match attribute.kind.as_str() { "bytes" => self.unstable_bytes_imports, - "text" => self.unstable_text_imports, + "text" => true, _ => false, }; if !is_allowed { diff --git a/tests/ecosystem_test.rs b/tests/ecosystem_test.rs index b3471278b..9d94b955d 100644 --- a/tests/ecosystem_test.rs +++ b/tests/ecosystem_test.rs @@ -297,7 +297,6 @@ async fn test_version( is_dynamic: false, skip_dynamic_deps: false, unstable_bytes_imports: false, - unstable_text_imports: false, module_analyzer: &module_analyzer, module_info_cacher: Default::default(), file_system: &NullFileSystem, diff --git a/tests/helpers/mod.rs b/tests/helpers/mod.rs index 9c4d638c7..683c17360 100644 --- a/tests/helpers/mod.rs +++ b/tests/helpers/mod.rs @@ -159,7 +159,6 @@ pub struct TestBuilder { workspace_members: Vec, workspace_fast_check: bool, unstable_bytes_imports: bool, - unstable_text_imports: bool, } impl TestBuilder { @@ -178,7 +177,6 @@ impl TestBuilder { workspace_members: Default::default(), workspace_fast_check: false, unstable_bytes_imports: false, - unstable_text_imports: false, } } @@ -262,12 +260,6 @@ impl TestBuilder { self } - #[allow(unused)] - pub fn unstable_text_imports(&mut self, value: bool) -> &mut Self { - self.unstable_text_imports = value; - self - } - #[allow(unused)] pub fn ensure_locker(&mut self) -> &mut Self { self.locker.get_or_insert_with(Default::default); @@ -329,7 +321,6 @@ impl TestBuilder { }), skip_dynamic_deps: self.skip_dynamic_deps, unstable_bytes_imports: self.unstable_bytes_imports, - unstable_text_imports: self.unstable_text_imports, jsr_version_resolver: Cow::Owned(JsrVersionResolver { newest_dependency_date_options: self.newest_dependency_date.clone(), }), diff --git a/tests/specs/graph/bytes_and_text/basic.txt b/tests/specs/graph/bytes_and_text/basic.txt index 454ba99a5..5288c4432 100644 --- a/tests/specs/graph/bytes_and_text/basic.txt +++ b/tests/specs/graph/bytes_and_text/basic.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # mod.ts const a = await import("./a.json", { with: { diff --git a/tests/specs/graph/bytes_and_text/bytes_and_text_same_file.txt b/tests/specs/graph/bytes_and_text/bytes_and_text_same_file.txt index f97d65d45..80a4c8128 100644 --- a/tests/specs/graph/bytes_and_text/bytes_and_text_same_file.txt +++ b/tests/specs/graph/bytes_and_text/bytes_and_text_same_file.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # mod.ts import json from "./data.json" with { type: "json" }; import text from "./data.json" with { type: "text" }; diff --git a/tests/specs/graph/bytes_and_text/bytes_import_then_regular_import.txt b/tests/specs/graph/bytes_and_text/bytes_import_then_regular_import.txt index 52c856414..1cbdfe9a3 100644 --- a/tests/specs/graph/bytes_and_text/bytes_import_then_regular_import.txt +++ b/tests/specs/graph/bytes_and_text/bytes_import_then_regular_import.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # mod.ts import data from "./a.ts" with { type: "bytes" }; import "./b.ts"; diff --git a/tests/specs/graph/bytes_and_text/dynamic_bytes_then_dynamic_regular.txt b/tests/specs/graph/bytes_and_text/dynamic_bytes_then_dynamic_regular.txt index 1e2dd84b2..d9f71a34e 100644 --- a/tests/specs/graph/bytes_and_text/dynamic_bytes_then_dynamic_regular.txt +++ b/tests/specs/graph/bytes_and_text/dynamic_bytes_then_dynamic_regular.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # mod.ts await import("./a.ts", { with: { diff --git a/tests/specs/graph/bytes_and_text/dynamic_bytes_then_static_regular.txt b/tests/specs/graph/bytes_and_text/dynamic_bytes_then_static_regular.txt index c958f4605..4089333c2 100644 --- a/tests/specs/graph/bytes_and_text/dynamic_bytes_then_static_regular.txt +++ b/tests/specs/graph/bytes_and_text/dynamic_bytes_then_static_regular.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # mod.ts await import("./a.ts", { with: { diff --git a/tests/specs/graph/bytes_and_text/jsr_checksum_mismatch.txt b/tests/specs/graph/bytes_and_text/jsr_checksum_mismatch.txt index b653c2816..6e4dcb1b8 100644 --- a/tests/specs/graph/bytes_and_text/jsr_checksum_mismatch.txt +++ b/tests/specs/graph/bytes_and_text/jsr_checksum_mismatch.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # https://jsr.io/@scope/a/meta.json { "versions": { diff --git a/tests/specs/graph/bytes_and_text/not_enabled.txt b/tests/specs/graph/bytes_and_text/not_enabled.txt index 7710c950f..431d81756 100644 --- a/tests/specs/graph/bytes_and_text/not_enabled.txt +++ b/tests/specs/graph/bytes_and_text/not_enabled.txt @@ -31,8 +31,8 @@ asdf "error": "The import attribute type of \"bytes\" is unsupported.\n Specifier: file:///b.ts" }, { - "specifier": "file:///c.txt", - "error": "The import attribute type of \"text\" is unsupported.\n Specifier: file:///c.txt" + "kind": "external", + "specifier": "file:///c.txt" }, { "kind": "esm", diff --git a/tests/specs/graph/bytes_and_text/not_enabled_bytes.txt b/tests/specs/graph/bytes_and_text/not_enabled_bytes.txt deleted file mode 100644 index 22889272e..000000000 --- a/tests/specs/graph/bytes_and_text/not_enabled_bytes.txt +++ /dev/null @@ -1,103 +0,0 @@ -~~ {"unstableTextImports":true} ~~ -# mod.ts -const a = await import("./a.json", { - with: { - "type": "bytes", - } -}); -import data1 from "./b.ts" with { type: "bytes" }; -import data2 from "./c.txt" with { type: "text" }; - -# a.json -{"a":"b"} - -# b.ts -{"a":"b"} - -# c.txt -asdf - -# output -{ - "roots": [ - "file:///mod.ts" - ], - "modules": [ - { - "specifier": "file:///a.json", - "error": "The import attribute type of \"bytes\" is unsupported.\n Specifier: file:///a.json" - }, - { - "specifier": "file:///b.ts", - "error": "The import attribute type of \"bytes\" is unsupported.\n Specifier: file:///b.ts" - }, - { - "kind": "external", - "specifier": "file:///c.txt" - }, - { - "kind": "esm", - "dependencies": [ - { - "specifier": "./a.json", - "code": { - "specifier": "file:///a.json", - "resolutionMode": "import", - "span": { - "start": { - "line": 0, - "character": 23 - }, - "end": { - "line": 0, - "character": 33 - } - } - }, - "isDynamic": true, - "assertionType": "bytes" - }, - { - "specifier": "./b.ts", - "code": { - "specifier": "file:///b.ts", - "resolutionMode": "import", - "span": { - "start": { - "line": 5, - "character": 18 - }, - "end": { - "line": 5, - "character": 26 - } - } - }, - "assertionType": "bytes" - }, - { - "specifier": "./c.txt", - "code": { - "specifier": "file:///c.txt", - "resolutionMode": "import", - "span": { - "start": { - "line": 6, - "character": 18 - }, - "end": { - "line": 6, - "character": 27 - } - } - }, - "assertionType": "text" - } - ], - "size": 178, - "mediaType": "TypeScript", - "specifier": "file:///mod.ts" - } - ], - "redirects": {} -} diff --git a/tests/specs/graph/bytes_and_text/not_enabled_text.txt b/tests/specs/graph/bytes_and_text/not_enabled_text.txt deleted file mode 100644 index 94a1e0c45..000000000 --- a/tests/specs/graph/bytes_and_text/not_enabled_text.txt +++ /dev/null @@ -1,103 +0,0 @@ -~~ {"unstableBytesImports":true} ~~ -# mod.ts -const a = await import("./a.json", { - with: { - "type": "bytes", - } -}); -import data1 from "./b.ts" with { type: "bytes" }; -import data2 from "./c.txt" with { type: "text" }; - -# a.json -{"a":"b"} - -# b.ts -{"a":"b"} - -# c.txt -asdf - -# output -{ - "roots": [ - "file:///mod.ts" - ], - "modules": [ - { - "kind": "external", - "specifier": "file:///a.json" - }, - { - "kind": "external", - "specifier": "file:///b.ts" - }, - { - "specifier": "file:///c.txt", - "error": "The import attribute type of \"text\" is unsupported.\n Specifier: file:///c.txt" - }, - { - "kind": "esm", - "dependencies": [ - { - "specifier": "./a.json", - "code": { - "specifier": "file:///a.json", - "resolutionMode": "import", - "span": { - "start": { - "line": 0, - "character": 23 - }, - "end": { - "line": 0, - "character": 33 - } - } - }, - "isDynamic": true, - "assertionType": "bytes" - }, - { - "specifier": "./b.ts", - "code": { - "specifier": "file:///b.ts", - "resolutionMode": "import", - "span": { - "start": { - "line": 5, - "character": 18 - }, - "end": { - "line": 5, - "character": 26 - } - } - }, - "assertionType": "bytes" - }, - { - "specifier": "./c.txt", - "code": { - "specifier": "file:///c.txt", - "resolutionMode": "import", - "span": { - "start": { - "line": 6, - "character": 18 - }, - "end": { - "line": 6, - "character": 27 - } - } - }, - "assertionType": "text" - } - ], - "size": 178, - "mediaType": "TypeScript", - "specifier": "file:///mod.ts" - } - ], - "redirects": {} -} diff --git a/tests/specs/graph/bytes_and_text/not_exists.txt b/tests/specs/graph/bytes_and_text/not_exists.txt index 75f319d3f..4d141fa98 100644 --- a/tests/specs/graph/bytes_and_text/not_exists.txt +++ b/tests/specs/graph/bytes_and_text/not_exists.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # mod.ts import data1 from "./a.ts" with { type: "bytes" }; diff --git a/tests/specs/graph/bytes_and_text/redirect.txt b/tests/specs/graph/bytes_and_text/redirect.txt index 428af5a7e..1d96c7fc1 100644 --- a/tests/specs/graph/bytes_and_text/redirect.txt +++ b/tests/specs/graph/bytes_and_text/redirect.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # mod.ts import data1 from "https://example.com" with { type: "bytes" }; diff --git a/tests/specs/graph/source_phase_imports/wasm_bytes_source_phase_import.txt b/tests/specs/graph/source_phase_imports/wasm_bytes_source_phase_import.txt index 1d6cd410e..a581a81cc 100644 --- a/tests/specs/graph/source_phase_imports/wasm_bytes_source_phase_import.txt +++ b/tests/specs/graph/source_phase_imports/wasm_bytes_source_phase_import.txt @@ -1,4 +1,4 @@ -~~ {"unstableBytesImports":true,"unstableTextImports":true} ~~ +~~ {"unstableBytesImports":true} ~~ # mod.ts import source module from "./math.wasm" with { type: "bytes" }; diff --git a/tests/specs_test.rs b/tests/specs_test.rs index f883b50d3..c1308db9a 100644 --- a/tests/specs_test.rs +++ b/tests/specs_test.rs @@ -106,7 +106,6 @@ fn run_graph_test(test: &CollectedTest) { ); builder.skip_dynamic_deps(options.skip_dynamic_deps); builder.unstable_bytes_imports(options.unstable_bytes_imports); - builder.unstable_text_imports(options.unstable_text_imports); builder.workspace_fast_check(options.workspace_fast_check); builder.fast_check_cache(options.fast_check_cache); if let Some(checksums) = options.remote_checksums.as_ref() { @@ -356,9 +355,6 @@ pub struct SpecOptions { #[serde(default)] #[serde(skip_serializing_if = "is_false")] pub unstable_bytes_imports: bool, - #[serde(default)] - #[serde(skip_serializing_if = "is_false")] - pub unstable_text_imports: bool, } fn is_false(v: &bool) -> bool { From 263f29a0a20b9a67138bfd4ba2180d60b6d7ffdb Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 19 May 2026 16:44:41 +0200 Subject: [PATCH 2/3] fmt --- src/graph.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/graph.rs b/src/graph.rs index dfef6eb62..4d306eef1 100644 --- a/src/graph.rs +++ b/src/graph.rs @@ -5343,7 +5343,6 @@ impl<'a, 'graph> Builder<'a, 'graph> { return; } - if let Some(attribute) = &options.maybe_attribute_type { let is_allowed = match attribute.kind.as_str() { "bytes" => self.unstable_bytes_imports, From 80cf55e97965f2b1050c0f1ec092d33bec4f968f Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Tue, 2 Jun 2026 04:26:26 +0200 Subject: [PATCH 3/3] chore: update ecosystem test expectations for TS 6.0 Buffer global deno canary now ships TypeScript 6.0, which recognizes `Buffer` (and `BufferEncoding`) as a known global, so the affected packages no longer emit TS2591/TS2304 and now type check successfully. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../ecosystem/hampus/itsdangerous/1_1_0.test | 177 +---------------- .../ecosystem/hampus/itsdangerous/1_1_1.test | 184 +----------------- .../ecosystem/hampus/itsdangerous/1_1_2.test | 184 +----------------- .../ecosystem/hinw/vdf_parser/1_1_5.test | 12 +- .../ecosystem/hinw/vdf_parser/1_1_6.test | 12 +- .../lightbery/dynamic_cli/1_0_0.test | 12 +- .../lightbery/dynamic_cli/1_0_1.test | 7 - .../lightbery/dynamic_cli/1_0_2.test | 7 - .../lightbery/dynamic_cli/1_0_3.test | 7 - .../lightbery/dynamic_cli/1_0_4.test | 12 -- .../lightbery/dynamic_cli/1_0_5.test | 12 -- .../lightbery/dynamic_cli/1_0_6.test | 12 -- .../lightbery/virtual_file_tree/1_0_0.test | 12 +- .../lilith/hypixel_plugin_message/0_3_0.test | 44 +---- .../lilith/hypixel_plugin_message/0_3_1.test | 44 +---- .../lilith/hypixel_plugin_message/0_3_2.test | 44 +---- .../lilith/hypixel_plugin_message/0_3_3.test | 44 +---- .../specs/ecosystem/llamaindex/env/0_0_4.test | 19 +- .../specs/ecosystem/llamaindex/env/0_0_5.test | 19 +- .../specs/ecosystem/llamaindex/env/0_0_6.test | 19 +- .../specs/ecosystem/llamaindex/env/0_1_0.test | 19 +- .../ecosystem/molikodev/twitchts/0_1_3.test | 7 +- .../ecosystem/molikodev/twitchts/0_1_4.test | 7 +- .../ecosystem/molikodev/twitchts/0_1_5.test | 7 +- .../ecosystem/molikodev/twitchts/0_1_6.test | 7 +- .../teapot/insomnia_plugin_aws/0_1_0.test | 12 +- 26 files changed, 20 insertions(+), 922 deletions(-) diff --git a/tests/specs/ecosystem/hampus/itsdangerous/1_1_0.test b/tests/specs/ecosystem/hampus/itsdangerous/1_1_0.test index cf7604c02..8a0b4373e 100644 --- a/tests/specs/ecosystem/hampus/itsdangerous/1_1_0.test +++ b/tests/specs/ecosystem/hampus/itsdangerous/1_1_0.test @@ -24,36 +24,6 @@ hampus/itsdangerous/1.1.0 -- stdout -- -- stderr -- -TS2304 [ERROR]: Cannot find name 'BufferEncoding'. -export function wantBuffer(string: StringBuffer, encoding?: BufferEncoding): Buffer { - ~~~~~~~~~~~~~~ - at file:///src/encoding.ts:2:61 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function wantBuffer(string: StringBuffer, encoding?: BufferEncoding): Buffer { - ~~~~~~ - at file:///src/encoding.ts:2:78 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function base64Encode(string: StringBuffer): Buffer { - ~~~~~~ - at file:///src/encoding.ts:5:53 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function base64Decode(string: StringBuffer): Buffer { - ~~~~~~ - at file:///src/encoding.ts:8:53 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function intToBuffer(num: number | bigint): Buffer { - ~~~~~~ - at file:///src/encoding.ts:11:52 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function bufferToInt(buf: Buffer): number | bigint { - ~~~~~~ - at file:///src/encoding.ts:14:34 - TS1205 [ERROR]: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. export { DefaultSerializer, Serializer, SerializerOptions } from "./serializer.ts"; ~~~~~~~~~~~~~~~~~ @@ -69,152 +39,7 @@ export { HMACAlgorithm, KeyDerivation, NoneAlgorithm, Signer, SignerOptions, Sig ~~~~~~~~~~~~~ at file:///src/index.ts:4:63 -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ declare secretKeys: Buffer[]; - ~~~~~~ - at file:///src/serializer.ts:52:27 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare salt: Buffer; - ~~~~~~ - at file:///src/serializer.ts:53:17 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ parsePayload(payload: Buffer, serializer?: DefaultSerializer): any { - ~~~~~~ - at file:///src/serializer.ts:64:29 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ stringifyPayload(obj: any): Buffer { - ~~~~~~ - at file:///src/serializer.ts:70:35 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:22 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:38 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:47 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:24 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:39 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:52 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:31 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:47 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:56 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:30 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:45 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:54 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ declare secretKeys: Buffer[]; - ~~~~~~ - at file:///src/signer.ts:88:27 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare sep: Buffer; - ~~~~~~ - at file:///src/signer.ts:89:16 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare salt: Buffer; - ~~~~~~ - at file:///src/signer.ts:90:17 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ deriveKey(secretKey?: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:103:44 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ getSignature(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:108:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ sign(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:113:34 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ unsign(signedValue: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:123:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ override sign(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/timed.ts:21:43 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ override unsign(signedValue: StringBuffer, maxAge?: number, returnTimestamp?: false): Buffer; - ~~~~~~ - at file:///src/timed.ts:29:93 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override unsign(signedValue: StringBuffer, maxAge?: number, returnTimestamp?: true): [Buffer, Date]; - ~~~~~~ - at file:///src/timed.ts:30:89 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export type StringBuffer = string | Buffer; - ~~~~~~ - at file:///src/types.ts:1:37 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override parsePayload(payload: Buffer, serializer?: DefaultSerializer): any { - ~~~~~~ - at file:///src/url-safe.ts:9:34 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override stringifyPayload(obj: any): Buffer { - ~~~~~~ - at file:///src/url-safe.ts:12:40 - -Found 38 errors. +Found 3 errors. error: Type checking failed. diff --git a/tests/specs/ecosystem/hampus/itsdangerous/1_1_1.test b/tests/specs/ecosystem/hampus/itsdangerous/1_1_1.test index 38f0e8fc0..ad7ebb6a6 100644 --- a/tests/specs/ecosystem/hampus/itsdangerous/1_1_1.test +++ b/tests/specs/ecosystem/hampus/itsdangerous/1_1_1.test @@ -20,186 +20,4 @@ hampus/itsdangerous/1.1.1 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2304 [ERROR]: Cannot find name 'BufferEncoding'. -export function wantBuffer(string: StringBuffer, encoding?: BufferEncoding): Buffer { - ~~~~~~~~~~~~~~ - at file:///src/encoding.ts:2:61 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function wantBuffer(string: StringBuffer, encoding?: BufferEncoding): Buffer { - ~~~~~~ - at file:///src/encoding.ts:2:78 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function base64Encode(string: StringBuffer): Buffer { - ~~~~~~ - at file:///src/encoding.ts:5:53 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function base64Decode(string: StringBuffer): Buffer { - ~~~~~~ - at file:///src/encoding.ts:8:53 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function intToBuffer(num: number | bigint): Buffer { - ~~~~~~ - at file:///src/encoding.ts:11:52 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function bufferToInt(buf: Buffer): number | bigint { - ~~~~~~ - at file:///src/encoding.ts:14:34 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ declare secretKeys: Buffer[]; - ~~~~~~ - at file:///src/serializer.ts:52:27 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare salt: Buffer; - ~~~~~~ - at file:///src/serializer.ts:53:17 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ parsePayload(payload: Buffer, serializer?: DefaultSerializer): any { - ~~~~~~ - at file:///src/serializer.ts:64:29 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ stringifyPayload(obj: any): Buffer { - ~~~~~~ - at file:///src/serializer.ts:70:35 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:22 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:38 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:47 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:24 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:39 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:52 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:31 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:47 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:56 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:30 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:45 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:54 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ declare secretKeys: Buffer[]; - ~~~~~~ - at file:///src/signer.ts:88:27 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare sep: Buffer; - ~~~~~~ - at file:///src/signer.ts:89:16 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare salt: Buffer; - ~~~~~~ - at file:///src/signer.ts:90:17 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ deriveKey(secretKey?: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:103:44 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ getSignature(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:108:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ sign(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:113:34 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ unsign(signedValue: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:123:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ override sign(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/timed.ts:21:43 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ override unsign(signedValue: StringBuffer, maxAge?: number, returnTimestamp?: false): Buffer; - ~~~~~~ - at file:///src/timed.ts:29:93 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override unsign(signedValue: StringBuffer, maxAge?: number, returnTimestamp?: true): [Buffer, Date]; - ~~~~~~ - at file:///src/timed.ts:30:89 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export type StringBuffer = string | Buffer; - ~~~~~~ - at file:///src/types.ts:1:37 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override parsePayload(payload: Buffer, serializer?: DefaultSerializer): any { - ~~~~~~ - at file:///src/url-safe.ts:9:34 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override stringifyPayload(obj: any): Buffer { - ~~~~~~ - at file:///src/url-safe.ts:12:40 - -Found 35 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/hampus/itsdangerous/1_1_2.test b/tests/specs/ecosystem/hampus/itsdangerous/1_1_2.test index ee7ce57cd..bda080ad0 100644 --- a/tests/specs/ecosystem/hampus/itsdangerous/1_1_2.test +++ b/tests/specs/ecosystem/hampus/itsdangerous/1_1_2.test @@ -20,186 +20,4 @@ hampus/itsdangerous/1.1.2 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2304 [ERROR]: Cannot find name 'BufferEncoding'. - */ export function wantBuffer(string: StringBuffer, encoding?: BufferEncoding): Buffer { - ~~~~~~~~~~~~~~ - at file:///src/encoding.ts:9:65 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function wantBuffer(string: StringBuffer, encoding?: BufferEncoding): Buffer { - ~~~~~~ - at file:///src/encoding.ts:9:82 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function base64Encode(string: StringBuffer): Buffer { - ~~~~~~ - at file:///src/encoding.ts:17:57 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function base64Decode(string: StringBuffer): Buffer { - ~~~~~~ - at file:///src/encoding.ts:25:57 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function intToBuffer(num: number | bigint): Buffer { - ~~~~~~ - at file:///src/encoding.ts:33:56 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function bufferToInt(buf: Buffer): number | bigint { - ~~~~~~ - at file:///src/encoding.ts:41:38 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ declare secretKeys: Buffer[]; - ~~~~~~ - at file:///src/serializer.ts:52:27 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare salt: Buffer; - ~~~~~~ - at file:///src/serializer.ts:53:17 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ parsePayload(payload: Buffer, serializer?: DefaultSerializer): any { - ~~~~~~ - at file:///src/serializer.ts:64:29 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ stringifyPayload(obj: any): Buffer { - ~~~~~~ - at file:///src/serializer.ts:70:35 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:22 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:38 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:7:47 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:24 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:39 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - verifySignature(key: Buffer, value: Buffer, sig: Buffer): boolean { - ~~~~~~ - at file:///src/signer.ts:10:52 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:31 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:47 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(_key: Buffer, _value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:18:56 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:30 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:45 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override getSignature(key: Buffer, value: Buffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:33:54 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ declare secretKeys: Buffer[]; - ~~~~~~ - at file:///src/signer.ts:88:27 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare sep: Buffer; - ~~~~~~ - at file:///src/signer.ts:89:16 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - declare salt: Buffer; - ~~~~~~ - at file:///src/signer.ts:90:17 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ deriveKey(secretKey?: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:103:44 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ getSignature(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:108:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ sign(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:113:34 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ unsign(signedValue: StringBuffer): Buffer { - ~~~~~~ - at file:///src/signer.ts:123:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ override sign(value: StringBuffer): Buffer { - ~~~~~~ - at file:///src/timed.ts:21:43 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ override unsign(signedValue: StringBuffer, maxAge?: number, returnTimestamp?: false): Buffer; - ~~~~~~ - at file:///src/timed.ts:29:93 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override unsign(signedValue: StringBuffer, maxAge?: number, returnTimestamp?: true): [Buffer, Date]; - ~~~~~~ - at file:///src/timed.ts:30:89 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export type StringBuffer = string | Buffer; - ~~~~~~ - at file:///src/types.ts:1:37 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override parsePayload(payload: Buffer, serializer?: DefaultSerializer): any { - ~~~~~~ - at file:///src/url-safe.ts:9:34 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - override stringifyPayload(obj: any): Buffer { - ~~~~~~ - at file:///src/url-safe.ts:12:40 - -Found 35 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/hinw/vdf_parser/1_1_5.test b/tests/specs/ecosystem/hinw/vdf_parser/1_1_5.test index b61ef40f4..939158256 100644 --- a/tests/specs/ecosystem/hinw/vdf_parser/1_1_5.test +++ b/tests/specs/ecosystem/hinw/vdf_parser/1_1_5.test @@ -9,14 +9,4 @@ hinw/vdf-parser/1.1.5 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2304 [ERROR]: Cannot find name 'BufferEncoding'. - override _transform(chunk: string, encoding: BufferEncoding, callback: stream.TransformCallback): void {} - ~~~~~~~~~~~~~~ - at file:///src/parser.ts:126:48 - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/hinw/vdf_parser/1_1_6.test b/tests/specs/ecosystem/hinw/vdf_parser/1_1_6.test index 02a0df472..70a11342a 100644 --- a/tests/specs/ecosystem/hinw/vdf_parser/1_1_6.test +++ b/tests/specs/ecosystem/hinw/vdf_parser/1_1_6.test @@ -9,14 +9,4 @@ hinw/vdf-parser/1.1.6 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2304 [ERROR]: Cannot find name 'BufferEncoding'. - override _transform(chunk: string, encoding: BufferEncoding, callback: stream.TransformCallback): void {} - ~~~~~~~~~~~~~~ - at file:///src/parser.ts:126:48 - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_0.test b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_0.test index 17f85cc55..c062c0b27 100644 --- a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_0.test +++ b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_0.test @@ -9,14 +9,4 @@ lightbery/dynamic-cli/1.0.0 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - public simulateInput(data: Buffer): void {} - ~~~~~~ - at file:///DynamicCLI.ts:45:30 - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_1.test b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_1.test index ce0114ec8..5cd77b2f5 100644 --- a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_1.test +++ b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_1.test @@ -13,17 +13,10 @@ lightbery/dynamic-cli/1.0.1 -- stdout -- -- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - public simulateInput(data: Buffer): void {} - ~~~~~~ - at file:///DynamicCLI.ts:45:30 - TS1205 [ERROR]: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. export { DynamicCLI, Component, TextColor, BackgroundColor }; ~~~~~~~~~ at file:///DynamicCLI.ts:79:22 -Found 2 errors. - error: Type checking failed. diff --git a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_2.test b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_2.test index 75fea5264..cf9add294 100644 --- a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_2.test +++ b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_2.test @@ -13,17 +13,10 @@ lightbery/dynamic-cli/1.0.2 -- stdout -- -- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - public simulateInput(data: Buffer): void {} - ~~~~~~ - at file:///DynamicCLI.ts:45:30 - TS1205 [ERROR]: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. export { DynamicCLI, Component, TextColor, BackgroundColor }; ~~~~~~~~~ at file:///DynamicCLI.ts:79:22 -Found 2 errors. - error: Type checking failed. diff --git a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_3.test b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_3.test index e102e16d3..05c2e9e80 100644 --- a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_3.test +++ b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_3.test @@ -13,17 +13,10 @@ lightbery/dynamic-cli/1.0.3 -- stdout -- -- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - public simulateInput(data: Buffer): void {} - ~~~~~~ - at file:///DynamicCLI.ts:45:30 - TS1205 [ERROR]: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. export { DynamicCLI, Component, TextColor, BackgroundColor }; ~~~~~~~~~ at file:///DynamicCLI.ts:79:22 -Found 2 errors. - error: Type checking failed. diff --git a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_4.test b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_4.test index e96606b99..eac01c6df 100644 --- a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_4.test +++ b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_4.test @@ -13,22 +13,10 @@ lightbery/dynamic-cli/1.0.4 -- stdout -- -- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - public simulateInput(data: Buffer): void {} - ~~~~~~ - at file:///DynamicCLI.ts:45:30 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - public listen(name: 'input', callback: (key?: Buffer) => any): void; - ~~~~~~ - at file:///DynamicCLI.ts:54:49 - TS1205 [ERROR]: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. export { DynamicCLI, Component, TextColor, BackgroundColor }; ~~~~~~~~~ at file:///DynamicCLI.ts:89:22 -Found 3 errors. - error: Type checking failed. diff --git a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_5.test b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_5.test index 591a407d5..861ec6b04 100644 --- a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_5.test +++ b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_5.test @@ -13,22 +13,10 @@ lightbery/dynamic-cli/1.0.5 -- stdout -- -- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - public simulateInput(input: string, key: Buffer): void {} - ~~~~~~ - at file:///DynamicCLI.ts:45:44 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - public listen(name: 'input', callback: (key?: Buffer) => any): void; - ~~~~~~ - at file:///DynamicCLI.ts:54:49 - TS1205 [ERROR]: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. export { DynamicCLI, Component, TextColor, BackgroundColor }; ~~~~~~~~~ at file:///DynamicCLI.ts:89:22 -Found 3 errors. - error: Type checking failed. diff --git a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_6.test b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_6.test index fef952bab..071256b36 100644 --- a/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_6.test +++ b/tests/specs/ecosystem/lightbery/dynamic_cli/1_0_6.test @@ -13,22 +13,10 @@ lightbery/dynamic-cli/1.0.6 -- stdout -- -- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - public simulateInput(input: string, key: Buffer): void {} - ~~~~~~ - at file:///DynamicCLI.ts:49:44 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - public listen(name: 'input', callback: (key?: Buffer) => any): void; - ~~~~~~ - at file:///DynamicCLI.ts:58:49 - TS1205 [ERROR]: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'. export { DynamicCLI, Component, TextColor, BackgroundColor }; ~~~~~~~~~ at file:///DynamicCLI.ts:93:22 -Found 3 errors. - error: Type checking failed. diff --git a/tests/specs/ecosystem/lightbery/virtual_file_tree/1_0_0.test b/tests/specs/ecosystem/lightbery/virtual_file_tree/1_0_0.test index 7b4456a4c..89c581366 100644 --- a/tests/specs/ecosystem/lightbery/virtual_file_tree/1_0_0.test +++ b/tests/specs/ecosystem/lightbery/virtual_file_tree/1_0_0.test @@ -9,14 +9,4 @@ lightbery/virtual-file-tree/1.0.0 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - public writeFile(virtualPath: string, data: Buffer, options?: { - ~~~~~~ - at file:///Virtual-File-Tree.ts:10:47 - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_0.test b/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_0.test index 5e898104e..41dddf025 100644 --- a/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_0.test +++ b/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_0.test @@ -9,46 +9,4 @@ lilith/hypixel-plugin-message/0.3.0 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - read(buffer: Buffer): T; - ~~~~~~ - at file:///mod.ts:9:16 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - write(packet: T): Buffer; - ~~~~~~ - at file:///mod.ts:10:21 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function readClientboundPacket(name: string, buffer: Buffer): T | FailedPacket { - ~~~~~~ - at file:///mod.ts:15:88 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function writeClientboundPacket(name: string, packet: T): Buffer { - ~~~~~~ - at file:///mod.ts:18:93 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function writeClientboundError(error: PacketError): Buffer { - ~~~~~~ - at file:///mod.ts:21:60 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function readServerboundPacket(name: string, buffer: Buffer): T { - ~~~~~~ - at file:///mod.ts:24:88 - -TS2591 [ERROR]: Cannot find name 'Buffer'. -export function writeServerboundPacket(name: string, packet: T): Buffer { - ~~~~~~ - at file:///mod.ts:27:93 - -Found 7 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_1.test b/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_1.test index 443b225ea..cdf97c754 100644 --- a/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_1.test +++ b/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_1.test @@ -9,46 +9,4 @@ lilith/hypixel-plugin-message/0.3.1 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - read(buffer: Buffer): T; - ~~~~~~ - at file:///mod.ts:17:16 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - write(packet: T): Buffer; - ~~~~~~ - at file:///mod.ts:18:21 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function readClientboundPacket(name: string, buffer: Buffer): T | FailedPacket { - ~~~~~~ - at file:///mod.ts:33:92 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeClientboundPacket(name: string, packet: T): Buffer { - ~~~~~~ - at file:///mod.ts:40:97 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeClientboundError(error: PacketError | PacketErrorId): Buffer { - ~~~~~~ - at file:///mod.ts:47:80 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function readServerboundPacket(name: string, buffer: Buffer): T { - ~~~~~~ - at file:///mod.ts:55:92 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeServerboundPacket(name: string, packet: T): Buffer { - ~~~~~~ - at file:///mod.ts:63:97 - -Found 7 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_2.test b/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_2.test index d52b78146..58c50a83f 100644 --- a/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_2.test +++ b/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_2.test @@ -9,46 +9,4 @@ lilith/hypixel-plugin-message/0.3.2 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - read(buffer: Buffer): T; - ~~~~~~ - at file:///mod.ts:17:16 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - write(packet: T): Buffer; - ~~~~~~ - at file:///mod.ts:18:21 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function readClientboundPacket(name: string, buffer: Buffer): T | FailedPacket { - ~~~~~~ - at file:///mod.ts:33:92 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeClientboundPacket(name: string, packet: T): Buffer { - ~~~~~~ - at file:///mod.ts:40:97 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeClientboundError(error: PacketError | PacketErrorId): Buffer { - ~~~~~~ - at file:///mod.ts:47:80 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function readServerboundPacket(name: string, buffer: Buffer): T { - ~~~~~~ - at file:///mod.ts:55:92 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeServerboundPacket(name: string, packet: T): Buffer { - ~~~~~~ - at file:///mod.ts:63:97 - -Found 7 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_3.test b/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_3.test index fa9f5d9e3..efe2e7cca 100644 --- a/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_3.test +++ b/tests/specs/ecosystem/lilith/hypixel_plugin_message/0_3_3.test @@ -9,46 +9,4 @@ lilith/hypixel-plugin-message/0.3.3 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - read(buffer: Buffer): T; - ~~~~~~ - at file:///mod.ts:17:16 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - write(packet: T): Buffer; - ~~~~~~ - at file:///mod.ts:18:21 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function readClientboundPacket(name: string, buffer: Buffer): T | FailedPacket { - ~~~~~~ - at file:///mod.ts:33:92 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeClientboundPacket(name: string, packet: T): Buffer { - ~~~~~~ - at file:///mod.ts:40:97 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeClientboundError(error: PacketError | PacketErrorId): Buffer { - ~~~~~~ - at file:///mod.ts:47:80 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function readServerboundPacket(name: string, buffer: Buffer): T { - ~~~~~~ - at file:///mod.ts:55:92 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ export function writeServerboundPacket(name: string, packet: T): Buffer { - ~~~~~~ - at file:///mod.ts:63:97 - -Found 7 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/llamaindex/env/0_0_4.test b/tests/specs/ecosystem/llamaindex/env/0_0_4.test index 7e3be617c..432af476f 100644 --- a/tests/specs/ecosystem/llamaindex/env/0_0_4.test +++ b/tests/specs/ecosystem/llamaindex/env/0_0_4.test @@ -9,21 +9,4 @@ llamaindex/env/0.0.4 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ readRawFile(path: string): Promise; - ~~~~~~ - at file:///src/type.ts:10:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - readRawFile(path: string): Promise { - ~~~~~~ - at file:///src/type.ts:47:38 - -Found 2 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/llamaindex/env/0_0_5.test b/tests/specs/ecosystem/llamaindex/env/0_0_5.test index abe5829f5..d2cdd9e02 100644 --- a/tests/specs/ecosystem/llamaindex/env/0_0_5.test +++ b/tests/specs/ecosystem/llamaindex/env/0_0_5.test @@ -9,21 +9,4 @@ llamaindex/env/0.0.5 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ readRawFile(path: string): Promise; - ~~~~~~ - at file:///src/type.ts:10:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - readRawFile(path: string): Promise { - ~~~~~~ - at file:///src/type.ts:47:38 - -Found 2 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/llamaindex/env/0_0_6.test b/tests/specs/ecosystem/llamaindex/env/0_0_6.test index 70f0fd047..ba5d429c2 100644 --- a/tests/specs/ecosystem/llamaindex/env/0_0_6.test +++ b/tests/specs/ecosystem/llamaindex/env/0_0_6.test @@ -9,21 +9,4 @@ llamaindex/env/0.0.6 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ readRawFile(path: string): Promise; - ~~~~~~ - at file:///src/type.ts:10:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - readRawFile(path: string): Promise { - ~~~~~~ - at file:///src/type.ts:47:38 - -Found 2 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/llamaindex/env/0_1_0.test b/tests/specs/ecosystem/llamaindex/env/0_1_0.test index 09e994417..4e5df4429 100644 --- a/tests/specs/ecosystem/llamaindex/env/0_1_0.test +++ b/tests/specs/ecosystem/llamaindex/env/0_1_0.test @@ -9,21 +9,4 @@ llamaindex/env/0.1.0 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - */ readRawFile(path: string): Promise; - ~~~~~~ - at file:///src/type.ts:9:42 - -TS2591 [ERROR]: Cannot find name 'Buffer'. - readRawFile(path: string): Promise { - ~~~~~~ - at file:///src/type.ts:46:38 - -Found 2 errors. - -error: Type checking failed. - +== TYPE CHECK PASSED == diff --git a/tests/specs/ecosystem/molikodev/twitchts/0_1_3.test b/tests/specs/ecosystem/molikodev/twitchts/0_1_3.test index 5538f04f6..45e95d970 100644 --- a/tests/specs/ecosystem/molikodev/twitchts/0_1_3.test +++ b/tests/specs/ecosystem/molikodev/twitchts/0_1_3.test @@ -268,12 +268,7 @@ TS4114 [ERROR]: This member must have an 'override' modifier because it override ~~ at file:///src/irc/IrcBase.ts:21:3 -TS2591 [ERROR]: Cannot find name 'Buffer'. - Close(code?: number | undefined, data?: string | Buffer | undefined): Promise { - ~~~~~~ - at file:///src/irc/IrcBase.ts:25:52 - -Found 53 errors. +Found 52 errors. error: Type checking failed. diff --git a/tests/specs/ecosystem/molikodev/twitchts/0_1_4.test b/tests/specs/ecosystem/molikodev/twitchts/0_1_4.test index 5da4ebdc9..782d39306 100644 --- a/tests/specs/ecosystem/molikodev/twitchts/0_1_4.test +++ b/tests/specs/ecosystem/molikodev/twitchts/0_1_4.test @@ -268,12 +268,7 @@ TS4114 [ERROR]: This member must have an 'override' modifier because it override ~~ at file:///src/irc/IrcBase.ts:21:3 -TS2591 [ERROR]: Cannot find name 'Buffer'. - Close(code?: number | undefined, data?: string | Buffer | undefined): Promise { - ~~~~~~ - at file:///src/irc/IrcBase.ts:25:52 - -Found 53 errors. +Found 52 errors. error: Type checking failed. diff --git a/tests/specs/ecosystem/molikodev/twitchts/0_1_5.test b/tests/specs/ecosystem/molikodev/twitchts/0_1_5.test index 0d5c349e9..bcd02492b 100644 --- a/tests/specs/ecosystem/molikodev/twitchts/0_1_5.test +++ b/tests/specs/ecosystem/molikodev/twitchts/0_1_5.test @@ -268,12 +268,7 @@ TS4114 [ERROR]: This member must have an 'override' modifier because it override ~~ at file:///src/irc/IrcBase.ts:21:3 -TS2591 [ERROR]: Cannot find name 'Buffer'. - Close(code?: number | undefined, data?: string | Buffer | undefined): Promise { - ~~~~~~ - at file:///src/irc/IrcBase.ts:25:52 - -Found 53 errors. +Found 52 errors. error: Type checking failed. diff --git a/tests/specs/ecosystem/molikodev/twitchts/0_1_6.test b/tests/specs/ecosystem/molikodev/twitchts/0_1_6.test index ff9c67db5..026046e11 100644 --- a/tests/specs/ecosystem/molikodev/twitchts/0_1_6.test +++ b/tests/specs/ecosystem/molikodev/twitchts/0_1_6.test @@ -273,12 +273,7 @@ TS4114 [ERROR]: This member must have an 'override' modifier because it override ~~ at file:///src/irc/IrcBase.ts:22:3 -TS2591 [ERROR]: Cannot find name 'Buffer'. - public Close(code?: number | undefined, data?: string | Buffer | undefined): Promise { - ~~~~~~ - at file:///src/irc/IrcBase.ts:26:59 - -Found 54 errors. +Found 53 errors. error: Type checking failed. diff --git a/tests/specs/ecosystem/teapot/insomnia_plugin_aws/0_1_0.test b/tests/specs/ecosystem/teapot/insomnia_plugin_aws/0_1_0.test index 512e04303..16e769028 100644 --- a/tests/specs/ecosystem/teapot/insomnia_plugin_aws/0_1_0.test +++ b/tests/specs/ecosystem/teapot/insomnia_plugin_aws/0_1_0.test @@ -9,14 +9,4 @@ teapot/insomnia-plugin-aws/0.1.0 == FAST CHECK EMIT PASSED == -== TYPE CHECK FAILED == --- stdout -- - --- stderr -- -TS2591 [ERROR]: Cannot find name 'Buffer'. - getBodyBuffer: (response: Response, fallback?: any) => Promise; - ~~~~~~ - at file:///src/types/template.ts:60:72 - -error: Type checking failed. - +== TYPE CHECK PASSED ==