Skip to content

v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Oct 15:01
· 3 commits to main since this release

depsdev v0.3.0 🥳

CLI client (and Golang module) for deps.dev API. Free access to dependencies, licenses, advisories, and other critical health and security signals for open source package versions.

⚠️ Breaking changes (Go module)

  • PackageVersions.Versions is now []PackageVersion instead of []Version.
  • Pypi.ExternalDependencies is now []PypiExternalDependency (new type with Name, VersionSpecifier, EnvironmentMarker).
  • ProjectBatchResponse.Responses[].Request is now a ProjectBatchRequest.
  • Removed input.ReqsValidPackageManagers and input.ErrInvalidPackageManagerForRequirements.

Features

  • Requirements work for every package manager.
  • GetFindingsBatch accepts package-level requests. Each request can now set either a VersionKey or a PackageKey.
  • client.ErrorResponse has a new StatusCode field, so callers can see the HTTP status of a failed request.

Bug fixes

  • Retried POST requests now resend their body. Before, the body was used up on the first attempt, so batch calls that hit a 5xx were retried with an empty body.
  • Error messages are kept when the API replies in plain text.
  • FindingBatchRequest only sends the key you set.
  • Fixed JSON tags.

Docs

  • Updated the reqs help text and the GetRequirements doc comments (v3 and v3alpha) to list all supported ecosystems.
  • Removed the Go Report Card badge and tidied the README header.

Tests

  • Added client tests for error parsing (plain text vs JSON, 4xx not retried vs 5xx retried) and for resending the body on POST retries.
  • Added tests that decode each fixed definition.
  • Added v3alpha API tests for requirements in Go, PyPI and Cargo, for hash queries, and for GetFindingsBatch with mixed package/version keys and invalid package managers.

Changelog

If you encounter a problem, just open an issue