This release improves error handling significantly, which should make it much easier to debug Things that aren't working as expected. There are a few small new features, and some improvements to how settings are handled. There were no code changes between v0.3.0-rc1 and this release.
Breaking changes
- There is no longer a
@getterdecorator for properties. (#351) - Settings files are now named differently. This will result in settings being reset to default. The original settings file may be renamed to fix the problem, but this is not done automatically. (#349)
New features
- If the class of a Thing is changed, but the name stays the same, it now uses a different settings file, instead of re-using the old (and probably invalid) one. (#349)
- It's now possible to specify the media type of a
Blobat creation time. (#366) - Some types are now described better in the Thing Description. (#371)
- Frames in an MJPEG stream may now use a timestamp from the camera. (#387)
- Log entries when Actions can't start may now be at a user-specified level, to reduce noise in the logs. (#393)
What's Changed
- Upgrade package versions in dev-requirements.txt by @rwb27 in #350
- Remove the "getter" decorator from
FunctionalPropertyby @rwb27 in #351 - Move settings files to include the class name. by @rwb27 in #349
- Better errors for bad return values by @rwb27 in #333
- Better event handling by @rwb27 in #256
- Improve a couple of test docstrings by @rwb27 in #362
- Specify blob media type on creation by @rwb27 in #366
- Fixes due to upstream changes by @rwb27 in #373
- Add errors to invocations as ProblemDetails. by @rwb27 in #370
- Installation instructions and contributing docs by @bprobert97 in #367
- Update testing documentation by @bprobert97 in #368
- Fix a broken warning filter. by @rwb27 in #378
- Sort imports and
__all__by @rwb27 in #375 - Swap
httpxforhttpx2by @rwb27 in #379 - Reduce argument configuration for pytest in pyproject.toml by @bprobert97 in #380
- Improved generation of
DataSchemafrom types by @rwb27 in #371 - Prevent settings files being overwritten before they are read. by @rwb27 in #384
- Generate API docs for OpenFlexure in CI by @rwb27 in #381
- Allow the timestamp for a frame to be supplied to the MJPEGStream. by @julianstirling in #387
- Update dependencies by @rwb27 in #392
- Specify supported Python minor versions by @rwb27 in #395
- Expose a function to get the Thing logger by @rwb27 in #394
- Configurable global lock log level by @rwb27 in #393
- Property error handling by @rwb27 in #389
- Use
exceptions_to_problem_detailsfor Actions as well. by @rwb27 in #396 - Version bump for v0.3.0-rc1 by @rwb27 in #385
- Minor docs fixes by @rwb27 in #400
- Version bump for v0.3.0 by @rwb27 in #402
Full Changelog: v0.2.1...v0.3.0