v0.4.0

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

In line with our aim to release smaller changes more frequently on our way to language stability, the v0.4.0 release comes just under two months after v0.3.0. It includes one language addition, a fairly significant reshaping of the API and tooling improvements, as well as the usual host of bug fixes, and performance and error message enhancements.

This release includes a more comprehensive implementation of protobuf, supporting textproto and JSON protobuf mappings, and paves the way for binary protobuf support. See the v0.4.0-alpha.1 release notes for more details.

This release also sets the direction for the CUE API, and brings the overall API much closer to where we would like it to go in the run up to v1.0.0. It also prepares the API for the query extension. See the v0.4.0-alpha.2 release notes for more details.

The v0.4.0 minor release follows the pre-v1.0.0 release policy described in the v0.3.0 release notes: it contains backwards incompatible changes discussed below.

As a reminder: users can register their projects with unity. unity is used to ensure that a project’s CUE evaluations do not unexpectedly stop working, or regress in terms of performance. We are in the process of adding support for API-based tests, as well as private instances.

Language additions

Tooling

API additions

CUE package additions

Performance and error handling

Backwards incompatible changes

All changes

5 changesby area

Other5

  • cmd/cue/cmdavoid roundtrip when printing non-CUE in evalb39a2d0
  • cmd/cue/cmdfix bug in resolving builtin package shorthands3b0a537
  • cuedon't extract embedded valuescd94426
  • cuekeep sane references for embedded disjunctions in Expr37bf801
  • encoding/openapidetect cycles when expanding referencesa4e0f52

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.4.0_darwin_amd64.tar.gz24717a72b067a4d8f4243b51832f4a627eaa7e32abc4b9117b0af9aa63ae0332
Linux, x86-64cue_v0.4.0_linux_amd64.tar.gza118177d9c605b4fc1a61c15a90fddf57a661136c868dbcaa9d2406c95897949
Linux, Arm64cue_v0.4.0_linux_arm64.tar.gzd101a36607981a7652b7961955a84102c912ac35ca9d91de63a0201f2416ecfa
Windows, x86-64cue_v0.4.0_windows_amd64.zip13a2db61e78473db0fab0530e8ebf70aa37ed6fb88ee14df240880ec7e70c0f1

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

Install CUE