Language
The fallback keyword in the aliasv2 experiment is replaced by otherwise, which is clearer. cue fmt or cue fix can be used to rewrite existing code.
Evaluator
Fix a regression where the compiler could add comments to the input AST value, which could lead to increased memory usage.
Fix a bug where exporting certain schemas could result in "cannot have both alias and field in same scope" errors.
cmd/cue
Fix a panic which could occur when using non-label expressions in the --path flag.
Teach cue login to give helpful errors when used with OCI registries which don't support the OAuth2 device flow.
Go API
Fix a regression where cue.Context.Encode could panic on custom marshaler types with pointer receivers.
Full list of changes since v0.16.0
- internal/cueversion: bump to v0.16.1 by @mvdan in 6d609d7
- internal/ci: build releases with Go 1.26.2 by @mvdan in cedf4c8
- update all golang.org/x/... dependencies by @mvdan in b4efeef
- all: rename fallback keyword to otherwise by @mpvl in f813811
- lsp/cache: improve rename by @cuematthew in 8e47027
- integration/workspace: add test showing bad behaviour by @cuematthew in a5e0ef5
- cmd/cue: suggest docker/podman login when OAuth2 device flow is unsupported by @mvdan in c169605
- cmd/cue: add testscript for cue login when device code endpoint is unsupported by @mvdan in d7c882a
- cmd/cue: clarify how to authenticate with standard OCI registries by @mvdan in 2613edf
- internal/core/compile: avoid mutating AST by @rogpeppe in e4b0516
- internal/core/export: fix alias/field name conflict in pattern constraints by @mvdan in 1e46409
- internal/core/export: add regression test for alias/field name conflict by @mvdan in 1654f66
- pkg: fix godoc mistakes across several packages by @mvdan in eae9aaf
- internal/core/convert: fix panic when encoding pointer-receiver marshalers by @mvdan in 8e39aec
- cmd/cue: return an error for non-label --path expressions instead of panicking by @mvdan in 5a55849
- encoding: add godoc hints for cue/ast result types by @mvdan in 682c663