v0.3.0

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

After a long road, we have now an official v0.3.0 release. Aside from implementing some important changes to the language (see release notes), it prepares CUE for exciting new features such as the query and policy extensions and other language extensions as well as much better performance.

The focus will now be to get to language stability and a v1.0.0 release.

With this release will also come a different approach to versioning leading up to the v1.0.0 release. The goal is to get to the stability guarantee for the language first, then the API and tooling. Up to v1.0.0, version increments will have the following meanings:

  • minor (_.x._)
    • backwards incompatible changes
    • bug fixes with notable backwards incompatible changes
    • large new features
  • patch (_._.x)
    • bug and spec conformance fixes
    • new features

We plan to get the few small remaining backwards incompatible languages chances out as soon as possible. To make the transition as simple as possible, we aim to put possible impactful bug fixes in small releases, so that users get a chance to get used to them. And, of course, we plan to make any necessary transitions as smooth as possible using cue fix aids when possible.

Note that to smooth out any transition, users can register their repos at https://github.com/cue-sh/unity. This is used to ensure that their CUE evaluations will not unexpectedly stop working.

API

encoding/protobuf/jsonpb

Protobuf defines its own, somewhat peculiar, mapping to JSON. This package provides a way to interpret JSON for such mappings, given a CUE schema. This is a first step towards broader Protobuf value support.

cue.Selector

Several new features have been added to Selector, including the possibility to query whether a selector is a regular string field and the ability to create a Selector form an ast.Label.

Value.Attributes

Value has been extended with a more extensive API to retrieve attributes.

Value.Subsume

Now allows raw (CUE-native) subsumption, instead of just the “Schema” or “Data” interpretations.

Value.FillPath

For completeness, note that beta.8 already introduced FillPath.

All changes

12 changesby area

cue5

  • cue/literalexpose some internal data276e164
  • cue/loaddrop out-of-date comment about type of value in Overlay mapc24a281
  • cueadd function for Value.Attributes()792da39
  • cueallow raw subsumption, taking defaults into account1ea47e0
  • cueexpose some path utilities20a4878

encoding3

  • encoding/openapicorrectly extract type in the presence of null2115955
  • encoding/openapidedup conjuncts and disjunctsa1903ca
  • encoding/protobuf/jsonpbadd Rewrite* for interpreting JSON in PB terms3701bef

Other4

  • cmd/cue/cmdload import dependencies of tool files4476060
  • doc/cmdrefer people to cue help for now48f2a22
  • docfix various typosaa99414
  • tools/flow/testdataadd test with package dependency96e84eb

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.3.0_darwin_amd64.tar.gzba6385a3cf237fea7039c452c2da375b2f65732b37af363294892c75cc1792b2
Linux, x86-64cue_v0.3.0_linux_amd64.tar.gz9f1640d086f20c6f0114aa7579b6e51670cd881865dee9153cb188a3020bf8b1
Linux, Arm64cue_v0.3.0_linux_arm64.tar.gz041ca6d613c1c88e8e4c9f94689f4bd0e43e37f7562b1e23b189d79f9d9caccc
Windows, x86-64cue_v0.3.0_windows_amd64.zip29a565c811a1a7a79a572db873defb57ea2979ace1c72d93d7257fda88b84885

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

Install CUE