Skip to content

Node.js has global atob/btoa in version 16 #12464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 22, 2021
Merged

Conversation

freaktechnik
Copy link
Contributor

Summary

Notes availability of global atob and btoa in node.js version 16.0.0.

Test results and supporting details

https://nodejs.org/api/globals.html#globals_atob_data

Note that the documentation marks it as "legacy" which means it shouldn't be used in new code, but is unlikely to be removed. Not sure if that's worth noting in the compat data.

Related issues

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Sep 17, 2021
Copy link
Contributor

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @freaktechnik. Looks good. 👍

Note that the documentation marks it as "legacy" which means it shouldn't be used in new code, but is unlikely to be removed. Not sure if that's worth noting in the compat data.

Thanks for mentioning this too. I dug into it a little bit. Reading nodejs/node#37529, it appears that was introduced for the purpose of web compatibility. Based on the discussion there, it seems like the legacy note is for the benefit of developers who don't need web compat. That feels a bit out of scope for us, so let's not fuss with mentioning it.

@ddbeck ddbeck merged commit 0919b1d into mdn:main Sep 22, 2021
@freaktechnik freaktechnik deleted the patch-4 branch September 22, 2021 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants