v0.13.0

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

This release finally enables the new evaluator by default – the culmination of over a year’s worth of work!

It also packs in lots of new features, such as support for absolute module packages, dozens of JSON Schema improvements, and a new experimental XML encoding.

Changes which may break some users are marked below with: ⚠️

Evaluator

The new evaluator first introduced in v0.9.0 via CUE_EXPERIMENT=evalv3 is now enabled by default! There are no remaining substantial regressions in our test suite, and the Unity corpus is almost entirely working now. Given that the new evaluator fixes dozens of bugs for many users, and is already significantly faster for the majority of CUE users, we believe it is time to turn it on by default.

We will continue to track any remaining issues for the new evaluator via the evalv3 label. If you encounter any regressions, please file a bug report. You can also revert to the old evaluator to temporarily work around bugs via CUE_EXPERIMENT=evalv3=0. See this FAQ page for more information.

We aim to resolve many of these remaining bugs in an upcoming v0.13.1 bugfix release.

An entirely new algorithm for cue trim and tools/trim has been implemented for evalv3, which resolves all known bugs when trimming CUE.

Closedness in evalv3 has been revisited to match the semantics of evalv2 much more closely, while at the same time reducing its overhead for larger configurations. This fixes most “field not allowed” regressions and improves the performance of some configurations by up to 5x. As a result, CUE_DEBUG=openinline is now removed as it is unnecessary.

Performance work for the new evaluator is ongoing; a number of changes in this release led to performance improvements of between 5% and 80% for a variety of projects. For more details, see Marcel’s performance update last month.

⚠️ The new topological sort algorithm for field ordering has been tweaked to avoid becoming too slow in some cases. This may result in some ordering changes, but we expect them to be relatively small. See the change for more details.

The parser now correctly allows keywords as required field labels, such as if!: _, fixing a discrepancy with the spec.

Filenames beginning with a dot can now be embedded as long as the glob pattern uses an explicit dot, such as @embed(glob="dir/.data_*.json").

⚠️ @embed(glob="pattern...") directives whose file globbing results in zero files now result in an error, to avoid situations where a glob pattern silently stops working as intended.

cmd/cue

Initial support for absolute packages is introduced, which allow specifying a remote package at a particular version such as cue export foo.com/data@v1.2.3 or cue vet foo.com/schema@v1.2.3 -d '#schema' data.yaml without requiring a CUE module file locally.

The cue help filetypes logic, written itself in CUE, no longer requires using the evaluator to parse CLI arguments or load CUE packages. This results in significant speed-ups when using the CLI with many inputs.

The new cue refactor imports command rewrites import paths, making it easy to migrate between module locations and major versions.

The new cue mod mirror command copies modules from one registry to another.

cue mod tidy now preserves the top-level custom field as intended.

Hidden files, and files with build tags, should now be correctly filtered when loading a single CUE package.

cue get go should no longer attempt to import types from the Go standard library as CUE, which caused errors.

cue get go no longer fails on Go strings containing certain character escape sequences or non-UTF8 bytes.

cue get go now interprets Go fields with the new json:",omitzero" struct tag as CUE optional fields.

cue cmd now fails if no tasks were actually defined, to avoid situations where a user is misled into thinking a task was defined when it was not.

Encodings

The XML “Koala” encoding proposed in February is now available via an experimental implementation. Try it out via the CLI like cue export xml+koala: data.xml, or via its Go API.

The encoding/jsonschema package gains better support for Kubernetes schemas (CRDs and the core API) although these improvements are as yet only available via the Go API.

⚠️ The JSON Schema decoder now imports schema descriptions as CUE doc comments, which required a change to encoding/jsonschema.Config.DefineSchema.

Empty YAML files are now decoded as *null | _ rather than null, allowing them to be unified with struct schemas as if they were an empty struct.

cue exp gengotypes now allows control over how to generate optional CUE fields via e.g. @(,optional=nullable), where the default now is not to use pointers.

⚠️ cue exp gengotypes tweaks how it parses @(,type=) options to support composite types such as slices and maps. Note that this means package paths with slashes must be quoted now.

Builtins

⚠️ The uuid.ToString function is removed, given that it never did anything useful and could mislead users into thinking it did.

tool/http gained a followRedirects option to let the user disable HTTP redirection.

Go API

⚠️ CUE_EXPERIMENT=decodeint64 can no longer be disabled as we consider the experiment finished, having been introduced in CUE v0.11.0.

⚠️ The long-deprecated cue.Runtime methods Parse, FromExpr, CompileFile, and CompileExpr are now removed.

cuecontext.EvalDefault still pointed to the old evaluator; it now correctly points to the new evaluator, and follows the CUE_EXPERIMENT=evalv3 flag just like cmd/cue and the rest of the Go API.

Mirroring cuecontext.EvalExperiment, the new cuecontext.EvalStable constant is added to track the latest stable version of the evaluator.

module.SplitPathVersion and module.ParseImportPath have been deprecated in favor of cue/ast.SplitPackageVersion and cue/ast.ParseImportPath package to consolidate the API.

The new mod/modfile.File.ModuleForImportPath function allows resolving a module and default major version for a package without consulting a registry.

The new mod/modregistry.Client.Mirror method implements the logic behind the new cue mod mirror command.

The new mod/module.Version.Compare method is added in favor of module.Sort, which is now deprecated.

All changes

