v0.11.0-alpha.3
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 secondscmd/cuestore token expiry timestamps in UTC in logins.jsoncmd/cuetest storing access token expiry in logincmd/cueadd more sanity checks for produced logins.json files
cue11
cue/build,cue/loadremove deprecated fieldscuereuse adt.OpContext in Value.structValOptscuereuse adt.OpContext in MarshalJSON recursioncueclarify status of zero Path valuecueonly use internaljson.Marshal where necessarycueuse append-like funcs inside Value.MarshalJSONcuerecursively marshal JSON values directlycueuse unwrapJSONError in the entrypoint API onlycuemarshal a Value as JSON null directlycueadd large Value.MarshalJSON benchmarkcueremove unneeded fields from goField
encoding10
encoding/json,encoding/yamlremove long deprecated cue.Instance APIsencoding/openapiunexport OrderedMapencoding/openapiremove OrderedMap.Setencoding/openapimarshal JSON via cue.Value.MarshalJSONencoding/openapiremove most public API surfacing OrderedMapencoding/openapiremove Config.Allencoding/jsonschemaallow mapping URLs to values within a packageencoding/jsonschemaclearer internalsencoding/openapidrop use of cue.Runtime from testsencoding/openapidrop support for Config.ReferenceFunc
internal14
internal/cibump Go and goreleaser for alpha.3internal/cicue fmtinternal/cipass access token to releaser stepinternal/cirename and clarify the e2e logins.json secretinternal/cueconfignote the difference between token expiry fieldsinternal/ciuse githubactions schema from registryinternal/core/adtnew cycle algorithminternal/core/debugreport more structure sharinginternal/core/debugadd cycle detectorinternal/core/adtbail on empty nodeinternal/core/adtsplit updateCyclicStatus based on versioninternal/core/exportswap sort.Slice APIs for slices.Sortinternal/core/convertdo not roundtrip MarshalText to JSONinternal/tdtestuse sync.OnceValues
Other2
- update dependencies before alpha.3
allremove a few unused parameters spotted by unparam
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_e22a8b2a165314c6aadf046fd1255b90c8ad504563e5b1977336eeff1bed2bdc |
| macOS, Apple silicon | cue_0aacfb566f86fdc75ba5a6950b1f71726e810b37c7e3ad160bff839790f680f3 |
| Linux, x86-64 | cue_a9463ab7d9b86fa58851fa0810b784e1dd3f8e663560b4aaafc4348afd8742ad |
| Linux, Arm64 | cue_6e466b2fa281067750517e64f5a280dd0e88bb41ec210b11b84b2077426179f2 |
| Windows, x86-64 | cue_3a8f3a6affc840367298988b75a11b77b4ec4fced156f3f12d41f45bb034a2f3 |
| Windows, Arm64 | cue_3e3afc43e72dc29c7ade90e7fa38b223a6aaafca8ac1b6d62195cba38a1a4656 |
SHA-256 checksums for all of these: checksums.txt