v0.11.0

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

This release includes the new matchN and matchIf validators, many fixes to evalv3 including a new cycle algorithm, a new experimental toposort field ordering, and many improvements to JSON Schema support.

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

Evaluator

A number of crashes, regressions, and other bugs have been fixed in the new evaluator, which can be enabled by CUE_EXPERIMENT=evalv3. For more details, see our latest performance update. Thanks to all who have tested the new evaluator and reported bugs!

CL 1201897 lands a new cycle algorithm in CUE_EXPERIMENT=evalv3, which is much simpler than the old algorithm and is needed to unlock further bug fixes and performance improvements.

CL 1198922 adds a new matchN built-in validator, necessary implement a host of validators such as the JSON Schema equivalents of not, oneOf, and anyOf. See the new how-to guide for it.

CL 1200942 adds a new matchIf builtin, similar to matchN, which makes it significantly easier to implement the if, then, and else keywords in JSON Schema.

CL 1202685 tweaks cuecontext.New to follow CUE_EVALUATOR=evalv3 when the cuecontext.EvaluatorVersion option is not used.

CLs 1202903, 1203264, 1203267, and 1203528 fix a number of bugs where CUE_EXPERIMENT=embed was not working as described in the proposed design.

CL 1199898 relaxes the evaluator to allow referencing required fields via selectors, rather than failing like we do with optional fields. This should help with the transition of CUE schemas from regular to required fields, such as those decoded from JSON Schema.

⚠️ CL 1200221 removes support for arithmetic operators on lists, and CL 1200221 teaches cue fix to rewrite most of them. We have added a doc page with more details and examples.

CL 1202746 teaches CUE_STATS_FILE to start reporting the evaluator version being used, which is useful information when looking at performance stats.

Field ordering

A new experiment is introduced via CUE_EXPERIMENT=toposort which enables a more principled ordering of CUE fields as produced by cue export and cue eval. The intention is to ensure the old and new evaluators order fields of structs in the same way, in order to build confidence and ease the transition to the new evaluator. There are still a few wrinkles to work out, and the question of iteration order in comprehensions over structs remains to be tackled. An issue for gathering feedback is available.

Modules

⚠️ CL 1199541 wraps up the CUE modules experiment by dropping support for CUE_EXPERIMENT=modules=0, now that the new mode has been the default since CUE v0.9.0, and we are not aware of any remaining regressions.

CL 1201522 fixes a bug where imports did not work properly when using cue/load.Config.Package = "*".

Go API

⚠️ CL 1203193 adds a new experiment via CUE_EXPERIMENT=decodeint64 which causes cue.Value.Decode to default to int64 rather than int when decoding CUE integer values. This ensures consistent behavior with 32-bit architectures.

⚠️ CL 1203192 tweaks the signature of cue.Index so that it accepts int64 as well as int for consistency with 32-bit architectures.

CL 1202744 tweaks cuecontext.EvalVersion so that the zero value is not a valid evaluator version, as that could lead to unintentional behavior.

⚠️ CL 1202244 tweaks the cue.Value API to consider open lists as concrete, aligning with the spec.

⚠️ CLs 1201768, 1201933, 1201934, 1201936, and 120193 remove pieces of the encoding/openapi Go API which have been deprecated for some time and already have reasonable alternatives available.

⚠️ CL 1201962 removes fields from cue/build.Instance and cue/load.Config which have been deprecated and unused for some time.

⚠️ CL 1201963 removes APIs from encoding/json and encoding/yaml which have been deprecated for some time and already have reasonable alternatives available.

⚠️ CLs 1202285 and 1202286 remove the cue.Value.Subsumes and cue.Value.Split methods, which have been deprecated and hidden for years.

CL 1200507 deprecates astutil.Cursor.Import, which is now superseded by astutil.Sanitize.

Encodings

A significant amount of work has gone into improving JSON Schema support, fixing many bugs and producing better CUE output, as well as leveraging the new matchN and matchIf builtins. While this work is still in progress, we already expect an overall improvement compared to v0.10.0. This work will also form the basis for CUE modules for well-known services that will be published to the Central Registry.

The TOML support first released in v0.10.0 is further polished by decoding CUE nodes with positions as well as adding support for TOML dates and times.

⚠️ CL 1199541 wraps up the new YAML decoder experiment by dropping support for CUE_EXPERIMENT=yamlv3decoder=0, allowing the 8400 lines of code in internal/third_party/yaml to be removed.

CL 1200901 improves filetype tags, as described by cue help inputs, so that unknown tag=value pairs cause failures, and invalid pair combinations aren’t silently ignored.

CLs 1200899 and 1200924 split JSON Schema’s strictness option into StrictFeatures and StrictKeywords which allows erroring when unimplemented features are used, but not when unknown keywords are used. --strict is also superseded by jsonschema+strict:.

