Releases: dbohdan/recur
Releases · dbohdan/recur
v3.3.0
v3.2.0
- Added the
-u/--unlimitedoption as a more clear alternative to-f/--forever.-f/--foreverwill remain available but is not recommended in new usage. - In the internal
retryConfigstruct, split theFixedDelayinterval into more logicalConstantDelayandMaxDelay. This affects the config output shown for debugging with-vvv. - Added a new verbosity level
-vvvvthat includes zero values in the config output.
v3.1.0
v3.0.0
This release includes several relatively small breaking changes. The breaking changes to Starlark conditions were made to better introduce a new feature, regular-expression search on standard input/output/error.
Breaking changes
- The Starlark condition can be any truthy or falsy value, not just a boolean.
- Replaced the Starlark function
flush_stdout()with the methodstdout.flush(). - Changed error exit codes:
- Command not found: from 255 to 127 (like POSIX shell)
- Timeout: from 255 to 124 (like GNU and BSD
timeout) - Unknown error: from -1 to 255 (for consistency between POSIX and Windows because Windows allows negative exit codes)
- Required Go 1.22 to build (was 1.19).
Features
- Implemented an object-oriented approach to standard input/output/error in Starlark condition expressions.
- Added a new CLI option
-E/--hold-stderrthat works like-O/--hold-stdoutbut for standard error. Addedstderr.flush()in condition expressions. - Added a new CLI option
-s/--seedto set the random seed for reproducible jitter. - Added regular-expression search on buffers:
stdin.search(),stdout.search(), andstderr.search() - Improved the option
-j/--jitterto allow spaces around the comma in the value. For example,1ms, 5msis now valid.
v2.5.0
v2.4.0
v2.3.0
v2.2.0
v2.1.0
- Fixed
time,total_timenot being properly converted to seconds in Starlark conditions. - Added a new Starlark function
inspectfor debugging conditions. - Changed the log message "waiting 1s after attempt 2" to "waiting 1s before attempt 3". This is consistent with how exit codes are announced.
Full changelog: v2.0.4...v2.1.0.