v0.15.0-rc.1

cue-lang/cue Pre-release Released

A release of CUE OSS · its page on GitHub

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 APIs@mvdan25322ae
  • allstart leveraging go fix -inline@mvdan70d6a9c
  • allgo fix -inline ./...@mvdan279e355

cmd3

  • cmd/cueupdate help text to reflect renamed experiment@jpluscplusm7d0090a
  • cmd/cue/cmdadd --deps flag to 'cue mod resolve'@rogpeppe15afd50
  • cmd/cueadjust cue get go --outfile logic@mvdan6491013

cue10

  • cue/loadensure that Config.ModuleRoot is clean, like Config.Dir@mvdan14472be
  • cue/loadcorrectly handle the filesystem root as Config.ModuleRoot@mvdand7a839b
  • cue/loadadd test case showing an error when Config.ModuleRoot=="/"@mvdan44dba4e
  • cue/tokenrewrite Pos.Before in terms of Pos.Compare@mvdan6c2aa6a
  • cue/tokendon't unpack line info in Pos.Compare@mvdan9623737
  • cue/tokenremove unnecessary Pos.file nil checks@mvdan852de61
  • cue/tokendon't unpack line info in Pos.Offset@mvdan8972e06
  • cue/tokendon't unpack line info in Pos.Filename@mvdan6543708
  • cue/tokenreuse File.Offset in File.position@mvdanf4ba49b
  • cue/ast/astutiluse go fix -inline on ImportPathName@mvdan1850e9b

internal7

  • internal/ci/goreleaseractually disable checksum generation@mvdan93c434c
  • internal/lspsupport standalone files with imports in modules@cuematthew7dcbdf6
  • internal/lspadd support for rename@cuematthew24300be
  • internal/lspsupport references with definitions@cuematthew6feb520
  • internal/core/layerrudimentary implementation of layers@mpvl654b5c0
  • internal/core/adtset t.id only once@mpvlaae1e07
  • internal/lspwire UsagesForOffset into the LSP@cuematthewbdc3901

lsp4

  • lsp/definitionscall pos.Offset() directly@cuematthew64182de
  • lsp/definitionsimplement UsagesForOffset@cuematthew5303c60
  • lsp/definitionsadd ability to reset definitions analysis@cuematthewaba5ee2
  • lsp/rangesetadd String methods@cuematthewbfe4aba

Other2

  • encoding/jsonschemaavoid redundant patternProperties in Generate@rogpeppea8385f8
  • encoding/yamladd Decoder for streaming YAML documents@mpvl738e6e4

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.15.0-rc.1_darwin_amd64.tar.gz4ff8a3eba87d54e4b6d666b45eb4c610143458e407bbe4e2e197a0bbc3e5c2c3
macOS, Apple siliconcue_v0.15.0-rc.1_darwin_arm64.tar.gz15cbbe6ad7315ab5e48529aadbbfc53d13ec8be066327e3fc49cfd88644df1a2
Linux, x86-64cue_v0.15.0-rc.1_linux_amd64.tar.gz68264232218533b18a5e663ef9eba95bf11a648f9d53672b180cb0b0a4d4ca88
Linux, Arm64cue_v0.15.0-rc.1_linux_arm64.tar.gz20059e5e0ea757872f49867c64ebb3d6cde242ed92c54628a55869116dacc472
Windows, x86-64cue_v0.15.0-rc.1_windows_amd64.zipc1d5510e95eb748b1e828e62d79fe4d9fe30562071d66821e5cab22fcd0e251a
Windows, Arm64cue_v0.15.0-rc.1_windows_arm64.zipc0936e98f9f910c4981b9f9d864657b22b35362256118b0441012efa16a0ddfc
Install CUE