CL 1201111 teaches default filetype tags to be applied in the default auto interpretation mode as well.

CL 1201113 adds the StrictFeatures and StrictKeywords options to OpenAPI, mirroring the options added to JSON Schema.

CL 1201910 allows configuring how encoding/jsonschema maps URLs to values within a package.

CL 1201935 refactors encoding/openapi so that it can directly use the existing CUE value encoder for JSON, rather than a parallel encoder of CUE syntax trees to JSON which had to be maintained separately.

CLs 1201807, 1201808, 1201824, and 1201826 improve the performance of encoding CUE values to JSON, resulting in as much as a 10x improvement in wall time and memory usage for deeply nested CUE values.

Builtins

CL 1201474 adds a new encoding/toml package with Marshal and Unmarshal APIs, following the addition of TOML support in v0.10.0.

CL 1202104 adds the net.URL and net.AbsURL validators, needed by JSON Schema.

⚠️ CL 1201115 removes strconv.ParseComplex, which never worked in any past CUE release and does not seem like an useful API to have in its current form.

CL 1194425 tweaks the yaml.Validate and json.Validate functions to allow non-concrete CUE values as schema parameters.

CL 1199602 adds a list.MatchN function, surfacing the matchN built-in validator for use in the JSON Schema decoder.

⚠️ CL 1199881 tweaks uuid.Valid so that it is consistent with uuid.Parse in terms of what UUID formats are accepted.

cmd/cue

⚠️ CL 1203289 moves cuepls to cue lsp, enabling users to install one binary rather than two, and avoiding potential version discrepancies.

⚠️ CL 1199634 drops support for the deprecated short form of cue cmd; users of cue foo should now call cue cmd foo.

CL 1204223 adds a cue login --token flag to log into a CUE registry with a token which was generated via the web interface or API, for use in automated environments like CI.

CL 1200351 fixes a bug in cue fix where it would not operate on directories with multiple packages.

CL 1200498 fixes a bug in cue fix where added imports would end up with mangled names.

CL 1200554 teaches cue fix to work on standard input and output, like other sub-commands.

CL 1201709 fixes a minor regression introduced in CUE v0.9.0 where cue help cmd mycmd ./mypkg stopped showing a valid command’s help text.

All changes

375 changes since v0.10.0by area

all15

  • allenable new sorting algorithm@cuematthewedad6fc
  • allannotate priority of bugs marked by TODO_V3@mpvl90b5c9d
  • allresolve a few more staticcheck warnings@mvdan50ed297
  • allremove a few unused parameters spotted by unparam@mvdanffafd61
  • alllinkify more godoc references@mvdan445082e
  • allfix up more godocs to use links@mvdan0aeef9f
  • allremove support for list arithmetic@cuematthew46fb300
  • allrely on umask when creating files and directories@mvdan2da59f2
  • allremove mentions of cue-sh(/tools)@myitcv67443fb
  • alluse a few more godoc links@mvdana4ebf4d
  • allremove obsolete TODOs assigned to me@mvdaneeec3f5
  • allresolve a few more staticcheck warnings@mvdan2f19b1a
  • allremove last unnecessary uses of cue.Runtime@mvdan68f856f
  • allmake use of stringer in more places@mvdana20e523
  • allremove two deprecated APIs@mvdanea43f81

