All notable changes to this project will be documented in this file.
- typescript-client: Remove dependencies on WebSockets npm packages (
@types/ws,wsandisomorphic-ws). - typescript-client: Set the minimum Node.js version to
22, because that's the version where support for the standard WebSockets was stabilized. - Add
Cargo.lockto the repo - Fix Axum example
- Remove 'anyhow:' prefix from errors.
- Add
RpcSession::handle_incoming_parsedandRpcSession::process_incoming_parsed - Replace async-mutex with async-lock
- ts client: fix memory leak
- Update yerpc-derive dependencies
- Update axum
- Remove Cargo.lock
- Use edition 2021 resolver
- Fix clippy
- Update autogenerated files
- Add
openrpc_specification()method to RpcServer trait - Remove
yerpc-tidecrate - Add documentation comments
- Do not inline method types. All definitions go into
#/components/schemasand parameters reference them.
This release adds OpenRPC generation support.
- Added
openrpc.jsonoutput: enable it with anopenrpcfeature andopenrpc_outdirattribute, like this#[rpc(openrpc_outdir = "./")] - Breaking: you now need to specify that you want typescript bindings as they are not enabled by default
#[rpc(ts_outdir = "typescript/generated")]instead of just#[rpc] - Add public
RpcSession.process_incoming()method - Move scripts into scripts/ directory
- add
RpcSession::server()method
- rust packages are unchanged from 0.4.1
- removed unneeded files from NPM package
- increase compatibility with jsonrpc 1.0 by allowing
id == 0and to omit"jsonrpc":"2.0"property #31 - upgrade axum to
0.6.6 - add CommonJS build
- fix: update generated ts types that were forgotten in
0.4.0
- also allow strings as ids #27
- remove
__AllTypsts type from output #18 - Do not crash if "params" are omitted from request #22
- fix: correct feature flags axum for tests
see git commit history for older releases