Skip to content

Commit

Permalink
Bump version to 3.0.0-next.4
Browse files Browse the repository at this point in the history
Adds `duplex: "half"` as required by `undici@5.12.0`
  • Loading branch information
mrbbot committed Nov 14, 2022
1 parent d59456a commit f7675c3
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 98 deletions.
74 changes: 56 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@miniflare/root",
"version": "3.0.0-next.3",
"version": "3.0.0-next.4",
"private": true,
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
"keywords": [
Expand Down Expand Up @@ -32,7 +32,7 @@
"devDependencies": {
"@ava/typescript": "^3.0.1",
"@microsoft/api-extractor": "^7.19.4",
"@types/node": "^17.0.35",
"@types/node": "^18.11.9",
"@types/rimraf": "^3.0.2",
"@types/which": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^5.9.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/tre/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@miniflare/tre",
"version": "3.0.0-next.3",
"version": "3.0.0-next.4",
"description": "Fun, full-featured, fully-local simulator for Cloudflare Workers",
"keywords": [
"cloudflare",
Expand Down Expand Up @@ -36,7 +36,7 @@
"http-cache-semantics": "^4.1.0",
"kleur": "^4.1.5",
"stoppable": "^1.1.0",
"undici": "^5.10.0",
"undici": "^5.12.0",
"workerd": "^1.20221111.4",
"ws": "^8.11.0",
"zod": "^3.18.0"
Expand Down
1 change: 1 addition & 0 deletions packages/tre/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export class Miniflare {
method: req.method,
headers: req.headers as HeadersInit,
body: req.method === "GET" || req.method === "HEAD" ? undefined : req,
duplex: "half",
});

let response: Response | undefined;
Expand Down
55 changes: 0 additions & 55 deletions types/crypto.d.ts

This file was deleted.

32 changes: 32 additions & 0 deletions types/dom-exception.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
declare class DOMException extends Error {
constructor(param0?: string, param1?: string);
readonly message: string;
readonly name: string;
readonly code: number;
readonly stack: any;
static readonly INDEX_SIZE_ERR: number;
static readonly DOMSTRING_SIZE_ERR: number;
static readonly HIERARCHY_REQUEST_ERR: number;
static readonly WRONG_DOCUMENT_ERR: number;
static readonly INVALID_CHARACTER_ERR: number;
static readonly NO_DATA_ALLOWED_ERR: number;
static readonly NO_MODIFICATION_ALLOWED_ERR: number;
static readonly NOT_FOUND_ERR: number;
static readonly NOT_SUPPORTED_ERR: number;
static readonly INUSE_ATTRIBUTE_ERR: number;
static readonly INVALID_STATE_ERR: number;
static readonly SYNTAX_ERR: number;
static readonly INVALID_MODIFICATION_ERR: number;
static readonly NAMESPACE_ERR: number;
static readonly INVALID_ACCESS_ERR: number;
static readonly VALIDATION_ERR: number;
static readonly TYPE_MISMATCH_ERR: number;
static readonly SECURITY_ERR: number;
static readonly NETWORK_ERR: number;
static readonly ABORT_ERR: number;
static readonly URL_MISMATCH_ERR: number;
static readonly QUOTA_EXCEEDED_ERR: number;
static readonly TIMEOUT_ERR: number;
static readonly INVALID_NODE_TYPE_ERR: number;
static readonly DATA_CLONE_ERR: number;
}
21 changes: 0 additions & 21 deletions types/events.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ interface EventInit {
cancelable?: boolean;
}

declare class Event {
constructor(type: string, init?: EventInit);
readonly type: string;
preventDefault(): void;
stopImmediatePropagation(): void;
}

type EventListener = (event: Event) => void;

interface EventListenerObject {
Expand All @@ -40,20 +33,6 @@ interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
}

declare class EventTarget {
addEventListener(
type: string,
listener: EventListenerOrEventListenerObject | null,
options?: AddEventListenerOptions | boolean
): void;
removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject | null,
options?: EventListenerOptions | boolean
): void;
dispatchEvent(event: Event): boolean;
}

interface AbortSignal extends EventTarget {
readonly aborted: boolean;
}
1 change: 1 addition & 0 deletions types/webassembly.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
// See the Apache Version 2.0 License for specific language governing permissions
// and limitations under the License.

type BufferSource = ArrayBufferView | ArrayBuffer;
declare namespace WebAssembly {
class Global {
constructor(descriptor: GlobalDescriptor, v?: any);
Expand Down

0 comments on commit f7675c3

Please sign in to comment.