Live data from Hacker News

Request Node lib used by 48k modules is now deprecated

github.com

111–120 of 135 posts

Re: Request Node lib used by 48k modules is now deprecated

#111

Earlier quoted context omitted.

If someone knows your account number, they can take money from it, there is no separate secret or anything. It would be illegal, but they can do it.

what?? You can deposit without a pin bit to withdraw you need photo id and a verbal password or pin in every bank I've ever been in

Are you in the USA? Our banks don't exactly do "security" at all.

Re: Request Node lib used by 48k modules is now deprecated

#112
post #16

> request will stop accepting new features. > request will stop considering breaking changes. > The committers that are still active will try to merge fixes in a timely fashion Sounds to me like the library is "done".

I read "done" wrong the first time. I read it as "stick a fork in it, it's done," as in, the library is done for. Not long for this world. It seems like you meant it more in the sense of this library is "complete." Just in case anyone was confused.

Done as in complete, yes.

Re: Request Node lib used by 48k modules is now deprecated

#113

It was about time. I did some benchmarks few years ago and the results were disgusting compared to native lib, plus why so many dependencies for a simple request library? I will never understand why it gained so much publicly, it was worthless since the day one.

Seems like a disrespectful way of describing someone else's work, regardless of shortcomings.

You know how many packages out there are better than request? Now compare all the work those great developers did, gave their souls for what? 50 stars at GitHub? Cmon, let's face the real problem here which is the balance between good code versus popular code. I'm speaking behalf of every great developer out there that spends hundreds of time and his project got faded inconspicuously. I have seen hardcore projects that every tech company could have envied get like 50 dollars of donations and projects that were made in one day, get thousands.

Re: Request Node lib used by 48k modules is now deprecated

#114

Earlier quoted context omitted.

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 w…

> 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.

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

#115

Earlier quoted context omitted.

Right, but the bank is still entitled to check with me before handing over the cash. They have no way of knowing that I signed the contract. Account numbers and squinting at a signature isn't any kind of proof!

> the bank is still entitled to check with me before handing over the cash. They're allowed to, but have no (legal or socially expected) requirement to do so. I've never heard of a bank doing so for small (<$10k or so) amounts, and then only if fraud alerts are already present.

Is it possible to have an account in the US which forbids anyone paying from it using cheques?

Re: Request Node lib used by 48k modules is now deprecated

#116
post #41

Ok, I have been known to have strong opinions on HN, and each one is open to being changed and is rooted in extensive personal experience. I have said that comments are a code smell. I have written extensively in favor of decentralization and even formed two companies to promote it in increasingly sophisticated ways (qbix.com and intercoin.org) So I’m gonna say something that may get me downvoted... Package Managers…

Sure, taking on dependencies introduces pros and cons. But isn't this just the classic HN trope where you fly off the handle on a loosely related rant just because TFA has some sort of triggering buzzword like "NPM"? Not sure how your rant is related. In fact, that such a popular library is being deprecated contains in itself the realization for unknowing developers a downside of depending on large libraries. Someone…

The rant might be off topic, but everything he says is reasonable. In a "this is why we can't have nice things" way.

Re: Request Node lib used by 48k modules is now deprecated

#117
post #90

Earlier quoted context omitted.

Yea, makes me think of how every news blog reported mp3 as "dead" when the patent expired, when they should have been saying mp3 is now license free.

I don't think anyone really uses mp3 for audio compression anymore, though. There's FLAC, mp4 (AAC), and free Vorbis (which claims to be competitive with both); and DVDs and whatnot are still using AC3, EAC3, and various other Dolby Digital audio formats. Given that landscape, I don't know why you'd pick mp3.

FLAC meets a different requirement. AAC isn't license free as far as I know. Many devices won't play Vorbis. So I encode to mp3 for now.

Re: Request Node lib used by 48k modules is now deprecated

#118

Earlier quoted context omitted.

Seems like a disrespectful way of describing someone else's work, regardless of shortcomings.

You know how many packages out there are better than request? Now compare all the work those great developers did, gave their souls for what? 50 stars at GitHub? Cmon, let's face the real problem here which is the balance between good code versus popular code. I'm speaking behalf of every great developer out there that spends hundreds of time and his project got faded inconspicuously. I have seen hardcore projects th…

That's just Power Law. Like it or not, I don't think there is a workaround.

Re: Request Node lib used by 48k modules is now deprecated

#119
For people looking for an alternative, got [1] is well written, maintained, and as a bonus has a nice comparison chart to other libs. I started w/ node-fetch but quickly moved to this. Its author is also prolific in the Node community.

[1]: https://github.com/sindresorhus/got#comparison

Re: Request Node lib used by 48k modules is now deprecated

#120

Earlier quoted context omitted.

It is slightly archaic in that it mostly uses a callback convention, when most of the node community has moved on to promises. And there are more modern alternatives like axios that do have this promises interface.

node-fetch above all, it's standard, and works in the browser https://github.com/node-fetch/node-fetch/blob/master/package...

I don't get why it doesn't support cookies but says to parse Set-Cookie header manually and implement it yourself.
Post reply on HN