445 changes since v0.12.0by area

all12

  • allcue fmt@mvdan5c33e24
  • allclean up a number of txtar test skips@mvdanebf4e65
  • alldo not use Default/Dev/Experiment evaluator versions in tests@mvdan07bccba
  • allstart making more use of strings.Cut@mvdan7d62514
  • allunconvert -apply ./...@mvdancbed854
  • alluse a few more newer std APIs@mvdan538fb69
  • allstart using slices.Backward@mvdan66d4c35
  • alluse more maps and slices APIs from Go 1.23@mvdan6a00a13
  • allGODEBUG=gotypesalias=1 is on as of go1.23.0@mvdan0eeb982
  • allstart using maps and slices APIs from Go 1.23@mvdanb343839
  • alluse eval.NewContext when possible@mpvlf4da7a3
  • alluse ast.ParseImportPath and ast.ImportPath@rogpepped5ab208

cmd58

  • cmd/cuestop creating cue.mod/pkg and cue.mod/usr in cue mod init@mvdan8946dc9
  • cmd/cueadd CUE_EXPERIMENT=cmdreferencepkg@mvdan5548932
  • cmd/cueadd testscript showing input unmarshal behavior with cue cmd@mvdaneebcefc
  • cmd/cuedocument that embedding is limited to files in the same module@mvdan3559578
  • cmd/cueupdate which experiments are on by default@mvdancfe1783
  • cmd/cuetest the "found packages $X and $Y in $DIR" error message@mvdan4f3a215
  • cmd/cuedon't use os.Getwd at init time@mvdane7d687f
  • cmd/cuemove CUE_DEBUG_PARSER_TRACE to CUE_DEBUG=parsertrace@mvdan8fb5fea
  • cmd/cueadd testscript for CUE_DEBUG_PARSER_TRACE@mvdana95cfa8
  • cmd/cueadd more gengotypes test cases for optional=nillable@mvdandefc384
  • cmd/cueadd a testscript for --inject-vars@mvdanaeb0747
  • cmd/cueadd testscript to ensure we report unused imports@mvdan21d4ba7
  • cmd/cuemention vet-c's three behaviours@jpluscplusm8f552be
  • cmd/cuefix up xml+koala testscript to actually test stdin@mvdana1db0ad
  • cmd/cuetest that gengotypes keeps top-level definition docs@mvdandaaba58
  • cmd/cueadd gengotypes test cases for the optional attribute option@mvdana164970
  • cmd/cueadd CUE_BENCH to benchmark CLI invocations with Go allocs@mvdan2e8d5a7
  • cmd/cue/cmdadd test case for embedding a pattern with an explicit dot file@rogpeppe572a6cc
  • cmd/cueerror on useless commands@myitcv4b5dd6b
  • cmd/cueremove test files related to old old closedness@myitcv93e82f2
  • cmd/cueconvert examples to 'cue vet -c'@myitcv08c3542
  • cmd/cuego get Go fields with the json omitempty tag as optional@mvdand9da212
  • cmd/cueadd get go test case with the new omitzero json tag@mvdanbe6c3db
  • cmd/cueactually update the _gen.go.want gengotypes testscript files@mvdan52d9689
  • cmd/cuewire up xml+koala via encoding/xml/koala@mvdan096a114
  • cmd/cuere-enable cue exp gengotypes testscript@mvdan18b4ba9
  • cmd/cuefix up help environment with new defaults@mvdan4810870
  • cmd/cueprepare testscripts for evalv3 being on by default@mvdana78b158
  • cmd/cueimport non-UTF8 Go string constants as CUE bytes@mvdan7d0404a
  • cmd/cueverify the JSON for equivalence in get_go_json_compat@mvdanc65dfa3
  • cmd/cuesupport more escape codes from Go string constants@mvdanf567a0c
  • cmd/cueadd test case for get go with string escape codes@mvdance37bb5
  • cmd/cueadd a test case for loading an empty YAML file@mvdan91e843b
  • cmd/cuereject mod mirror without anything to do@mvdanf1c77f6
  • cmd/cuetest mod mirror with no arguments nor --mod@mvdan211b1b0
  • cmd/cueupdate mod mirror help text@jpluscplusmd1bf8fe
  • cmd/cueskip mkRunE in the commandGroup wrapper@mvdane919342
  • cmd/cueavoid confusing "unknown flag" errors in cue mod@mvdan6ab9f11
  • cmd/cuededuplicate logic to implement command groups@mvdan078125e
  • cmd/cueadd more test cases for unknown flags and commands@mvdan5a359d5
  • cmd/cuemention --inject-vars/-T flag for injection help@myitcv90c1965
  • cmd/cue, internal/mod/modimportsadd test cases for issue 3795@rogpeppe2742aba
  • cmd/cueadjust the detection of Go standard library packages@mvdan153fc8a
  • cmd/cueactually drop unsupported Go std types in get go@mvdan97cbf7e
  • cmd/cueadd testscript reproducing get go issues with std packages@mvdan9a53c81
  • cmd/cuefix refactor imports over multiple modules@rogpeppe7cc1de3
  • cmd/cue/cmdshow incorrect handling of binary files when embedded@nichtsundniemand073d23c
  • cmd/cuestop marking the login command as experimental@mvdan324b3da
  • cmd/cueembed support is no longer experimental@mvdandce7fda
  • cmd/cue/cmdadd test for edge case@mpvl587d5a1
  • cmd/cuedon't truncate refactor-imports help text@jpluscplusm9413ce6
  • cmd/cueupdate workflow command help text links@jpluscplusm3545df1
  • cmd/cueimprove CUE example for exp-gengotypes@jpluscplusm8d8a36d
  • cmd/cuemention -c=false in vet's incomplete error@jpluscplusm6fb2a9b
  • cmd/cueadd experimental warning to gengotypes@jpluscplusmf0ed173
  • cmd/cueimplement mod mirror@rogpeppe7d7abff
  • cmd/cueadd refactor imports command@rogpeppe8dbff63
  • cmd/cuefix typos in cue-help-filetypes@jpluscplusm0a43336

