Repository navigation
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.
- 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
- 998d1b4 snap
- a7ed0f7 Merge pull request #103 from edoardottt/devel
- cf80aa1 v0.3.0
- 6cdc501 Merge remote-tracking branch 'origin' into devel
- 6858dc1 Merge pull request #102 from edoardottt/fix/api-spec-conformance
- 311c8c6 stick to api specifications
- 9350d8b Update README.md
If you encounter a problem, just open an issue