logoalt Hacker News

attractivechaoslast Wednesday at 9:11 PM1 replyview on HN

Even if getHeaders() has security/performance concerns, the better solution is to make it an alias to the newer headers.get() in this case. Keeping the old API is a small hassle to a handful of developers but breaking existing code puts a much bigger burden on a lot more users.


Replies

nodesocketlast Wednesday at 9:25 PM

Ya, why not just alias old api calls to the new if implementation details changed?