Skip to content

Commit ef655ec

Browse files
Steven-John Langejanl
authored andcommitted
chore: remove AbortController dependency and polyfills
1 parent 9a9ff27 commit ef655ec

File tree

5 files changed

+4
-12
lines changed

5 files changed

+4
-12
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
"url": "https://github.com/pouchdb/pouchdb.git"
3939
},
4040
"dependencies": {
41-
"abort-controller": "3.0.0",
4241
"clone-buffer": "1.0.0",
4342
"double-ended-queue": "2.1.0-0",
4443
"fetch-cookie": "2.2.0",

packages/node_modules/pouchdb-adapter-http/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pool from './promise-pool';
44

5-
import { fetch, Headers, AbortController } from 'pouchdb-fetch';
5+
import { fetch, Headers } from 'pouchdb-fetch';
66

77
import {
88
createError,
Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
'use strict';
22

3-
// AbortController was introduced quite a while after fetch and
4-
// isnt required for PouchDB to function so polyfill if needed
5-
var a = (typeof AbortController !== 'undefined')
6-
? AbortController
7-
: function () { return {abort: function () {}}; };
8-
93
var f = fetch;
104
var h = Headers;
115

12-
export {f as fetch, h as Headers, a as AbortController};
6+
export { f as fetch, h as Headers };

packages/node_modules/pouchdb-fetch/src/fetch.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
import nodeFetch, {Headers} from 'node-fetch';
44
import fetchCookie from 'fetch-cookie';
5-
import AbortController from 'abort-controller';
65

76
var fetch = fetchCookie(nodeFetch);
87

9-
export {fetch, Headers, AbortController};
8+
export { fetch, Headers };
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export {fetch, Headers, AbortController} from './fetch';
1+
export { fetch, Headers } from './fetch';

0 commit comments

Comments
 (0)