Repository navigation
Releases: tigusigalpa/cryptopanic-go
Releases · tigusigalpa/cryptopanic-go
Release list
v1.1.1
v1.1.1
Fixed
- Prevented accidental exposure of the configured API token when an API error response echoes request data. Token redaction now applies to both
APIError.MessageandAPIError.RawBody. - Made retry waits respect context cancellation immediately when using the built-in sleeper.
- Hardened retry backoff calculations against tiny delays, oversized base delays, and large retry counts.
- Restricted network retries to timeout and explicitly temporary network errors.
- Normalized custom base URLs with a trailing slash to avoid malformed request paths.
Changed
- Improved test reliability by checking mock HTTP response write errors.
- Updated CI lint configuration and removed the deprecated GitHub Actions output format.
- Fixed the Codecov workflow to generate coverage for the actual package.
- Refreshed documentation badges and clarified
WithBaseURLbehavior.
Verification
go test -race ./...go vet ./...golint ./...- Test coverage: 83.9%
v1.0.0
v1.0.0 — Initial Release
The first stable release of cryptopanic-go, a typed and context-aware Go SDK for the CryptoPanic API.
Highlights
- Added typed support for:
GET /posts/GET /portfolio/GET /posts/?format=rssGET /news/rss/
- Added configurable client options for plans, base URLs, HTTP clients, timeouts, User-Agent, retries, and test sleepers.
- Added
NewandNewFromEnvconstructors. - Added typed models for posts, sources, instruments, votes, authors, content, pagination, portfolio, and RSS responses.
- Added comprehensive
PostsQueryfiltering and validation. - Added context cancellation and request timeout support.
- Added configurable retries for HTTP
429,500,502,503, and transient network failures. - Added
Retry-Aftersupport with exponential backoff and jitter. - Added structured API errors with
errors.Isanderrors.Assupport. - Added authentication-token redaction in pagination URLs and error responses.
- Added pointer helpers:
BoolPtr,IntPtr,TimePtr, andStringPtr. - Added test fixtures, comprehensive automated tests, and GitHub Actions CI.
This release is built with the Go standard library and has zero external runtime dependencies.
Status: Ready for production use.