cmd34

  • cmd/cueactually support a registry argument in login@mvdan4eba0f7
  • cmd/cueadd cue login --token flag@mvdan09a02a6
  • cmd/cueclarify cue mod tidy --check help text@jpluscplusm82995bb
  • cmd/cueadd test for cue def panic with openapi@rogpeppee1d0ccd
  • cmd/cueplsremove@myitcvdd85ce4
  • cmd/cueadd hidden lsp command@myitcv9faab39
  • cmd/cue,READMErevamp introductory text@mvdanc20ee10
  • cmd/cueadd test case for issue 3250@rogpeppe0b6d0da
  • cmd/cue/cmdundo panic when multiple commands are run in one process@mvdan860906a
  • cmd/cue/cmdadd a Go test covering the exposed API@mvdan1f8fb57
  • cmd/cuetruncate expiry timestamps to seconds@mvdana3fb8e8
  • cmd/cuestore token expiry timestamps in UTC in logins.json@mvdan6b73188
  • cmd/cuetest storing access token expiry in login@mvdan25e0884
  • cmd/cueadd more sanity checks for produced logins.json files@mvdan791420a
  • cmd/cuefix cue help cmd mycmd ./mypkg@mvdan222b689
  • cmd/cuehide the --strict global flag@mvdan842fa25
  • cmd/cue/cmduse the new goproxytest.NewTestServer@mvdan687464e
  • cmd/cue/cmdadd test for cue mod get with non-existent module@rogpeppef1b72f5
  • cmd/cuehelp mod edit: fix copy/paste error@jpluscplusmbdd40af
  • cmd/cueadd test for issue 3446@rogpeppeb43d5b9
  • cmd/cueuse parser.PackageClauseOnly in 'get go'@mvdand34eb57
  • cmd/cuesupport different jsonschema strictness modes@rogpeppec35f470
  • cmd/cueadd test for filetype attributes@rogpeppe7ced6fd
  • cmd/cueremove mention of CUE_EXPERIMENT=modules from help@rogpeppeecbcf34
  • cmd/cuesupport cue fix - to fix CUE via stdin and stdout@mvdanc0fdf75
  • cmd/fixallow fix to load all packages in a directory@cuematthew5936450
  • cmd/cueremove obsolete TODO about empty module paths@mvdane48fb9d
  • cmd/cueadd mod registry example to help text@mvdan9f620c2
  • cmd/cueadd testscript to cover exporting CUE comments@mvdand2ce0e3
  • cmd/cuedrop support for the deprecated short form of cue cmd@mvdan4eb3d53
  • cmd/cuerefactor help texts and topics@mvdan7e589e3
  • cmd/cueskip the mod_registry testscript as it's flakey@mvdan54ef570
  • cmd/cue-ast-printallow reading stdin@rogpeppeb52cd92
  • cmd/cueprepare get go for GODEBUG=gotypesalias=1@mvdana9ce855

cue44

  • cuedereference value during lookup@mpvl09d70c4
  • cueKeep Vertex if returned from conversion of Go to CUE@cuematthewdbef7c5
  • cuepolish Go docs further@mvdanb3eed8b
  • cueteach old cue.Instance APIs to support @embed@mvdandeed7d5
  • cueimprove docs around AnyIndex and AnyString@mvdan73d4e25
  • cue/testdataadd regression test for a cycle bug fixed in evalv3@mvdanb96d6c1
  • cueadd experiment to default to int64 in Value.Decode for integers@mvdan00bd25b
  • cue/interpreter/embederror when embed is not in a module@rogpeppeedef548
  • cueadd test for embedded file not in a module@rogpeppe06d0c73
  • cuesupport Index calls with int64@mvdan8b2affe
  • cue/statsstart reporting which CUE evaluator version was used@mvdan956d746
  • cue/errorsadd package example@mvdan80f4f23
  • cueresolve a few staticcheck warnings@mvdan537f744
  • cue/interpretermove test helpers to the right file@mvdand9fda8c
  • cue/loadsimplify registry example@mvdan457a112
  • cue/loadfix @if attributes in command line-specified files@rogpeppe4642d77
  • cue/cuecontextcuecontext.New observes evalv3 experiment by default@mpvlbe8ed35
  • cueremove the hidden Value.Split method@mvdan0dd7f69
  • cueremove the hidden Value.Subsumes method@mvdan80ddde3
  • cueadvance deprecation of Iterator methods@mvdand170b1c
  • cueopen lists are still concrete@rogpeppe1eb6216
  • cuederefernce more values@mpvl1700400
  • cueavoid repeated work in Value.MarshalJSON with lists@mvdan8a6ed2c
  • cue/build,cue/loadremove deprecated fields@mvdan02a694e
  • cuereuse adt.OpContext in Value.structValOpts@mvdan91b12ec
  • cuereuse adt.OpContext in MarshalJSON recursion@mvdan9c3e156
  • cueclarify status of zero Path value@rogpeppe32b169a
  • cueonly use internaljson.Marshal where necessary@mvdanda2e501
  • cueuse append-like funcs inside Value.MarshalJSON@mvdanfed4998
  • cuerecursively marshal JSON values directly@mvdan3f1e72b
  • cueuse unwrapJSONError in the entrypoint API only@mvdan01b0064
  • cuemarshal a Value as JSON null directly@mvdan97f622b
  • cueadd large Value.MarshalJSON benchmark@mvdanb37ab01
  • cueremove unneeded fields from goField@mvdan1b45c99
  • cue/loadmake imports work in "all package" mode@rogpeppe43a1e12
  • cue/loadadd test for imports in "all package" mode@rogpeppedeae2a0
  • cue/loaddeduplicate underscore import of ./pkg@mvdan6ba366c
  • cueremove testdata/gen.go@mvdan93c1124
  • cueadd a regression test for a structural cycle bug fixed in evalv3@mvdane29900a
  • cueremove support for legacy protobuf attributes@mvdan985855f
  • cueadd a regression test for a default elimination bug fixed in evalv3@mvdandcfc2d4
  • cueadd regression test for a cycle error position bug fixed in evalv3@mvdan8908d06
  • cue/literaluse strings.Repeat directly@mvdan0389e8a
  • cue/benchmarksmove benchmark code out of testdata@cuematthewd52859e

