Skip to content

chore: Remove AbortController polyfill - #1726

Merged
Gudahtt merged 1 commit into
mainfrom
remove-abort-controller-polyfill
Sep 26, 2023
Merged

chore: Remove AbortController polyfill#1726
Gudahtt merged 1 commit into
mainfrom
remove-abort-controller-polyfill

Conversation

@Gudahtt

@GudahttGudahtt commented Sep 26, 2023

Copy link
Copy Markdown
Member

Explanation

The AbortController polyfill has not been required since updating to a minimum Node.js version of v16 in #1262. This API has been built into Node.js since v15.4.0, and is included in all versions of v16. It is also supported by all browsers that our extension supports, and has been supported by React Native since v0.60.0.

This helps unblock the TypeScript update to v4.8.4. The update resulted in some type errors from this polyfill package.

References

None

Changelog

@metamask/assets-controllers

Removed

  • BREAKING: Remove AbortController polyfill
    • This package now assumes that the AbortController global exists

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@Gudahtt
Gudahttforce-pushed the remove-abort-controller-polyfill branch 2 times, most recently from 1df733d to 2d7efd1CompareSeptember 26, 2023 12:34
@Gudahtt
Gudahtt marked this pull request as ready for review September 26, 2023 12:34
@Gudahtt
Gudahtt requested a review from a team as a code ownerSeptember 26, 2023 12:34
@socket-security

Copy link
Copy Markdown

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages:abort-controller@3.0.0

@Gudahtt
Gudahttforce-pushed the remove-abort-controller-polyfill branch from 2d7efd1 to 1e12807CompareSeptember 26, 2023 14:09
The `AbortController` polyfill has not been required since updating to
a minimum Node.js version of v16 in #1262. This API has been built into
Node.js since v15.4.0, and is included in all versions of v16. It is
also supported by all browsers that our extension supports, and has
been supported by React Native since v0.60.0.
This helps unblock the TypeScript update to v4.8.4. The update resulted
in some type errors from this polyfill package.
@Gudahtt
Gudahttforce-pushed the remove-abort-controller-polyfill branch from 1e12807 to b3361acCompareSeptember 26, 2023 14:55
@Gudahtt
Gudahtt merged commit 5e48e1c into mainSep 26, 2023
@Gudahtt
Gudahtt deleted the remove-abort-controller-polyfill branch September 26, 2023 15:10
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@Gudahtt@Mrtenz