Releases: borderless/json-rpc
Releases · borderless/json-rpc
Move to @borderless
Changed
- Move to @borderless org
Remove `io-ts`
Changed
- Removed
io-tsand explicit JSON validation from package- This could be added back upon request by adding an encode/decode layer
Fix `io-ts` usage
Fixed
- Previous version released using Zod, revert and retain
io-tsfor now since it supportsanyandrecord
Remove Array Params
Changed
- Remove support for array parameters, support any
paramsin JSON-RPC (non-spec compliant)- Supporting the array made intersections and unions harder to type
Expose client types
Fixed
- Expose helper types for working with client types
Allow Send Options
Added
- Allow
optionsto be proxied tosendmethod (e.g.fetchconfiguration or headers)
Configure encode/decode, add `many` client method
Added
- Configure encode/decode
- Expose
manyclient method for batching
RPC Client
Added
- Add a typed RPC client
Changed
- NON-SEMVER Rename
createRpctocreateServerto align with JSON RPC
Initial Release
Tiny, type-safe JSON RPC processor. Makes no assumptions about transportation protocol. This is important because a lot of the work I've been doing is on serverless, where traditional HTTP servers aren't available (e.g. AWS Lambda or Cloudflare Workers).