v0.11.0-alpha.4
This release fixes dozens of bugs in the old and new evaluators and includes more JSON Shema improvements.
Changes which may break some users are marked below with: ⚠️
Evaluator
Over a dozen closedness and cycle detection bugs have been fixed in CUE_EXPERIMENT=evalv3, including a few which caused panics or endless evaluation.
CL 1202685 tweaks cuecontext.New to follow CUE_EVALUATOR=evalv3 when the cuecontext.EvaluatorVersion option is not used.
CL 1202903 fixes embed.New so that it works without needing to set CUE_EXPERIMENT=embed as well.
CLs 1202120 and 1202211 fix a number of issues where validators like matchN or struct.MinFields would give incorrect results.
Go API
⚠️ CL 1202244 tweaks the cue.Value API to consider open lists as concrete, aligning with the spec.
⚠️ CLs 1202285 and 1202286 remove the cue.Value.Subsumes and cue.Value.Split methods, which have been deprecated and hidden for years.
Encodings
JSON Schema spec compatibility is improved further by fixing a number of bugs and adding missing features.
Builtins
CL 1202104 adds the net.URL and net.AbsURL validators, needed by JSON Schema.
All changes
95 changes since v0.11.0-alpha.3by area
cmd3
cmd/cueadd test case for issue 3250cmd/cue/cmdundo panic when multiple commands are run in one processcmd/cue/cmdadd a Go test covering the exposed API
cue12
cue/errorsadd package examplecueresolve a few staticcheck warningscue/interpretermove test helpers to the right filecue/loadsimplify registry examplecue/loadfix@ifattributes in command line-specified filescue/cuecontextcuecontext.New observes evalv3 experiment by defaultcueremove the hidden Value.Split methodcueremove the hidden Value.Subsumes methodcueadvance deprecation of Iterator methodscueopen lists are still concretecuederefernce more valuescueavoid repeated work in Value.MarshalJSON with lists
encoding16
encoding/jsonschemause allowedTypes in if/then/else constraintsencoding/jsonschemaadd if/then/else testencoding/jsonschemadisallow $schema at non-root for earlier versionsencoding/jsonschemacorrect treatment of$refencoding/jsonschemasimplify matchN expressions with only one possibilityencoding/jsonschemause latest schema version by defaultencoding/jsonschemaremove unused state fieldsencoding/jsonschemause CUE_UPDATE=forceencoding/jsonschemause uint not number for min/maxLengthencoding/jsonschemaalways write external_teststats.txtencoding/openapiadd test cases for non-empty listsencoding/protobufupdate txtpbfmt dependencyencoding/jsonschemaimplement regex formatencoding/jsonschemaimplement date-time formatencoding/jsonschemaimplement URL-related formatsencoding/jsonschemafactor format checkers into their own file
internal58
internal/core/adtimpove arcType update logicinternal/core/adtadd tests for issue 3533internal/core/adtallow errors in inline structsinternal/core/adtadd test case for selection probleminternal/core/adtreimplement close for v3internal/core/adtrename Closed to RecursivelyClosedinternal/core/adtfix logic error leading to panicinternal/core/adtremove p1 errorinternal/core/adtremove further evaluatingArcs logicinternal/core/adtallow pending arcs to be updatedinternal/core/adtevaluate nodes that are otherwise not evaluatedinternal/core/adtget rid of use of evaluatingArcs statusinternal/core/adtfix some references under projectionsinternal/core/depfix differencesinternal/core/adtdisable possible assertioninternal/core/adtfix disjunction finalizationinternal/core/adtfix bug in notificationinternal/core/adtadd indirection for closeContextinternal/core/adtsupport bulk adding of conjunctsinternal/core/adtmore abstractions over Conjunctsinternal/core/adtbetter error positionsinternal/core/adtintroduce HasConjunctinternal/core/adtfix hang on cyclic pattern constraintsinternal/filetypesdefault jsonschema strictFeatures to falseinternal/core/adtless special handling for non-rootedinternal/core/adtfix structural cycle error in list.Suminternal/core/adtadd RawFuncinternal/core/adtalways allow definition in closed structinternal/core/adtadd tests for issue 3491internal/core/adtfix error type of MinFields for v3internal/core/adtpass CloseInfo to validatorsinternal/core/depdistinghish inline structsinternal/core/adtadapt handling of inline structsinternal/core/adtmore usage of Statusinternal/core/depdereference node in dynamic modeinternal/core/adtclosedness fix related to comprehensioninternal/core/adthoist allows from injectClosedinternal/core/adtfix closedness for failing ifinternal/core/debugdereference non-rootedinternal/core/adtuse depth counters for ancestor trackinginternal/core/adtfix cycle in patternsinternal/core/adtadd tests for ring-shaped cyclesinternal/core/adtderive status from shared valueinternal/core/adtdistinguish point of cyclicityinternal/core/adtmore shallow evaluation of listsinternal/core/adtfix simplifcation of validatorsinternal/core/adtoptimize sliceinternal/core/adtadd some defensive codeinternal/core/adtadd tests for more structure sharinginternal/core/exportadd some testing infrastructureinternal/core/exportdocument bug in exportinternal/cuetdtestadd DevOnlyMatrixinternal/core/exportremove exclusions of fixed bugsinternal/diffdrop last uses of cue.Value.Structinternal/diffdrop cue.Value.Struct in diffStructinternal/core/adtset more precise types for validatorsinternal/core/adtadd tests for Issue 3474internal/diffclean up code a bit ahead of dropping deprecated APIs
Other6
interpreter/embeddo not require CUE_EXPERIMENT=embedtools/fixmerge calls to list.Concatpkg/pathfix path issueallannotate priority of bugs marked by TODO_V3allresolve a few more staticcheck warningspkg/netadd URL and AbsURL
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
| Platform | File and SHA-256 |
|---|---|
| macOS, Intel | cue_a8c3f2c5cf8185b1fdc2b3ac27e30f0b4105cc2a24376301e9459c47dcc5db60 |
| macOS, Apple silicon | cue_754fa4c8fb50104eb16ca06924e3a324696d30554af2ec12a1a9283e40540378 |
| Linux, x86-64 | cue_72ddb5900a4ffd37616629db0c966f730f325a4253e128968c095a126022dfac |
| Linux, Arm64 | cue_b622e64e67a43230c95b4e421ddb33c906d316fe175ff24100936958e9e55666 |
| Windows, x86-64 | cue_a2d193e7f6e691473fb963408272094918c32c2cf59dd95cd87763024e16f05d |
| Windows, Arm64 | cue_a45c39b045749918beb83e835150db60bb14dfae418c65cb71b0cf077ab54205 |
SHA-256 checksums for all of these: checksums.txt