Releases: mutating/cantok
Releases · mutating/cantok
0.0.26
An important update dedicated to internal optimizations. The token interfaces have not changed in any way.
- Each token now caches information that one of the tokens embedded in it has been canceled. When the token status is requested again, it will not bypass the graph, but will immediately return the result.
- Added an optimization of the token summation operation: now, if you add a
SimpleToken()object that has not been saved to any variable to any another token, this object will be ignored. Thus, the token tree becomes smaller. That is, the operationSimpleToken() + TimeoutToken(5)now gives the resultSimpleToken(TimeoutToken(5)), notSimpleToken(SimpleToken(), TimeoutToken(5))like before. In addition, this leads to the fact that the sums of more than 3 tokens become "flat". - Fixed a bug where you could set the
cancelledattribute of a token whose nested token was canceled toFalse. - Added the
__slots__attribute to the cancellation report object. This allowed you to save an extra 8 bytes on each such object, provided that you have Python 3.10 or later. - Type hints slightly improved. The file structure of the project is now more extensive. The package metadata was slightly expanded.
0.0.25
A little update.
- Added a small optimization. Now, when adding and embedding tokens,
DefaultToken's are ignored. - Added a test coverage gate - 100%.
0.0.24
Technical release, library features have not changed.
- Expanded the number of checks that occur in CI. Now linters are applied to tests as well.
- Made some minor corrections (for example, removing unnecessary imports) to the tests.
- Added issue templates.
- Fixed a typo in the documentation.
0.0.23
A small but important update.
- Added a new type of tokens -
DefaultToken. - Expanded the documentation.
0.0.22
0.0.21
Nothing important, just updating the documentation.
0.0.20
A small update, functionality is not affected.
- Added some details to the documentation.
- Added new tests.
0.0.19
A small update with no significant changes in functionality.
- Changed the message with which the
ConditionCancellationErrorexception is raised. - The exception documentation is slightly expanded.
0.0.18
A small but important update.
- Added caching of a positive condition check result for
ConditionToken.
0.0.17
A small but important stabilization update.
- Added some new tests.
- Fixed an error that occurs when asynchronously waiting for a token if there are no strong references to the result returned by the
wait()method. - Added some tooling for mutation testing.
- Deleted some dead code.
- Fixed documentation.