Skip to content

v0.9.0

Choose a tag to compare

@dbohdan dbohdan released this 17 Sep 11:25
· 5 commits to master since this release
v0.9.0

This release features a number of breaking changes. Typical usage remains the same except for the default polling interval. The interval has been increased to 2 seconds to match similar software.

Breaking changes

  • Started to distinguish between an error when fetching or parsing data and an empty response. For example, a JSON HTTP endpoint returning error 500 and then recovering with the same data as before the error will be treated as zero changes. It was treated as two. The same now applies to a JSON endpoint or command suddenly returning !@#$%. An empty response consisting of nothing or only whitespace is still treated as empty JSON, i.e., that all data has been removed.
  • Removed the short aliases c for cmd and u for url. They look too much like short options.
  • Replaced -d/--debug with -v/--verbose that has two levels. Level one only prints errors; level two also prints input data. We no longer print input data as is; control characters are escaped for security reasons. A priority goal is to prevent ANSI injection attacks. A separate "End of multiline input data" debug message is printed after multiline input data.
  • Changed the default polling interval from 1 second to 2 seconds like watch and Viddy.
  • Limited the url response size to 128 MiB.

Features

  • Added the option-c/--changes that makes jsonwatch exit after a given number of changes.

Build

  • Started generating signed checksums of the release binaries. Go to dbohdan.com/pubkeys to verify the checksum.