Hacker News new | ask | show | jobs
by attractivechaos 190 days ago
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.
1 comments

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