This repository was archived by the owner on Nov 9, 2023. It is now read-only.
6.0.0
Added
- Add docstrings for public
JsonRpcEnginemethods (#70)
Changed
- (BREAKING) Refactor exports (#69)
- All exports are now named, and available via the package entry point.
- All default exports have been removed.
- (BREAKING) Convert
asMiddlewareto instance method (#69)- The
asMiddlewareexport has been removed.
- The
- (BREAKING) Add runtime typechecks to
JsonRpcEngine.handle(), and error responses if they fail (#70)- Requests will now error if:
- The request is not a plain object, or if the
methodproperty is not astring. Empty strings are allowed. - A
nextmiddleware callback is called with a truthy, non-function parameter.
- The request is not a plain object, or if the
- Requests will now error if:
- Migrate to TypeScript (#69)
- Hopefully improve stack traces by removing uses of
Promise.thenand.catchinternally (#70) - Make some internal
JsonRpcEnginemethodsstatic(#71)