Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stephenh/ts-proto
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 723b528
Choose a base ref
...
head repository: stephenh/ts-proto
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 36f66b0
Choose a head ref
  • 5 commits
  • 35 files changed
  • 4 contributors

Commits on Jul 1, 2022

  1. chore: Bump TypeScript in ts-proto-descriptors. (#606)

    * Bump TypeScript in ts-proto-descriptors.
    
    * v1.7.0
    stephenh authored Jul 1, 2022
    Configuration menu
    Copy the full SHA
    6eb996e View commit details
    Browse the repository at this point in the history
  2. refactor: update to typescript 4.7.4 (#603)

    Updates to TypeScript 4.7.x (latest).
    
    This requires an update to ts-proto-descriptors, to release:
    
     1. Release ts-proto-descriptors version 1.7.0.
     2. Update package.json with ts-proto-descriptors version.
     3. Publish ts-proto update.
    
    Additionally, some other minor fixes:
    
     - Cast _unknownFields to any to fix build errors.
     - Update docker-compose to v2: uses plugin: "docker compose"
    
    Fixes #607
    
    Signed-off-by: Christian Stewart <christian@paral.in>
    paralin authored Jul 1, 2022
    Configuration menu
    Copy the full SHA
    e2323b6 View commit details
    Browse the repository at this point in the history
  3. chore(deps-dev): bump semantic-release from 17.4.2 to 19.0.3 (#592)

    Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.4.2 to 19.0.3.
    - [Release notes](https://github.com/semantic-release/semantic-release/releases)
    - [Commits](semantic-release/semantic-release@v17.4.2...v19.0.3)
    
    ---
    updated-dependencies:
    - dependency-name: semantic-release
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jul 1, 2022
    Configuration menu
    Copy the full SHA
    b7954f2 View commit details
    Browse the repository at this point in the history
  4. feat: add option to use async iterables (#605)

    Adds option useAsyncIterable which uses AsyncIterable instead of Observable.
    
    For example:
    
      bidirectionalStreamingRequest(
        service: string,
        method: string,
        data: AsyncIterable<Uint8Array>
      ): AsyncIterable<Uint8Array>
    
    Generates Transform async iterables for encoding and decoding:
    
      // encodeTransform encodes a source of message objects.
      // Transform<TestMessage, Uint8Array>
      async *encodeTransform(
        source: AsyncIterable<TestMessage | TestMessage[]> | Iterable<TestMessage | TestMessage[]>
      ): AsyncIterable<Uint8Array> {
        for await (const pkt of source) {
          if (Array.isArray(pkt)) {
            for (const p of pkt) {
              yield* [TestMessage.encode(p).finish()];
            }
          } else {
            yield* [TestMessage.encode(pkt).finish()];
          }
        }
      },
    
      // decodeTransform decodes a source of encoded messages.
      // Transform<Uint8Array, TestMessage>
      async *decodeTransform(
        source: AsyncIterable<Uint8Array | Uint8Array[]> | Iterable<Uint8Array | Uint8Array[]>
      ): AsyncIterable<TestMessage> {
        for await (const pkt of source) {
          if (Array.isArray(pkt)) {
            for (const p of pkt) {
              yield* [TestMessage.decode(p)];
            }
          } else {
            yield* [TestMessage.decode(pkt)];
          }
        }
      },
    
    Generates RPC service implementations which use the Transform iterators:
    
      BidiStreaming(request: AsyncIterable<TestMessage>): AsyncIterable<TestMessage> {
        const data = TestMessage.encodeTransform(request);
        const result = this.rpc.bidirectionalStreamingRequest('simple.Test', 'BidiStreaming', data);
        return TestMessage.decodeTransform(result);
      }
    
    AsyncIterables indicate a stream has ended by closing with an optional error.
    
    Fixes #600
    
    Signed-off-by: Christian Stewart <christian@paral.in>
    paralin authored Jul 1, 2022
    Configuration menu
    Copy the full SHA
    ca8ea8d View commit details
    Browse the repository at this point in the history
  5. chore(release): 1.116.0 [skip ci]

    # [1.116.0](v1.115.5...v1.116.0) (2022-07-01)
    
    ### Features
    
    * add option to use async iterables ([#605](#605)) ([ca8ea8d](ca8ea8d)), closes [#600](#600)
    semantic-release-bot committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    36f66b0 View commit details
    Browse the repository at this point in the history
Loading