Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
0f1fd29
Replace Oslash with Returns
bcb May 14, 2022
c1426f6
Fix github action
bcb May 14, 2022
d806553
Fix github action
bcb May 14, 2022
0ede79e
Add comment to docs
bcb May 17, 2022
9451357
Merge branch 'use-returns' into prepare-v6
bcb May 18, 2022
a854670
Prepare version 6.0.0
bcb May 18, 2022
e9c2da2
Merge branch 'main' into prepare-v6
bcb May 19, 2022
8808a43
Adjust docstring
bcb May 20, 2022
03f80d0
Remove errant comma
bcb May 24, 2022
173bbca
Merge branch 'main' into release/6.0.0
bcb Sep 21, 2022
609b990
Adjust github workflow
bcb Sep 21, 2022
bae441c
Upgrade mypy in github workflow
bcb Sep 21, 2022
866a4e2
Enable all Pylint errors
bcb Oct 10, 2022
e74da97
Merge branch 'main' into release/6.0.0
bcb Oct 10, 2022
f6294ee
Fix not re-exported error
bcb Oct 10, 2022
ab30150
Upgrade pylint
bcb Nov 9, 2022
4f510b1
Pylint fixes
bcb Nov 9, 2022
73ba6a3
Update changelog
bcb Nov 9, 2022
0e67522
Fix some tests
bcb Nov 16, 2022
f4e8761
Fix parameters
bcb Feb 26, 2023
558215b
Fixes to satisfy ruff
bcb Feb 26, 2023
0a88d8f
Replace pylint with ruff
bcb Mar 3, 2023
65f798c
Adjustments to satisfy ruff and mypy
bcb Mar 3, 2023
843fdcd
Fix a repr
bcb May 10, 2023
ae90cdf
Use ruff in github actions
bcb May 10, 2023
6db0f90
Fix type error
bcb May 10, 2023
e7287b5
Upgrade ruff
bcb May 10, 2023
75cee0e
Replace setup.py with pyproject.toml
bcb May 24, 2023
9a1fe9f
Always stop the server when exiting serve()
bcb May 31, 2023
ffe8374
Replace black and isort with ruff (#278)
bcb Jul 29, 2024
be34675
Move documentation to Github wiki (#280)
bcb Jul 31, 2024
389959d
Update readme (#281)
bcb Jul 31, 2024
8c23c46
Replace readthedocs with mkdocs (#282)
bcb Aug 16, 2024
1d9153e
Remove pylint pragmas (#283)
bcb Aug 17, 2024
6efc172
Move request-schema.json to a .py file (#284)
bcb Aug 28, 2024
5c745ce
Add jsonschema dependency
bcb Nov 14, 2024
c2b807e
Add license badge
bcb Mar 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move documentation to Github wiki (#280)
  • Loading branch information
bcb authored Jul 31, 2024
commit be3467579aaf2d5d60161889a8730e60804d571a
19 changes: 9 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ change for async use.

Breaking changes:

- Decorate async JSON-RPC methods with `@async_method` instead of `@method`.
The reason for this change is due to the typing of the decorator, async
functions return a different type (`Awaitable`) to other functions.
- Async methods should be decorated with `@async_method` instead of `@method`. The
reason is due to the _type_ of the decorated function - async functions have a
different type to other functions (`Awaitable`).

Other changes:

- Internally, replaced the Oslash dependency with
[Returns](https://github.com/dry-python/returns). Because Oslash is not meant
for production use.
- Use `Ok` instead of `Success` when returning a response. This is to avoid
confusion with the Returns library now used internally which has it's own
`Success` class. It also matches Jsonrpcclient's `Ok` type. This is not a
breaking change, `Success` will still work for now. But use `Ok` instead.
- Replaced the Oslash dependency with [Returns](https://github.com/dry-python/returns).
Oslash is not meant for production use, and doesn't work in Python 3.12.
- Use `Ok` instead of `Success` when returning a response. This is to avoid confusion
with the Returns library's `Success` class. It also matches Jsonrpcclient's `Ok` type.
This is not a breaking change, `Success` will still work for now.
- Docs moved to https://github.com/explodinglabs/jsonrpcserver/wiki

## 5.0.9 (Sep 15, 2022)

Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ from jsonrpcserver import method, serve, Ok, Result
def ping() -> Result:
return Ok("pong")

if __name__ == "__main__":
serve()
```

Or use `dispatch` instead of `serve`:
```python
response = dispatch('{"jsonrpc": "2.0", "method": "ping", "id": 1}')
# => '{"jsonrpc": "2.0", "result": "pong", "id": 1}'
```
Expand Down
177 changes: 0 additions & 177 deletions docs/Makefile

This file was deleted.

43 changes: 0 additions & 43 deletions docs/async.md

This file was deleted.

62 changes: 0 additions & 62 deletions docs/conf.py

This file was deleted.

Loading