encoding82

  • encoding/jsonschemaadd a small reproduction for CL 1204137.@haoqixud96b60d
  • encoding/jsonschemasimplify closedness@haoqixu9b22a3c
  • encoding/jsonschemaexplicitly close or open structs@haoqixue3e1c9f
  • encoding/jsonschemaallow any format in OpenAPI mode@rogpeppecbde66b
  • encoding/jsonschemasupport int32 and int64 formats in OpenAPI@rogpeppe62a9beb
  • encoding/jsonschemaimplement "date" format@rogpeppe2dab7e3
  • encoding/jsonschemacheck regexp syntax up front@rogpeppe1476fc7
  • encoding/jsonschemaadd test for field with regexp metacharacters@rogpeppe1300a2d
  • encoding/jsonschemaadd test case for empty field@rogpeppe8850ea7
  • encoding/jsonschemacheck regressions on a per-version basis@rogpeppe47c1559
  • encoding/jsonschemabetter treatment of arrays@rogpeppefc9a5a5
  • encoding/jsonschemause allowedTypes in if/then/else constraints@rogpeppe16986b2
  • encoding/jsonschemaadd if/then/else test@rogpeppe72023e6
  • encoding/jsonschemadisallow $schema at non-root for earlier versions@rogpeppe2c6ed18
  • encoding/jsonschemacorrect treatment of $ref@rogpeppe4543183
  • encoding/jsonschemasimplify matchN expressions with only one possibility@rogpeppe1508ef8
  • encoding/jsonschemause latest schema version by default@rogpeppe1a4b0d0
  • encoding/jsonschemaremove unused state fields@rogpeppeded6fc3
  • encoding/jsonschemause CUE_UPDATE=force@rogpeppead21c10
  • encoding/jsonschemause uint not number for min/maxLength@rogpeppecff7484
  • encoding/jsonschemaalways write external_teststats.txt@rogpeppe66344b2
  • encoding/openapiadd test cases for non-empty lists@rogpeppe655236e
  • encoding/protobufupdate txtpbfmt dependency@TvdW4330d60
  • encoding/jsonschemaimplement regex format@rogpeppe95fd2e9
  • encoding/jsonschemaimplement date-time format@rogpeppec54ac60
  • encoding/jsonschemaimplement URL-related formats@rogpeppe44cdfe7
  • encoding/jsonschemafactor format checkers into their own file@rogpeppe527594a
  • encoding/json,encoding/yamlremove long deprecated cue.Instance APIs@mvdanf0c77ed
  • encoding/openapiunexport OrderedMap@mvdan9f2c2fe
  • encoding/openapiremove OrderedMap.Set@mvdan3fb46c3
  • encoding/openapimarshal JSON via cue.Value.MarshalJSON@mvdane7d9d47
  • encoding/openapiremove most public API surfacing OrderedMap@mvdan90c9c95
  • encoding/openapiremove Config.All@mvdanb24335b
  • encoding/jsonschemaallow mapping URLs to values within a package@rogpeppe5cc6175
  • encoding/jsonschemaclearer internals@rogpeppe19eea7f
  • encoding/openapidrop use of cue.Runtime from tests@mvdanc8b32e9
  • encoding/openapidrop support for Config.ReferenceFunc@mvdane339345
  • encoding/jsonschemaignore empty fragment when comparing schema versions@rogpeppe2221b7f
  • encoding/jsonschemaadd tests for empty fragments in metaschema URIs@rogpeppe1ea9b25
  • encoding/jsonschemado not let cue/load walk up to the git root@mvdancad9ae4
  • encoding/jsonschemaallow impossible subschemas@rogpeppee33439b
  • encoding/gocodeuse many fewer go/packages.LoadMode bits@mvdan99160fd
  • encoding/gocodesimplify testdata/gen.go@mvdan80a862c
  • encoding/jsonschemaremove space in date-time format name@rogpeppef7462ee
  • encoding/jsonschemaadd test for date-time format@rogpeppee90555f
  • encoding/jsonschemadetect Perl regexps@rogpeppe67f9dfa
  • encoding/jsonschemainitial support for format keyword@rogpeppe9000dc3
  • encoding/jsonschemanon-string regular expressions should error@rogpeppef811ee7
  • encoding/jsonschemashow optional test stats separately@rogpeppea227239
  • encoding/openapiimplement strict mode@rogpeppe6f4cd7b
  • encoding/jsonschemaalways allow x- keywords@rogpeppe239b405
  • encoding/jsonschemause StrictFeatures in external tests@rogpeppebef55cb
  • encoding/tomlsupport decoding timestamps@mvdan2f82fb4
  • encoding/jsonschemaimplement if/then/else keywords@rogpeppe7648cbd
  • encoding/jsonschemafetch the test suite GitHub repo via a zip@mvdan7a3260c
  • encoding/jsonschemaallow whole floats for unsigned numbers@rogpeppe3a11f99
  • encoding/jsonschemaimplement minProperties@rogpeppe8507a5a
  • encoding/jsonschemasplit Strict mode@rogpeppe3831017
  • encoding/jsonsschemause openAPI not vset(VersionOpenAPI)@rogpeppe4ca4c84
  • encoding/jsonschemaadd OpenAPI 3.0 version support@rogpepped7852d7
  • encoding/jsonschemaadd keyword TODOs@rogpeppe33fe828
  • encoding/jsonschemaimplement "not"@rogpeppee7175ba
  • encoding/jsonschemacommit external test stats@rogpepped20e479
  • encoding/jsonschemaencode oneOf etc using matchN@rogpeppebfce150
  • encoding/jsonschemaverify result is concrete in external tests@rogpeppe2e19c1f
  • encoding/jsonschemarun external tests in matrix@rogpeppee2685dd
  • encoding/jsonschemaprepare for matrix test runs@rogpeppe9959a3e
  • encoding/jsonschemaadd location information to test output@rogpeppe1a2e26e
  • encoding/jsonschemaavoid test regressions@rogpeppe9956f16
  • encoding/jsonschemaadd external test suite@rogpeppe484dd8e
  • encoding/jsonschemaexport Version@rogpeppede41586
  • encoding/jsonschemamove txtar tests into subdirectory@rogpeppedf2c869
  • encoding/tomldecode syntax tree nodes with positions@mvdanb123f2b
  • encoding/tomladd debugprint txtar tests for the decoder@mvdanedc117e
  • encoding/jsonschemasupport minContains and maxContains keywords@haoqixu4093ccf
  • encoding/jsonschemaadd docs about test file conventions@rogpeppe5409884
  • encoding/jsonschemadecode contains as list.MatchN@haoqixu3138301
  • encoding/jsonschemasupport instance tests@rogpeppebbe2f81
  • encoding/jsonschemamore consistent test data@rogpeppecb1dc6b
  • encoding/jsonschemaavoid unnecessary alias to root@rogpeppeae3987d
  • encoding/jsonschemasupport boolean-valued schemas@rogpeppe616f91a
  • encoding/jsonschemabetter version support@rogpeppe67f508f

