v0.11.0-alpha.3

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

This release adds a new cycle algorithm to the new evaluator, removes some long-deprecated Go APIs, and includes multiple improvements to the existing encodings.

Evaluator

CL 1201897 lands a new cycle algorithm in CUE_EXPERIMENT=evalv3, which is much simpler than the old algorithm and is needed to unlock further bug fixes and performance improvements.

Go API

CLs 1201768, 1201933, 1201934, 1201936, and 120193 remove encoding/openapi Go APIs which have been deprecated for some time and already have reasonable alternatives available.

CL 1201962 removes fields from cue/build.Instance and cue/load.Config which have been deprecated and unused for some time.

CL 1201963 removes APIs from encoding/json and encoding/yaml which have been deprecated for some time and already have reasonable alternatives available.

Encodings

CL 1201910 allows configuring how encoding/jsonschema maps URLs to values within a package.

CL 1201935 refactors encoding/openapi so that it can directly use the existing CUE value encoder for JSON, rather than a parallel encoder of CUE syntax trees to JSON which had to be maintained separately.

CLs 1201807, 1201808, 1201824, and 1201826 improve the performance of encoding CUE values to JSON, resulting in as much as a 10x improvement in wall time and memory usage for deeply nested CUE values.

All changes

41 changes since v0.11.0-alpha.2by area

cmd4

  • cmd/cuetruncate expiry timestamps to seconds@mvdana3fb8e8
  • cmd/cuestore token expiry timestamps in UTC in logins.json@mvdan6b73188
  • cmd/cuetest storing access token expiry in login@mvdan25e0884
  • cmd/cueadd more sanity checks for produced logins.json files@mvdan791420a

cue11

  • cue/build,cue/loadremove deprecated fields@mvdan02a694e
  • cuereuse adt.OpContext in Value.structValOpts@mvdan91b12ec
  • cuereuse adt.OpContext in MarshalJSON recursion@mvdan9c3e156
  • cueclarify status of zero Path value@rogpeppe32b169a
  • cueonly use internaljson.Marshal where necessary@mvdanda2e501
  • cueuse append-like funcs inside Value.MarshalJSON@mvdanfed4998
  • cuerecursively marshal JSON values directly@mvdan3f1e72b
  • cueuse unwrapJSONError in the entrypoint API only@mvdan01b0064
  • cuemarshal a Value as JSON null directly@mvdan97f622b
  • cueadd large Value.MarshalJSON benchmark@mvdanb37ab01
  • cueremove unneeded fields from goField@mvdan1b45c99

encoding10

  • encoding/json,encoding/yamlremove long deprecated cue.Instance APIs@mvdanf0c77ed
  • encoding/openapiunexport OrderedMap@mvdan9f2c2fe
  • encoding/openapiremove OrderedMap.Set@mvdan3fb46c3
  • encoding/openapimarshal JSON via cue.Value.MarshalJSON@mvdane7d9d47
  • encoding/openapiremove most public API surfacing OrderedMap@mvdan90c9c95
  • encoding/openapiremove Config.All@mvdanb24335b
  • encoding/jsonschemaallow mapping URLs to values within a package@rogpeppe5cc6175
  • encoding/jsonschemaclearer internals@rogpeppe19eea7f
  • encoding/openapidrop use of cue.Runtime from tests@mvdanc8b32e9
  • encoding/openapidrop support for Config.ReferenceFunc@mvdane339345

internal14

  • internal/cibump Go and goreleaser for alpha.3@mvdan5ffd573
  • internal/cicue fmt@rogpeppebdab4b2
  • internal/cipass access token to releaser step@rogpeppe20d6573
  • internal/cirename and clarify the e2e logins.json secret@mvdan992127e
  • internal/cueconfignote the difference between token expiry fields@mvdan186763c
  • internal/ciuse githubactions schema from registry@rogpeppe093a2c6
  • internal/core/adtnew cycle algorithm@mpvl92330b4
  • internal/core/debugreport more structure sharing@mpvla0138fb
  • internal/core/debugadd cycle detector@mpvl06141e4
  • internal/core/adtbail on empty node@mpvl4140094
  • internal/core/adtsplit updateCyclicStatus based on version@mpvlbf54346
  • internal/core/exportswap sort.Slice APIs for slices.Sort@mvdan0078d26
  • internal/core/convertdo not roundtrip MarshalText to JSON@mvdan7ba104c
  • internal/tdtestuse sync.OnceValues@mvdan774e40e

Other2

  • update dependencies before alpha.3@mvdan402aeda
  • allremove a few unused parameters spotted by unparam@mvdanffafd61

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.3_darwin_amd64.tar.gze22a8b2a165314c6aadf046fd1255b90c8ad504563e5b1977336eeff1bed2bdc
macOS, Apple siliconcue_v0.11.0-alpha.3_darwin_arm64.tar.gz0aacfb566f86fdc75ba5a6950b1f71726e810b37c7e3ad160bff839790f680f3
Linux, x86-64cue_v0.11.0-alpha.3_linux_amd64.tar.gza9463ab7d9b86fa58851fa0810b784e1dd3f8e663560b4aaafc4348afd8742ad
Linux, Arm64cue_v0.11.0-alpha.3_linux_arm64.tar.gz6e466b2fa281067750517e64f5a280dd0e88bb41ec210b11b84b2077426179f2
Windows, x86-64cue_v0.11.0-alpha.3_windows_amd64.zip3a8f3a6affc840367298988b75a11b77b4ec4fced156f3f12d41f45bb034a2f3
Windows, Arm64cue_v0.11.0-alpha.3_windows_arm64.zip3e3afc43e72dc29c7ade90e7fa38b223a6aaafca8ac1b6d62195cba38a1a4656

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

Install CUE