phetsims / rosetta

PhET's Simulation Translation Utility
MIT License
3 stars 1 forks source link

Replace Axios with Node's `fetch` API #406

Open liammulh opened 1 year ago

liammulh commented 1 year ago

Right now, Node's fetch API has this warning:

Stability: 1 - Experimental. The feature is not subject to semantic versioning rules. Non-backward compatible changes or removal may occur in any future release. Use of the feature is not recommended in production environments.

Once it reaches the next stability level, we should use it. It will probably make Axios obsolete:

Stability: 2 - Stable. Compatibility with the npm ecosystem is a high priority.

For documentation on the fetch API, see https://nodejs.org/docs/latest-v18.x/api/globals.html#fetch. For Node's stability index, see https://nodejs.org/docs/latest-v18.x/api/documentation.html#stability-index.