v0.4.3-beta.1
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 fieldscueallow incomplete errors in Fields methodcuefix IsClosedcuefix TextUnmarshal bug in Decodecuefix nil pointer deref in BuildInstancescueremove all support for quoted identifierscuetry harder to find a position for Pos
doc5
doc/specspecify default constraint is not implementeddocfix "click" typodocfix up k8s tutorialdocmention the commit message hook for --signoffdocremove duplicate GerritHub clone instructions
internal25
internal/core/adtadd nested logging supportinternal/core/adtadjust error positionsinternal/core/adtchange to incomplete errorinternal/core/adtdebug options for sorting arcsinternal/core/adtdon't yield struct on comprehensioninternal/core/adtfix closedness for API disjunctionsinternal/core/adtget rid of NotExistErrorinternal/core/adthoist code to prep for comprehension changeinternal/core/adtintroduce Comprehension typeinternal/core/adtmake comprehension value an Exprinternal/core/adtmerge if and for comprehension listsinternal/core/adtpass Conjunct to addVertexConjunctsinternal/core/adtperformance: improve lists disambiguationinternal/core/adtprepare for field conflict messageinternal/core/adtprevent state erasureinternal/core/adtprevent state inversioninternal/core/adtreintroduce Conjunct.Exprinternal/core/adtreport error for integer fieldsinternal/core/adtstore Ellipsis instead of Expr in Additionalinternal/core/adttrack positions for incomplete typesinternal/core/adtuse partial lookupinternal/core/depprevent crashinternal/core/runtimedon't share import cacheinternal/coreautomated renameinternal/cuetxarprovide CUE_FORMAT_TXTAR to format .cue files
pkg13
pkg/crypto/ed25519format generated test casepkg/netadd CIDR range verification functionpkg/regexpadd ReplaceAll and ReplaceAllLiteralpkg/regexpbring docs more inline with Go equivalentspkg/regexpdelete duplicate test case in txtarpkg/regexpreorder for ease of maintenancepkg/timeadd FormatDurationpkg/timeadd FormatString and Splitpkg/timefix hermeticity issuepkg/timeuse time.UTC for ParseInLocationpkg/tool/cliFix Ask taskpkg/tool/fileadd MkdirTemp, RemoveAllpkg/tool/httpadd tls settings
tools3
tools/flowadd Value() to retrieve controller valuetools/trimappropriately label vertextools/trimdon't remove structs with comprehensions
Other6
- Fix doc string for CompileBytes and references
allformat .cue files in txtar archivesallmove to go1.17-based go.modcioptimize CI build runtimescrypto/ed25519support signature verificationinteral/core/adtimprove error locations
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_5397ed54f03b1a27b199840b7e73fd9d90e0fa7018c48ec51963be7f49d561a7 |
| macOS, Apple silicon | cue_492fcdf6ee7cb98ea57f0c5dd681b03a1604a14f797640d4165a7367647111bc |
| Linux, x86-64 | cue_7ce54d498f1e9fe8ef28ac3db0e436404fdc9027b55c3482cf865b658cfe395b |
| Linux, Arm64 | cue_78da41c02414bb700b671b51e8847741b90ebd770873a24b5599296dea956a7b |
| Windows, x86-64 | cue_26812431ecd67ecd60bf56456e5a2b154e2729014f3ebdd73ccad8e19ea50166 |
| Windows, Arm64 | cue_3f3c2d77e6908e725d9947b43fd707aa09ebe6ecc6c17283bbdfb078e2dfefbe |
SHA-256 checksums for all of these: checksums.txt