Skip to content

Commit a854670

Browse files
committed
Prepare version 6.0.0
1 parent 9451357 commit a854670

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# jsonrpcserver Change Log
22

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+
324
## 5.0.7 (Mar 10, 2022)
425

526
- Upgrade to jsonschema 4.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@
3838
zip_safe=False,
3939
packages=["jsonrpcserver"],
4040
url="https://github.com/explodinglabs/jsonrpcserver",
41-
version="5.0.7",
41+
version="6.0.0",
4242
)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ setenv = PYTHONDONTWRITEBYTECODE=1
1111
deps =
1212
pytest
1313
pytest-asyncio
14-
commands = pytest tests
14+
commands = pytest tests --asyncio-mode=strict
1515
install_command=pip install --trusted-host=pypi.org --trusted-host=files.pythonhosted.org {opts} {packages}

0 commit comments

Comments
 (0)