Skip to content

Commit c5341df

Browse files
committed
remove unnecessary vitest config
1 parent 267e783 commit c5341df

File tree

36 files changed

+522
-198
lines changed

36 files changed

+522
-198
lines changed

exercises/03.complex/01.problem.iframe/types/worker-configuration.d.ts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
// Generated by Wrangler by running `wrangler types ./types/worker-configuration.d.ts` (hash: 839d2fa0081223af46a76d7dcb813c30)
3-
// Runtime types generated with workerd@1.20251008.0 2025-04-17 nodejs_compat
3+
// Runtime types generated with workerd@1.20251008.0 2025-10-08 nodejs_compat
44
declare namespace Cloudflare {
55
interface GlobalProps {
66
mainModule: typeof import("../worker/index");
@@ -243,6 +243,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
243243
ByteLengthQueuingStrategy: typeof ByteLengthQueuingStrategy;
244244
CountQueuingStrategy: typeof CountQueuingStrategy;
245245
ErrorEvent: typeof ErrorEvent;
246+
MessageChannel: typeof MessageChannel;
247+
MessagePort: typeof MessagePort;
246248
EventSource: typeof EventSource;
247249
ReadableStreamBYOBRequest: typeof ReadableStreamBYOBRequest;
248250
ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
@@ -378,6 +380,8 @@ declare abstract class Navigator {
378380
sendBeacon(url: string, body?: (ReadableStream | string | (ArrayBuffer | ArrayBufferView) | Blob | FormData | URLSearchParams | URLSearchParams)): boolean;
379381
readonly userAgent: string;
380382
readonly hardwareConcurrency: number;
383+
readonly language: string;
384+
readonly languages: string[];
381385
}
382386
interface AlarmInvocationInfo {
383387
readonly isRetry: boolean;
@@ -1424,7 +1428,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> e
14241428
*
14251429
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
14261430
*/
1427-
cache?: "no-store";
1431+
cache?: "no-store" | "no-cache";
14281432
}
14291433
interface RequestInit<Cf = CfProperties> {
14301434
/* A string to set request's method. */
@@ -1438,7 +1442,7 @@ interface RequestInit<Cf = CfProperties> {
14381442
fetcher?: (Fetcher | null);
14391443
cf?: Cf;
14401444
/* A string indicating how the request will interact with the browser's cache to set request's cache. */
1441-
cache?: "no-store";
1445+
cache?: "no-store" | "no-cache";
14421446
/* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
14431447
integrity?: string;
14441448
/* An AbortSignal to set request's signal. */
@@ -2256,6 +2260,7 @@ declare class URLPattern {
22562260
get pathname(): string;
22572261
get search(): string;
22582262
get hash(): string;
2263+
get hasRegExpGroups(): boolean;
22592264
test(input?: (string | URLPatternInit), baseURL?: string): boolean;
22602265
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
22612266
}
@@ -2511,7 +2516,7 @@ interface ContainerStartupOptions {
25112516
*
25122517
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
25132518
*/
2514-
interface MessagePort extends EventTarget {
2519+
declare abstract class MessagePort extends EventTarget {
25152520
/**
25162521
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
25172522
*
@@ -2535,6 +2540,26 @@ interface MessagePort extends EventTarget {
25352540
get onmessage(): any | null;
25362541
set onmessage(value: any | null);
25372542
}
2543+
/**
2544+
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
2545+
*
2546+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
2547+
*/
2548+
declare class MessageChannel {
2549+
constructor();
2550+
/**
2551+
* Returns the first MessagePort object.
2552+
*
2553+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
2554+
*/
2555+
readonly port1: MessagePort;
2556+
/**
2557+
* Returns the second MessagePort object.
2558+
*
2559+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
2560+
*/
2561+
readonly port2: MessagePort;
2562+
}
25382563
interface MessagePortPostMessageOptions {
25392564
transfer?: any[];
25402565
}

exercises/03.complex/01.problem.iframe/vitest.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

exercises/03.complex/01.solution.iframe/types/worker-configuration.d.ts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
// Generated by Wrangler by running `wrangler types ./types/worker-configuration.d.ts` (hash: 839d2fa0081223af46a76d7dcb813c30)
3-
// Runtime types generated with workerd@1.20251008.0 2025-04-17 nodejs_compat
3+
// Runtime types generated with workerd@1.20251008.0 2025-10-08 nodejs_compat
44
declare namespace Cloudflare {
55
interface GlobalProps {
66
mainModule: typeof import("../worker/index");
@@ -243,6 +243,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
243243
ByteLengthQueuingStrategy: typeof ByteLengthQueuingStrategy;
244244
CountQueuingStrategy: typeof CountQueuingStrategy;
245245
ErrorEvent: typeof ErrorEvent;
246+
MessageChannel: typeof MessageChannel;
247+
MessagePort: typeof MessagePort;
246248
EventSource: typeof EventSource;
247249
ReadableStreamBYOBRequest: typeof ReadableStreamBYOBRequest;
248250
ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
@@ -378,6 +380,8 @@ declare abstract class Navigator {
378380
sendBeacon(url: string, body?: (ReadableStream | string | (ArrayBuffer | ArrayBufferView) | Blob | FormData | URLSearchParams | URLSearchParams)): boolean;
379381
readonly userAgent: string;
380382
readonly hardwareConcurrency: number;
383+
readonly language: string;
384+
readonly languages: string[];
381385
}
382386
interface AlarmInvocationInfo {
383387
readonly isRetry: boolean;
@@ -1424,7 +1428,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> e
14241428
*
14251429
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
14261430
*/
1427-
cache?: "no-store";
1431+
cache?: "no-store" | "no-cache";
14281432
}
14291433
interface RequestInit<Cf = CfProperties> {
14301434
/* A string to set request's method. */
@@ -1438,7 +1442,7 @@ interface RequestInit<Cf = CfProperties> {
14381442
fetcher?: (Fetcher | null);
14391443
cf?: Cf;
14401444
/* A string indicating how the request will interact with the browser's cache to set request's cache. */
1441-
cache?: "no-store";
1445+
cache?: "no-store" | "no-cache";
14421446
/* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
14431447
integrity?: string;
14441448
/* An AbortSignal to set request's signal. */
@@ -2256,6 +2260,7 @@ declare class URLPattern {
22562260
get pathname(): string;
22572261
get search(): string;
22582262
get hash(): string;
2263+
get hasRegExpGroups(): boolean;
22592264
test(input?: (string | URLPatternInit), baseURL?: string): boolean;
22602265
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
22612266
}
@@ -2511,7 +2516,7 @@ interface ContainerStartupOptions {
25112516
*
25122517
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
25132518
*/
2514-
interface MessagePort extends EventTarget {
2519+
declare abstract class MessagePort extends EventTarget {
25152520
/**
25162521
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
25172522
*
@@ -2535,6 +2540,26 @@ interface MessagePort extends EventTarget {
25352540
get onmessage(): any | null;
25362541
set onmessage(value: any | null);
25372542
}
2543+
/**
2544+
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
2545+
*
2546+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
2547+
*/
2548+
declare class MessageChannel {
2549+
constructor();
2550+
/**
2551+
* Returns the first MessagePort object.
2552+
*
2553+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
2554+
*/
2555+
readonly port1: MessagePort;
2556+
/**
2557+
* Returns the second MessagePort object.
2558+
*
2559+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
2560+
*/
2561+
readonly port2: MessagePort;
2562+
}
25382563
interface MessagePortPostMessageOptions {
25392564
transfer?: any[];
25402565
}

exercises/03.complex/01.solution.iframe/vitest.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

exercises/03.complex/02.problem.ready/types/worker-configuration.d.ts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
// Generated by Wrangler by running `wrangler types ./types/worker-configuration.d.ts` (hash: 839d2fa0081223af46a76d7dcb813c30)
3-
// Runtime types generated with workerd@1.20251008.0 2025-04-17 nodejs_compat
3+
// Runtime types generated with workerd@1.20251008.0 2025-10-08 nodejs_compat
44
declare namespace Cloudflare {
55
interface GlobalProps {
66
mainModule: typeof import("../worker/index");
@@ -243,6 +243,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
243243
ByteLengthQueuingStrategy: typeof ByteLengthQueuingStrategy;
244244
CountQueuingStrategy: typeof CountQueuingStrategy;
245245
ErrorEvent: typeof ErrorEvent;
246+
MessageChannel: typeof MessageChannel;
247+
MessagePort: typeof MessagePort;
246248
EventSource: typeof EventSource;
247249
ReadableStreamBYOBRequest: typeof ReadableStreamBYOBRequest;
248250
ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
@@ -378,6 +380,8 @@ declare abstract class Navigator {
378380
sendBeacon(url: string, body?: (ReadableStream | string | (ArrayBuffer | ArrayBufferView) | Blob | FormData | URLSearchParams | URLSearchParams)): boolean;
379381
readonly userAgent: string;
380382
readonly hardwareConcurrency: number;
383+
readonly language: string;
384+
readonly languages: string[];
381385
}
382386
interface AlarmInvocationInfo {
383387
readonly isRetry: boolean;
@@ -1424,7 +1428,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> e
14241428
*
14251429
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
14261430
*/
1427-
cache?: "no-store";
1431+
cache?: "no-store" | "no-cache";
14281432
}
14291433
interface RequestInit<Cf = CfProperties> {
14301434
/* A string to set request's method. */
@@ -1438,7 +1442,7 @@ interface RequestInit<Cf = CfProperties> {
14381442
fetcher?: (Fetcher | null);
14391443
cf?: Cf;
14401444
/* A string indicating how the request will interact with the browser's cache to set request's cache. */
1441-
cache?: "no-store";
1445+
cache?: "no-store" | "no-cache";
14421446
/* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
14431447
integrity?: string;
14441448
/* An AbortSignal to set request's signal. */
@@ -2256,6 +2260,7 @@ declare class URLPattern {
22562260
get pathname(): string;
22572261
get search(): string;
22582262
get hash(): string;
2263+
get hasRegExpGroups(): boolean;
22592264
test(input?: (string | URLPatternInit), baseURL?: string): boolean;
22602265
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
22612266
}
@@ -2511,7 +2516,7 @@ interface ContainerStartupOptions {
25112516
*
25122517
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
25132518
*/
2514-
interface MessagePort extends EventTarget {
2519+
declare abstract class MessagePort extends EventTarget {
25152520
/**
25162521
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
25172522
*
@@ -2535,6 +2540,26 @@ interface MessagePort extends EventTarget {
25352540
get onmessage(): any | null;
25362541
set onmessage(value: any | null);
25372542
}
2543+
/**
2544+
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
2545+
*
2546+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
2547+
*/
2548+
declare class MessageChannel {
2549+
constructor();
2550+
/**
2551+
* Returns the first MessagePort object.
2552+
*
2553+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
2554+
*/
2555+
readonly port1: MessagePort;
2556+
/**
2557+
* Returns the second MessagePort object.
2558+
*
2559+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
2560+
*/
2561+
readonly port2: MessagePort;
2562+
}
25382563
interface MessagePortPostMessageOptions {
25392564
transfer?: any[];
25402565
}

exercises/03.complex/02.problem.ready/vitest.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

exercises/03.complex/02.solution.ready/types/worker-configuration.d.ts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable */
22
// Generated by Wrangler by running `wrangler types ./types/worker-configuration.d.ts` (hash: 839d2fa0081223af46a76d7dcb813c30)
3-
// Runtime types generated with workerd@1.20251008.0 2025-04-17 nodejs_compat
3+
// Runtime types generated with workerd@1.20251008.0 2025-10-08 nodejs_compat
44
declare namespace Cloudflare {
55
interface GlobalProps {
66
mainModule: typeof import("../worker/index");
@@ -243,6 +243,8 @@ interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
243243
ByteLengthQueuingStrategy: typeof ByteLengthQueuingStrategy;
244244
CountQueuingStrategy: typeof CountQueuingStrategy;
245245
ErrorEvent: typeof ErrorEvent;
246+
MessageChannel: typeof MessageChannel;
247+
MessagePort: typeof MessagePort;
246248
EventSource: typeof EventSource;
247249
ReadableStreamBYOBRequest: typeof ReadableStreamBYOBRequest;
248250
ReadableStreamDefaultController: typeof ReadableStreamDefaultController;
@@ -378,6 +380,8 @@ declare abstract class Navigator {
378380
sendBeacon(url: string, body?: (ReadableStream | string | (ArrayBuffer | ArrayBufferView) | Blob | FormData | URLSearchParams | URLSearchParams)): boolean;
379381
readonly userAgent: string;
380382
readonly hardwareConcurrency: number;
383+
readonly language: string;
384+
readonly languages: string[];
381385
}
382386
interface AlarmInvocationInfo {
383387
readonly isRetry: boolean;
@@ -1424,7 +1428,7 @@ interface Request<CfHostMetadata = unknown, Cf = CfProperties<CfHostMetadata>> e
14241428
*
14251429
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
14261430
*/
1427-
cache?: "no-store";
1431+
cache?: "no-store" | "no-cache";
14281432
}
14291433
interface RequestInit<Cf = CfProperties> {
14301434
/* A string to set request's method. */
@@ -1438,7 +1442,7 @@ interface RequestInit<Cf = CfProperties> {
14381442
fetcher?: (Fetcher | null);
14391443
cf?: Cf;
14401444
/* A string indicating how the request will interact with the browser's cache to set request's cache. */
1441-
cache?: "no-store";
1445+
cache?: "no-store" | "no-cache";
14421446
/* A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
14431447
integrity?: string;
14441448
/* An AbortSignal to set request's signal. */
@@ -2256,6 +2260,7 @@ declare class URLPattern {
22562260
get pathname(): string;
22572261
get search(): string;
22582262
get hash(): string;
2263+
get hasRegExpGroups(): boolean;
22592264
test(input?: (string | URLPatternInit), baseURL?: string): boolean;
22602265
exec(input?: (string | URLPatternInit), baseURL?: string): URLPatternResult | null;
22612266
}
@@ -2511,7 +2516,7 @@ interface ContainerStartupOptions {
25112516
*
25122517
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
25132518
*/
2514-
interface MessagePort extends EventTarget {
2519+
declare abstract class MessagePort extends EventTarget {
25152520
/**
25162521
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
25172522
*
@@ -2535,6 +2540,26 @@ interface MessagePort extends EventTarget {
25352540
get onmessage(): any | null;
25362541
set onmessage(value: any | null);
25372542
}
2543+
/**
2544+
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
2545+
*
2546+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
2547+
*/
2548+
declare class MessageChannel {
2549+
constructor();
2550+
/**
2551+
* Returns the first MessagePort object.
2552+
*
2553+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
2554+
*/
2555+
readonly port1: MessagePort;
2556+
/**
2557+
* Returns the second MessagePort object.
2558+
*
2559+
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
2560+
*/
2561+
readonly port2: MessagePort;
2562+
}
25382563
interface MessagePortPostMessageOptions {
25392564
transfer?: any[];
25402565
}

exercises/03.complex/02.solution.ready/vitest.config.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)