v0.2.0
This release adds several new features, fixes some bugs, and makes developer-facing improvements.
Breaking changes
lt.ThingServernow accepts anlt.ThingServerConfigas its first argument (i.e. it has the same signature aslt.ThingServer.from_config()). To create one with a dictionary ofThings, uselt.ThingServer.from_things(). There is an error message pointing to the change. #320
New features
- The
lt.ThingServercan be configured to use a global lock. #318 - It's now possible to specify an API prefix in the server configuration. #268
Things may now opt in (using class settings) to have properties validated against their constraints (and type) when they are set from Python. #278- Arguments used to set constraints on properties are now validated. #277
- Properties now have a
defaultattribute in the Thing Description and JSONSchema. #273 #304 - The
descriptionof aThingnow appears in the Thing Description. #301 - There is now a summary of the public API in the docs.#307
What's Changed
- CI improvements by @rwb27 in #293
- Switch to
sansiowebsockets back-end by @rwb27 in #289 - Use a regex to match feature branch by @rwb27 in #296
- Include the "description" of the Thing in the thing_description by @julianstirling in #301
- Add a
defaultattribute to properties by @rwb27 in #273 - Functional property defaults by @rwb27 in #304
- Validate constraint keys by @rwb27 in #277
- Validate properties on assignment by @rwb27 in #278
- Docs improvements by @rwb27 in #306
- API prefix by @rwb27 in #268
- Summary API Docs by @rwb27 in #307
- Update test suite to cope with Pydantic 2.13 and update pinned dependencies. by @rwb27 in #317
- Update pydantic version to 2.13 by @rwb27 in #319
- Fix property descriptions by @rwb27 in #315
- Allow
ThingServerto acceptThingServerConfiginstances directly by @rwb27 in #320 - Remove feature flags by @rwb27 in #316
- Swap dependabot for pip audit. by @rwb27 in #332
- Implement a global lock by @rwb27 in #318
- Version bump for v0.2.0-rc1 by @rwb27 in #334
- Update dev requirements by @rwb27 in #335
- Docs fixes by @rwb27 in #336
- Deprecate
validate_properties_on_set=Falseby @rwb27 in #341 - Update dev requirements by @rwb27 in #342
- Add
api_prefixto public API by @rwb27 in #339 - Version bump for v0.2.0-rc1 by @rwb27 in #343
- Remove rc2 from version ready for release by @julianstirling in #346
Full Changelog: v0.1.0...v0.2.0