v0.13.0-alpha.4
This release adds further fixes and optimizations to the new evaluator, and introduces an experimental XML encoding for CUE.
Changes which may break some users are marked below with: ⚠️
Evaluator
The new evaluator is improved to fix a few more regressions which led to incorrect errors. Since the last alpha release, one more project in Unity is fully working with evalv3, and just one remains with a breakage compared to evalv2.
Performance work for the new evaluator is ongoing; a number of changes in this release led to performance improvements of between 5% and 70% for a variety of projects. For more details, see Marcel’s last performance update.
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.
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.
⚠️ The CUE_DEBUG=openinline evaluator debug flag is removed, now that evalv3’s closedness implementation closely matches the semantics of evalv2.
cmd/cue
cue mod tidy now preserves the top-level custom field as intended.
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.
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.
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.
All changes
41 changes since v0.13.0-alpha.3by area
cmd8
cmd/cue/cmdadd test case for embedding a pattern with an explicit dot filecmd/cueerror on useless commandscmd/cueremove test files related to old old closednesscmd/cueconvert examples to 'cue vet -c'cmd/cuego getGo fields with the json omitempty tag as optionalcmd/cueaddget gotest case with the new omitzero json tagcmd/cueactually update the _gen.go.want gengotypes testscript filescmd/cuewire up xml+koala via encoding/xml/koala
internal25
internal/cibump Go and goreleaser for the next alpha releaseinternal/golangorgxcuelsp: remove unneeded codeinternal/core/adtcache reqSets in nodeContextinternal/core/adtadd benchmark for 3881internal/core/adtadd stats for new closedness algointernal/core/adtfix Vertex dereferencing for disjunctionsinternal/core/adtadd tests for 3850 and 3875internal/core/adtfix test namesinternal/core/topsortprevent duplicates in nodeToStructMetainternal/core/adtremove unused nodeContext fieldsinternal/core/adtshow correct path for incomplete valuesinternal/core/adtskip work in checkTypos when a vertex has no arcsinternal/core/adtreuse a local buffer in checkTyposinternal/golangorgx/goplsUse the correct error.internal/core/adtavoid more allocations when LogEval is disabledinternal/core/adtremove unused code low-hanging fruitinternal/golangorgx/goplsGet cue lsp to initialize with emacs lspinternal/core/adtdo not activate ids for non-definitionsinternal/core/adtadd tests for 3858internal/core/adtreuse reqSets slices via OpContextinternal/core/adtprevent logging overhead when disabledinternal/cuedebugdrop openinline flaginternal/encoding/yamlsupport alias to scalars as map keysinternal/encoding/gotypesgenerate valid json tags for quoted fieldsinternal/mod/modloadpreserve custom struct in module when tidying requirements
Other8
cue/interpreter/embedfix "glob" typocue/interpreter/embedfail when glob pattern has no matchesinterpreter/embedallow glob to match explicit dot filespkg/tool/httpallow configuration of following redirectspkg/uuidremove ToString- update golang.org/x/... dependencies
- update pelletier/go-toml to drop testify
encoding/xml/koalaintroduce the first experimental XML encoder
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_81d2deb4c72de25768b8dc054234770b8a5451216ee2e3d750c25598d843ccf0 |
| macOS, Apple silicon | cue_b1219ec5866c204d210f79032c5fb126b600ae2b5664d50ff1acef2676f72254 |
| Linux, x86-64 | cue_4289c1399f584f3b262787b3aeed40ff1cef1184073347737e39b8a2cd94e516 |
| Linux, Arm64 | cue_28a884f334be907714540d879df7090ea2b00b8db9716a0d0ffcba2be01c3c68 |
| Windows, x86-64 | cue_34341f578c236f7c741bac489996884a6fb8504edbe23be514056ed810087629 |
| Windows, Arm64 | cue_7efaa680f2fa4df7c088c06ac8b55fa8a8358bd589a000fb2ed33df93dcf956b |
SHA-256 checksums for all of these: checksums.txt