v0.11.0-alpha.2

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

This release includes a new matchIf built-in validator, many more improvements to JSON Schema and TOML support, as well as some fixes.

Evaluator

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.

Modules

CL 1201493 gives a better error message when a module is not found.

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

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.

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 1200932 turns on JSON Schema’s new StrictFeatures option on by default, a saner default as we know which features we have not yet implemented and so the schema cannot be interpreted correctly.

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 1200888 adds support for decoding TOML dates and times.

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 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.

cmd/cue

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.

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-alpha.2_darwin_amd64.tar.gza14cf639014651610280c21df7919a4b948f9904a73b2f0f82563994e181dae1
macOS, Apple siliconcue_v0.11.0-alpha.2_darwin_arm64.tar.gze11feb9fba18f7267eeefa5162568ccb4643b83601975a92f47a5dc0d5bb11e2
Linux, x86-64cue_v0.11.0-alpha.2_linux_amd64.tar.gz28d78c80af12554587cb4404e869461c7be1e73053c8d296c589f88d52b240f6
Linux, Arm64cue_v0.11.0-alpha.2_linux_arm64.tar.gz1a116c20de3b375257d2c035c1a88d5cd90746a2fa9afa675df5ed81d6d24a27
Windows, x86-64cue_v0.11.0-alpha.2_windows_amd64.zip47dea242c36b838ccef41c73aa395d215b28f08175189460e82b2fa2344986e5
Windows, Arm64cue_v0.11.0-alpha.2_windows_arm64.zipc0835dc48aafd8a49a089c3fd416ae0bffd4705da6c123d9eff185d4b0e70b86

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

Install CUE