internal157

  • internal/cibump pinned Go to 1.23.3@mvdancb9ba43
  • internalswitch CI and the e2e tests to cue login --token@mvdan7edac8b
  • internal/core/adtfix handling of ellipsis in evalv3@mpvlc97d709
  • internal/cue/adtadd tests for issue 3572@mpvla2490a2
  • internal/core/adtshorter validator error message@rogpeppeaf459f1
  • internal/coreexpose topological sorting API@cuematthew8ff9db9
  • internal/coreadd explicit txtar test@cuematthewb780c0a
  • internal/coreadd support for toposort to evalv2@cuematthewc374e6c
  • internal/coreextract sorted features from Vertex@cuematthew65a15e2
  • internal/coresort graph topologically@cuematthewc6feea9
  • internal/corecalculate elementary cycles@cuematthew9ddb0ec
  • internal/corebuild graphs of Features@cuematthew5855903
  • internal/core/runtimeexternal attributes can use any concrete field name@rogpeppe0f6c51b
  • internal/cirun most tests on 32 bits too@mvdan0516cc6
  • internal/core/adtcatch if OpContext.Version is unset@mvdan52c4418
  • internalseparate the zero EvaluatorVersion value from EvalV2@mvdanf17356d
  • internal/core/adtimpove arcType update logic@mpvld28f285
  • internal/core/adtadd tests for issue 3533@mpvl7e82983
  • internal/core/adtallow errors in inline structs@mpvl62b21c8
  • internal/core/adtadd test case for selection problem@mpvl9f46e1a
  • internal/core/adtreimplement close for v3@mpvl02d5751
  • internal/core/adtrename Closed to RecursivelyClosed@mpvla6d8d34
  • internal/core/adtfix logic error leading to panic@mpvle58994d
  • internal/core/adtremove p1 error@mpvl12ac20b
  • internal/core/adtremove further evaluatingArcs logic@mpvl8f42ad0
  • internal/core/adtallow pending arcs to be updated@mpvl9b07aba
  • internal/core/adtevaluate nodes that are otherwise not evaluated@mpvl5bf9ef4
  • internal/core/adtget rid of use of evaluatingArcs status@mpvl769017e
  • internal/core/adtfix some references under projections@mpvl6418113
  • internal/core/depfix differences@mpvlcc04ebe
  • internal/core/adtdisable possible assertion@mpvl2fc301a
  • internal/core/adtfix disjunction finalization@mpvl62865d3
  • internal/core/adtfix bug in notification@mpvl1a30763
  • internal/core/adtadd indirection for closeContext@mpvl0fa94ff
  • internal/core/adtsupport bulk adding of conjuncts@mpvlb990eb7
  • internal/core/adtmore abstractions over Conjuncts@mpvld21405c
  • internal/core/adtbetter error positions@mpvl6e0525b
  • internal/core/adtintroduce HasConjunct@mpvl2bce38d
  • internal/core/adtfix hang on cyclic pattern constraints@mpvlb010875
  • internal/filetypesdefault jsonschema strictFeatures to false@rogpeppe3c40786
  • internal/core/adtless special handling for non-rooted@mpvlf5f947e
  • internal/core/adtfix structural cycle error in list.Sum@mpvl48b5a22
  • internal/core/adtadd RawFunc@mpvlcf2f66e
  • internal/core/adtalways allow definition in closed struct@mpvl4e8e027
  • internal/core/adtadd tests for issue 3491@mpvl9ba55dc
  • internal/core/adtfix error type of MinFields for v3@mpvl44cceca
  • internal/core/adtpass CloseInfo to validators@mpvl369bc9b
  • internal/core/depdistinghish inline structs@mpvla50fa63
  • internal/core/adtadapt handling of inline structs@mpvl99407a4
  • internal/core/adtmore usage of Status@mpvld581f90
  • internal/core/depdereference node in dynamic mode@mpvl8399737
  • internal/core/adtclosedness fix related to comprehension@mpvlcd2107a
  • internal/core/adthoist allows from injectClosed@mpvl6916b5b
  • internal/core/adtfix closedness for failing if@mpvl89acced
  • internal/core/debugdereference non-rooted@mpvl4ae206d
  • internal/core/adtuse depth counters for ancestor tracking@mpvlc558da0
  • internal/core/adtfix cycle in patterns@mpvl16df890
  • internal/core/adtadd tests for ring-shaped cycles@mpvl695d6d3
  • internal/core/adtderive status from shared value@mpvlf8c5520
  • internal/core/adtdistinguish point of cyclicity@mpvlaf68c6c
  • internal/core/adtmore shallow evaluation of lists@mpvl2d4a895
  • internal/core/adtfix simplifcation of validators@mpvl86fdd97
  • internal/core/adtoptimize slice@mpvlb51914f
  • internal/core/adtadd some defensive code@mpvl4eaa7b2
  • internal/core/adtadd tests for more structure sharing@mpvl29b466e
  • internal/core/exportadd some testing infrastructure@mpvl6e0f579
  • internal/core/exportdocument bug in export@mpvl2eedbd1
  • internal/cuetdtestadd DevOnlyMatrix@mpvlb44f5e0
  • internal/core/exportremove exclusions of fixed bugs@mpvla37223b
  • internal/diffdrop last uses of cue.Value.Struct@mvdan84646f6
  • internal/diffdrop cue.Value.Struct in diffStruct@mvdan74c79f6
  • internal/core/adtset more precise types for validators@mpvl37937f6
  • internal/core/adtadd tests for Issue 3474@mpvl575f1ed
  • internal/diffclean up code a bit ahead of dropping deprecated APIs@mvdan8009b56
  • internal/cibump Go and goreleaser for alpha.3@mvdan5ffd573
  • internal/cicue fmt@rogpeppebdab4b2
  • internal/cipass access token to releaser step@rogpeppe20d6573
  • internal/cirename and clarify the e2e logins.json secret@mvdan992127e
  • internal/cueconfignote the difference between token expiry fields@mvdan186763c
  • internal/ciuse githubactions schema from registry@rogpeppe093a2c6
  • internal/core/adtnew cycle algorithm@mpvl92330b4
  • internal/core/debugreport more structure sharing@mpvla0138fb
  • internal/core/debugadd cycle detector@mpvl06141e4
  • internal/core/adtbail on empty node@mpvl4140094
  • internal/core/adtsplit updateCyclicStatus based on version@mpvlbf54346
  • internal/core/exportswap sort.Slice APIs for slices.Sort@mvdan0078d26
  • internal/core/convertdo not roundtrip MarshalText to JSON@mvdan7ba104c
  • internal/tdtestuse sync.OnceValues@mvdan774e40e
  • internal/mod/modloadbetter error message for not-found module@rogpeppe082fd40
  • internal/vcsavoid using os.Environ in a test helper@mvdan7ec0e5b
  • internal/cigo generate after go test@mvdan818f8bf
  • internal/ciensure that GitHub and Gerrit agree on the list of tags@mvdanffdf382
  • internal/encodingset bool tags when interpretation is Auto@rogpeppeaf57269
  • internal/ciadd workflowDispatch step template@jpluscplusmdcfca1b
  • internal/citest cuelang.org when CUE tip updates@jpluscplusma558a4b
  • internalphase out DecorateError in favor of errors.Wrap@mvdanef83860
  • internalremove MaxDepth@mvdan14e8875
  • internalsimplify GetPackageInfo into an *ast.Package getter@mvdanc9df291
  • internalphase out PkgInfo.IsAnonymous@mvdan44b4ab5
  • internal/cuetxtarerror on txtar files with duplicate file entries@mvdan74a06f8
  • internal/filetypesdefault strictFeatures to true@rogpeppe15fbf7f
  • internal/core/compileadd matchIf builtin@rogpeppe276d940
  • internal/filetypesbetter checking of filetype-dependent tags@rogpeppe6264e29
  • internal/filetypessimplify@rogpeppefcf3306
  • internal/encodingremove Decoder.ID method@rogpeppecdf67fa
  • internal/astinternaluse reflect.Value.IsNil consistently@mvdan6341362
  • internal/filetypesavoid struct-valued defaults@rogpeppef4f38bf
  • internal/cmd/cue-astadd "join" command@mvdan62b3cfa
  • internal/cmdrepurpose cue-ast-print into subcommands@mvdanae5dfea
  • internal/cueexperimentmark YAMLV3Decoder as deprecated too@mvdanf514f64
  • internal/core/adtlimit error propagation to cross package@mpvlfbcadd9
  • internal/core/adtuse setBaseValue to set Vertex.BaseValue@mpvlabb6364
  • internal/filetypesrename top level "tags" field@rogpeppe3413f77
  • internal/core/adtadd tests for validator dedupping@mpvl2662ebe
  • internal/core/validatefix validation of disjunctions for evalv3@mpvl2fb6f45
  • internal/ciswitch to '.yaml' workflow file extension@myitcv2d329b5
  • internal/core/adtensure pattern is evaluated@mpvle97c624
  • internal/core/adtdo not copy frozen flags@mpvlaeb3bf3
  • internal/core/adtdisable non-critical panic@mpvl8ebddc1
  • internal/ciset GOTOOLCHAIN=local as part of installGo@myitcvbb24c7c
  • internal/astinternalmore compact representation of relative positions@rogpeppe6f4983e
  • internal/astinternalsimpler internal API@rogpeppe32865bc
  • internal/cueexperimentprevent disabling modules experiment@rogpeppea51a98f
  • internal/envflagsupport deprecated flags@rogpeppe05b9b02
  • internal/core/compilevarious fixes to matchN@mpvle505402
  • internal/core/adtadd tests for matchN@mpvl30a8854
  • internal/core/adtfix validators in embeddings@mpvl3deadce
  • internal/core/adtadd tests to prepare for bug fix@mpvl0ffb5d2
  • internal/cuetdtestmove testing.T out of M@rogpeppe3ae664e
  • internal/astinternalprint relative positions as well@mvdan6e5ec5a
  • internal/astinternalrevise API with more options@mvdanae3ad16
  • internal/core/adtallow referencing required fields@mpvl710b438
  • internal/core/adtadd tests for referencing required fields@mpvla525801
  • internal/astinternaldon't panic on nil pointers in DebugPrint@mvdan221cfaf
  • internal/astinternaladd DebugPrint cuetxtar tests@mvdan094b9e9
  • internal/astinternaladd DebugPrint from cue-ast-print@mvdan937093c
  • internal/core/adtfix bug that ignores field type@mpvla3f1a0f
  • internal/core/adtrequire nodes for indexing@mpvl196dc98
  • internal/core/adtexpose v3 optional field bug@mpvl4967eb4
  • internal/core/adtswitch on DebugDeps for TestEvalAlpha@mpvl9aabfcb
  • internaladapt to testing.TB.Context in Go 1.24@mvdanb5ac87c
  • internal/encodinguse encoding/yaml rather than pkg/encoding/yaml@mvdan186b6e2
  • internal/pkgmake Schema an alias for cue.Value@mvdanc8f5a21
  • internal/core/adtallow any CUE value in json/yaml.Validate@NoamTD1b01c83
  • internal/cuetxtarsimplify ordering@mpvl2a84338
  • internal/cuetxtarfix ordering bug@mpvleb3b539
  • internal/core/adtfix COMP counter issue@mpvl43d722b
  • internal/core/adtdecrement counter for defunct tasks@mpvl6335c46
  • internal/core/adtdo not finalize let@mpvl3965579
  • internal/cuetxtarensure ordering of files in txtar is consistent@mpvl358b945
  • internal/core/adtallow non-concrete values in builtins@mpvl8326e67
  • internal/core/compileadd matchN builtin validator@mpvl1c2b105
  • internal/core/adtfix disjunctions in data mode@mpvl769f37a
  • internal/ciupdate goreleaser version@mvdan98a17d4
  • internal/third_party/yamldelete the old YAML decoder@mvdan4dbaf28
  • internal/cueversionbump for v0.11@mvdan0b27120
  • internal/core/exportupdate via CUE_UPDATE=1 go test@mvdan938c8de

