Repository navigation
Releases: techolve/formula1_data
Releases · techolve/formula1_data
Release list
v2.0.0
Breaking changes
- Convert from a Flutter plugin to a pure Dart package (remove the
flutterSDK dependency); the package can now be used in any Dart project, not just Flutter - Every
Formula1Datamethod now returns aPaginatedResult<T>instead of a bareList<T>, exposingitems,total,limit, andoffset(see #11). Access results via.itemsinstead of the result directly.
Fixes
- Fix a bug where
Formula1Dataclosed its sharedDioclient after the first API call, causing every subsequent call on the same instance to silently fail and returnnull/an empty list - Correct the package description, which incorrectly referred to graphing/charting features that don't exist
- Fix incorrect field/method names in the README usage sample (
Circuit.circuitName,getLaps,PitStop.driver.driverId) - Add a default
User-Agentheader identifying this package to the jolpica-f1 API (which requires one);Formula1Data(userAgent: ...)lets consuming apps prefix their own identifier - Add
offset/limitpagination parameters togetSeasons,getCircuits,getRaces,getConstructors,getDrivers, andgetResults, which previously always returned only the API's default 30 items
Other
- Add an
example/directory with a runnable usage sample - Add
topicsandissue_trackertopubspec.yaml - Switch from
flutter_lintstolintsand update dev dependencies to their latest versions - Remove an unused duplicate
PitStopmodel file
Full Changelog: #13