Releases: borderless/json-rpc
Releases · borderless/json-rpc
Move to @borderless
Changed
- Move to @borderless org
Remove `io-ts`
Changed
- Removed
io-ts
and 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-ts
for now since it supportsany
andrecord
Remove Array Params
Changed
- Remove support for array parameters, support any
params
in 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
options
to be proxied tosend
method (e.g.fetch
configuration or headers)
Configure encode/decode, add `many` client method
Added
- Configure encode/decode
- Expose
many
client method for batching
RPC Client
Added
- Add a typed RPC client
Changed
- NON-SEMVER Rename
createRpc
tocreateServer
to 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).