lsp5

  • lsponly support a single WorkspaceFolder for now@myitcvd823cf0
  • lspallow integration tests to expect an Initialize error@myitcv2583c58
  • lspfix base test to be based on CUE module@myitcvc5d3d64
  • lspfix rooting of CUE modules@myitcv9ff8990
  • lspadd initial README@myitcv40be904

pkg20

  • pkg/pathfix path issue@mpvle9c005d
  • pkg/netadd URL and AbsURL@rogpeppebe87d05
  • pkg/tool/httpprevent TestTLS from being chatty@mvdan5ffaf1a
  • pkg/encoding/tomladd new builtin package for encoding/toml@mvdan2b56c50
  • pkgsort input packages in a consistent order when generating@mvdan9583e29
  • pkggenerate register.go automatically as well@mvdan3ade70e
  • pkgdrop packages.txt from gen.go@mvdan1e19a97
  • pkgdrop cue/build and pkg/internal from gen.go@mvdan11e06e1
  • pkguse more go/types logic in code generation@mvdan2fceb5c
  • pkg/strconvremove ParseComplex@mvdan6280b9e
  • pkgdo not treat unknown Go types as adt.TopKind@mvdan7a26789
  • pkgreplace some string handling with go/types logic@mvdan143be90
  • pkg/tool/fileuse 0o777 as the default Mkdir permissions@mvdana7ccc0a
  • pkg/tool/execRun does not exececute shell commands@mvdan1e65cee
  • pkg/listre-test with CUE_UPDATE=1@mvdan7e29e3d
  • pkg/uuiduse google/uuid.Validate in Valid@mvdane525f29
  • pkg/uuidadd more valid and invalid test cases@mvdana19cab1
  • pkg/listadd MatchN validator function@haoqixu48431d8
  • pkg/encoding/yamladd more validation tests@mpvlf889101
  • pkgadd some tests that pick defaults in builtins@mpvl0a41a20

