Skip to content

Releases: roc-lang/basic-cli

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

0.6.0

19 Nov 18:05
d213136
Compare
Choose a tag to compare
0.6.0 Pre-release
Pre-release

docs

examples

  • New features:

    • basic-cli apps can now accept piped input; Stdin.line changed to return either Input Str or End. #114
    • Tcp.withConnect now returns the result of the provided callback #132
  • Bugfixes:

    • Fixed segmentation fault when running example with nix #123
  • Other:

    • Now using Roc's new abilities syntax #99
    • Updated to rust 1.71.1 #111
    • Updated rust dependencies #126 #127
    • Switched from reqwest to hyper reduce the size of basic-cli apps #130
    • Lots of CI improvements

0.5.0

12 Aug 15:14
3c8a526
Compare
Choose a tag to compare

⚠️ This release requires a version of roc released on August 12 2023 or later.

docs

examples

  • New features:

    • Linux aarch64/arm64 support
    • Dir.create, Dir.createAll
  • Bugfixes:

    • No longer stuck in raw mode when a panic occurs. #69
    • Cmd.Error is now exposed.
  • Renamed:

    • Task.succeed > ok
    • Task.fail > err
    • Task.mapFail > mapErr
    • Task.onFail > onErr
    • Command > Cmd
    • Dir.deleteRecursive > deleteAll
    • Dir.deleteEmptyDir > dirDeleteEmpty
  • Other:

    • main signature type change: main : Task {} U32 > main : Task {} I32
    • removed Process.roc
    • we now use Task.err 1 instead of Process.exit 1, similarly Task.ok {} instead of Process.exit 0
    • new examples: hello-world.roc and dir.roc
    • the newly added IOError combines the old ReadErr and DeleteErr tag unions.
    • command (Cmd) Output is now a record with the fields stdout and stderr.

0.4.0

12 Jul 15:10
0.4.0
007e102
Compare
Choose a tag to compare

⚠️ This release requires a version of roc released on July 12 2023 or later.

  • New features:

    • new functions:
      • Task.batch #45
      • Stdin.bytes: reads bytes from stdin. #54
      • Tty.enableRawMode: disables some default terminal behavior. #54
      • Tty.disableRawMode: revert to default terminal behavior. #54
      • Sleep.millis: puts the current thread to sleep for at least the specified amount of time. #48
    • new module:
      • Command: to execute commands like in a terminal. #55
  • Bugfixes:

    • Return the correct exit code from basic-cli main. #36
    • Fixed docs generation for basic-cli. #28
  • Other:

    • Changed main type to Task {} U32. #52 #53
    • Significant expansion and improvement of docs. #46
    • Rename of included files: roc-lang/roc#5577
      • macos-x86_64.o ➡️ macos-x64.o
      • linux-x86_64.o ➡️ linux-x64.o
      • linux-x86_64.rh ➡️ linux-x64.rh
      • metadata_linux-x86_64.rm ➡️ metadata_linux-x64.rm

0.4.0-rc1

30 Jun 16:31
524b2bd
Compare
Choose a tag to compare
0.4.0-rc1 Pre-release
Pre-release

Created by executing this script.

0.3.2

29 Apr 11:55
5f5871b
Compare
Choose a tag to compare
  • added tcp client
  • added utc time functionality