File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1
1
# jsonrpcserver Change Log
2
2
3
+ ## 6.0.0 (May 18, 2022)
4
+
5
+ A small release but incrementing the major release number due to a breaking
6
+ change for async use.
7
+
8
+ Breaking changes:
9
+
10
+ - Decorate async JSON-RPC methods with ` @async_method ` instead of ` @method ` .
11
+ The reason for this change is due to the typing of the decorator, async
12
+ functions return a different type (` Awaitable ` ) to other functions.
13
+
14
+ Other changes:
15
+
16
+ - Internally, replaced the Oslash dependency with
17
+ [ Returns] ( https://github.com/dry-python/returns ) . Because Oslash is not meant
18
+ for production use.
19
+ - Use ` Ok ` instead of ` Success ` when returning a response. This is to avoid
20
+ confusion with the Returns library now used internally which has it's own
21
+ ` Success ` class. This is not a breaking change, ` Success ` will still work for
22
+ now, however ` Ok ` is recommended.
23
+
3
24
## 5.0.7 (Mar 10, 2022)
4
25
5
26
- Upgrade to jsonschema 4.
Original file line number Diff line number Diff line change 38
38
zip_safe = False ,
39
39
packages = ["jsonrpcserver" ],
40
40
url = "https://github.com/explodinglabs/jsonrpcserver" ,
41
- version = "5 .0.7 " ,
41
+ version = "6 .0.0 " ,
42
42
)
Original file line number Diff line number Diff line change @@ -11,5 +11,5 @@ setenv = PYTHONDONTWRITEBYTECODE=1
11
11
deps =
12
12
pytest
13
13
pytest-asyncio
14
- commands = pytest tests
14
+ commands = pytest tests -- asyncio-mode =strict
15
15
install_command =pip install --trusted-host =pypi.org --trusted-host =files.pythonhosted.org {opts} {packages}
You can’t perform that action at this time.
0 commit comments