Skip to content

atob and btoa should not be marked as legacy #57145

Description

@chee

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:

  1. they do seem to still be maintained:
  2. 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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to Node.js documentation.web-standardsIssues and PRs related to web-platform APIs and standards compliance.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions