Skip to content

Choose a tag to compare

@ilyash-b ilyash-b released this 16 Apr 13:05
· 502 commits to master since this release

New features

  • Parsing of curl -i ... command into {"code": Int, "message": Str, "headers": Hash, "headers_arr": Hash, "body": Str}
  • Add decode(Str, p), where p is a Path or its subtype.
  • Add assert(Path)
  • Add Bool(Real)
  • Add experimental native_ll_maybe_wrap
  • Add TmpDir
  • Add replace(File, Any, Any) for in-place replacement

Fixes and improvements

  • Fix #451 - decode(Bool) is not strict enough
  • group(Eachable1, Fun) now has additional parameter v: group(e:Eachable1, k:Fun, v:Fun=...). v tells how to process values before adding to the resulting multi-value-map.
  • The ? operator now takes Any instead of Fun as the right argument.
  • Fix tr exception when pattern is a Hash and it should match not at the top level.
  • Argv now accepts Repeat keys: {Repeat('--repeat'): my_arr}
  • Support my_arr[idx] = val for negative idxes.
  • c_pcre_exec now behaves correctly when too many captures are specified
  • Fix crash when accessing RegExp#options.
  • Improve GitHub build action
  • Add builds: Arch Linux, centos 7 and 8, fedora 34 and 35, Amazon Linux 2
  • Better exception message when redirecting to >${null}.
  • Website update & dark theme support
  • ($()) is now a valid syntax for the identifier $()

Deprecated

  • Argv - ['--repeat'] is deprecated in favor of Repeat('--repeat')
  • attrs() is deprecated, use meta() instead

Breaking changes

  • Str(Path) is now returning .path, not <Path path=...>
  • the_one() is now fixed and will throw exception instead of returning null when appropriate found_none or found_more is not specified.