github cue-lang/cue v0.10.0-rc.1

latest releases: v0.11.0-alpha.5, v0.11.0-alpha.4, v0.10.1...
pre-release3 months ago

This release candidate includes fixes to the evaluator and various encodings.

Evaluator

CLs 1198736 and 1198860 fix two panics uncovered in the new evaluator, enabled via CUE_EXPERIMENT=evalv3.

Encodings

CL 1198876 teaches the YAML decoder to decode empty documents as null, aligning with the YAML spec and fixing panics when loading empty YAML files.

CL 1198831 teaches the JSON Schema encoding to decode required properties as CUE required fields.

CL 1198874 fixes the loading of JSON files to reject multiple newline-delimited values, as those ar only allowed in NDJSON or JSONL files.

CL 1199025 teaches the TOML decoder to include positions in error values.

CL 1198819 fixes the decoding of TOML keys with underscore prefixes.

Full list of changes since v0.10.0-alpha.3
  • cmd/cue: add test cases for embedding files inside symlink dirs by @mvdan in 677ece8
  • cmd/cue: add a test for embedding symbolic links by @mvdan in 4d941df
  • cmd/cue: implement cue import --dry-run by @mvdan in bcbc7cd
  • encoding/toml: support error positions by @mvdan in 334a6fe
  • encoding/toml: mimic indented CUE multi-line strings in test strings by @mvdan in 1ec257c
  • update golang.org/x/... and ociregistry for rc.1 by @mvdan in c15144f
  • encoding/jsonschema: decode required properties as required fields by @haoqixu in c4697bd
  • all: delay compiling global regexes and templates by @mvdan in 252a666
  • cmd/cue: add testscript for the jsonl file type by @mvdan in 4c7aecf
  • cmd/cue: speed up get_go_json_compat.txtar by @mvdan in 20d3c9c
  • cmd/cue: use fewer go/packages Need bits in get go by @mvdan in 3260084
  • internal/encoding/yaml: decode empty inputs as "null" by @mvdan in 30a5c79
  • internal/core/adt: fix panic triggered by using wrong condition by @mpvl in cd689ef
  • encoding/toml: support decoding keys named "_" by @mvdan in cf18d6f
  • internal/encoding: decode json files as a single JSON value by @mvdan in e8e6f04
  • cmd/cue: add TOML to a couple of help topics I forgot about by @mvdan in 0dccbf3
  • cmd/cue: add testscript to interpret empty files as various filetypes by @mvdan in db92bf8
  • cmd/cue: fix all "flag used without being added" bugs by @mvdan in 0bd038c
  • all: use simpler for loop iterations by @mvdan in 0d9d541
  • internal/ci/check: bump yuin/goldmark by @mvdan in dfe07b8
  • internal/core/adt: don't signal cleared schedulers by @mvdan in 0d4258e
  • encoding/jsonschema: add test case for issue 3351 by @mvdan in 95c818c
  • encoding/jsonschema: port txtar tests to cuetxtar by @mvdan in 44bc1ab
  • internal/cuetdtest: make M.Flags (internal) public by @cuematthew in 91929bd

Don't miss a new cue release

NewReleases is sending notifications on new releases.