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

Replace axios with NodeJS 18 fetch() #48

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

datho7561
Copy link
Contributor

fetch() works in the browser as well as NodeJS as of NodeJS 18. This PR requires upgrading to NodeJS 18.

Signed-off-by: David Thompson davthomp@redhat.com

@datho7561
Copy link
Contributor Author

@fbricon if you have time and think it's okay to drop support for versions before NodeJS 18, could you please take a look at this PR?

@fbricon
Copy link
Collaborator

fbricon commented Apr 11, 2024

It also needs to work in a browser. If that's not broken then I m fine with that on principle. Will check when I get back.

@datho7561
Copy link
Contributor Author

Okay, thanks!

`fetch()` works in the browser as well as NodeJS as of NodeJS 18.
This PR requires upgrading to NodeJS 18.

Signed-off-by: David Thompson <davthomp@redhat.com>
@datho7561
Copy link
Contributor Author

@fbricon if you have some time could you please take a look at this PR? (no rush though)

Copy link
Member

@rgrunber rgrunber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried this out (with npm link) and it seems to be working well.

Unrelated to this PR, but I did run into conflicts between the @types/vscode defined in the extension I was testing (vscode-java) and vscode-redhat-telemetry when used with the linking approach. I don't remember running into this before when testing like that.

@rgrunber
Copy link
Member

If this gets updated I won't have to update redhat-developer/vscode-java#3755 😜

@fbricon fbricon merged commit 6a2f7a0 into redhat-developer:main Aug 29, 2024
1 check passed
@fbricon
Copy link
Collaborator

fbricon commented Aug 29, 2024

thx @datho7561

@datho7561 datho7561 deleted the remove-axios branch September 3, 2024 12:48
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