Skip to content

Conversation

unflxw
Copy link
Contributor

@unflxw unflxw commented Apr 23, 2024

A more proper fix would be to use node-fetch instead of unfetch or isomorphic-unfetch, but I just want to get a fix out for this problem that is affecting customers right now.

Fixes #621.

Use [email protected] specifically

An issue with unfetch@5, depended on by [email protected],
breaks bundling with tools such as esbuild and webpack:
developit/unfetch#164

Move isomorphic-unfetch dependency

isomorphic-unfetch is only used in @appsignal/core to perform
a push API validation request. This request is only ever performed
by the CLI package.

Move the push API validation request function to @appsignal/cli
alongside with the dependency on isomorphic-unfetch, and remove
@appsignal/cli's dependency on @appsignal/core.

unflxw added 2 commits April 23, 2024 10:39
An issue with `unfetch@5`, depended on by `[email protected]`,
breaks bundling with tools such as `esbuild` and `webpack`:
developit/unfetch#164
`isomorphic-unfetch` is only used in `@appsignal/core` to perform
a push API validation request. This request is only ever performed
by the CLI package.

Move the push API validation request function to `@appsignal/cli`
alongside with the dependency on `isomorphic-unfetch`, and remove
`@appsignal/cli`'s dependency on `@appsignal/core`.
@unflxw unflxw added the bug Confirmed and unconfirmed bugs reported by us and customers. label Apr 23, 2024
@unflxw unflxw self-assigned this Apr 23, 2024
@unflxw unflxw merged commit 55b8902 into main Apr 23, 2024
@tombruijn tombruijn deleted the remove-isomorphic-unfetch-from-core branch September 30, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Confirmed and unconfirmed bugs reported by us and customers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump isomorphic-unfetch in @appsignal/core

3 participants