core5

  • core/adtAdd ellipsis in struct to patterns@cuematthew2c002ae
  • core/toposortstop trying to order structinfos/structlits@cuematthewbc6c485
  • core/toposortDo not calculate cycles within an SCC@cuematthewd73e690
  • core/adtcorrect copying of conjuncts in stripNonDefaults@cuematthew15a702e
  • core/adtCombine Vertex.Structs when inserting Conjunct for evalv3@cuematthew2d65404

cue52

  • cue/testdataadd a regression test for #3570@mvdan5a99880
  • cuefix path representation for shared nodes@mpvlaf81550
  • cue/formatport format tests to cuetxtar@mvdan8f841ee
  • cue/buildstandardise on using the Context's loader@cuematthew0a71cae
  • cue/testdataadd test cases for #3924@mvdan2740b68
  • cue/loadmake MultiplePackageError support relative dir paths@mvdana8f9383
  • cue/testdataadd regression test for issue 2310@mvdan8fa1079
  • cue/errorsuse slices.CompactFunc to deduplicate errors@mvdana1a53e5
  • cue/errorsprint relative positions when used as arguments too@mvdan80ff2bd
  • cue/testdataadd regression tests for issue 2337@mvdan4154968
  • cue/testdataadd a regression test for issue 2241@mvdan17e198c
  • cue/testdataadd a regression test for issue 2229@mvdan1048634
  • cue/testdataadd regression test for issue 1867@mvdanaacdc3b
  • cue/testdataremove resolve/002.txtar@mvdan89d1313
  • cue/testdataadd regression test for issue 2209@mvdan5db678d
  • cue/testdataadd a regression test for issue 1640@mvdan09dee80
  • cue/testdataadd a regression test for issue 2526@mvdan0be3c85
  • cuefix two godoc links@mvdan2aee339
  • cue/formatadd test case for formatting empty and near-empty files@mvdan17317ca
  • cue/ast/astutilrefactor walkVisitor away@mvdan66cf387
  • cue/interpreter/embedfix "glob" typo@mvdan2666081
  • cue/interpreter/embedfail when glob pattern has no matches@rogpeppeb6d7332
  • cue/cuecontextfix EvalDefault to follow the default, add EvalStable@mvdanad0442b
  • cue/cuecontextexpand TestEvalVersion to test more combinations@mvdan965e7b1
  • cue/cuecontextevalv3 is no longer experimental@myitcv8080ec5
  • cuedo not unify "accept" schema with result in UnifyAccept@mpvlff654dc
  • cueprepare TestConjunctDedup for more cases@mpvl2b82584
  • cueuse fmt instead of MarhalJSON in TestUnifyAccept@mpvl6912a11
  • cueadd missing finalization@mpvl4cbb180
  • cueenable even more tests on evalv3 which pass now@mvdan00f7a21
  • cuere-enable tests on evalv3 which succeed now@mvdanbd1839a
  • cueadd test for issue 3826@mpvl8cd6b71
  • cueskip two tests failing on evalv3@mvdan5e5179c
  • cue/interpreter/wasmskip tests on evalv3@mvdand4dd2ce
  • cue/testdataadd regression test for https://cuelang.org/issue/3688@myitcv72567b9
  • cue/testdataadd regression test for https://cuelang.org/issue/3672@myitcvbdeae96
  • cue/loadsupport specifying an absolute package@rogpeppeccd5b92
  • cue/astadd a few ParseImportPath tests@rogpepped9aaf0a
  • cue/testdataadd regression test for https://cuelang.org/issue/3813@myitcv7d6fe86
  • cue/testdataadd regression test for https://cuelang.org/issue/3805@myitcv6ae6c99
  • cuemake Value.Default test for whether the vertex was default-able@cuematthew16253d8
  • cueMake Value.LookupPath work on patterns for evalv3@cuematthewcbb205e
  • cue/loadrespect build tags when determining package@rogpeppe58e09ee
  • cue/loaduse iterator range@rogpeppe9ba4189
  • cue/parserallow if as a label for a required field@haoqixu18367a6
  • cue/interpreter/embedremove obsolete TODOs@mvdan8585568
  • cue/parserallow for as label for required field@haoqixufc8791f
  • cuetweak cue.Value.Decode with Go std changes@mvdan4e0cc47
  • cue/testdataadd a benchmark test for https://cuelang.org/issue/3514@myitcvd12c8be
  • cueadd tests for Unify@mpvlb582d7f
  • cue/astproperly deprecate Optional and Token in Fields@mvdan0265d7d
  • cueremove more long-deprecated APIs@mvdan2c86de5

