lifx_http_api 0.0.17
lifx_http_api: ^0.0.17 copied to clipboard
A dart implementation of the LIFX HTTP API for smart LED bulbs.
Changelog #
All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.
The project does not yet adhere to Semantic Versioning. That is aimed for after initial release.
0.0.17 - 2023-10-02 #
- Updated packages
0.0.16 - 2023-03-23 #
Fixed #
- Fixed an issue with
LIFXClient.setStatethat caused successful status codes that aren't 207 to throw an error.
0.0.15 - 2023-03-22 #
Added #
- Added
http.Response responseproperty to LIFXError.responseis now returned with any errors returned fromhandleResponse.
0.0.14 #
Added #
- Added
Selectormodel to match the API https://api.developer.lifx.com/reference/selectors.labelandidfactories added.
LIFXClientnow accepts an optionalendpointparameter.- Added
LIFXResponsetype - Added
SetStateResponsetype
Changed #
- Upgraded package
lintsto 2.0.0 - BREAKING Rename
BulbtoLIFXBulb - BREAKING Rename
ClienttoLIFXClient - BREAKING Rename
LifxColortoLIFXColor - BREAKING Rename
LifxGrouptoLIFXGroup - BREAKING Rename
LifxPowertoLIFXPower - BREAKING
LIFXClient.listLightspositional parameter changed from typeStringto typeSelector.
LIFXClient Changes #
- BREAKING
LIFXClient.listLightsreturn type change fromFuture<Iterable<Bulb>>toFuture<List<LIFXBulb>> - BREAKING Change
LIFXClient.setStatereturn type fromFuture<SetStateBody>toFuture<SetStateResponse>
0.0.12 - 2021-10-31 #
0.0.11 - 2021-08-25 #
0.0.9 - 2021-08-25 #
Added #
- Added
LifxPowerenum. - Added
LifxUnauthorizedErrorand throw it on any unauthorized HTTP errors. - Added
LifxHttpExceptionand throw it on any unhandled HTTP responses or errors.
Changed #
- Changed
Groupto beLifxGroup. Client.listLightsnow accepts a selector, with the default set toall.- Refactored
Client.listLightsandClient.setStateto better handle errors and provide http responses on exception.
0.0.5 - 2021-07-24 #
0.0.3 - 2021-05-28 #
Added #
- A new REPL CLI at
bin/cli.dartfor using local manual testing/use.
Changed #
Client.setStatenow required the Bulbidinstead ofuuidClient.setStatenow returns the LIFX API response.- Added linting and fixed lots of small lint and type errors.
Fixed #
- Passing any of the optional parameters to
Client.setStatewill now actually add them to the request body.