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

BREAKING(yaml): change binary handling #3586

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Aug 30, 2023

Currently yaml module parses !!binary "..BASE64.." notation to Buffer class, and serializes Buffer (or any object with readSync method) to !!binary "..BASE64.." notation.

This PR replaces Buffer in the above usage with Uint8Array. I think this makes more sense in JavaScript.

Also this change is necessary to remove the dependency to std/io from std/yaml. We're going to deprecate std/io soon. This change is necessary for stabilizing yaml in the future.

closes #3585

@github-actions github-actions bot added the yaml label Aug 30, 2023
@kt3k kt3k requested a review from bartlomieju August 30, 2023 10:18
yaml/parse_test.ts Outdated Show resolved Hide resolved
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
@kt3k kt3k merged commit f6ddd89 into denoland:main Aug 31, 2023
@kt3k kt3k deleted the change-yaml-binary-handling branch August 31, 2023 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove dependency to io in yaml
2 participants