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

feat(encode): accept any input type #67

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

luhring
Copy link
Collaborator

@luhring luhring commented Aug 7, 2024

Previously, only a *yaml.Node was accepted, which required the caller to encode arbitrary data to an AST node before they would be able to use the Encoder. This saves them that step while remaining backwards-compatible for callers still passing in AST nodes.

Previously, only a *yaml.Node was accepted, which required the caller to encode arbitrary data to an AST node before they would be able to use the Encoder. This saves them that step while remaining backwards-compatible for callers still passing in AST nodes.

Signed-off-by: Dan Luhring <dluhring@chainguard.dev>
@imjasonh imjasonh merged commit 7fe30a1 into chainguard-dev:main Aug 7, 2024
7 checks passed
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.

2 participants