Managedstate

Latest version: v5.1.0

Safety actively analyzes 619324 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

5.1.0

- Added `NO_DEFAULT` sentinel value which can be included inside a default values list, and which enables the defaults provided to be only a partial list without specifying a default at every index

No breaking changes.

5.0.2

- Fix to how Registrar modifies `._extension_data` (previously, any recursive call to `.registered_get`/`.registered_set` would cause it to attempt to delete the same key twice and throw an exception)

No breaking changes.

5.0.1

- Exceptions raised during the execution of a KeyQuery are now caught, and the default argument for that path key used.

No breaking changes.

5.0.0

- Added additional calls to Methods.try_copy() where it is sensible to copy method params before mutating them, or in similar circumstances
(from a user perspective, this means that there should be no mutability gotchas when using this package - any params passed in will have a working copy created to mutate internally, and any return values will also be copies themselves)
- Renamed positional params from `method` to `method_name` in Listeners for clarity
- Minor improvements to error messages
- Fixes to type hints
- Improvements to docstrings
- Updated readme
- Updated dependency

This release features minor breaking changes in the form of renamed positional params.

4.0.0

- Removed local Methods.try_copy(), instead using identical method from objectextensions dependency

This release features breaking changes in the form of the above removed method.

3.0.0

- State.set() now attempts to populate any list encountered in the state that has insufficient length with copies of the relevant provided default value, in order to store the set value at the desired index
- KeyQuery.history now returns a list rather than a tuple, modify at your own risk
- Added and improved code comments
- Added tests for new functionality

This release features breaking changes in the form of modified behaviour in State.set(), and a modified return value in KeyQuery.history.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.