Skip to content

feat: use goccy/go-yaml as YAML decoder#102

Merged
mladenbl merged 1 commit intomasterfrom
chore/replace-yaml-package
Dec 8, 2025
Merged

feat: use goccy/go-yaml as YAML decoder#102
mladenbl merged 1 commit intomasterfrom
chore/replace-yaml-package

Conversation

@mladenbl
Copy link
Contributor

@mladenbl mladenbl commented Dec 3, 2025

This PR replaces the archived go-yaml package with a newer, actively maintained alternative.

This package introduces some breaking changes in YAML parsing that may cause Confita to behave differently.

For example, gopkg.in/yaml.v2 parses the string value yes as a boolean true, whereas goccy/go-yaml treats it as a string.

Due to these changes, a major version bump will be required.

@mladenbl mladenbl self-assigned this Dec 3, 2025
@mladenbl mladenbl changed the title chore: use goccy/go-yaml as YAML decoder feat: use goccy/go-yaml as YAML decoder Dec 3, 2025
Copy link
Member

@philippgille philippgille left a comment

Choose a reason for hiding this comment

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

Due to these changes, a major version bump will be required.

Currently confita is still v0.10.0, so as long as no v1 is out, breaking changes can go into minor versions. A v0.11.0 should be fine. But we should point out the change in a prominent way in the release notes.

@mladenbl mladenbl merged commit 17dd7b1 into master Dec 8, 2025
6 checks passed
@mladenbl mladenbl deleted the chore/replace-yaml-package branch December 8, 2025 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants