v0.0.12

cue-lang/cue Released

A release of CUE OSS · its page on GitHub

This release contains a host of bug fixes and improved conformance to the spec. The most notable change, however, is the relaxing of the closed struct constructs.

Relaxed closed structs

With the previous release, each struct literal in a definition was treated strictly as closed. This turned out to be both tedious and counter-intuitive. This led to a spec change and corresponding different implementation where a definition is only closed once it is referenced. This means that merging literal structs defined within a definition works exactly like unification of regular structs up to the point they are referenced.

Features

There are several builtins added, including in the list and regexp packages. The latter added builtins to extract fields from strings into a struct using named groups.

All changes

74 changesby area

cmd13

  • cmd/cue/cmdadd MainTest9e294ac
  • cmd/cue/cmdalways print newline at end of eval22e054b
  • cmd/cue/cmdauto-detect test mode0b043c9
  • cmd/cue/cmddon't use os.Exit and fix error outpute606e0d
  • cmd/cue/cmdfix import paths for go get91c1684
  • cmd/cue/cmdfix race48b8f9a
  • cmd/cue/cmdfix trim help374d395
  • cmd/cue/cmdfix: disable elimination of slices78043ab
  • cmd/cue/cmdimport: use astutilbd64ebc
  • cmd/cue/cmdonly allow dot files when specified explicitlya31e1ac
  • cmd/cue/cmdreport instance-level errors18dab4b
  • cmd/cue/cmduse testscript for top level command testing0489caa
  • cmd/cuefix tests under different platforms22a42d4

cue26

  • cue/ast/astutilallow recursive applicationc7dc930
  • cue/astreorganization of node types1a33709
  • cue/formatindent single line instead of 2 after embedding929e71f
  • cue/loadbe more permissive with file loadingde86f0f
  • cue/loadreport when "tool" pkg is used in non-tool fileca66319
  • cue/parseradd support for failing on legacy grammara38f5bc
  • cue/scannerfix JSON compliance6eefcd0
  • cueadd Definitions option and deprecate Hiddene1656a1
  • cueadd Kind.String method7d1cb13
  • cueadd test for Issue #94ffff7fa
  • cueallow valid reference cycles in export8776f21
  • cuebind reference as lookup in parent node75d2c37
  • cuebug fix: retain references with interleaved embedding8927b63
  • cueclose struct only after referencingf2654de
  • cuedocument that zero value of Runtime is OK to use.081251e
  • cueenable recursive opening when embedding8d81be4
  • cueexclude definitions from value lookupd282553
  • cuefix comparing against bottomfbb38bc
  • cueimprove dependency analysis for Referencesd499c46
  • cueimproved error message405a191
  • cuemake users aware of the --list flag when encountering a list6deb0df
  • cuemove up processing of comprehension4524da6
  • cuepass on compile-time errorsc85bebe
  • cuerelax rules for closed structsfa7e3ce
  • cueremove IsValid827ebfb
  • cueworkaround for empty "or" lists7068dea

doc16

  • doc/ref/spec.mdbring scoping in line with reality21f6c44
  • doc/ref/specreflect reality w.r.t. octal numbersb2703c6
  • doc/reffix typo in specded0e1d
  • doc/tutorial/basicnumber chapter directories9d53106
  • doc/tutorial/basicuse definitions with "emit" examples27b4ea5
  • doc/tutorial/basics/introdisable testa9f25f8
  • doc/tutorial/basicsadd pieces on structs and definitions00eb9d2
  • doc/tutorial/basicscorrect name of section934fec9
  • doc/tutorial/basicsgenerate testscript casesf3cd848
  • doc/tutorial/basicsorder filesd4c1734
  • doc/tutorial/basicsremove old docsb0d1a07
  • doc/tutorial/basicsreorganize and simplify introdf08087
  • doc/tutorial/basicsupdate some sectionsaeaf006
  • doc/tutorial/kubernetestutorial fixes1ce0c51
  • doc/tutorial/kubernetesupdate definitionsd437bd5
  • doc/tutorial/kubernetesupdate definitionsb0bba12

encoding6

  • encoding/jsonadd JSON exporter78783f2
  • encoding/jsonbelated fixes of reviewdd75ef6
  • encoding/openapiadd paths:{}9b70cf3
  • encoding/openapisupport Definitions7e4dc22
  • encoding/protobufdon't encode default values for enums7213fa9
  • encoding/protobufdon't use disallowed "__" prefixe7abb20

pkg9

  • pkg/listadding flatten function as a builtin074cf5d
  • pkg/listadding flattenN function as a builtina83af29
  • pkg/listadding range function as a builtin5ac1fbf
  • pkg/listfix MinItemse783813
  • pkg/listremove Flatten and simpilfy FlattenN20b0a0a
  • pkg/regexpadd more regexp builtins68a054b
  • pkg/tool/execfix null bug for stderr and stdout8dd325b
  • pkgexclude some builtins from generation67169f4
  • pkgupdate documentation and run gofmtc40e450

Other4

  • README.mdadd Github build badge30a6c2b
  • allremove large dependency75b9c7f
  • specfix some backtic-quotes for markdown rendering8529d77
  • start using GitHub Actions as CIa76cbed

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_0.0.12_Darwin_x86_64.tar.gzfa62711cccdd64af88ae041c2d1716b77415aeebedc0efff421b3504e2a6ba34
Linux, Arm64cue_0.0.12_Linux_arm64.tar.gz90cf8c9fee6fd5f5e26aa47e73193c3ee39bec824e0789fa43ed1e771b4f60eb
Linux, x86-64cue_0.0.12_Linux_x86_64.tar.gz7b8eccfdf6ce447ecfc4604af4e9e565e5cd177d9678d6923c06d8144db77666
Windows, x86-64cue_0.0.12_Windows_x86_64.zipc3f5344d5cefb97a6f96c3398be1e40c2df8b8a2adb033203e0231363896562d

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

Install CUE