News for hackers. Stuff that matters.
Re:Request Node lib used by 48k modules is now deprecated by Ididntdothis on Tuesday February 18, 2020 @12:21PM (#22357774)
Why is an alternative needed? To me it sounds like the library is “done” and has all the features it needs. I wish more code was in that stable state.
Re:Request Node lib used by 48k modules is now deprecated by hombre_fatal on Tuesday February 18, 2020 @12:25PM (#22357822)
fwiw they actually did mark their package as deprecated on NPM which means that all installations will see a warning that urges the user to consider other software.

It's kind of like if you were to maintain your own promise implementation, then the Promise is added to stdlib. You wouldn't say that your project is "done", you'd want to encourage your users to use the native promise.

Request was created back when all we had was the stdlib `http` module.

Re:Request Node lib used by 48k modules is now deprecated by seniorsassycat on Tuesday February 18, 2020 @01:29PM (#22358696)
> Request was created back when all we had was the stdlib `http` module.

What stdlib module supersedes `http`? Browsers have `fetch` and there's `node-fetch` and `axios` modules, but it's sad that core node hasn't updated the core http module.

Re:Request Node lib used by 48k modules is now deprecated by sli on Tuesday February 18, 2020 @04:06PM (#22360411)
Node has an http2 module as well, but it's still pretty low level. I don't think there's anything wrong with the stdlib module being lower level than the third-party ones.
Re:Request Node lib used by 48k modules is now deprecated by Ididntdothis on Tuesday February 18, 2020 @01:11PM (#22358471)
Makes sense.