Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-call-rpc

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-call-rpc - npm Package Versions

234

6.4.2

Diff

Changelog

Source

6.4.2

Patch Changes

  • jsr readme update
jackworks
published 6.4.1 •

Changelog

Source

6.4.1

Patch Changes

  • 609bfed: publish on jsr registry
jackworks
published 6.4.0 •

Changelog

Source

6.4.0

Minor Changes

  • fd34f22: add a new encoder option and deprecate the old serializer option

    how to migrate:

    // before
    const options = {
        channel,
        serializer: {
            serialization(data) { return ... },
            deserialization(data) { return ... },
        },
    }
    
    // after
    const options = {
        channel,
        encoder: {
            encode(data) { return ... },
            decode(data) { return ... },
        },
    }
    
    // before
    const options = {
      channel,
      serializer: NoSerialization,
    };
    
    // after
    const options = {
      channel,
    };
    
    // before
    const options = {
      channel,
      serializer: JSONSerialization(),
    };
    
    // after
    const options = {
      channel,
      encoder: JSONEncoder(),
    };
    
  • fd34f22: hint added to the CallbackBasedChannel.setup(jsonRPCHandlerCallback) and EventBasedChannel.on(listener).

    For an isomorphic instance of AsyncCall (used as both a server and a client), when a new message comes, it does not clear if to call decodeRequest or decodeRespones.

    This version introduces a new option encoder to replace serialization. serialization is always working in isomorphic way.

    • If hint is "request", (encoder as ServerEncoding).decodeRequest will be called first, if this method does not exist, (encoder as IsomorphicEncoder).decode will be called.
    • If hint is "response", (encoder as ClientEncoding).decodeResponse will be called first, if this method does not exist, (encoder as IsomorphicEncoder).decode will be called.
    • If hint is not present, only encoder.decode will be called.
  • 0d0900b: rename "key" to "name"

  • fd34f22: BSON_Serialization and Msgpack_Serialization is now deprecated

  • 0431c15: rename AsyncCallStrictJSONRPC to AsyncCallStrictOptions

  • 8a38d8b: add signal and forceSignal to stop the instance

  • c9bbbd2: rename parameterStructures to parameterStructure

  • fd34f22: expose JSON-RPC interfaces

  • fd34f22: new built-in JSONEncoder for the new encode option.

Patch Changes

  • fd34f22: Add Promise<void> into return signature of EventBasedChannel.send
jackworks
published 6.3.1 •

Changelog

Source

6.3.1

Patch Changes

  • 9561d3f: build: fix type declaration file not generated
jackworks
published 6.3.0 •

Changelog

Source

6.3.0

Minor Changes

  • b9d8410: allow channel to be async
jackworks
published 6.2.1 •

Changelog

Source

6.2.1

Patch Changes

  • 3cd9415: fix build file is missing
jackworks
published 6.2.0 •

Changelog

Source

6.2.0

Minor Changes

  • 920074c: deprecate NoSerialization

Patch Changes

  • fbfa022: add provenance statements
jackworks
published 6.1.5 •

Changelog

Source

6.1.5

Patch Changes

  • 78ab196: fix: types is missing in the release process
jackworks
published 6.1.4 •

Changelog

Source

6.1.4

Patch Changes

  • 2d38ab4: fix getOwnPropertyDescriptor becomes invalid after optimized
jackworks
published 6.1.3 •

Changelog

Source

6.1.3

Patch Changes

  • f4e2569: fix [[GetOwnPropertyDescriptor]] returns undefined

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc