Skip to content

0.7.0

Latest

Choose a tag to compare

@agourlay agourlay released this 27 Apr 14:55
· 5 commits to master since this release
63d0576

Breaking changes

  • -a / --accept has been removed.
    • Use the new general-purpose -H / --header instead.
    • e.g. -H "Accept: application/json".
  • --accept-invalid-certs has been renamed to --insecure
    • also reachable as -k, matching curl.
  • When no user-agent is configured, dlm now identifies itself as dlm/<version> instead of sending reqwest's default.
    • Pass --user-agent or --random-user-agent to override.

New

  • Custom request headers -H / --header <Name: Value> lets you set arbitrary headers; pass -H multiple times to set several.
    • The string is split on the first colon, so values may contain colons.
    • e.g. -H "Authorization: Bearer foo:bar"
    • -a / --accept: Accept is now just one of any header you want to send -H "Accept: application/json".
  • Basic auth — --user <user:password> base64-encodes the credentials into an Authorization: Basic … default header.
    • It is installed before any -H headers, so a custom -H "Authorization: …" will override it if you need a different scheme (Bearer, API key, etc.).
  • Inspect the user-agent pool — --list-user-agents prints the built-in pool that --random-user-agent rotates through, so you can see what's on offer or copy one to pass via --user-agent.

Improvements

  • Stricter filename sanitization.
    • Windows reserved names (CON, PRN, LPT1…), control characters, trailing dots/whitespace, 255-byte cap, and percent-encoded / in filenames are now handled.
  • Accept-Ranges: bytes header is matched case-insensitively.
  • Politer retry schedule.
    • 3 fixed 500ms attempts before the exponential backoff kicks in
    • capped at 10 minutes.
  • Internal metadata extraction consolidated.
  • New end-to-end integration test suite.

Dependencies

  • tokio 1.50.0 → 1.52.1
  • clap 4.6.0 → 4.6.1
  • jiff 0.2.23 → 0.2.24
  • rand 0.10.0 → 0.10.1
  • removed tokio-retry (replaced by an in-tree retry helper)

Full Changelog: v0.6.1...v0.7.0