v0.15.0-rc.1
Changes which may break some users are marked below with: ⚠️
Note that this release no longer includes a checksums.txt asset; GitHub now provide digests natively.
cmd/cue
cue mod resolve gains a --deps flag that lists all dependencies of the current module and which registries they resolve to.
LSP
The LSP now supports finding references to a declared name, which can be thought of as the opposite of “go to definition”. Using the same underlying mechanism, the LSP now also supports the “rename” operation.
A number of bugs have been fixed, such as package imports not working in standalone files when inside a valid CUE module.
Go API
The new encoding/yaml.Decoder API allows decoding a stream of YAML documents, given that existing APIs did not support streams of multiple YAML documents.
⚠️ The cue/token.Pos.Before method is now rewritten to match cue/token.Pos.Compare, given that it always returned “false” for positions from different files. The method is now deprecated as well.
All changes
29 changes since v0.15.0-alpha.3by area
all3
allremove two obsolete and commented-out APIsallstart leveraginggo fix -inlineallgo fix -inline ./...
cmd3
cmd/cueupdate help text to reflect renamed experimentcmd/cue/cmdadd --deps flag to 'cue mod resolve'cmd/cueadjustcue get go --outfilelogic
cue10
cue/loadensure that Config.ModuleRoot is clean, like Config.Dircue/loadcorrectly handle the filesystem root as Config.ModuleRootcue/loadadd test case showing an error when Config.ModuleRoot=="/"cue/tokenrewrite Pos.Before in terms of Pos.Comparecue/tokendon't unpack line info in Pos.Comparecue/tokenremove unnecessary Pos.file nil checkscue/tokendon't unpack line info in Pos.Offsetcue/tokendon't unpack line info in Pos.Filenamecue/tokenreuse File.Offset in File.positioncue/ast/astutilusego fix -inlineon ImportPathName
internal7
internal/ci/goreleaseractually disable checksum generationinternal/lspsupport standalone files with imports in modulesinternal/lspadd support for renameinternal/lspsupport references with definitionsinternal/core/layerrudimentary implementation of layersinternal/core/adtset t.id only onceinternal/lspwire UsagesForOffset into the LSP
lsp4
lsp/definitionscall pos.Offset() directlylsp/definitionsimplement UsagesForOffsetlsp/definitionsadd ability to reset definitions analysislsp/rangesetadd String methods
Other2
encoding/jsonschemaavoid redundant patternProperties in Generateencoding/yamladd Decoder for streaming YAML documents
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_4ff8a3eba87d54e4b6d666b45eb4c610143458e407bbe4e2e197a0bbc3e5c2c3 |
| macOS, Apple silicon | cue_15cbbe6ad7315ab5e48529aadbbfc53d13ec8be066327e3fc49cfd88644df1a2 |
| Linux, x86-64 | cue_68264232218533b18a5e663ef9eba95bf11a648f9d53672b180cb0b0a4d4ca88 |
| Linux, Arm64 | cue_20059e5e0ea757872f49867c64ebb3d6cde242ed92c54628a55869116dacc472 |
| Windows, x86-64 | cue_c1d5510e95eb748b1e828e62d79fe4d9fe30562071d66821e5cab22fcd0e251a |
| Windows, Arm64 | cue_c0936e98f9f910c4981b9f9d864657b22b35362256118b0441012efa16a0ddfc |