hmoog / xmlhttprequest-ts

XMLHttpRequest-ts is a typescript wrapper for the built-in http client to emulate the browser XMLHttpRequest object and allow isomorphic code that runs in the browser and in node.js. This can be used with JS designed for browsers to improve reuse of code and allow the use of existing libraries. Ready for AOT and treeshaking in combination with Angular and other modern typescript frameworks.
MIT License
2 stars 3 forks source link

Retire project, and archive it. #6

Open EvanCarroll opened 3 years ago

EvanCarroll commented 3 years ago

This project is now confusing others and harming the ecosystem (you can see that here #1 ). I think it's time to retire it as a tool for a bad approach. I suggest saying this,

DEPRECATION NOTICE This project provides a wrapper for native functionality in node by bridging it to the XMLHttpRequest object that browser uses, allowing you to write just code using XMLHttpRequest in node and with TypeScript. This project further provides TypeScript definitions for that. This method of writing code for the client and server is deprecated: XMLHttpRequest has been replaced by the Fetch API: the Fetch API is standardized, and there are polyfills for older browsers that do not support it. The Fetch API is also available in Node. Write code for the Fetch API NOT XMLHttpRequest: there are methods of making it run everywhere, and it's more future safe.

Further, I would suggest archiving the project after the README is updated.

Note this is similar to the honorable approach that Request.js took. I suggest reading their rationale and following their footsteps to better the community.