(no title)
post-it | 5 days ago
The mythical refactor where all deprecated code is replaced with modern code. I'm not sure it has ever happened.
I don't have an alternative of course, adding new methods while keeping the old ones is the only way to edit an append-only standard like the web.
thenewnewguy|5 days ago
Vinnl|5 days ago
(Assuming transpilers have stopped outputting it, which I'm not confident about.)
thunderfork|5 days ago
For example, esbuild will emit var when targeting ESM, for performance and minification reasons. Because ESM has its own inherent scope barrier, this is fine, but it won't apply the same optimizations when targeting (e.g.) IIFE, because it's not fine in that context.
https://github.com/evanw/esbuild/issues/1301
delaminator|5 days ago
yawaramin|5 days ago
plorkyeran|5 days ago
bulbar|5 days ago
littlestymaar|5 days ago
Having an alternative to innerHTML means you can ban it from new code through linting.
noduerme|5 days ago
Aachen|5 days ago
josefx|5 days ago