Skip to content

v0.6.0-alpha.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@mvdan mvdan released this 28 Jun 07:27
· 1425 commits to master since this release

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:

  • PathEscape
  • PathUnescape
  • QueryEscape
  • QueryUnescape

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.

Changelog