---
title: "cue 0.18.0-alpha.2 Breaking Changes on Homebrew | Since.dev"
description: "What each cue release removed, renamed or changed: 15 breaking changes in 2 versions on Homebrew, each with its source."
canonical_url: https://since.dev/packages/homebrew/cue
last_updated: 2026-12-04
---

# cue breaking changes

cue 0.18.0-alpha.2 (November 24, 2026) is its newest release with breaking changes, 7 of them. The first: Old prefix alias syntax is no longer accepted from language v0.18.0 in cue 0.18.0-alpha.2. Every breaking API change we have recorded in cue on Homebrew: 15 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.18.0`, released November 24, 2026. Apache-2.0 license. [Source repository](https://github.com/cue-lang/cue)

- From [0.18.0-alpha.1](#v-0-18-0-alpha-1) to [0.18.0-alpha.2](#v-0-18-0-alpha-2): 7 breaking changes in 1 version.

## cue 0.18.0-alpha.2 breaking changes

cue 0.18.0-alpha.2, released November 24, 2026: 7 breaking changes.

- **Removed**  

From language version v0.18.0, the prefix alias syntax such as x: X={...} is rejected. Rewrite it with postfix aliases or a let binding on self, or run cue fix --exp=aliasv2. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed**  

From language version v0.18.0, embedding is strict and a struct embedding a closed value is closed to that value's fields. Use the postfix ... operator to embed without closing the struct, and run cue fix --exp=explicitopen before raising... [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed** `==`  

The == and != operators now compare integers and floats numerically wherever they appear, so {a: 1.0} == {a: 1} is true. Review comparisons that relied on the old result. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed** `cue cmd`  

cue cmd unifies data files named on the command line with the loaded package, as the other commands do. Tool files can now see that data, so scripts relying on the old behavior may change output. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed** `cue.Value.Equals`  

cue.Value.Equals now compares integers and floats numerically, matching the == operator. Check code that depended on the previous comparison. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed** `list.Contains`  

list.Contains now compares integers and floats numerically, matching the == operator. Check code that depended on the previous comparison. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)
- **Behavior changed** `tls.caCert`  

tls.caCert now accepts CERTIFICATE PEM blocks and reports an error when it yields no certificates, instead of trusting nothing silently. Check inputs that previously produced no certificates. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.2)

## cue 0.18.0-alpha.1 breaking changes

cue 0.18.0-alpha.1, released November 24, 2026: 8 breaking changes.

- **Removed** `[string]?`  

The parser now rejects the optional and required markers on pattern constraints. Remove the markers; pattern constraints are already optional by construction. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Behavior changed** `==`  

The == and != bounds now apply to boolean values, so constraints like !=true behave differently than before. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Behavior changed** `cue fmt`  

The formatv2 experiment is now on by default, so cue fmt output may change for existing files. Set CUE_EXPERIMENT=formatv2=0 to keep the old formatter. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Behavior changed** `cue import`  

cue import now writes strings with hash-delimited quoting when that avoids escaping, changing output. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Behavior changed** `cue vet`  

cue vet uses every -d/--schema flag instead of only the last, and -e applies only to selected expressions. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Behavior changed** `cue.Context.Encode`  

cue.Context.Encode now honors the omitzero struct tag and renders json.Marshaler multi-line strings as CUE multi-line strings. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Behavior changed** `cue.format`  

The cue/format Go API now uses the rewritten formatter, so formatted output may differ. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)
- **Default changed** `yamlgoccy`  

The yamlgoccy experiment is enabled by default, changing the YAML implementation. Set CUE_EXPERIMENT=yamlgoccy=0 to use the old one. [github.com](https://github.com/cue-lang/cue/releases/tag/v0.18.0-alpha.1)

## Related packages

- [cuelang.org/go](https://since.dev/packages/go/cuelang.org/go.md):  on Go modules

## 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.
