Skip to content

Releases: tigusigalpa/cryptopanic-go

Release list

v1.1.1

Choose a tag to compare

@tigusigalpa tigusigalpa released this 02 Sep 19:31

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.Message and APIError.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 WithBaseURL behavior.

Verification

  • go test -race ./...
  • go vet ./...
  • golint ./...
  • Test coverage: 83.9%

v1.0.0

Choose a tag to compare

@tigusigalpa tigusigalpa released this 28 Jul 06:36

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=rss
    • GET /news/rss/
  • Added configurable client options for plans, base URLs, HTTP clients, timeouts, User-Agent, retries, and test sleepers.
  • Added New and NewFromEnv constructors.
  • Added typed models for posts, sources, instruments, votes, authors, content, pagination, portfolio, and RSS responses.
  • Added comprehensive PostsQuery filtering and validation.
  • Added context cancellation and request timeout support.
  • Added configurable retries for HTTP 429, 500, 502, 503, and transient network failures.
  • Added Retry-After support with exponential backoff and jitter.
  • Added structured API errors with errors.Is and errors.As support.
  • Added authentication-token redaction in pagination URLs and error responses.
  • Added pointer helpers: BoolPtr, IntPtr, TimePtr, and StringPtr.
  • 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.