Skip to content
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

Use Buffer.from instead of deprecated atob and btoa #4145

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

antgamdia
Copy link
Contributor

Description of the change

This PR uses Buffer.from instead of deprecated atob and btoafunctions for converting from/to base64.

Benefits

New browsers not having the currently deprecated atob and btoa won't error anymore.

Possible drawbacks

N/A (as current browsers already have support for Buffer functions)

Applicable issues

Additional information

Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>
Signed-off-by: Antonio Gamez Diaz <agamez@vmware.com>

Conflicts:
	dashboard/src/shared/Secret.ts
Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

Thanks

@antgamdia antgamdia merged commit 03eb592 into vmware-tanzu:main Jan 25, 2022
@antgamdia antgamdia deleted the b64Deprecation branch January 25, 2022 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Click any application error: "An error occurred: btoa(...).replaceAll is not a function."
2 participants