encoding32

  • encoding/jsonclarify how to encode a cue.Value to JSON@mvdan3bc5784
  • encoding/jsonschemafix x-kubernetes-group-version-kind@rogpeppe9752c3a
  • encoding/jsonschemarecognize date-time too@rogpeppe398e8be
  • encoding/jsonschemaupdate format support@rogpeppe59e82a7
  • encoding/jsonschemaadd numeric format to CRD test@rogpeppe4e8dc78
  • encoding/jsonschemaavoid adding unnecessary ellipses@rogpeppe68dad74
  • encoding/jsonschemaimplement x-kubernetes-group-version-kind@rogpeppe2c01ee5
  • encoding/jsonschemaadd VersionKubernetesAPI@rogpeppea918c8b
  • encoding/jsonschemaCRD metadata field is not required@rogpepped0f10ea
  • encoding/jsonschemaCRDs always define resources@rogpeppedbe2611
  • encoding/jsonschemaadd metadata field to CRD test case@rogpeppef712e19
  • encoding/openapiadd regression test for issue 1643@mvdan8e4c818
  • encoding/xml/koalaupdate koala header comments@matts858a134a3
  • encoding/jsonschemafix the tests on Go tip@mvdan3ba376f
  • encoding/jsonschemaadd OpenOnlyWhenExplicit option@rogpepped1baad4
  • encoding/xml/koalaintroduce the first experimental XML encoder@matts85ebf42e5
  • encoding/jsonschemaclean up TestExtX@mpvlc0fc59b
  • encoding/jsonschemaadd debug test for external tests@mpvlce10c91
  • encoding/jsonschemamove debugging test to separate file@mpvlfc4172f
  • encoding/yamldecode empty YAML files as *null | _@mvdanfd79eff
  • encoding/jsonschemasupport x-kubernetes-embedded-resource@rogpeppe0cd0a0c
  • encoding/jsonschemainitial support for Kubernetes CRDs@rogpeppe0dcaff5
  • encoding/jsonschemadelete code for Go 1.22@mvdan24e90ed
  • encoding/jsonschemasupport single schema not at root@rogpeppecdc4123
  • encoding/openapiconvert remaining cue->json tests to txtar@cuematthewba1084a
  • encoding/openapiconvert test suite to txtar@cuematthew374c59e
  • encoding/jsonschemapass comments to DefineSchema@rogpeppe880023b
  • encoding/jsonschemapass comments to DefineSchema@rogpeppe7a3708e
  • encoding/jsonschemabetter placement of jsonschema attribute@rogpeppe09effdb
  • encoding/jsonschemaadd test case for if/then/else with $id@rogpeppe29be366
  • encoding/openapiswap sort.Slice for slices.Sort@mvdan1d7f66f
  • encoding/jsonschemause a cmp-based stable sort when decoding constraints@mvdandb72890

