v0.3.0
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 datacue/loaddrop out-of-date comment about type of value in Overlay mapcueadd function for Value.Attributes()cueallow raw subsumption, taking defaults into accountcueexpose some path utilities
encoding3
encoding/openapicorrectly extract type in the presence of nullencoding/openapidedup conjuncts and disjunctsencoding/protobuf/jsonpbadd Rewrite* for interpreting JSON in PB terms
Other4
cmd/cue/cmdload import dependencies of tool filesdoc/cmdrefer people to cue help for nowdocfix various typostools/flow/testdataadd test with package dependency
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_ba6385a3cf237fea7039c452c2da375b2f65732b37af363294892c75cc1792b2 |
| Linux, x86-64 | cue_9f1640d086f20c6f0114aa7579b6e51670cd881865dee9153cb188a3020bf8b1 |
| Linux, Arm64 | cue_041ca6d613c1c88e8e4c9f94689f4bd0e43e37f7562b1e23b189d79f9d9caccc |
| Windows, x86-64 | cue_29a565c811a1a7a79a572db873defb57ea2979ace1c72d93d7257fda88b84885 |
SHA-256 checksums for all of these: checksums.txt