Skip to content

Releases: borderless/json-rpc

Move to @borderless

14 Feb 09:11
Compare
Choose a tag to compare

Remove `io-ts`

13 Aug 00:14
Compare
Choose a tag to compare

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

18 Mar 04:20
Compare
Choose a tag to compare

Fixed

  • Previous version released using Zod, revert and retain io-ts for now since it supports any and record

Remove Array Params

18 Mar 03:55
Compare
Choose a tag to compare

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

02 Mar 05:59
Compare
Choose a tag to compare

Fixed

  • Expose helper types for working with client types

Allow Send Options

02 Mar 05:01
Compare
Choose a tag to compare

Added

  • Allow options to be proxied to send method (e.g. fetch configuration or headers)

Configure encode/decode, add `many` client method

29 Feb 03:28
Compare
Choose a tag to compare

Added

  • Configure encode/decode
  • Expose many client method for batching

RPC Client

14 Jan 07:12
Compare
Choose a tag to compare

Added

  • Add a typed RPC client

Changed

  • NON-SEMVER Rename createRpc to createServer to align with JSON RPC

Initial Release

13 Jan 18:07
Compare
Choose a tag to compare

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).