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

refactor: uninstall node-fetch which is built-in since node 18 #1431

Conversation

mcmxcdev
Copy link
Contributor

@mcmxcdev mcmxcdev commented Oct 31, 2023

Pre-flight Checklist

Please ensure you've completed all of the following.

Description of Change

  • uninstall node-fetch from package.json
  • remove fetch import from translation-helpers.ts
  • remove fetch import from RecipeController and UserController

Motivation and Context

https://developer.mozilla.org/en-US/docs/Web/API/fetch#browser_compatibility is available since node 18, so we don't need the dependency anymore.

I verified by playing around with the translation functionality that the native fetch API works properly.

Screenshots

Checklist

  • My pull request is properly named
  • The changes respect the code style of the project (pnpm prepare-code)
  • pnpm test passes
  • I tested/previewed my changes locally

Release Notes

@mcmxcdev mcmxcdev marked this pull request as ready for review October 31, 2023 00:12
@mcmxcdev mcmxcdev requested a review from a team as a code owner October 31, 2023 00:12
Copy link
Member

@SpecialAro SpecialAro left a comment

Choose a reason for hiding this comment

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

LGTM!

@SpecialAro SpecialAro merged commit 79cdbe6 into ferdium:develop Oct 31, 2023
4 checks passed
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.

None yet

3 participants