exa_api 1.1.0 copy "exa_api: ^1.1.0" to clipboard
exa_api: ^1.1.0 copied to clipboard

A pure dart SDK for the Exa API.

1.1.0 #

🟩 [Added]: Environment variable support for API key via EXA_API_KEY using String.fromEnvironment()

🟩 [Added]: Flexible authentication with optional apiKey constructor parameter

🟩 [Added]: Comprehensive null safety for all response model fields

🟩 [Added]: Enhanced documentation with authentication options and usage examples

🟩 [Added]: Migration guide for upgrading from 1.0.x

🟨 [Changed]: BREAKING - All response model fields are now nullable to handle uncertain API responses:

  • AnswerResponse: answer, citations → nullable
  • AnswerCitation: id, url, title → nullable
  • SearchResponse: requestId, resolvedSearchType, results → nullable
  • SearchResult: title, url, id → nullable
  • CostBreakdown: search, contents, breakdown → nullable
  • ContentsResponse: requestId, results → nullable
  • ContentStatus: id, status → nullable

🟨 [Changed]: Constructor now accepts optional apiKey parameter instead of required

🟨 [Changed]: Updated README with compile-time environment variable setup instructions

🟨 [Changed]: Enhanced example applications with null-safe access patterns

🟨 [Changed]: Improved class and method documentation

🟪 [Fixed]: Proper error handling in example applications for nullable response fields

🟪 [Fixed]: Add more robust handling for improper date formats

Migration from 1.0.x #

When upgrading from version 1.0.x, update your code to handle nullable response fields:

// Before (1.0.x)
print('Title: ${result.title}');
print('Found ${results.results.length} results');

// After (1.1.0+)
print('Title: ${result.title ?? 'No title'}');
print('Found ${results.results?.length ?? 0} results');

1.0.2 #

  • Initial version.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Types of Changes #

  • 🟩 Added
  • 🟨 Changed
  • 🟧 Deprecated
  • 🟥 Removed
  • 🟪 Fixed
  • 🟦 Security
1
likes
140
points
14
downloads

Publisher

verified publisherjoemuller.com

Weekly Downloads

A pure dart SDK for the Exa API.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

json_annotation

More

Packages that depend on exa_api