Skip to content

Replace XMLHttpRequest with Fetch API #2498

Open
@dplewis

Description

@dplewis

New Feature / Enhancement Checklist

Current Limitation

XMLHttpRequest for Node hasn't been updated in 7 years.

Feature / Enhancement Description

The Fetch API is a modern, promise-based approach for making HTTP requests in JavaScript environments. While natively available in browsers, Node.js has integrated the Fetch API as a stable feature since version 18. This eliminates the need for external libraries like node-fetch for basic fetching functionalities. This takes an isomorphic approach to making requests.

Example Use Case

Features that could be added to the SDK

To implement

  • Change Parse.Query.cancel
  • Change Parse.File.cancel
  • Change Parse.File.download
  • Change RESTController
  • Update Tests
  • Update WeChat XHR

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions