Releases: niolabs/nio
Releases · niolabs/nio
3.4.1
3.4.0
3.3.0
New Features
- Adds
is_user_set()
helper method tonio.modules.security.access
. Use this to detect whether a user has authenticated in the given thread - Adds
body
attribute toHTTPError
innio.modules.web.exceptions
. You can now include a JSON/dict body in exceptions to be presented in the HTTP response - Blocks raise meaningful failure exceptions - Blocks now raise information about the block in start and configure failures. The core can interpret these messages to determine which block caused a service process to fail to start.
- Flag values - Enum flags (nio.utils.flags_enum) can now be set to custom values rather than just
True
/False
. Default behavior is the legacy boolean logic so it is fully backwards compatible.
3.2.1
3.2.0
New Features
- Adds a
CoreServiceAccount
user tonio.modules.security.user
that will be used for actions taken by the core, outside of the API thread. For example, core components that auto perform actions can authenticate as theCoreServiceAccount
without requiring an incoming API request
3.1.2
New Features
- Allow custom persistence serialization/deserialization - New methods,
persistence_serialize
andpersistence_deserialize
have been added to thePersistence
mixin. See https://github.com/niolabs/nio/blob/master/nio/block/mixins/persistence/README.md for docs
Improvements/Bug Fixes
- Faster parsing of nio block expressions
3.1.1
3.1.0
New Features
- Adds support for advanced properties in blocks - these properties will be hidden behind a toggle in the System Designer
- Adds support for ordering block properties - Configure the order properties should appear in the block edit modal of the System Designer
- Adds a
set_status
method to the block base class - This allows blocks to report status information to the router. For example, a block can report that it is in error or warning status and that information will be reflected in the service status API - Adds
on_connected
andon_disconnected
callbacks andis_connected()
method to thePublisher
andSubscriber
interfaces of the communication module - Allow for asynchronous configuring of blocks in a service - previously only start and stop could be asynchronous
Improvements/Fixes
- Proper ISO-8601 formatting of log datetime strings
- Monotonic clock used in logging publisher
3.0.0
Added:
- Add Service 'id' property and make 'id' property play identity role #117 (f1401martin)
- adding 'id' to block, making 'name' optional, having 'id' play former name-uniqueness role #115 (f1401martin)
Changed:
- updating service version #118 (f1401martin)
- adding id to Service, identifying a Command through 'id' rather than 'name' #116 (f1401martin)