v0.6.0-alpha.2
As announced on the 2023-06-20 Community Call, this release includes preliminary support for Wasm. It also includes a number of bug fixes, and a couple of builtin API additions.
Thank you to @4ad, @chee-zaram, @eraserhd, @ghostwheel42, @mpvl, @mvdan, @myitcv, @rogpeppe, and @toshi0607 for contributing to this release!
Language
No changes to note. There are various bug fixes related to required fields, which were first introduced and explained in the v0.6.0-alpha.1 release.
API
No changes to note.
Project
No changes to note.
Core Evaluator
Whilst it should not be a breaking change from a CUE perspective, we have upgraded to use github.com/cockroachdb/apd/v3. We have also increased apd.Context precision from 24 to 34.
Encoders
No changes to note.
Builtins
The following four functions have been added to the net package:
PathEscapePathUnescapeQueryEscapeQueryUnescape
Thanks to @eraserhd for this change.
cmd/cue
https://cuelang.org/cl/555576 fixed an important bug where cmd/cue vet was not properly consuming all input data.
Spec
Various bug fixes, with special thanks to @nicuveo for raising many of these.
WebAssembly (Wasm)
We have added preliminary support for Wasm. Users can compile code from any language and toolchain that supports Wasm into plugins that are dynamically loaded by CUE. Users can then call and use functions from these Wasm modules, just like they can use standard library functions.
See the documentation at cuelang.org/go/cue/interpreter/wasm to learn more about Wasm and its current limitations.
All changes
50 changesby area
all4
allsed-replace all trivial uses of ioutilalluse strings.Builder in a few more placesallgo fix to remove old build tagsallmove pkg/gen and internal/cmd/qgo to build-ignored files
cmd5
cmd/cueproperly consume all data input in vetcmd/cueadd AllocBytes and AllocObjects to statscmd/cuerefactor our use of cobracmd/cuedo not defer closing files in fmt's loopcmd/cuecheck all file I/O errors in fmt
cue8
cue/astfix staticcheck warningscueallow iterating hidden fields and definitions of embedded scalarscue/astsupport specifying required fields in NewStructcueadd a "decimal" benchmarkcue/testdataadd regression test for #2244cue/interpreter/wasmadd user-level docscue/interpreter/wasmadd Wasm support for abi=ccue/loadreplace go-internal/semver with x/mod
encoding3
encoding/protobuf/jsonpbremove unused codeencoding/protobufremove unused codeencoding/openapiremove unused code
internal16
internal/cibump Go and GoReleaser prior to alpha.2internal/core/exportavoid panics on computed comprehensionsinternal/core/adtreturn from Accept earlier for hidden fieldsinternal/core/adtadd missed errorinternal/core/adtfail on missing required field in comprehensioninternal/core/adtadd position for required field errorinternal/core/validateallow required fields in definitionsinternal/cuetestremove support for CUE_LONGinternal/encodingremove unused codeinternal/citrigger Unity on master as porcuepineinternal/ciremove cue-unity/unity from codereview.cfginternal/core/convermake use of reflect.Value.IsZerointernal/cifurther tidy upinternal/pkgmove pkg/internal to internal/pkginternal/cuetxtarprint error detailsinternal/core/convertsplit the cue tag commas after the last quote
tools3
tools/flowcheck cycle markertools/fixremove unused codetools/flowsupport tasks inside slices
Other11
- correct misleading phrases in documentation
specadd definition for dynamic fieldsspecvarious fixes- increase apd.Context precision from 24 to 34
- update to cockroachdb/apd v3
depsswitch to use quicktest instead of testifypkg/pathremove unused codecodereview.cfgadd cue-unity-newdoc/tutorialfix typopkg/netadd Path{E,Une}sape and Query{E,Une}scapedocs/tutorialrevert to using cue eval -i
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_88e5045aa3ee452cf8dea387bc5b43a0353cdde35b76d1ddf61ef4a90b634af7 |
| macOS, Apple silicon | cue_66abd69dc31224996e10a5c216bec44ffa346e72973a0b19307ce8665a022b2b |
| Linux, x86-64 | cue_ecae7e33622a13b0925186711caa4f8aae23d445d02cde37b894775b5ed91035 |
| Linux, Arm64 | cue_c438a43c420cb31c076ff8fa539a4184825c133dba9fe92e2d9a2c896edce31e |
| Windows, x86-64 | cue_6f31984f89c9508bc28b00b103c007cd6ee3eeb34ee775d8b81df2e7c397cd5b |
| Windows, Arm64 | cue_12e07f14d7cc1b70e2cf0ac72f9876d45eb9cd2b03242a17c459bca23d4753d6 |
SHA-256 checksums for all of these: checksums.txt