Skip to content

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 09 Mar 19:01
2225e25

Features

  • --version flag — jwtd --version now prints the build version, injected at compile time via ldflags
  • Timestamps show original epoch value — Formatted timestamp fields now display both the human-readable date and the original Unix value, e.g. 2018-01-18T01:30:22Z (1516239022)

Bug Fixes

  • JSON array payloads in JWE — Decrypted JWE payloads that are JSON arrays are now pretty-printed instead of causing a fallback to raw text
  • Error propagation — printSection errors are now returned to the caller instead of being written to stderr
  • Unchecked errors — All fmt.Fprintln, color.Fprintln, color.Fprintf, and rl.Close() return values are now properly checked and propagated

Refactoring

  • Use cmd.OutOrStdout() instead of hardcoded os.Stdout for testable output
  • verifySignature returns an error instead of printing directly to stderr
  • Algorithm slices use package-level var declarations instead of function calls

Tests

  • Added Ed25519 JWS signature verification coverage (valid with private key, valid with public key, invalid with wrong key)

Chores

  • Ignore IntelliJ/IDEA project files
  • Update to Go 1.26.1