tools4

  • tools/fixmerge calls to list.Concat@cuematthew6167d7d
  • tools/fixavoid name-mangled imports@cuematthew1440b9e
  • tools/fixcorrect the ast walker so sub-expressions get fixed@cuematthewd0617b5
  • tools/fixrewrite list addition and multiplication@cuematthew3d36560

Other14

  • Revert "encoding/jsonschema: simplify closedness"@rogpeppe5bdd8e3
  • openapido not add nil CommentGroup@rogpeppe0d2173f
  • update to use latest published githubactions schema@rogpeppe93c1d7e
  • encoding/jsonschema: better constraints for additionalProperties and patternProperties@rogpeppe85f5ca8
  • update golang.org/x deps for v0.11.0-alpha.5@mvdane83de3e
  • interpreter/embeddo not require CUE_EXPERIMENT=embed@rogpeppeea70704
  • update dependencies before alpha.3@mvdan402aeda
  • update golang.org/x dependencies@mvdan7c32807
  • mod/modconfiguse oauth2.Token directly for the wire format@mvdan7352390
  • docfix trybot badge in README@myitcv641d9b7
  • fix vet fmt mismatch errors@rogpeppe3988f4f
  • ast/astutildeprecate Cursor.Import@cuematthew691ee74
  • core/adtidentify duplicate errors when pairwise-combining@cuematthew5a77ce1
  • evaluatorregression test for order independent eval fixed in evalv3@myitcv81d6f8b

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.11.0_darwin_amd64.tar.gz55aabc7c279e20654b734275cbbc64f4f6a6be034cdca9eee73cb06813e8bd2d
macOS, Apple siliconcue_v0.11.0_darwin_arm64.tar.gz8db8868b184be737835fe1e4414249b70284b07bf3ebf425f0444d48b90be4ab
Linux, x86-64cue_v0.11.0_linux_amd64.tar.gzfff7385999390c05c785a5fde5375002c1b02c2cdeae7195efa5e9997000dd47
Linux, Arm64cue_v0.11.0_linux_arm64.tar.gzfc77673c9e3a3363f045748bad4beda55e8c0c2b371a24c12007ecabc01b1053
Windows, x86-64cue_v0.11.0_windows_amd64.zipaa58bc7e8623d6da6667de5d3774d8e665c5cb06db059dd071e2fa5e64492519
Windows, Arm64cue_v0.11.0_windows_arm64.zip33a71461e6dcc9a40ece45ad2b852e0795a1a11a91181a91731913da173f676e

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

Install CUE