deno 1.20.3 breaks vr
ayakovlenko opened this issue · comments
tony commented
$ vr
error: TS2769 [ERROR]: No overload matches this call.
Overload 1 of 2, '(input: string | Request, init?: RequestInit | undefined): Promise<Response>', gave the following error.
Argument of type 'string | URL | Request' is not assignable to parameter of type 'string | Request'.
Type 'URL' is not assignable to type 'string | Request'. Overload 2 of 2, '(input: URL, init?: RequestInit | undefined): Promise<Response>', gave the following error.
Argument of type 'string | URL | Request' is not assignable to parameter of type 'URL'.
Type 'string' is not assignable to type 'URL'.
const promise = fetch(url, { signal: controller.signal });
at https://arweave.net/e-arTRJlkythqLWvvPw09-2ZJU1rIS3l3asHysflhK0/lib/utilities/utils.ts:13:25
$ deno --version
deno 1.20.3 (release, aarch64-apple-darwin)
v8 10.0.139.6
typescript 4.6.2
tony commented
Looks like the issue is caused by hatcher
dependency:
$ curl -v https://x.nest.land/hatcher@0.10.2/mod.ts
* Trying 174.138.47.182:443...
* Connected to x.nest.land (174.138.47.182) port 443 (#0)
...
Found. Redirecting to https://arweave.net/e-arTRJlkythqLWvvPw09-2ZJU1rIS3l3asHysflhK0/mod.ts
Caused by denoland/deno#14113.
tony commented
Fixed in denoland/deno#14134.