From a525494ce527cc00e9cde126e332333408c0c8f9 Mon Sep 17 00:00:00 2001 From: Logan Volkers Date: Mon, 25 Sep 2023 21:02:30 +0000 Subject: [PATCH] Remove abort-controller --- README.md | 2 +- example/polyfill-rollup.js | 7 +------ example/rollup.js | 7 +------ example/routes-rollup.js | 7 +------ import-map-deno.json | 1 - package.json | 1 - src/import-abort-controller.ts | 8 +------- src/tests/dependencies-input.ts | 1 - 8 files changed, 5 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index e37ddfa..32e1605 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Native JavaScript [navigation](https://html.spec.whatwg.org/multipage/nav-histor
Test Coverage - ![Web Platform Tests 140/277](https://img.shields.io/badge/Web%20Platform%20Tests-140%2F277-brightgreen) ![92.8%25 lines covered](https://img.shields.io/badge/lines-92.8%25-brightgreen) ![92.8%25 statements covered](https://img.shields.io/badge/statements-92.8%25-brightgreen) ![83.33%25 functions covered](https://img.shields.io/badge/functions-83.33%25-brightgreen) ![82.97%25 branches covered](https://img.shields.io/badge/branches-82.97%25-brightgreen) +
diff --git a/example/polyfill-rollup.js b/example/polyfill-rollup.js index 04948be..103ba9d 100644 --- a/example/polyfill-rollup.js +++ b/example/polyfill-rollup.js @@ -450,15 +450,10 @@ function ok$1(value) { const GlobalAbortController = typeof AbortController !== "undefined" ? AbortController : undefined; -// import ImportedAbortController from "abort-controller"; -// async function importAbortController() { -// const { default: AbortController } = await import("abort-controller"); -// return AbortController; -// } if (!GlobalAbortController) { throw new Error("AbortController expected to be available or polyfilled"); } -const AbortController$1 = GlobalAbortController; // await importAbortController(); +const AbortController$1 = GlobalAbortController; function isPromise(value) { return (like(value) && diff --git a/example/rollup.js b/example/rollup.js index 0321c5c..b79fed8 100644 --- a/example/rollup.js +++ b/example/rollup.js @@ -446,15 +446,10 @@ function ok$1(value) { const GlobalAbortController = typeof AbortController !== "undefined" ? AbortController : undefined; -// import ImportedAbortController from "abort-controller"; -// async function importAbortController() { -// const { default: AbortController } = await import("abort-controller"); -// return AbortController; -// } if (!GlobalAbortController) { throw new Error("AbortController expected to be available or polyfilled"); } -const AbortController$1 = GlobalAbortController; // await importAbortController(); +const AbortController$1 = GlobalAbortController; function isPromise(value) { return (like(value) && diff --git a/example/routes-rollup.js b/example/routes-rollup.js index 4294988..34b47bc 100644 --- a/example/routes-rollup.js +++ b/example/routes-rollup.js @@ -2388,15 +2388,10 @@ function ok(value) { const GlobalAbortController = typeof AbortController !== "undefined" ? AbortController : undefined; -// import ImportedAbortController from "abort-controller"; -// async function importAbortController() { -// const { default: AbortController } = await import("abort-controller"); -// return AbortController; -// } if (!GlobalAbortController) { throw new Error("AbortController expected to be available or polyfilled"); } -const AbortController$1 = GlobalAbortController; // await importAbortController(); +const AbortController$1 = GlobalAbortController; const Rollback = Symbol.for("@virtualstate/navigation/rollback"); const Unset = Symbol.for("@virtualstate/navigation/unset"); diff --git a/import-map-deno.json b/import-map-deno.json index 2405a1b..56d8a36 100644 --- a/import-map-deno.json +++ b/import-map-deno.json @@ -30,7 +30,6 @@ "iterable": "https://cdn.skypack.dev/iterable@6.0.1-beta.5", "https://cdn.skypack.dev/-/iterable@v5.7.0-CNtyuMJo9f2zFu6CuB1D/dist=es2019,mode=imports/optimized/iterable.js": "https://cdn.skypack.dev/iterable@6.0.1-beta.5", "uuid": "./src/util/deno-uuid.ts", - "abort-controller": "https://cdn.skypack.dev/abort-controller", "deno:std/uuid/mod": "https://deno.land/std@0.113.0/uuid/mod.ts", "deno:std/uuid/v4": "https://deno.land/std@0.113.0/uuid/v4.ts", "deno:deno_dom/deno-dom-wasm.ts": "https://deno.land/x/deno_dom/deno-dom-wasm.ts", diff --git a/package.json b/package.json index 32bbf4a..58cd850 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,6 @@ "dependencies": { "@ungap/structured-clone": "^1.0.2", "@virtualstate/composite-key": "^1.0.0", - "abort-controller": "^3.0.0", "uuid": "^8.3.2" }, "devDependencies": { diff --git a/src/import-abort-controller.ts b/src/import-abort-controller.ts index 5338e4a..b06f478 100644 --- a/src/import-abort-controller.ts +++ b/src/import-abort-controller.ts @@ -1,13 +1,7 @@ import { GlobalAbortController } from "./global-abort-controller"; -// import ImportedAbortController from "abort-controller"; - -// async function importAbortController() { -// const { default: AbortController } = await import("abort-controller"); -// return AbortController; -// } if (!GlobalAbortController) { throw new Error("AbortController expected to be available or polyfilled"); } -export const AbortController = GlobalAbortController; // await importAbortController(); +export const AbortController = GlobalAbortController; \ No newline at end of file diff --git a/src/tests/dependencies-input.ts b/src/tests/dependencies-input.ts index b909096..b4637aa 100644 --- a/src/tests/dependencies-input.ts +++ b/src/tests/dependencies-input.ts @@ -23,7 +23,6 @@ export const DefaultDependencies = [ "dom-lite", "iterable", "uuid", - "abort-controller", "urlpattern-polyfill", "@ungap/structured-clone", "@ungap/structured-clone/json"