---
title: "go.yaml.in/yaml/v4 v4.0.0 Breaking Changes on Go modules"
description: "What each go.yaml.in/yaml/v4 release removed, renamed or changed: 31 breaking changes in 1 version on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/go.yaml.in/yaml/v4
last_updated: 2026-12-04
---

# 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

Latest version `v4.0.0`, released November 4, 2026. [Source repository](https://github.com/yaml/go-yaml)

Packages on Go modules run on Go. [Go end of life dates](https://since.dev/calendar/go.md).

## go.yaml.in/yaml/v4 v4.0.0 breaking changes

go.yaml.in/yaml/v4 v4.0.0, released November 4, 2026: 31 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](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **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](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Renamed** `go.yaml.in/yaml/v4/plugin/limit.AliasFunc`  

Use go.yaml.in/yaml/v4/plugin/loaderlimits.AliasFunc instead. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Renamed** `go.yaml.in/yaml/v4/plugin/limit.AliasValue`  

Use go.yaml.in/yaml/v4/plugin/loaderlimits.AliasValue instead. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Renamed** `go.yaml.in/yaml/v4/plugin/limit.DepthContext`  

Use go.yaml.in/yaml/v4/plugin/loaderlimits.DepthContext instead. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Renamed** `go.yaml.in/yaml/v4/plugin/limit.DepthFunc`  

Use go.yaml.in/yaml/v4/plugin/loaderlimits.DepthFunc instead. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Renamed** `go.yaml.in/yaml/v4/plugin/limit.DepthValue`  

Use go.yaml.in/yaml/v4/plugin/loaderlimits.DepthValue instead. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **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](https://github.com/yaml/go-yaml/releases/tag/v4.0.0)
- **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](https://github.com/yaml/go-yaml/blob/v4.0.0/docs/v3-to-v4-migration.md)
- **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](https://github.com/yaml/go-yaml/blob/v4.0.0/docs/v3-to-v4-migration.md)
- **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](https://github.com/yaml/go-yaml/blob/v4.0.0/docs/v3-to-v4-migration.md)
- **Signature changed** `go.yaml.in/yaml/v4.AliasNode`  

Was const AliasNode Kind; now const AliasNode. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.DocumentNode`  

Was const DocumentNode Kind; now const DocumentNode. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.DoubleQuotedStyle`  

Was const DoubleQuotedStyle Style; now const DoubleQuotedStyle. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.Dumper`  

Was type Dumper = libyaml.Dumper; now type Dumper struct. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.FlowStyle`  

Was const FlowStyle Style; now const FlowStyle. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.FoldedStyle`  

Was const FoldedStyle Style; now const FoldedStyle. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.IsZeroer`  

Was type IsZeroer interface; now type IsZeroer = libyaml.IsZeroer. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.Kind`  

Was type Kind uint32; now type Kind = libyaml.Kind. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.LiteralStyle`  

Was const LiteralStyle Style; now const LiteralStyle. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.Loader`  

Was type Loader = libyaml.Loader; now type Loader struct. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.MappingNode`  

Was const MappingNode Kind; now const MappingNode. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.Marshaler`  

Was type Marshaler interface; now type Marshaler = libyaml.Marshaler. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.Node`  

Was type Node struct; now type Node = libyaml.Node. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.ScalarNode`  

Was const ScalarNode Kind; now const ScalarNode. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.SequenceNode`  

Was const SequenceNode Kind; now const SequenceNode. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.SingleQuotedStyle`  

Was const SingleQuotedStyle Style; now const SingleQuotedStyle. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.Style`  

Was type Style uint32; now type Style = libyaml.Style. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.TaggedStyle`  

Was const TaggedStyle Style; now const TaggedStyle. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.TypeError`  

Was type TypeError struct; now type TypeError = libyaml.TypeError. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)
- **Signature changed** `go.yaml.in/yaml/v4.Unmarshaler`  

Was type Unmarshaler interface; now type Unmarshaler = libyaml.Unmarshaler. [pkg.go.dev](https://pkg.go.dev/go.yaml.in/yaml/v4@v4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