internal248

  • internal/cibump the pinned Go version for releases@mvdan5ca3b8f
  • internal/encoding/yamldrop use of kr/pretty in a test@mvdane769e47
  • internal/core/adtprevent superfluous circular reference@mpvl9418bb0
  • internal/core/adtadd tests for Issue 3941@mpvl938d270
  • internal/core/adtallow sharing of lets@mpvl9a44314
  • internal/core/adtadd tests for Issue 3938@mpvl3045a88
  • internal/core/adttreat for loop values as non-cyclic@mpvle15f6e4
  • internal/core/adtrelax inline cycles@mpvl4a4d9ef
  • internal/core/adtdisable setting Inline for evalv3@mpvl406f64c
  • internal/core/adtadd tests for 3903@mpvleb61a84
  • internal/core/adtrewrite comprehension structs for disjuncts@mpvl7a0906e
  • internal/core/adtdereference overlay@mpvl894205c
  • internal/core/adtadd tests for Issue 3935@mpvl1a2e80e
  • internal/core/adtmark conjunct for incomplete disjunct@mpvla3db8b8
  • internal/core/adtadd tests for 3934@mpvld9bfe59
  • internal/core/adtpartial revert of fixes for 3919@mpvle12d544
  • internal/core/adtadd tests for 3931@mpvlcff2d7e
  • internal/core/adtfix disjunction state management@mpvle145a14
  • internal/core/adtadd tests for Issue 3925 and 3905@mpvl38357b7
  • internal/core/adtavoid finalizing too early@mpvlf87800d
  • internal/core/adtadd tests for issue 3919@mpvl47c9e99
  • internal/filetypesremove version from TODO@rogpeppec456d08
  • internal/core/adtfix some embedding issues with closedness@mpvl2597621
  • internal/core/adtadd tests for 3921@mpvlb3caad3
  • internal/encoding/gotypeshandle cyclic types out of the box@mvdan61e0d7f
  • internal/core/adtcarry over enclosing scope@mpvl7de64e8
  • internal/core/adtadd tests for 3920@mpvl0f26957
  • internal/core/adtupdate environment for disjunctions@mpvle231c49
  • internal/core/adtadd tests for issue 3891@mpvlbb2204f
  • internal/golangorgxcuelsp: load cue@cuematthew8ca0f5b
  • internal/golangorgxcuelsp: remove Go-specific analysis@cuematthewb9acd04
  • internal/core/adthandle vertices properly for comprehensions spanning disjunctions@mpvl56a915b
  • internal/core/adtadd tests for issue 3899@mpvlb17be30
  • internal/cueexperimentphase out DecodeInt64@mvdan3be8e48
  • internal/encoding/gotypesimplement optional=nillable@mvdan9ef3b70
  • internal/encoding/gotypesparse type options as Go expressions@mvdanf2e0b7e
  • internal/filetypesremove dependency on CUE evaluator@rogpeppe050844f
  • internal/filetypesgenerate FromFile@rogpeppef37ff95
  • internal/filetypesgenerate toFile implementation@rogpeppe6454acb
  • internal/filetypes/internal/genfuncCUE to Go translation@rogpeppeb3e8da8
  • internal/filetypes/internal/genfuncCUE expression simplification@rogpeppe9c267d8
  • internal/filetypes/internal/genstructnew package@rogpeppec65ecb4
  • internal/filetypesremove special cases@rogpeppec7a63ad
  • internal/core/adtallow stack-based unrolling of blocking@mpvl5c22dc8
  • internal/core/adtadd tests for 3899@mpvle65a5e0
  • internal/ci/goreleaseradjust after evalv3 fix for #3908@mvdan6fd7ee4
  • internal/core/adtfix default handling@mpvldb98b5f
  • internal/core/runtimevalidate imports in package-less files too@mvdan45bcd34
  • internal/cuetxtarsupport matrix name skips like #skip-v2@mvdan6204a0a
  • internal/golangorgxstub out gcimporter@mvdan4b194d7
  • internal/golangorgxdrop testenv APIs we won't need@mvdan0e10ed9
  • internal/golangorgxremove the goroot package@mvdand3ae2ca
  • internal/golangorgxremove the aliases package@mvdan4598c91
  • internal/golangorgxremove refactor/inline@mvdan8e2dd0c
  • internal/golangorgxdrop util/slices in favor of slices@mvdan4a580ad
  • internal/encoding/gotypesdon't drop docs for top-level definitions@mvdan4c0c780
  • internal/filetypesstrict separation of tags vs subsidiary tags logic@rogpeppecb7a48c
  • internal/filetypesregularize Default@rogpeppeae4ac04
  • internal/filetypesclarify FromFile@rogpeppe7701a87
  • internal/filetypesrefactor parseType to parseScope@rogpeppe8240e3c
  • internal/filetypesadd evaluator mutex@rogpeppe737cd20
  • internal/filetypesconsolidation@rogpeppe667575a
  • internal/encoding/gotypesanalyze all CUE definitions first@mvdan1753350
  • internal/encoding/gotypescontrol optional types via attributes@mvdan8e82e47
  • internal/encoding/gotypeshandle quoted CUE fields correctly@mvdanefd4ad1
  • internal/core/adtfix expression comments in SimplifyBounds@mvdane77a582
  • internal/core/adtavoid apd.Decimal errors in SimplifyBounds@mvdan4a1805a
  • internal/core/adtreuse a slice to make copies of the required reqSets@mvdand3a3b16
  • internal/ciflip to using the official curated cue.dev schemas@myitcva7e97fe
  • internal/golangorgxcuelsp: view definitions for cue@cuematthew3478e43
  • internal/cibump Go and goreleaser for the next alpha release@mvdand1fb074
  • internal/golangorgxcuelsp: remove unneeded code@cuematthewe223de9
  • internal/core/adtcache reqSets in nodeContext@mpvlfac9a30
  • internal/core/adtadd benchmark for 3881@mpvl3eef4dd
  • internal/core/adtadd stats for new closedness algo@mpvl5f329ce
  • internal/core/adtfix Vertex dereferencing for disjunctions@mpvl96e0ebc
  • internal/core/adtadd tests for 3850 and 3875@mpvl7cfe774
  • internal/core/adtfix test names@mpvl5dcc768
  • internal/core/topsortprevent duplicates in nodeToStructMeta@mvdana753c37
  • internal/core/adtremove unused nodeContext fields@mvdanb12e201
  • internal/core/adtshow correct path for incomplete values@mpvle714489
  • internal/core/adtskip work in checkTypos when a vertex has no arcs@mvdan3c149f1
  • internal/core/adtreuse a local buffer in checkTypos@mvdanab8bd45
  • internal/golangorgx/goplsUse the correct error.@alingse19403a4
  • internal/core/adtavoid more allocations when LogEval is disabled@mvdan34a512f
  • internal/core/adtremove unused code low-hanging fruit@mvdan8fef4d3
  • internal/golangorgx/goplsGet cue lsp to initialize with emacs lsp@cuematthewc54251d
  • internal/core/adtdo not activate ids for non-definitions@mpvl2824405
  • internal/core/adtadd tests for 3858@mpvleec6a2a
  • internal/core/adtreuse reqSets slices via OpContext@mvdan1d028fc
  • internal/core/adtprevent logging overhead when disabled@mvdane778137
  • internal/cuedebugdrop openinline flag@mvdana09a38b
  • internal/encoding/yamlsupport alias to scalars as map keys@OmriSteinera6fff27
  • internal/encoding/gotypesgenerate valid json tags for quoted fields@trumant93c1421
  • internal/mod/modloadpreserve custom struct in module when tidying requirements@snuxolle058014
  • internal/core/runtimeselect evaluator version with specific constants@mvdan1ec46e7
  • internal/core/adtfix disjunction corruption issue@mpvl917ae0d
  • internal/core/adtfix panic due to envDisjunct corruption@mpvl721ca5d
  • internal/core/adtdisable structure sharing for pending arcs@mpvl4fc579c
  • internal/core/adtadd tests for Issue 3849@mpvl6ade302
  • internal/core/adtremove insertArcCC@mpvl6654071
  • internal/core/adtinline structs in schema are not closed by default@mpvl4e7564e
  • internal/core/adtadd test for Issue 3853@mpvl5348d04
  • internal/core/adtsupport Ellipsis in MatchAndInsert@mpvlde69f12
  • internal/core/adteliminate recursive processing on bottom@mpvl447e98d
  • internal/core/adtadd test for Issue 3851@mpvld58c804
  • internal/core/adtadd missing dereference@mpvle22ea96
  • internal/tdtestsupport cuetest.Run@mpvl2402ef3
  • internal/cisimplify login to Central Registry@myitcvf4a2424
  • internal/core/adtremove diff/todo for fixed issues@mpvl773741f
  • internal/core/adtadd indirection in some cases@mpvlc7a0369
  • internal/core/adtfix deduping of pattern constraints@mpvl76d6e68
  • internal/core/adtadd tests for Issue 3843@mpvlcf93185
  • internal/core/adtadd tests for Issue 3839@mpvla91e7bf
  • internal/core/adtcorrect direction of equivalence set@mpvl760b744
  • internal/core/adtrewrite Environments for disjuncts@mpvlcdfb056
  • internal/core/adtadd tests for Issue 3825@mpvla16bbf7
  • internal/core/adtremove "hole" logic and data structures@mpvl85fb117
  • internal/core/adtset isOuterStruct field@mpvld13d661
  • internal/core/adtsharpen criteria@mpvl5423873
  • internal/core/adtclean up "withinLet"@mpvl7c4b66d
  • internal/core/adtdrop overlayContext.generation@mvdandbed3d2
  • internal/core/adtdisable tests on evalv3 where they fail@mvdan5883337
  • internal/core/adtfinalize in lookup in more cases@mpvlcfbeb48
  • internal/core/adtadd tests for 3836 and 3838@mpvl470a02a
  • internal/core/adtsimplify representation of outer scope@mpvl86e62b2
  • internal/core/adtreset embedding scopes for subfields@mpvl2cd5ba6
  • internal/core/adtadd tests for issue 3837@mpvl413d39a
  • internal/mod/modloadadd ResolveAbsolutePackage@rogpeppe0d32d6e
  • internal/core/adtobey internal/core/cuedebug defaults in TestEval@mvdan1a40fd4
  • internal/mod/modpkgloadadd FindPackageLocations@rogpeppe32b845b
  • internal/filetypessupport richer versions in IsPackage@rogpeppe0105c3f
  • internal/cuedebugturn openinline off by default@mvdanb0b6049
  • internal/core/adtapply replacements from ancestors@mpvl112c279
  • internal/core/adtset nested groups@mpvl290590f
  • internal/core/adtcheck right Vertex for single-level close@mpvl81ef6bd
  • internal/core/adthoist newGroup logic@mpvlf7095a9
  • internal/core/adtadd tests for issue 3834@mpvlc437118
  • internal/core/adtadd test for issue 3833@mpvl93b548d
  • internal/core/adtensure shared nodes are evaluated as per request@mpvl5c06b58
  • internal/core/adtadd test for 3835@mpvl5aea31b
  • internal/core/adtstop closing after enclosingEmbed has been activated@mpvle311d45
  • internal/core/adtadd another test for issue 3826@mpvl25f9087
  • internal/core/adtfix cycle issue@mpvl3596477
  • internal/core/adtadd tests for issue 3827@mpvlb75a12c
  • internal/core/adteagerly evaluate let upon lookup@mpvl5414b41
  • internal/core/adtremove use of arcCC@mpvl8f2ae49
  • internal/core/adtconditional typo check@mpvld541cce
  • internal/core/adtdisable structure sharing for non-rooted values@mpvl3a76c5c
  • internal/core/adtfix issue with nested lets@mpvldb40a06
  • internal/core/adtadd tests for issue 3801@mpvl947d33f
  • internal/core/adtadd tests for 3832@mpvlc0356be
  • internal/core/adtmore thorough evaluation for scalar values@mpvl5f12a04
  • internal/core/adtadd tests for issue 3828@mpvl4c49cd4
  • internal/core/adtonly reset enclosingEmbed when used@mpvl1e803fa
  • internal/core/adtadd tests for issue 3826@mpvl61a8b03
  • internal/core/adtmove src check to typocheck@mpvl673d30f
  • internal/core/adtadd test for issue 3824@mpvlc479844
  • internal/core/adtadd test for issue 3819@mpvl43ed667
  • internal/core/adtcarry over more task types over disjunction boundaries@mpvle56d550
  • internal/core/adtadd tests for 3770@mpvl62a5dd0
  • internal/core/adtremove some unnecessary code@mpvl4172469
  • internal/core/adthandle nested pending arcs@mpvl93e7321
  • internal/core/adtadd tests for 3729@mpvl4510dcb
  • internal/core/adtdo not finalize before arcs are processed@mpvlcc75560
  • internal/core/adtadd test case for order of resolution@mpvl2cd2912
  • internal/core/adtadd tests for 3780@mpvl4a800c8
  • internal/core/adtadd test for evalv3 panic@mpvl0db9094
  • internal/core/adtimplementation of flat dynamic closedness@mpvla1cfb1c
  • internal/encoding/yamlattach a filename position to an empty file "null"@mvdan1ac74ac
  • internal/core/adtset label of current node in Unify@mpvl9e333c6
  • internal/core/adtarguments are not closed in definitions@mpvl8bae48c
  • internal/core/adtadd tests cases for new closedness@mpvlc263e98
  • internal/core/adtadd tests for closing of arguments to validators@mpvlbc4f30d
  • internal/core/adtadd tests for issue 3763@mpvl847f46f
  • internal/core/adtadd tests for issue 3784@mpvl61cb9a2
  • internal/core/adtfix update scalar@mpvl28fef96
  • internal/core/adtadd test for issue 3633@mpvl941f898
  • internal/cisimplify and improve clearing of all cache entries@mvdan2fe368e
  • internal/mod/modimportsexclude hidden CUE files@rogpeppe8f2c89c
  • internal/ciupdate Go and goreleaser@mvdanbebbaa9
  • internal/cuetxtarAppend \n to generated txtar file content@cuematthew5d2da07
  • internal/_e2eremove unused CUE_REGISTRY_TOKEN env var@mvdan239f3d3
  • internal/core/adtfix counter issue@mpvla0c6dfe
  • internal/core/adtfix edge case in structural cycles with structure sharing@mpvl966a504
  • internal/core/adtfix structural cycle stack overflow@mpvla66eaf3
  • internal/core/adtremove Inline check@mpvl7bb676e
  • internal/core/adtmake inline expressions addressable@mpvl35ec59b
  • internal/core/adtdo not hasNonCycle in one case@mpvl52c02d0
  • internal/core/adtrefactor unifyNode@mpvle55c7a8
  • internal/core/adtadd tests for issue 3634@mpvl8ed768a
  • internal/encodingdon't interpret files as UTF8 with the binary encoding@nichtsundniemand0b36c4e
  • internal/core/adtpropagate default marker in single nested value@mpvl26a698f
  • internal/core/adtadd tests for issue 3779@mpvl8b80c3d
  • internal/core/adtfix FromDef@mpvldf327a6
  • internal/core/adtshorten closeContext graph depth@mpvlb17ea50
  • internal/vcsuse os.CopyFS from Go 1.23@mvdan873afd5
  • internal/core/adtremove unnecessary clearing of CloseInfo@mpvl3ed6d8d
  • internal/core/adthoist feature checking logic@mpvlae5a017
  • internal/core/adtdo not add arc dependencies for some nodes@mpvl98a3f93
  • internal/core/adtprepare for shortening root@mpvl58b3e7d
  • internal/core/adtadd test for closeContext graph shortening@mpvl0d33c2e
  • internal/core/adtsimplify ellipsis logic@mpvl694d295
  • internal/core/adtfix bug when merging closing struct with ellipsis@mpvl7822519
  • internal/core/adtadd test for issue 3778@mpvldf049c8
  • internal/core/adtbring semantics of top in line with v2@mpvl9601805
  • internal/core/adtfix yield unwinding issue for validators@mpvl34ab133
  • internal/core/adtadd tests for 3762@mpvl71edb90
  • internal/core/adtfix consistency issue for disjunctions@mpvlbb1be01
  • internal/core/adtadd tests for 3124@mpvl53fbe1e
  • internal/core/adtremove diff/todo/p1@mpvla1be113
  • internal/core/adtimprove reference cycle behavior@mpvl67886c6
  • internal/core/adtexplicitly detect cycle error@mpvl4350436
  • internal/core/adtput blocking queue on stack@mpvl313b62f
  • internal/core/adtadd tests for 3669 and 3737@mpvl18a0661
  • internal/core/adtdisable nodeContext.free@mpvl93d4e38
  • internal/core/adtprune recursive processing@mpvld8d19aa
  • internal/core/adtremove noop counter@mpvl3390dea
  • internal/core/adtlogging improvements@mpvl7b03078
  • internal/core/adtpass and use OpContext to functions using Schema@mpvlf1d39f0
  • internal/encoding/yamluse adt.Unify instead of Value.Unify@mpvlc9c8cb4
  • internal/core/adtavoid crash@mpvl11be031
  • internal/core/adtmove cycle state saving logic to Expr@mpvl3e021be
  • internal/valuesupport more types and rename ConvertToContext@mpvl96d9f6f
  • internal/core/adtadd Expr method on CallContext@mpvlee11854
  • internal/core/adtrecursively resolve pending arcs before lookup@mpvl8d01019
  • internal/core/adtadd test for issue 3708@mpvl7bfa238
  • internal/core/adtremove GroupUnify mechanism@mpvlab1e2d9
  • internal/core/adtdo not carry forward FromEmbed@mpvl455b96b
  • internal/core/adtdo not carry forward FromDef flag@mpvl3d57eed
  • internal/core/adtuse adt.Unify in cue package@mpvldd9e48f
  • internal/envflagsmall follow-ups to int and string support@mvdane6fec6b
  • internal/core/adtfix handling of top@mpvl433e3c3
  • internal/envflagsupport int and string flags@mvdan0e42b0b
  • internal/envflagskip over empty comma-separated elements@mvdan62ea127
  • internal/core/adtpass CallContext to builtin functions@mpvl5991735
  • internal/core/adtfirst step in using CallContext@mpvl5886c49
  • internal/core/adtfix hang on finalization@mpvld4d20b6
  • internal/core/adtprevent recursion in calls@mpvl16e3250
  • internal/core/adtdo not count validators as new data@mpvl5b4a02e
  • internal/core/adtfix some cycle issues related to validators@mpvl36174e5
  • internal/core/adtset the parent in UnifyValidator@mpvl0eb0235
  • internal/core/adthoist unifyValidator@mpvl7fd7f6d
  • internal/core/adtavoid cycle in debug output@mpvlbd087f6
  • internal/core/adtadd tests for 3649@mpvlc63ed21
  • internal/core/adtadd more error context in matchN@mpvl950a30f
  • internal/cmd/cue-astadd support for ref and file-only@rogpeppe809299a
  • internal/cueversionbump LanguageVersion for v0.13@mvdan8a94279

