v0.4.3-beta.1

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

This release includes various bug fixes, including fixing some crashes. It also fixes a memory leak that would cause long-running servers to OOM (see #1418).

It also fixes various builtin extensions.

This release also makes a lot of preparations for the upcoming comprehension rework, which will allow us to do all kinds improvements and performance enhancements.

As a reminder: users can register their projects with unity, our regression and performance testing setup. unity is used to ensure that a project’s CUE evaluations do not unexpectedly stop working, or regress in terms of performance. unity continues to catch multiple issues with each release. Adding your project to unity not only guarantees that we will not break your tests (if we do, we will work with you to fix your CUE code), but it also helps to improve the quality of each CUE release. We are in the process of adding support for adding private projects to unity.

Language changes

This release removes all remaining support for quoted identifiers. Although this hasn’t been supported for a while, there were still parts of the code that handled them, resulting in cryptic error messages.

Core evaluator

This release sees an overall improvement in error location reporting. These changes are quite substantial but largely, aside from a few resulting bug fixes, do not alter behavior.

Builtins

net

Add CIDR range verification function.

regexp

Add ReplaceAll and ReplaceAllLiteral

time

Fixes a hermeticity issues where a local time zone may be selected. Added FormatString to ultimately replace Format, where Format will first have to be deprecated.

Add FormatString, FormatDuration and Split

tool/file

Add MkdirTemp, RemoveAll

tool/http

Add Support for TLS settings.

Full Changelog: https://github.com/cue-lang/cue/compare/v0.4.2...v0.4.3-beta.1

Docker images

  • docker pull docker.io/cuelang/cue:0.4.3-beta.1

All changes

59 changesby area

cue7

  • cue/tools/flowallow tasks in hidden fields4136481
  • cueallow incomplete errors in Fields method699ce65
  • cuefix IsClosed84d3cad
  • cuefix TextUnmarshal bug in Decode24c9117
  • cuefix nil pointer deref in BuildInstancesb1edc14
  • cueremove all support for quoted identifiersa7eda13
  • cuetry harder to find a position for Pos49e295b

doc5

  • doc/specspecify default constraint is not implemented1c52d6a
  • docfix "click" typoa6995f5
  • docfix up k8s tutorialeaaf5f0
  • docmention the commit message hook for --signoff7627c93
  • docremove duplicate GerritHub clone instructions2020208

internal25

  • internal/core/adtadd nested logging support569fcbd
  • internal/core/adtadjust error positions09c1ee0
  • internal/core/adtchange to incomplete error0a4d48d
  • internal/core/adtdebug options for sorting arcsb995f5b
  • internal/core/adtdon't yield struct on comprehension448b94c
  • internal/core/adtfix closedness for API disjunctions1e45d06
  • internal/core/adtget rid of NotExistError6b37a01
  • internal/core/adthoist code to prep for comprehension changee70db24
  • internal/core/adtintroduce Comprehension type8f3c71b
  • internal/core/adtmake comprehension value an Exprf045a5a
  • internal/core/adtmerge if and for comprehension listsb2d9e16
  • internal/core/adtpass Conjunct to addVertexConjunctse499dae
  • internal/core/adtperformance: improve lists disambiguation28f8d47
  • internal/core/adtprepare for field conflict message49fdab8
  • internal/core/adtprevent state erasuree0577bb
  • internal/core/adtprevent state inversionbe2ee9b
  • internal/core/adtreintroduce Conjunct.Expr7cdcc70
  • internal/core/adtreport error for integer fields0e634cf
  • internal/core/adtstore Ellipsis instead of Expr in Additional975f57c
  • internal/core/adttrack positions for incomplete types2421553
  • internal/core/adtuse partial lookup8dee602
  • internal/core/depprevent crash19782a6
  • internal/core/runtimedon't share import cache195cdf7
  • internal/coreautomated renamec561f1f
  • internal/cuetxarprovide CUE_FORMAT_TXTAR to format .cue files28c1adb

pkg13

  • pkg/crypto/ed25519format generated test case4cbd2e6
  • pkg/netadd CIDR range verification function189de92
  • pkg/regexpadd ReplaceAll and ReplaceAllLiteral37eb22b
  • pkg/regexpbring docs more inline with Go equivalents53a108d
  • pkg/regexpdelete duplicate test case in txtarfe20132
  • pkg/regexpreorder for ease of maintenance08fa1c7
  • pkg/timeadd FormatDurationa15720b
  • pkg/timeadd FormatString and Split71e9d03
  • pkg/timefix hermeticity issue65ff0f4
  • pkg/timeuse time.UTC for ParseInLocatione32817a
  • pkg/tool/cliFix Ask task977d353
  • pkg/tool/fileadd MkdirTemp, RemoveAll8dee549
  • pkg/tool/httpadd tls settingsda75cdf

tools3

  • tools/flowadd Value() to retrieve controller value04ac666
  • tools/trimappropriately label vertex1b4b7e9
  • tools/trimdon't remove structs with comprehensions8a2e832

Other6

  • Fix doc string for CompileBytes and references71b43a8
  • allformat .cue files in txtar archivesb6cdc74
  • allmove to go1.17-based go.mod054cc31
  • cioptimize CI build runtimesf44242c
  • crypto/ed25519support signature verification89d6078
  • interal/core/adtimprove error locationsb67dc4d

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.4.3-beta.1_darwin_amd64.tar.gz5397ed54f03b1a27b199840b7e73fd9d90e0fa7018c48ec51963be7f49d561a7
macOS, Apple siliconcue_v0.4.3-beta.1_darwin_arm64.tar.gz492fcdf6ee7cb98ea57f0c5dd681b03a1604a14f797640d4165a7367647111bc
Linux, x86-64cue_v0.4.3-beta.1_linux_amd64.tar.gz7ce54d498f1e9fe8ef28ac3db0e436404fdc9027b55c3482cf865b658cfe395b
Linux, Arm64cue_v0.4.3-beta.1_linux_arm64.tar.gz78da41c02414bb700b671b51e8847741b90ebd770873a24b5599296dea956a7b
Windows, x86-64cue_v0.4.3-beta.1_windows_amd64.zip26812431ecd67ecd60bf56456e5a2b154e2729014f3ebdd73ccad8e19ea50166
Windows, Arm64cue_v0.4.3-beta.1_windows_arm64.zip3f3c2d77e6908e725d9947b43fd707aa09ebe6ecc6c17283bbdfb078e2dfefbe

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

Install CUE