go.yaml.in/yaml/v4 breaking changes
go.yaml.in/yaml/v4 v4.0.0 (November 4, 2026) is its newest release with breaking changes, 31 of them. The first: Removed go.yaml.in/yaml/v4.LimitPlugin. Every breaking API change we have recorded in go.yaml.in/yaml/v4 on Go modules: 31 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v4.0.0, released November 4, 2026. Source repository
Packages on Go modules run on Go. Go end of life dates.
go.yaml.in/yaml/v4 v4.0.0 breaking changes
- Removed
go.yaml.in/yaml/v4.LimitPlugin
go.yaml.in/yaml/v4.LimitPlugin was removed in go.yaml.in/yaml/v4 v4.0.0 pkg.go.dev - Removed
go.yaml.in/yaml/v4/plugin/limit
go.yaml.in/yaml/v4/plugin/limit was removed in go.yaml.in/yaml/v4 v4.0.0 pkg.go.dev - Renamed
go.yaml.in/yaml/v4/plugin/limit.AliasFunc
Use go.yaml.in/yaml/v4/plugin/loaderlimits.AliasFunc instead. pkg.go.dev - Renamed
go.yaml.in/yaml/v4/plugin/limit.AliasValue
Use go.yaml.in/yaml/v4/plugin/loaderlimits.AliasValue instead. pkg.go.dev - Renamed
go.yaml.in/yaml/v4/plugin/limit.DepthContext
Use go.yaml.in/yaml/v4/plugin/loaderlimits.DepthContext instead. pkg.go.dev - Renamed
go.yaml.in/yaml/v4/plugin/limit.DepthFunc
Use go.yaml.in/yaml/v4/plugin/loaderlimits.DepthFunc instead. pkg.go.dev - Renamed
go.yaml.in/yaml/v4/plugin/limit.DepthValue
Use go.yaml.in/yaml/v4/plugin/loaderlimits.DepthValue instead. pkg.go.dev - Behavior changed
NewEncoder
NewEncoder keeps v3 output settings but reports errors in v4 style. Code that matches error text should use errors.As or select WithV3Defaults(). github.com - Behavior changed
UnmarshalYAML
V4 detects UnmarshalYAML hooks that take a v3 Node type and returns a migration error instead of calling them. Change such hooks to use go.yaml.in/yaml/v4.Node. github.com - Behavior changed
yaml.Load
Package-level Load requires exactly one document and rejects additional ones. Use WithAllDocuments() for document streams, or WithSingleDocument() to skip the check. github.com - Behavior changed
yaml.TypeError
Conversion failures return a structured *yaml.LoadErrors value, so direct type assertions to *yaml.TypeError no longer match. Use errors.As to find the error. github.com - Signature changed
go.yaml.in/yaml/v4.AliasNode
Was const AliasNode Kind; now const AliasNode. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.DocumentNode
Was const DocumentNode Kind; now const DocumentNode. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.DoubleQuotedStyle
Was const DoubleQuotedStyle Style; now const DoubleQuotedStyle. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.Dumper
Was type Dumper = libyaml.Dumper; now type Dumper struct. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.FlowStyle
Was const FlowStyle Style; now const FlowStyle. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.FoldedStyle
Was const FoldedStyle Style; now const FoldedStyle. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.IsZeroer
Was type IsZeroer interface; now type IsZeroer = libyaml.IsZeroer. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.Kind
Was type Kind uint32; now type Kind = libyaml.Kind. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.LiteralStyle
Was const LiteralStyle Style; now const LiteralStyle. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.Loader
Was type Loader = libyaml.Loader; now type Loader struct. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.MappingNode
Was const MappingNode Kind; now const MappingNode. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.Marshaler
Was type Marshaler interface; now type Marshaler = libyaml.Marshaler. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.Node
Was type Node struct; now type Node = libyaml.Node. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.ScalarNode
Was const ScalarNode Kind; now const ScalarNode. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.SequenceNode
Was const SequenceNode Kind; now const SequenceNode. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.SingleQuotedStyle
Was const SingleQuotedStyle Style; now const SingleQuotedStyle. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.Style
Was type Style uint32; now type Style = libyaml.Style. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.TaggedStyle
Was const TaggedStyle Style; now const TaggedStyle. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.TypeError
Was type TypeError struct; now type TypeError = libyaml.TypeError. pkg.go.dev - Signature changed
go.yaml.in/yaml/v4.Unmarshaler
Was type Unmarshaler interface; now type Unmarshaler = libyaml.Unmarshaler. pkg.go.dev
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.