mod8

  • mod/moduledeprecate ParseImportPath@rogpeppe440b32c
  • mod/modcacheimplement FetchFromCache@rogpeppe9bb88b9
  • mod/moduleadd Version.Compare@mvdan931fecb
  • mod/modregistrytestmove from internal/registrytest@mvdanb14cfde
  • mod/modregistryadd Mirror@rogpeppe5d7cdbb
  • mod/modfileadd ModuleForImportPath@rogpeppeb684a52
  • mod/modfilemake it an error to have an empty module path@rogpeppec269767
  • mod/moduleadd explicit test for package path with full version@rogpeppe24cf1f8

pkg11

  • pkg/encoding/jsonfix validator@mpvl17caa72
  • pkg/encoding/jsonadd tests for issue 3932@mpvl5d863b6
  • pkgmake $id in tasks a reference to a hidden field@mvdan1c27bdb
  • pkg/listadd a regression test for issue 3416@mvdanb0a5318
  • pkg/listadd regression test for issue 2594@mvdanf93b6b9
  • pkg/tool/httpallow configuration of following redirects@myitcvacc06c5
  • pkg/uuidremove ToString@mvdanf836184
  • pkg/internal/builtintestremove "and X more errors" stripping for evalv3@mvdan32d0400
  • pkguse adt.Unify instead of Value.Unify@mpvlb71b8c0
  • pkg/encoding/jsonexpand implementation of Validate in place@mpvl87db94f
  • pkg/encoding/yamlhoist validate functionality@mpvldc3e807

