Closed
Description
Affected URL(s)
https://nodejs.org/docs/latest/api/globals.html#atobdata https://nodejs.org/docs/latest/api/buffer.html#bufferatobdata
Description of the problem
hey!
i notice that atob
and btoa
are marked as Legacy, which states "no longer actively maintained, and other alternatives are available".
some notes on that:
- they do seem to still be maintained:
- optimized in april 2024: buffer: even faster atob #52443
- recent bug fix: buffer: atob throw error when the input value is invalid #42662
- the alternative listed is not an equivalent. atob and btoa are optimized at the C++ level, and do not create an in-memory Buffer in javascript context that then has to be garbage collected (needless, for instance, when
JSON.parse(atob(b64))
)
having these marked as legacy also seems to go against the very good direction node has taken recently of compatibility with web apis like the webstreams api
i think it would be great if these were marked Stability 2! what do you think?