Skip to content

Commit

Permalink
chore: remove abort controller (#2133)
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra authored Dec 17, 2024
1 parent 07a60cd commit 14673b1
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-planes-hunt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@credo-ts/core": minor
---

Remove dependency on `abort-controller` library. Abort Controller has been supported on all platforms for quite some time already.
5 changes: 0 additions & 5 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,6 @@ module.exports = {
name: 'Buffer',
message: 'Global buffer is not supported on all platforms. Import buffer from `src/utils/buffer`',
},
{
name: 'AbortController',
message:
"Global AbortController is not supported on all platforms. Use `import { AbortController } from 'abort-controller'`",
},
],
},
},
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"@sphereon/ssi-types": "0.30.2-next.135",
"@stablelib/ed25519": "^1.0.2",
"@types/ws": "^8.5.4",
"abort-controller": "^3.0.0",
"big-integer": "^1.6.51",
"borc": "^3.0.0",
"buffer": "^6.0.3",
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/transport/HttpOutboundTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import type { AgentMessageReceivedEvent } from '../agent/Events'
import type { Logger } from '../logger'
import type { OutboundPackage } from '../types'

import { AbortController } from 'abort-controller'
import { Subject } from 'rxjs'

import { AgentEventTypes } from '../agent/Events'
Expand Down
2 changes: 0 additions & 2 deletions packages/core/src/utils/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import type { AgentDependencies } from '../agent/AgentDependencies'

import { AbortController } from 'abort-controller'

export async function fetchWithTimeout(
fetch: AgentDependencies['fetch'],
url: string,
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/utils/parseInvitation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { AgentDependencies } from '../agent/AgentDependencies'

import { AbortController } from 'abort-controller'
import { parseUrl } from 'query-string'

import { AgentMessage } from '../agent/AgentMessage'
Expand Down
11 changes: 5 additions & 6 deletions pnpm-lock.yaml

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

0 comments on commit 14673b1

Please sign in to comment.