tools3

  • tools/flowmove CUE_DEBUG_TOOLS_FLOW=1 to CUE_DEBUG=toolsflow=1@mvdan38b8955
  • tools/trimimplement trim for evalv3@cuematthewe3d44f0
  • tools/trimprepare for trimv3@cuematthew13fdb81

Other16

  • Revert "internal/core/adt: carry over enclosing scope"@mvdana6daeb9
  • interpreter/embedallow glob to match explicit dot files@rogpeppe6741c90
  • update golang.org/x/... dependencies@mvdan433ac2c
  • update pelletier/go-toml to drop testify@mvdan9b5b10f
  • update golang.org/x dependencies@mvdanc565c1d
  • enable CUE_EXPERIMENT=evalv3 by default@mvdan1eccc46
  • Revert "core/adt: Add ellipsis in struct to patterns"@cuematthew04fa872
  • update golang.org/x dependencies@mvdanb6618cc
  • update various dependencies unlikely to cause breakage@mvdan66f9e79
  • cue.moduse exp3 curated modules@myitcvfca4a5f
  • Revert "encoding/jsonschema: pass comments to DefineSchema"@mvdanb6f250e
  • require Go 1.23 or later, test and release with Go 1.24@mvdan1a8c16d
  • update emicklei/proto and protocolbuffers/txtpbfmt@mvdan2781759
  • ast/astutilmake Resolve aware of version suffixes@rogpeppe6a125a9
  • cue.modupgrade to latest GitHub actions curated module@myitcv802d7f4
  • ast/astutiladd test for resolving imports with major version suffix@rogpeppe5ab4551

