Skip to content

Releases: roc-lang/basic-cli

0.11.0

07 May 11:47
0.11.0
8532149
Compare
Choose a tag to compare
0.11.0 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: 0.10.0...0.11.0

0.10.0

28 Apr 10:43
0.10.0
dd70c1f
Compare
Choose a tag to compare

⚠️ This release requires a version of Roc released on April 15 2024 or later.

docs

examples

Roc syntax to use this platform:

packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.10.0/vNe6s9hWzoTZtFmNkvEICPErI9ptji_ySjicO6CkucY.tar.br" }

What's Changed

Breaking changes

  • Update type of main from Task {} I32 to Task {} [Exit I32 Str]_, see #184 and #188. Where you used Task.err 1 in the past, you would now use something like Task.err (Exit 1 "unable to read file: $(msg)").

  • New error pattern in API #188, for example:

# old
deleteEmpty : Path -> Task {} IOError
# new
deleteEmpty : Path -> Task {} [DirErr Err]

# old
output : Cmd -> Task Output (Output, Error)
# new
output : Cmd -> Task Output [CmdOutputError (Output, Err)]

Other

  • Used Roc's new ! syntax all over #184
  • Added convenience function Task.result #182
  • minor fix in examples/dir.roc #195
  • Remove unused Effect type import in Path.roc #183

Full Changelog: 0.9.1...0.10.0

0.9.1

23 Apr 14:50
0.9.1
8b097e2
Compare
Choose a tag to compare

⚠️ This release requires a version of Roc released on April 15 2024 or later.

docs

examples

Roc syntax to use this platform:

packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.9.1/y_Ww7a2_ZGjp0ZTt9Y_pNdSqqMRdMLzHMKfdN8LWidk.tar.br" }

What's changed

  • Removed unused Effect type import in Path.roc #183

Full Changelog: 0.9.0...0.9.1

0.9.0

12 Apr 17:52
0850c76
Compare
Choose a tag to compare

⚠️ This release requires a version of Roc released on April 15 2024 or later.

docs

examples

Roc syntax to use this platform:

packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.9.0/oKWkaruh2zXxin_xfsYsCJobH1tO8_JvNkFzDwwzNUQ.tar.br" }
  • Breaking changes:

    • Utc now uses signed integer (#167)
    • Http.send now return Response instead of Str (#175)
    • Setting content-type header was adjusted to avoid conflicts (#179)
    • Decoder changes matching Roc language changes (#176)
  • Other:

    • Better error messages (#173, #174)
    • Docs improvement (#177)

New Contributors ❤️

Full Changelog: 0.8.1...0.9.0

0.8.1

26 Jan 19:23
0.8.1
7171874
Compare
Choose a tag to compare

docs

examples

Roc syntax to use this platform:

packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.1/x8URkvfyi9I0QhmVG98roKBUs_AZRkLFwFJVJ3942YA.tar.br" }

Bugfix:

  • Use InternalTask inside platform/Task.roc #164

0.8.0

26 Jan 16:30
0.8.0
0896641
Compare
Choose a tag to compare

docs

examples

Roc syntax to use this platform:

packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.8.0/UObpZ2EODRbZCGWvHzPFzpfWLFLD8pI0cmdUVhqZ6Mg.tar.br" }
  • New features:

    • Added functions Task.seq and Task.forEach #156
    • Added functions Path.isFile, Path.isDir, Path.isSymLink and Path.type #150
    • Proper exit codes #158
  • Bugfixes:

    • Corrected calculation of Utc.toMillisSinceEpoch #159
    • Fixed timeout for Http requests #146 #149
  • Other:

    • Updated to new string interpolation syntax, $() instead of \() #151 #152
    • Anticipate removal of Nat in Roc #161 #163
    • Switch crate-type of platform to the recommended lib instead of rlib #160

Full Changelog: 0.7.1...0.8.0

0.7.1

23 Dec 15:02
0.7.1
810183b
Compare
Choose a tag to compare

This release requires a version of roc released on December 1 2023 or later.

docs

examples

Roc syntax to use this platform:

packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.1/Icc3xJoIixF3hCcfXrDwLCu4wQHtNdPyoJkEbkgIElA.tar.br" }

Changes:

  • dbg will now also print with its location in the source #143
  • renamed src folder to platform #144

0.7.0

01 Dec 11:19
cd4d936
Compare
Choose a tag to compare

⚠️ This release requires a version of roc released on December 1 2023 or later.

docs

examples

Roc syntax to use this platform:

packages { pf: "https://github.com/roc-lang/basic-cli/releases/download/0.7.0/bkGby8jb0tmZYsy2hg1E_B2QrCgcSTxdUlHtETwm5m4.tar.br" }

Changes:

0.6.2

25 Nov 13:15
dee04a8
Compare
Choose a tag to compare
0.6.2 Pre-release
Pre-release

This platform was built with the --optimize flag, this was not the case in the past. Roc binaries that use basic-cli should now be much smaller.

0.6.1

24 Nov 18:29
dee04a8
Compare
Choose a tag to compare
0.6.1 Pre-release
Pre-release

Dir.list is actually implemented now #136