Skip to content

Latest commit

 

History

History
366 lines (218 loc) · 15.1 KB

CHANGELOG.md

File metadata and controls

366 lines (218 loc) · 15.1 KB

Changelog

6.4.2

Patch Changes

  • jsr readme update

6.4.1

Patch Changes

  • 609bfed: publish on jsr registry

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

6.3.1

Patch Changes

  • 9561d3f: build: fix type declaration file not generated

6.3.0

Minor Changes

  • b9d8410: allow channel to be async

6.2.1

Patch Changes

  • 3cd9415: fix build file is missing

6.2.0

Minor Changes

  • 920074c: deprecate NoSerialization

Patch Changes

  • fbfa022: add provenance statements

6.1.5

Patch Changes

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

6.1.4

Patch Changes

  • 2d38ab4: fix getOwnPropertyDescriptor becomes invalid after optimized

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.

6.1.2 (2022-08-04)

Bug Fixes

  • batch not clear the queue after emit (dc6807f)

6.1.1 (2022-07-27)

6.1.0 (2022-06-14)

Features

  • add AsyncVersionOf and AsyncGeneratorVersionOf improve UX require at least TypeScript 4.5 (fc97167)

6.0.3 (2022-06-14)

6.0.2 (2022-03-08)

Bug Fixes

6.0.1 (2021-11-20)

Bug Fixes

  • Don't send message if websocket closed (1d9ef47)

6.0.0 (2021-08-30)

⚠ BREAKING CHANGES

  • remove package exports shim, drop < Node 12.20.0

Features

  • remove package exports shim, drop < Node 12.20.0 (e2222d7)

5.1.0 (2021-05-25)

Features

Bug Fixes

  • replay function looks not good in console when uncompressed close gh-30 (d93176b)

5.0.0 (2020-12-17)

⚠ BREAKING CHANGES

  • Provide un-minified version #28
  • improve typing, require at least TS 4.1

Features

  • add error handling of async initialization (72105f1)
  • improve typing, require at least TS 4.1 (684e979)
  • Provide un-minified version #28 (78a059d)
  • return undefined for then by default (to avoid auto unwrap) (df4a673)

Bug Fixes

  • response sent in notify mode (24ea1e7)

4.2.1 (2020-11-13)

Bug Fixes

4.2.0 (2020-11-13)

Features

  • keep function identity between calls on AsyncCall (0ba5ca6)
  • keep function identity between calls on batch and generator (95450f4)
  • new options for log "all", close #23 (38e3669)

Bug Fixes

  • batch will send functions into serialization (e3136ac)
  • not call then if impl is not Promise, close #24 (be8c8de)
  • utils points to source leads to compilation in node_modules (686f8e5)

4.1.0 (2020-08-23)

Features

4.0.0 (2020-07-19)

⚠ BREAKING CHANGES

  • remove support for deprecated messageChannel
  • messageChannel has renamed to channel

Features

  • remove support for deprecated messageChannel (e6681f7)

3.3.0 (2020-07-19)

Deprecation

Features

  • impl requestReplay in log, close #22 (d241b34)
  • new interface for messageChannel and deprecates old, close #19 (7022b8c)

Bug Fixes

3.2.2 (2020-06-28)

Bug Fixes

  • support entry points for old platform that doesnt support exports field (9a108cd)

3.2.1 (2020-06-28)

Bug Fixes

  • entry points dts not exported (28e51f0)
  • wrong url in readme (ca2b581)

3.2.0 (2020-06-27)

Features

  • start to provide builtin message channels (d97381d)

3.1.0 (2020-06-27)

Features

  • add deno ws server (c07d297)
  • add node websocket server (6c0af32)
  • Support patch req/res in JSON RPC spec close #9 (9f91c51)
  • support sending notifications close #7 (e9abca6)

3.0.0 (2020-06-27)

⚠ BREAKING CHANGES

  • Enable strict mode by default, if you need the non-strict behavior, switch "strict" to false.
  • Move strict.noUndefined to 3rd parameter of JSONSerialization since only JSON needs it.
  • The export version changed from full to base. If you need full version, please import from async-call-rpc/full.

Features

  • Add hook for custom Error data close #8 (2ab36bb)
  • change to strict by default, move undefined keeping to JSONSerialization (d860da5)
  • export base version by default (6a11550)
  • id generator, close #13 (d3c51b5)
  • preserve this binding, close #16 (69f1077)

Bug Fixes

  • server ignore sendLocalStack. close #18 (25629d3)

2.0.2 (2020-06-10)

Bug Fixes

  • umd not loadable; tslib not included (a037da6)

2.0.1 (2020-06-07)

Bug Fixes

2.0.0 (2020-06-07)

⚠ BREAKING CHANGES

  • switch to node es module support
  • switch to rollup

Features

  • add new logger (16e2195)
  • dispose resource when iterator end (ebfc5df)
  • preservePauseOnException (2a7ebb1)
  • relax type on Serialization (ecbc956)
  • support thisSideImpl as Promise (db66d72)
  • switch to node es module support (6e21733)
  • switch to rollup (81d4e4a)

Bug Fixes

  • build script (42d701a)
  • close #6 - Bug: Error when the thrown error doesn't a subclass of Error (6229b7f)

1.0.4 (2019-12-23)

1.0.3 (2019-12-23)

1.0.2 (2019-12-23)

1.0.1 (2019-12-23)

Bug Fixes

  • change the package name (234440c)

1.0.0 (2019-09-21)

Features