Downloads

Every file this release published on GitHub, with its SHA-256. Most people install CUE as Installing CUE describes, which also shows how to check a download.

Archives

PlatformFile and SHA-256
macOS, Intelcue_v0.13.0_darwin_amd64.tar.gza31d34e22a9c3082fbfaaa9a9b8ef92085b4cbd95090cc67efc2e4fb501e2030
macOS, Apple siliconcue_v0.13.0_darwin_arm64.tar.gzd70bcd278b8b20c78d550fa6a59da88b5fa65688ff3e8fc32a5aeec39aa4868a
Linux, x86-64cue_v0.13.0_linux_amd64.tar.gz59ba96137da07cd2cdd2e17ec33af81f850126f022f25dd96516f0b42071b6a9
Linux, Arm64cue_v0.13.0_linux_arm64.tar.gz59dcf4af25bf872decb44e2a706d75f822b32bbd06e83252cd181a177957ad00
Windows, x86-64cue_v0.13.0_windows_amd64.zipa17423528e176f984ae4778fe5c757955783985913a8e18d6ccc663eaf91c279
Windows, Arm64cue_v0.13.0_windows_arm64.zipfef57df2265c9ce92426ea698c9bf38e053f6b579a5f7cf1b8963926252aac00

SHA-256 checksums for all of these: checksums.txt

Install CUE