v0.13.0-alpha.3
Pre-releaseThis release fixes a handful of bugs in the new evaluator and its Go API.
Evaluator
The new evaluator, now enabled by default since v0.13.0-alpha.2, is improved to fix regressions in OpenAPI, our CUE Go API, two panics, and a few other bugs which could lead to incorrect errors. Since the last alpha release, two more projects in Unity are fully working with the new evaluator.
As a reminder, the old evaluator is still accessible via CUE_EXPERIMENT=evalv3=0
. If you encounter any errors or other problems, please file an issue with details.
Go API
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.
Full list of changes since v0.13.0-alpha.2
- update golang.org/x dependencies by @mvdan in c565c1d
- cue/cuecontext: fix EvalDefault to follow the default, add EvalStable by @mvdan in ad0442b
- internal/core/runtime: select evaluator version with specific constants by @mvdan in 1ec46e7
- all: do not use Default/Dev/Experiment evaluator versions in tests by @mvdan in 07bccba
- cue/cuecontext: expand TestEvalVersion to test more combinations by @mvdan in 965e7b1
- internal/core/adt: fix disjunction corruption issue by @mpvl in 917ae0d
- cue/cuecontext: evalv3 is no longer experimental by @myitcv in 8080ec5
- internal/core/adt: fix panic due to envDisjunct corruption by @mpvl in 721ca5d
- internal/core/adt: disable structure sharing for pending arcs by @mpvl in 4fc579c
- internal/core/adt: add tests for Issue 3849 by @mpvl in 6ade302
- internal/core/adt: remove insertArcCC by @mpvl in 6654071
- internal/core/adt: inline structs in schema are not closed by default by @mpvl in 4e7564e
- internal/core/adt: add test for Issue 3853 by @mpvl in 5348d04
- pkg/internal/builtintest: remove "and X more errors" stripping for evalv3 by @mvdan in 32d0400
- internal/core/adt: support Ellipsis in MatchAndInsert by @mpvl in de69f12
- internal/core/adt: eliminate recursive processing on bottom by @mpvl in 447e98d
- internal/core/adt: add test for Issue 3851 by @mpvl in d58c804
- cmd/cue: re-enable
cue exp gengotypes
testscript by @mvdan in 18b4ba9 - internal/core/adt: add missing dereference by @mpvl in e22ea96
- cue: do not unify "accept" schema with result in UnifyAccept by @mpvl in ff654dc
- cue: prepare TestConjunctDedup for more cases by @mpvl in 2b82584
- cue: use fmt instead of MarhalJSON in TestUnifyAccept by @mpvl in 6912a11
- internal/tdtest: support cuetest.Run by @mpvl in 2402ef3
- internal/ci: simplify login to Central Registry by @myitcv in f4a2424
- encoding/jsonschema: clean up TestExtX by @mpvl in c0fc59b
- internal/core/adt: remove diff/todo for fixed issues by @mpvl in 773741f
- cue: add missing finalization by @mpvl in 4cbb180