On March 30 we found out that the ‘request’ module is going into Maintenance Mode. This popular and long standing module for Node apps is considered hard to change and modernize without breaking things. That is why ‘request’ Node module for HTTP requests is going into Maintenance Mode. Meet its alternatives!
The first version of
request was one of the first modules ever created for the Node.js. The earliest versions were written to APIs that pre-date the standard callback interface, streams, node_modules and npm. But now it’s tome for the mode to go into the Maintenance Mode and that’s the result:
requestwill stop accepting new features.
requestwill stop considering breaking changes.
- The committers that are still active will try to merge fixes in a timely fashion.
- Releases will be fully automated, any merge into master will be published.
What you can do? Use alternative libraries like:
- node-fetch – a light-weight module that brings window.fetch to Node.js
- bent – functional HTTP client for Node.js w/ async/await
- got – simplified HTTP requests
- make-fetch-happen – make-fetch-happen is a Node.js library that wraps node-fetch-npm with additional features
- axios – promise based HTTP client for the browser and node.js
- unfetch – tiny 500b fetch
- superagent – small progressive client-side HTTP request library
- tiny-json-http – HTTP client for GET and POSTing JSON payloads
- needle – the leanest HTTP client in the Nodelands
- urllib – basic and digest authentication, redirections, cookies and more.
Please get all the necessary information here.
By the way, did you check the guide on dynamic image resizing with Node.js and the Serverless Framework by Nick Gottlieb. It can be a good start for entering web app development along with understanding how serverless can benefit here. Keep up the good work!