Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove isomorphic-unfetch dependency from @appsignal/core #622

Merged
merged 2 commits into from
Apr 23, 2024

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 label Apr 23, 2024
@unflxw unflxw self-assigned this Apr 23, 2024
@unflxw unflxw merged commit 55b8902 into main Apr 23, 2024
1 check passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bump isomorphic-unfetch in @appsignal/core
3 participants