

And since request remains one of the most depended-on modules in the registry, creating a major change in the patterns would affect the more than 41,000 modules which depend on this module, as well as, thousands of blog posts and StackOverflow responses. This pattern was first introduced to Node.js in version 8, but request doesn’t support it. For example, most people use async/await to work with promises. However, in this specific case the patterns at the core of request are out of date. This happens in part because JavaScript and Node.js have evolved a lot new patterns have emerged becoming standard for most developers. In other words, the project will stop evolving. Why Request is going into Maintenance Mode (and what is maintenance mode?)įor a popular module like request, maintenance mode means that the contributors will keep supporting the code, fixing minor bugs, refactoring, and making other minor changes, but they will not work extensively on creating new features, or major releases. Request and other libraries were created to handle HTTP calls in a simple way, because even if the HTTP native module of Node.js can handle the HTTP calls, it is more difficult to configure and can introduce a lot of complexity to a project (simple things like configuring HTTP to connect to a proxy, or making a POST request, can get very complicated). HTTP requires data to be transferred from one point to another over the network. HTTP stands for Hypertext Transfer Protocol, and the main purpose is to structure request (a user’s petition to a server) and responses (the data returning to the user) over the internet. Let’s start with the beginning: What Does Request Do (and, What is an HTTP Request)? So, if this library is so popular, why did the contributors decided to stop supporting it? What are the implications for the Node.js developer ecosystem? And most importantly, what are the best-supported alternatives out there? On March 30th 2019, it was announced that request will go into maintenance mode and stop considering new features or major releases. It supports HTTPS and follows redirects by default. Designed to be the simplest way possible to make HTTP calls in Node.js, It has +14 million downloads per week. Request is the most popular simplified HTTP request client for Node.js, and it was one of the first modules added to the npm registry.
