Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Sep 26, 2023

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 Gudahtt force-pushed the remove-abort-controller-polyfill branch 2 times, most recently from 1df733d to 2d7efd1 Compare September 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 owner September 26, 2023 12:34
@socket-security
Copy link

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

🚮 Removed packages: abort-controller@3.0.0

@Gudahtt Gudahtt force-pushed the remove-abort-controller-polyfill branch from 2d7efd1 to 1e12807 Compare September 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 Gudahtt force-pushed the remove-abort-controller-polyfill branch from 1e12807 to b3361ac Compare September 26, 2023 14:55
@Gudahtt Gudahtt merged commit 5e48e1c into main Sep 26, 2023
@Gudahtt Gudahtt deleted the remove-abort-controller-polyfill branch September 26, 2023 15:10
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
## 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](https://nodejs.org/docs/latest-v16.x/api/globals.html#class-abortcontroller),
and is included in all versions of v16. It is also supported by [all
browsers that our extension
supports](https://developer.mozilla.org/en-US/docs/Web/API/AbortController#browser_compatibility),
and has been [supported by React Native since
v0.60.0](https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#v0600).

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

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
## 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](https://nodejs.org/docs/latest-v16.x/api/globals.html#class-abortcontroller),
and is included in all versions of v16. It is also supported by [all
browsers that our extension
supports](https://developer.mozilla.org/en-US/docs/Web/API/AbortController#browser_compatibility),
and has been [supported by React Native since
v0.60.0](https://github.com/react-native-community/releases/blob/master/CHANGELOG.md#v0600).

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

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
Sign up for free to 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.

3 participants