Skip to content

v0.0.1

Choose a tag to compare

@arjunjain arjunjain released this 01 Jun 13:27
· 17 commits to main since this release

Initial release of the Newsdata.io Dart/Flutter client — published on pub.dev as newsdataapi.

Pure Dart package, works on Flutter (iOS, Android, Web, Desktop) and standalone Dart (CLI, server). Typed named-parameter methods for all 8 endpoints (latest, archive, crypto, sources, market, count, cryptoCount, marketCount) with the same proven core as the Python / PHP / Node / React / Go SDKs:

  • Client-side parameter validation (mutex groups, sentiment_score rule, size 1–50, count date requirement, rawQuery parsing)
  • Typed exception hierarchy (NewsdataValidationException, NewsdataApiException, NewsdataAuthException, NewsdataRateLimitException, NewsdataServerException, NewsdataNetworkException)
  • Retries with exponential backoff + Retry-After parsing (integer seconds + HTTP-date)
  • scrollAll (merged Future) and paginate (idiomatic Stream)
  • Compile-time required fromDate / toDate on count endpoints
  • Custom http.Client injection, optional logger callback, API-key redaction in logs
  • Typed Article model including AI enrichments (aiTag, aiRegion, aiOrg, sentiment, sentimentStats)
  • Zero Flutter deps — pure Dart, no platform channels
  • 34 unit tests via package:http/testing MockClient (no network needed)

Note: this release was published to pub.dev manually (first publish needs an authenticated session to claim the package). The GitHub Actions workflow run triggered by this release will fail with "version already exists" — that's expected and harmless. From v0.0.2 onward, configure the Trusted Publisher on pub.dev and releases will publish automatically via OIDC.