Skip to content

Commit

Permalink
feat: update server streaming retries
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit 195540efe2e84c2e155f0259afae3edce104a40b
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 16:34:36 2023 -0400

    resolve some warnings

commit 6e4311c0ce0fabe12755b8268c23f2b5e249bbca
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 16:28:37 2023 -0400

    fix last error (now just warnings!)

commit d729f28bb882e0d85629c57ab369df31f2ec8e26
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 16:22:39 2023 -0400

    fix no-async-promise-executor lint errors

commit 087944aeb505f326a56e829155414116b31ac813
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 14:59:23 2023 -0400

    fix more lint things (more to come)

commit 5d2be7aad8ed46d41facae9b2211f0740346ce97
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 14:19:40 2023 -0400

    add missing retry-request related dependency

commit fd811e370a7784ea9d3367f00bdea4faabdafb61
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 14:17:19 2023 -0400

    fix some lint issues (more to come)

commit 94b5a37c03e01e91a5e42a1bbf19767711b271d0
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 14:02:07 2023 -0400

    npm run fix and remove todo

commit 0acc287a089b11b044453788a9df1220645b504f
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 14:00:43 2023 -0400

    add missing license headers

commit 8535c29cda942f4f0319527fc791f2becbae417c
Merge: 8cb5718 b322f78
Author: Alexander Fenster <[email protected]>
Date:   Tue Aug 22 10:56:33 2023 -0700

    Merge branch 'main' into gax4upgrade-2

commit 8cb5718e41e9010bf1dcfabb53bda1dea2239e77
Author: Leah Cole <[email protected]>
Date:   Tue Aug 22 10:51:14 2023 -0400

    remove todos

commit b322f784ec7768e0da781fd54ea5bc9d2347c8cd
Author: Mend Renovate <[email protected]>
Date:   Tue Aug 22 13:10:13 2023 +0200

    chore(deps): update dependency protobufjs to v7.2.5 (#1494)

    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [protobufjs](https://protobufjs.github.io/protobuf.js/) ([source](https://togithub.com/protobufjs/protobuf.js)) | [`7.2.4` -> `7.2.5`](https://renovatebot.com/diffs/npm/protobufjs/7.2.4/7.2.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/protobufjs/7.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/protobufjs/7.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/protobufjs/7.2.4/7.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/protobufjs/7.2.4/7.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

    ---

    ### Release Notes

    <details>
    <summary>protobufjs/protobuf.js (protobufjs)</summary>

    ### [`v7.2.5`](https://togithub.com/protobufjs/protobuf.js/blob/HEAD/CHANGELOG.md#725-2023-08-21)

    [Compare Source](https://togithub.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.4...protobufjs-v7.2.5)

    ##### Bug Fixes

    -   crash in comment parsing ([#&#8203;1890](https://togithub.com/protobufjs/protobuf.js/issues/1890)) ([eaf9f0a](https://togithub.com/protobufjs/protobuf.js/commit/eaf9f0a5a4009a8981c69af78365dfc988ed925b))
    -   deprecation warning for new Buffer ([#&#8203;1905](https://togithub.com/protobufjs/protobuf.js/issues/1905)) ([e93286e](https://togithub.com/protobufjs/protobuf.js/commit/e93286ef70d2e673c341ac08a192cc2abe6fd2eb))
    -   possible infinite loop when parsing option ([#&#8203;1923](https://togithub.com/protobufjs/protobuf.js/issues/1923)) ([f2a8620](https://togithub.com/protobufjs/protobuf.js/commit/f2a86201799af5842e1339c22950abbb3db00f51))

    </details>

    ---

    ### Configuration

    📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).

    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

    ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

    🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

    ---

     - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gax-nodejs).
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

commit 762591ed28801e5311ab737b04185781a41752e6
Author: Mend Renovate <[email protected]>
Date:   Tue Aug 22 12:56:13 2023 +0200

    fix(deps): update dependency protobufjs-cli to v1.1.2 (#1495)

    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [protobufjs-cli](https://togithub.com/protobufjs/protobuf.js) | [`1.1.1` -> `1.1.2`](https://renovatebot.com/diffs/npm/protobufjs-cli/1.1.1/1.1.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/protobufjs-cli/1.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/protobufjs-cli/1.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/protobufjs-cli/1.1.1/1.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/protobufjs-cli/1.1.1/1.1.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

    ---

    ### Release Notes

    <details>
    <summary>protobufjs/protobuf.js (protobufjs-cli)</summary>

    ### [`v1.1.2`](https://togithub.com/protobufjs/protobuf.js/releases/tag/protobufjs-cli-v1.1.2): protobufjs-cli: v1.1.2

    [Compare Source](https://togithub.com/protobufjs/protobuf.js/compare/protobufjs-cli-v1.1.1...protobufjs-cli-v1.1.2)

    ##### Bug Fixes

    -   possible infinite loop when parsing option ([#&#8203;1923](https://togithub.com/protobufjs/protobuf.js/issues/1923)) ([f2a8620](https://togithub.com/protobufjs/protobuf.js/commit/f2a86201799af5842e1339c22950abbb3db00f51))

    </details>

    ---

    ### Configuration

    📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).

    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

    ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

    🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

    ---

     - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gax-nodejs).
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

commit 459573e3120ce74b069a7925b4484a4b947b492a
Merge: bfd5c1e 2fd932e
Author: Leah E. Cole <[email protected]>
Date:   Mon Aug 21 22:30:55 2023 -0400

    Merge branch 'gax-4.0.3' into gax4upgrade-2

commit bfd5c1e30982738f41b949ad05783e7439db1539
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date:   Thu Jul 27 15:24:01 2023 -0500

    chore(main): release 4.0.3 (#1482)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>

commit 1a77db9183309bbf5fbc04a8de6a4938ccd1e6fc
Author: sofisl <[email protected]>
Date:   Thu Jul 27 15:05:21 2023 -0500

    fix: make gapic-tools depend on gax-nodejs (#1480)

    * fix: make gapic-tools depend on gax-nodejs

commit 39396f94dedbde287b2183bbcf91c185dbb0aa4d
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date:   Tue Jul 25 17:46:33 2023 -0500

    chore(main): release 4.0.2 (#1479)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>

commit 1ce3fbed477531b9a43ad199faa7c7b3a465ae74
Author: sofisl <[email protected]>
Date:   Tue Jul 25 17:30:18 2023 -0500

    fix: update some pnpm deps (#1478)

    * fix: update some pnpm deps

commit 39daee1b90d8228d413433d7226ae773893a2869
Author: Leah Cole <[email protected]>
Date:   Mon Aug 21 15:42:05 2023 -0400

    fix ts error, branch is in sync with gax-4.0.1

commit 3067f89e33af4c8b19703439769de53c26f5d7ad
Author: Leah Cole <[email protected]>
Date:   Mon Aug 21 15:15:12 2023 -0400

    make sequence service match #1001, fix tsconfig

commit 587629a7f5d8e22f1f5b941ca7c116daf2fe4abe
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date:   Fri Jul 21 15:16:53 2023 -0700

    chore(main): release 4.0.1 (#1474)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>

commit 359220a8941a6e8d22edbd830b98fb5f7a1cddf4
Author: Mend Renovate <[email protected]>
Date:   Fri Jul 21 23:55:11 2023 +0200

    fix(deps): update dependency retry-request to v6 (#1477)

    Co-authored-by: sofisl <[email protected]>

commit 894a1c84be07ab12ec0bb491731618fdabeec5f8
Author: Mend Renovate <[email protected]>
Date:   Fri Jul 21 23:38:15 2023 +0200

    fix(deps): update dependency google-auth-library to v9 (#1476)

commit a7f5003addd18245f77c4a2a72b936c85de69695
Author: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 14:13:15 2023 -0700

    build: add extra test for Node 20, update windows tests (#1468)

    * build: add extra test for Node 20, update windows tests

    Source-Link: https://github.com/googleapis/synthtool/commit/38f5d4bfd5d51116a3cf7f260b8fe5d8a0046cfa
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:ef104a520c849ffde60495342ecf099dfb6256eab0fbd173228f447bc73d1aa9

    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    Co-authored-by: sofisl <[email protected]>

commit aad22248b24d6a7572948460d9e8241925bfb926
Author: Daniel Bankhead <[email protected]>
Date:   Tue Jul 18 15:37:51 2023 -0700

    Fix: `rimraf` version + remove conflicting types (#1475)

    * Fix: `rimraf` version + remove conflicting types

    * chore: refactor `rimraf` import

    * chore: clean up

commit 07ef0602a521acf49ee76d6baba6b3dd00fc7a34
Author: Mend Renovate <[email protected]>
Date:   Tue Jul 18 03:57:35 2023 +0200

    chore(deps): update dependency c8 to v8 (#1457)

commit e79cb287ae1ab3b33939ff85ec3f0255ac65be78
Author: Megan Potter <[email protected]>
Date:   Mon Jul 17 13:47:46 2023 -0400

    fix: the return types for IAM service methods should be arrays, to match ReturnTuple (#1001)

    * fix: the return types for IAM service methods should be arrays, to match ReturnTuple

    * fix: update PR to current types

    * fix: also fix explicit typings for IAM

    * build: work around circular dependency with kms (second PR to follow)

    * docs: broken tsdoc

commit 6eb75db56e2f0ab9c3176f8c28769ef71b8e931c
Author: Alexander Fenster <[email protected]>
Date:   Thu Jul 13 10:18:06 2023 -0700

    fix: replace proto-over-HTTP with REGAPIC (#1471)

commit d566e241cabd4bcc5154ed518e175e19d17fca50
Author: Alexander Fenster <[email protected]>
Date:   Thu Jul 13 10:00:57 2023 -0700

    test: run speech test from monorepo, use gapic-tools (#1472)

commit ebf8bf3b5dd25b2889904acc207e3a8f75586adc
Author: Mend Renovate <[email protected]>
Date:   Thu Jul 13 00:06:38 2023 +0200

    chore(deps): update dependency protobufjs to v7.2.4 [security] (#1473)

    * chore(deps): update dependency protobufjs to v7.2.4 [security]

    * chore: update linkinator config

    ---------

    Co-authored-by: Alexander Fenster <[email protected]>

commit de661e5d3432303faa011bc26fd9db95ce8a781d
Author: Simen Bekkhus <[email protected]>
Date:   Wed Jul 12 23:20:05 2023 +0200

    fix(deps): update protobufjs (#1467)

    * fix: update protobufjs

    * chore: add exclusion to linkinator config

    ---------

    Co-authored-by: Alexander Fenster <[email protected]>

commit 9ee15450f6994090bab8786d7ece4a92c4d18029
Author: Alexander Fenster <[email protected]>
Date:   Tue Jul 11 15:34:54 2023 -0700

    fix: add missing devDependency for compodoc (#1470)

    * fix: add missing devDependency for compodoc

    * build: try with skipLibCheck

    * build: revert skipLibCheck

    * build: install dependency for compodoc

    * fix(deps): pin compodoc

commit c4031e60d1437754f57662d3ce6a9d354df08fab
Author: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date:   Fri Jun 2 13:27:43 2023 -0700

    docs: update docs-devsite.sh to use latest node-js-rad version (#1454)

    Co-authored-by: sofisl <[email protected]>

    Source-Link: https://github.com/googleapis/synthtool/commit/b1ced7db5adee08cfa91d6b138679fceff32c004
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:0527a86c10b67742c409dc726ba9a31ec4e69b0006e3d7a49b0e6686c59cdaa9

    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

commit 56171e69e91cb429c24ac77ad39451e97af338ec
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date:   Wed May 17 12:24:54 2023 -0700

    chore(main): release 4.0.0 (#1445)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>

commit 2c80abaff438e79b86e0779289e49b7c696a7d2c
Author: sofisl <[email protected]>
Date:   Wed May 17 11:59:43 2023 -0700

    build!: remove is-stream & fast-text-encoding dependencies (#1442)

commit 531e373019d8e87d061e5aee544ee5f92cdbd27f
Author: sofisl <[email protected]>
Date:   Wed May 17 11:45:53 2023 -0700

    feat!: drop Node 12 & decouple development dependencies (#1439)

    * feat!: get tools scripts and dependencies running; still need to get top-level module running without tools, remove extra dependencies, and make sure to run commands from the tools dependency

    * move to node 14
    ---------

    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

commit 6fa194518dd38ba8eb78cc6e7d99a3f8e9bf07e3
Author: Alexander Fenster <[email protected]>
Date:   Tue May 2 13:16:13 2023 -0700

    fix: compilation error in fallback.ts (#1444)

    The compilation failed for me on a clean install, possibly because of some auth library update. We don't really care about the real type of the returned auth client, so a simple type cast should be good.

commit fac92bcdb5882bd34e67e002c84d51f780f7034a
Author: Leah Cole <[email protected]>
Date:   Mon Aug 21 11:48:37 2023 -0400

    Revert "fix: compilation error in fallback.ts (#1444)"

    This reverts commit 8e6888f469845a0a68dbab3047b3a6843e58da22.

commit 8b0de2398f196aef81f7d13861fb9d13d6bcb7e1
Author: Leah Cole <[email protected]>
Date:   Mon Aug 21 11:48:18 2023 -0400

    Revert "feat!: drop Node 12 & decouple development dependencies (#1439)"

    This reverts commit 61a71436e9428c8118831a05fb5c7a3b2b3f99a5.

commit 31367d61ec90804d8a59f4174a3523ce10a535f3
Merge: ebc4eec 89ad507
Author: Leah E. Cole <[email protected]>
Date:   Fri Aug 18 10:27:43 2023 -0400

    Merge pull request #7 from leahecole/remove-retryrequestoptions

    Add resumption tests, remove retryrequestoptions

commit 6d57b4b23d764e20a5f24d921ebc83624ebfbd11
Author: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date:   Thu Aug 17 19:40:13 2023 +0000

    chore: update release-please post-processing for nodejs apiary (#1492)

    * fix: update release-please post-processing for nodejs apiary

    Source-Link: https://togithub.com/googleapis/synthtool/commit/59fe44fde9866a26e7ee4e4450fd79f67f8cf599
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:606f3d9d99a1c7cdfa7158cbb1a75bfeef490655e246a2052f9ee741740d736c

commit 89ad5078d666de075cefe2b06014cc5f4a2f22f5
Author: Leah Cole <[email protected]>
Date:   Thu Aug 17 14:49:18 2023 -0400

    cleanup

commit e8161433ed3a82d1eba487cd469c2e6102147f16
Author: Leah Cole <[email protected]>
Date:   Thu Aug 17 14:44:21 2023 -0400

    more cleanup

commit 55a02beee68cdcbda171aaec2eac2722b31341fa
Author: Leah Cole <[email protected]>
Date:   Thu Aug 17 14:30:02 2023 -0400

    cleanup comments

commit 4b4f87b6e17a9119fc6d1f964f473ca3364fb395
Author: Leah Cole <[email protected]>
Date:   Thu Aug 17 14:28:19 2023 -0400

    some cleanup

commit df98286f62365a6fa9bbb01989bee029718fe504
Author: Leah Cole <[email protected]>
Date:   Thu Aug 17 14:25:14 2023 -0400

    finish unit tests

commit 71a913b1093418029fd4b8d7d54cc5a200f99348
Author: Leah Cole <[email protected]>
Date:   Thu Aug 17 12:32:29 2023 -0400

    add one resumption unit test

commit 4748c9fc3a8cfe31e5abb3e35a6ee0d9a6f0e560
Author: Mend Renovate <[email protected]>
Date:   Thu Aug 17 04:32:24 2023 +0200

    fix(deps): update dependency google-proto-files to v4 (#1490)

    Co-authored-by: sofisl <[email protected]>

commit 5c7dfd021d1dc5d311e42d8c17b78fe616fed6fe
Author: Mend Renovate <[email protected]>
Date:   Wed Aug 16 22:30:21 2023 +0200

    fix(deps): update dependency proto3-json-serializer to v2 (#1489)

commit 7a742ccaa5dbf3cf2dcb3e463cb3a67515590b01
Author: Leah Cole <[email protected]>
Date:   Wed Aug 16 16:14:35 2023 -0400

    remove retryrequestoptions from new retry logic

commit 561f6b93e12ae225c05ce744b9c64505cbf99ce3
Author: Leah Cole <[email protected]>
Date:   Wed Aug 16 15:50:35 2023 -0400

    make sure test-application passes

commit 28a77eef8092ff6e329cd732e46327b1cf71725f
Author: sofisl <[email protected]>
Date:   Wed Aug 16 12:43:54 2023 -0700

    build: update linter (#1491)

    * build: update linter

commit 8a63ed3ccfe76fab7567562d40da527c83f4d264
Author: Leah Cole <[email protected]>
Date:   Wed Aug 16 14:24:04 2023 -0400

    actually finish regen process

commit 7acf0058fd3306317b08c68db5226556987dc8ed
Author: Leah Cole <[email protected]>
Date:   Wed Aug 16 13:52:01 2023 -0400

    finish regen process

commit 03768de3479bb683160c54609971474f607d26c1
Author: Leah Cole <[email protected]>
Date:   Wed Aug 16 17:48:38 2023 +0000

    regen gapic showcase

commit 80f7747cebfcb241bd007e1b0cf50a899e8b0799
Author: Leah Cole <[email protected]>
Date:   Wed Aug 16 13:44:09 2023 -0400

    npm run fix

commit 8ae18ae6d0731b3d3d5ffb13872ba44a588f5919
Author: Leah Cole <[email protected]>
Date:   Wed Aug 16 13:05:00 2023 -0400

    move resumption to retryoptions

commit 702ec918b63b5946555a16f0093ec37de6089fa6
Author: Leah Cole <[email protected]>
Date:   Fri Aug 11 14:24:09 2023 -0400

    fix lint

commit 34c1600e6b522a8ac935f4fcc864c084023c0dc8
Author: Leah Cole <[email protected]>
Date:   Fri Aug 11 14:05:15 2023 -0400

    uncomment main test function

commit c2cba5b6802f180ab6bdfec030f94642c771bdf0
Author: Leah Cole <[email protected]>
Date:   Fri Aug 11 14:04:51 2023 -0400

    remove debugging statements

commit 882969ac5b94d9349eeba19f4795bd7dbcbfe1cb
Author: Leah Cole <[email protected]>
Date:   Thu Aug 10 16:58:19 2023 -0400

    WIP: debugging

commit ce37b66bd426d906b4f240aa542a4f85c3efc63f
Author: Leah Cole <[email protected]>
Date:   Thu Aug 10 14:25:57 2023 -0400

    fix broken tests with regen client

commit b71edf7f18b15d6fcfa693c103259f0766736f55
Author: Leah Cole <[email protected]>
Date:   Thu Aug 10 14:20:47 2023 -0400

    manually add newRetry parameter

commit d61098a866095ef0287c8237dd844326d922b0df
Author: Leah Cole <[email protected]>
Date:   Thu Aug 10 18:05:07 2023 +0000

    update teh client again

commit 9be128482599c95e7e1027da4e1f38b52c120f89
Author: Leah Cole <[email protected]>
Date:   Thu Aug 10 13:49:42 2023 -0400

    remove unnecessary client files

commit 9699060103b948f91ad64667a204d259c94e1f97
Author: Leah Cole <[email protected]>
Date:   Thu Aug 10 17:42:58 2023 +0000

    regen clients again

commit 6f2f6767557b1197bf294bdc9bd88bc83f8851aa
Author: Leah Cole <[email protected]>
Date:   Thu Aug 10 12:41:54 2023 -0400

    WIP: print statements

commit 327a44c41a2c4113d481aec801538a5a1f2a4169
Author: Leah Cole <[email protected]>
Date:   Wed Aug 9 16:06:45 2023 -0400

    regenerate showcase

commit 04989edb41bdc189af0214b1a849ef3b6bb63d9b
Author: Leah Cole <[email protected]>
Date:   Wed Aug 9 19:47:32 2023 +0000

    try regenerating showcase

commit 1ee50c5db70ae99112d34d4b9b23efa5c4680e47
Author: Leah Cole <[email protected]>
Date:   Wed Aug 9 15:15:29 2023 -0400

    update showcase client

commit a17f048a20f0e25a5e20cca1a747b4da6275775e
Author: Leah Cole <[email protected]>
Date:   Wed Aug 9 19:12:25 2023 +0000

    add new showcase

commit ebc4eecfc0b6f17cdad8e24a439419e201ec7af3
Author: Leah Cole <[email protected]>
Date:   Thu Aug 10 12:04:13 2023 -0400

    add todo

commit d7e59675f4f688450e409e6964dfd5b841e58682
Author: Leah Cole <[email protected]>
Date:   Wed Aug 9 12:14:33 2023 -0400

    remove return statement

commit e77aee91464e518cc9c64a66ca23f49f8ab2a1f5
Author: Leah Cole <[email protected]>
Date:   Wed Aug 9 11:58:58 2023 -0400

    todos

commit 2e4ad05d430669277ba50f441e4fe41b0ebfc0d0
Merge: b9d57be 4f71c6b
Author: Leah E. Cole <[email protected]>
Date:   Wed Aug 9 12:13:39 2023 -0400

    Merge pull request #5 from leahecole/docstrings

    resolve docstring todos

commit 4f71c6b02ab4f488b0e6108d0f9f88a33f719c2e
Author: Leah Cole <[email protected]>
Date:   Wed Aug 9 12:13:16 2023 -0400

    fix return type

commit cb1a33fdb5ae92e6bec07e449ce434e976eb47d4
Author: Leah Cole <[email protected]>
Date:   Wed Aug 9 12:05:50 2023 -0400

    remove retryStream after talking to gal

commit 9b41fc93d0ea276c691bcdb396a8bc4552921da4
Author: Leah Cole <[email protected]>
Date:   Tue Aug 8 16:01:53 2023 -0400

    resolve docstring todos

commit b9d57be194d4032103d512e3a3e6fccd643da0b5
Author: Leah Cole <[email protected]>
Date:   Tue Aug 8 14:48:46 2023 -0400

    npm run fix

commit ffb2943c9dce7f5fd19c209845b5af853c03f78c
Author: Leah Cole <[email protected]>
Date:   Tue Aug 8 14:47:22 2023 -0400

    merge

commit 383718fc1f1fdfb565b084c2c0e103a4f7707bf1
Author: Gal Zahavi <[email protected]>
Date:   Thu Aug 3 16:16:00 2023 -0700

    added unit tests and fixed unit test alignment

commit 8be2b65619c3ee64e23b0b77e27ae8b643c0168e
Merge: bf207a7 872ba3d
Author: Gal Zahavi <[email protected]>
Date:   Thu Aug 3 12:53:18 2023 -0700

    Merge branch 'gax-3.6.0-3' of https://github.com/leahecole/gax-nodejs into gax-3.6.0-3

commit bf207a713dd5cbe945c70caad0b66d41848159d4
Author: Gal Zahavi <[email protected]>
Date:   Thu Aug 3 12:52:55 2023 -0700

    added new test to test-application

commit 872ba3dda6e28e2d1d614057a25630fad688730b
Author: Leah Cole <[email protected]>
Date:   Thu Aug 3 13:21:34 2023 -0400

    fix broken test

commit ea358ff7dc487295405b0f13c4722440910dfd09
Merge: efd41b1 ead6d35
Author: Gal Zahavi <[email protected]>
Date:   Wed Aug 2 13:55:31 2023 -0700

    Merge branch 'gax-3.6.0-3' of https://github.com/leahecole/gax-nodejs into gax-3.6.0-3

commit ead6d356f1e72c5f51da0a71aea09ac0a9e2ed7e
Author: Leah Cole <[email protected]>
Date:   Wed Aug 2 16:54:57 2023 -0400

    fix failing test

commit efd41b1af404469fa23933a7d3092c49d5470fab
Author: Gal Zahavi <[email protected]>
Date:   Wed Aug 2 13:54:44 2023 -0700

    Added test to test-application

commit debcdece9a9ea2e54327f4b43bbd102edf078fd6
Author: Leah Cole <[email protected]>
Date:   Wed Aug 2 16:04:41 2023 -0400

    address more todos

commit 6ef735bbeb39e059b0fe5fe43fb150e0ce16c656
Author: Leah Cole <[email protected]>
Date:   Wed Aug 2 14:08:32 2023 -0400

    work on some todos

commit b3493c2a82ece0704493ee813513b5e90b248df2
Merge: 4d03684 55eb385
Author: Gal Zahavi <[email protected]>
Date:   Wed Aug 2 10:36:22 2023 -0700

    Merge branch 'gax-3.6.0-3' of https://github.com/leahecole/gax-nodejs into gax-3.6.0-3

commit 4d03684db5ab18abd6d03148095ad0554336afe3
Author: Gal Zahavi <[email protected]>
Date:   Wed Aug 2 10:35:36 2023 -0700

    wip commit

commit ea8020f9084ff068a3139a8b19be6b8c0caa74e3
Author: Mend Renovate <[email protected]>
Date:   Wed Aug 2 13:20:13 2023 +0200

    fix(deps): update dependency @grpc/grpc-js to ~1.9.0 (#1486)

    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [@grpc/grpc-js](https://grpc.io/) ([source](https://togithub.com/grpc/grpc-node)) | [`~1.8.0` -> `~1.9.0`](https://renovatebot.com/diffs/npm/@grpc%2fgrpc-js/1.8.21/1.9.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@grpc%2fgrpc-js/1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@grpc%2fgrpc-js/1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@grpc%2fgrpc-js/1.8.21/1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@grpc%2fgrpc-js/1.8.21/1.9.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

    ---

    ### Release Notes

    <details>
    <summary>grpc/grpc-node (@&#8203;grpc/grpc-js)</summary>

    ### [`v1.9.0`](https://togithub.com/grpc/grpc-node/releases/tag/%40grpc/grpc-js%401.9.0): @&#8203;grpc/grpc-js 1.9.0

    [Compare Source](https://togithub.com/grpc/grpc-node/compare/@grpc/[email protected]...@grpc/[email protected])

    -   Implement channel idle timeout and the channel option `grpc.client_idle_timeout_ms` ([#&#8203;2471](https://togithub.com/grpc/grpc-node/issues/2471))
    -   Implement [gRFC A62: `pick_first`: sticky TRANSIENT_FAILURE and address order randomization](https://togithub.com/grpc/proposal/blob/master/A62-pick-first.md) ([#&#8203;2511](https://togithub.com/grpc/grpc-node/issues/2511))
    -   Fix premature leaving of context due to improper `Http2ServerCallStream` handling ([#&#8203;2501](https://togithub.com/grpc/grpc-node/issues/2501) contributed by [@&#8203;CedricKassen](https://togithub.com/CedricKassen))
    -   Add channel option `grpc-node.tls_enable_trace` to enable Node TLS tracing ([#&#8203;2507](https://togithub.com/grpc/grpc-node/issues/2507))
    -   Cancel deadline timer on server when call is cancelled ([#&#8203;2508](https://togithub.com/grpc/grpc-node/issues/2508))

    Experimental changes:

    -   Added `grpc.experimental.createResolver`

    </details>

    ---

    ### Configuration

    📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).

    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

    ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

    🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

    ---

     - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gax-nodejs).
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4yNy4xIiwidXBkYXRlZEluVmVyIjoiMzYuMjcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

commit 55eb3856c01149af096a72bc3d0918002b72cfdb
Author: Leah Cole <[email protected]>
Date:   Tue Aug 1 16:24:20 2023 -0400

    fix broken test

commit 75efdefc66adf4b0ed780d398750fa431afae479
Author: Gal Zahavi <[email protected]>
Date:   Mon Jul 31 15:53:47 2023 -0700

    added test and StreamingSequence factory

commit a6d92144d0cbc8fc3fa2cfc7cf8d66218cabb3a9
Author: Leah Cole <[email protected]>
Date:   Fri Jul 28 17:09:53 2023 -0700

    Fix all expected passing tests

commit b24269638f57eef8469610cf9f4eca2cda28dd61
Author: Leah Cole <[email protected]>
Date:   Fri Jul 28 17:00:23 2023 -0700

    remove one failing test, add a passing more relevant test

commit 2432c984b06e64f70f9c33d66a9f80e215775103
Author: Leah Cole <[email protected]>
Date:   Fri Jul 28 16:19:55 2023 -0700

    add afterEach for sinon.restore

commit c50286d0aac62144d025a6bf177db10e55856deb
Author: Leah Cole <[email protected]>
Date:   Fri Jul 28 16:18:43 2023 -0700

    make checkRetrySettings actually return something

commit 3d5b520abf44dd030165bbc0d8629d90aa1cb9d0
Author: Leah Cole <[email protected]>
Date:   Fri Jul 28 14:35:38 2023 -0700

    fix another test

commit 2e392a22c6c1bb09796f0e186275e53761af57b1
Author: Leah Cole <[email protected]>
Date:   Fri Jul 28 14:13:08 2023 -0700

    fix one test

commit 05917c71b48b7ee5a461dccd8e635190c755589b
Author: Leah Cole <[email protected]>
Date:   Fri Jul 28 14:10:53 2023 -0700

    fix one test

commit 8116222e050072eddefa18203bd8df3bd91faa03
Author: Gal Zahavi <[email protected]>
Date:   Fri Jul 28 13:25:19 2023 -0700

    removed unused variables

commit 9755031accf1c93b529b5f693b0e268f7a926fcd
Author: Gal Zahavi <[email protected]>
Date:   Fri Jul 28 13:13:27 2023 -0700

    wip commit

commit 2b2f84924b8dc723b913500e431631c4c55cf401
Author: Gal Zahavi <[email protected]>
Date:   Fri Jul 28 12:19:52 2023 -0700

    cleaned up streamHandoffHelper by adding helpers

commit a47c4fe34ab7c8c6f8204a6cec4b652c6bf86b63
Author: Mend Renovate <[email protected]>
Date:   Thu Jul 27 22:50:13 2023 +0200

    chore(deps): update dependency @compodoc/compodoc to v1.1.21 (#1453)

    [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

    This PR contains the following updates:

    | Package | Change | Age | Adoption | Passing | Confidence |
    |---|---|---|---|---|---|
    | [@compodoc/compodoc](https://togithub.com/compodoc/compodoc) | [`1.1.19` -> `1.1.21`](https://renovatebot.com/diffs/npm/@compodoc%2fcompodoc/1.1.19/1.1.21) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@compodoc%2fcompodoc/1.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@compodoc%2fcompodoc/1.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@compodoc%2fcompodoc/1.1.19/1.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@compodoc%2fcompodoc/1.1.19/1.1.21?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

    ---

    ### Release Notes

    <details>
    <summary>compodoc/compodoc (@&#8203;compodoc/compodoc)</summary>

    ### [`v1.1.21`](https://togithub.com/compodoc/compodoc/blob/HEAD/CHANGELOG.md#1121)

    [Compare Source](https://togithub.com/compodoc/compodoc/compare/1.1.20...1.1.21)

    ##### Bug fixes

    -   feat(app): downgrade Marked version ([e0a4b78](https://togithub.com/compodoc/compodoc/commit/e0a4b78)), closes [#&#8203;1349](https://togithub.com/compodoc/compodoc/issues/1349)

    ### [`v1.1.20`](https://togithub.com/compodoc/compodoc/blob/HEAD/CHANGELOG.md#1120---2023-05-23)

    [Compare Source](https://togithub.com/compodoc/compodoc/compare/1.1.19...1.1.20)

    ##### Merged

    -   fix(Input): Add support for Object Expressions in Input decorators [#&#8203;1326](https://togithub.com/compodoc/compodoc/pull/1326), Thanks [valentinpalkovic](https://togithub.com/valentinpalkovic)
    -   fix(app): overview depth [#&#8203;1310](https://togithub.com/compodoc/compodoc/pull/1310), Thanks [albeniraouf](https://togithub.com/albeniraouf)
    -   Translates to Bulgarian [#&#8203;1312](https://togithub.com/compodoc/compodoc/pull/1312), Thanks [3phase](https://togithub.com/3phase)

    ##### Bug fixes

    -   feat(app): Directive composition API for directives and components ([127076a](https://togithub.com/compodoc/compodoc/commit/127076a)), closes [#&#8203;1340](https://togithub.com/compodoc/compodoc/issues/1340)
    -   feat(app): Required Inputs ([e1a5396](https://togithub.com/compodoc/compodoc/commit/e1a5396)), closes [#&#8203;1340](https://togithub.com/compodoc/compodoc/issues/1340)
    -   feat(app): Standalone components, directives and pipes support ([cb02ca0](https://togithub.com/compodoc/compodoc/commit/cb02ca0)), closes [#&#8203;1323](https://togithub.com/compodoc/compodoc/issues/1323)
    -   fix(app): support exportAs for directives ([76a8f34](https://togithub.com/compodoc/compodoc/commit/76a8f34)), closes [#&#8203;1328](https://togithub.com/compodoc/compodoc/issues/1328)
    -   feat(app): bump [@&#8203;compodoc/ngd-transformer](https://togithub.com/compodoc/ngd-transformer) ([ef9bd94](https://togithub.com/compodoc/compodoc/commit/ef9bd94)), closes [#&#8203;1311](https://togithub.com/compodoc/compodoc/issues/1311)
    -   fix(app): service/injectable export in module providers ([34967a9](https://togithub.com/compodoc/compodoc/commit/34967a9)), closes [#&#8203;1290](https://togithub.com/compodoc/compodoc/issues/1290)
    -   fix(app): missing rel attribute with \_blank links ([c8379e0](https://togithub.com/compodoc/compodoc/commit/c8379e0)), closes [#&#8203;1282](https://togithub.com/compodoc/compodoc/issues/1282)
    -   feat(app): Add specific id in each html section ([03ac1ad](https://togithub.com/compodoc/compodoc/commit/03ac1ad)), closes [#&#8203;1241](https://togithub.com/compodoc/compodoc/issues/1241)
    -   fix(app): Invalid links to a class when the class name includes an interface name ([047cedb](https://togithub.com/compodoc/compodoc/commit/047cedb)), closes [#&#8203;1239](https://togithub.com/compodoc/compodoc/issues/1239)
    -   fix(routing): path wrongly resolved during routing analysis ([1722ca3](https://togithub.com/compodoc/compodoc/commit/1722ca3)), closes [#&#8203;1170](https://togithub.com/compodoc/compodoc/issues/1170)

    </details>

    ---

    ### Configuration

    📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).

    🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

    ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

    🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

    ---

     - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

    ---

    This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gax-nodejs).
    <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS45OC4xIiwidXBkYXRlZEluVmVyIjoiMzYuOC4xMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

commit e4f548254bfce3daa3b02ae81764bb3394fc4f23
Author: sofisl <[email protected]>
Date:   Thu Jul 27 15:35:40 2023 -0500

    fix: release new version of gapic-tools (#1483)

    Need to do this until I set up the release-please process properly.

commit 73fcc79413d7ec041d0be06c95a47ea0141c391c
Merge: 4450439 b7db054
Author: Gal Zahavi <[email protected]>
Date:   Thu Jul 27 13:33:39 2023 -0700

    Merge branch 'gax-3.6.0-3' of https://github.com/leahecole/gax-nodejs into gax-3.6.0-3

commit 44504395f47cb094411e21f7d4071970f3fb231f
Author: Gal Zahavi <[email protected]>
Date:   Thu Jul 27 13:32:12 2023 -0700

    refactored to use retry.retryCodesOrShouldRetryFn

commit 2fd932e96255f7ece901b2c3e1b08873632a0836
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date:   Thu Jul 27 15:24:01 2023 -0500

    chore(main): release 4.0.3 (#1482)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>

commit d0f410d2e08f393f2661c8c92568a0b518fddf99
Author: sofisl <[email protected]>
Date:   Thu Jul 27 15:05:21 2023 -0500

    fix: make gapic-tools depend on gax-nodejs (#1480)

    * fix: make gapic-tools depend on gax-nodejs

commit b7db0545983f0384edc51c62d6311b8aca520006
Author: Leah Cole <[email protected]>
Date:   Thu Jul 27 15:48:36 2023 -0400

    fix one instance of shoudlretryfn

commit 0bbce136021a3c88108f4317323d0869b959250c
Merge: 5062a61 bda9605
Author: Gal Zahavi <[email protected]>
Date:   Thu Jul 27 12:27:23 2023 -0700

    Merge pull request #4 from leahecole/b/279946426

    B/279946426

commit bda9605b9ea6ac897fc20919e3dd58b8e779a74c
Merge: 4dab819 5062a61
Author: Leah E. Cole <[email protected]>
Date:   Thu Jul 27 22:05:59 2023 +0300

    Merge branch 'gax-3.6.0-3' into b/279946426

commit 4dab819d44c466bf4fd23ceeaaa721f789ac4227
Author: Leah Cole <[email protected]>
Date:   Thu Jul 27 14:41:55 2023 -0400

    remove typo

commit 5062a616f98c0b70827d2c94197033c29a2c0b52
Author: Gal Zahavi <[email protected]>
Date:   Thu Jul 27 10:44:34 2023 -0700

    uncommit streaming unit tests

commit 7eba460024e498eaa91f1427c7d44bacf2b49b61
Author: Gal Zahavi <[email protected]>
Date:   Wed Jul 26 15:51:48 2023 -0700

    Added getResumptionRequestFn

commit 561cec4e111f2c79815a602a69c8e330b1508521
Author: Gal Zahavi <[email protected]>
Date:   Wed Jul 26 13:31:35 2023 -0700

    WIP Commit: Added shouldRetryFn and fixed tests

commit 0b6784f596dfa9786a214143eef6bdda20bfa570
Author: Leah Cole <[email protected]>
Date:   Wed Jul 26 15:38:08 2023 -0400

    a few more assertions

commit 30193ad2f41c4e29a3292eb4ef517d9e19791b54
Author: Leah Cole <[email protected]>
Date:   Wed Jul 26 13:37:06 2023 -0400

    fix lint, add todos

commit 2bb9ae256af30ce27837c71b34da0705604186a3
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date:   Tue Jul 25 17:46:33 2023 -0500

    chore(main): release 4.0.2 (#1479)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>

commit 39583d5f4faab89b511fe317bd1ec3334c2ea3f5
Author: sofisl <[email protected]>
Date:   Tue Jul 25 17:30:18 2023 -0500

    fix: update some pnpm deps (#1478)

    * fix: update some pnpm deps

commit 6927a11d6748ea35b8437a9482b1f3c20bd916e1
Author: Gal Zahavi <[email protected]>
Date:   Tue Jul 25 15:26:46 2023 -0700

    WIP Commit

commit bf39468b65c7e13f2efe50b57396911c7a3becd7
Author: Gal Zahavi <[email protected]>
Date:   Tue Jul 25 11:33:00 2023 -0700

    WIP commit

commit e791c79947f227e90bbd54dda644e6805948f785
Author: Gal Zahavi <[email protected]>
Date:   Mon Jul 24 10:51:59 2023 -0700

    fixed failing unit test

commit 8663eb14f9c6c6ab3a6009f6725b347698f6e1f3
Author: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Date:   Fri Jul 21 15:16:53 2023 -0700

    chore(main): release 4.0.1 (#1474)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>

commit 6401a88c50fa0eb3eb8a73cefc830896369c3330
Author: Mend Renovate <[email protected]>
Date:   Fri Jul 21 23:55:11 2023 +0200

    fix(deps): update dependency retry-request to v6 (#1477)

    Co-authored-by: sofisl <[email protected]>

commit 8afdd591646a190fde38728f0df14c604643f5cc
Author: Mend Renovate <[email protected]>
Date:   Fri Jul 21 23:38:15 2023 +0200

    fix(deps): update dependency google-auth-library to v9 (#1476)

commit 9e93eddc27fbb140a2bdaaef2e9d0db3a05921f4
Author: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 14:13:15 2023 -0700

    build: add extra test for Node 20, update windows tests (#1468)

    * build: add extra test for Node 20, update windows tests

    Source-Link: https://github.com/googleapis/synthtool/commit/38f5d4bfd5d51116a3cf7f260b8fe5d8a0046cfa
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:ef104a520c849ffde60495342ecf099dfb6256eab0fbd173228f447bc73d1aa9

    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    Co-authored-by: sofisl <[email protected]>

commit 0252683e00ab3486efb1d606996c2b9bf0c6e085
Author: Gal Zahavi <[email protected]>
Date:   Fri Jul 21 13:15:50 2023 -0700

    changed name of forwardClientEvents

commit f5f27a8a51feabecc90b854860fa5266c18cf7b2
Author: Gal Zahavi <[email protected]>
Date:   Fri Jul 21 13:03:48 2023 -0700

    lint changes

commit 6631734a51fb4bc270c7012d03af1f3c6eba62ec
Author: Leah Cole <[email protected]>
Date:   Thu Jul 20 16:12:27 2023 -0400

    reorganize streaming unit tests

commit e4daff99df9ad612b4713d3b467713e394339e73
Author: Leah Cole <[email protected]>
Date:   Thu Jul 20 15:51:07 2023 -0400

    convert retryCodes to retryCodesorShouldRetryFn

commit f9f8b1328c38718bf621b92338b3d81297525aa6
Author: Daniel Bankhead <[email protected]>
Date:   Tue Jul 18 15:37:51 2023 -0700

    Fix: `rimraf` version + remove conflicting types (#1475)

    * Fix: `rimraf` version + remove conflicting types

    * chore: refactor `rimraf` import

    * chore: clean up

commit f4a46be2b6a1e2771085ca86f5ce64a1fbdb3c1a
Author: Mend Renovate <[email protected]>
Date:   Tue Jul 18 03:57:35 2023 +0200

    chore(deps): update dependency c8 to v8 (#1457)

commit 2f71435ef3fb8c9d14d00acf172ff1e4b36b82a7
Author: Leah Cole <[email protected]>
Date:   Mon Jul 17 16:01:31 2023 -0400

    finish rebasing Gal's work into mine

commit 4fe5f2d5c677ed02e9876e7b8b818ac067aac674
Author: Leah Cole <[email protected]>
Date:   Mon Jul 17 15:41:58 2023 -0400

    uncomment for rebase

commit 8709ac9e84a76d2c1bdac8af476e0f8e977471e0
Author: Leah Cole <[email protected]>
Date:   Mon Jul 17 15:40:15 2023 -0400

    uncomment tests for rebase

commit 866fd2aaa03d445c4ca393f8abcfa4f03dcd3f6e
Author: Leah Cole <[email protected]>
Date:   Mon Jul 17 15:28:32 2023 -0400

    WIP: param conversion

commit 4a67dd412083e632b24c3136f850a417741bf98f
Author: Leah Cole <[email protected]>
Date:   Thu Jul 13 15:56:02 2023 -0400

    WIP: test and parameter conversion

commit 786b7be8b7f850d46547a3240b6cc81954a9459e
Author: Leah Cole <[email protected]>
Date:   Thu Jul 13 15:55:32 2023 -0400

    fix: update retryrequestoptions to be aligned with retry-request

commit 0a671ea24fb0a0c11aaaea507e0dab4d44a06c5e
Author: Leah Cole <[email protected]>
Date:   Tue Jun 27 15:18:26 2023 -0400

    passing tests for warnings

commit 385b7861d3a335840c7894dc5e22f07e4ac355a1
Author: Leah Cole <[email protected]>
Date:   Fri Jun 23 14:25:55 2023 -0400

    WIP: adding more unit tests

commit 820ed4ff340ac3e06d48e57ada33a8826e66ea8b
Author: Leah Cole <[email protected]>
Date:   Wed Jun 21 15:41:41 2023 -0400

    add test for both parameters being set

commit 3ffc9684c4d21d309b97df6c2d0ed1d9548953a3
Author: Leah Cole <[email protected]>
Date:   Fri Jun 16 15:11:51 2023 -0400

    WIP: experimenting with spies in streaming calls

commit 8a05223c68507cc0b10b455a0cd377dd8a96eaf7
Author: Leah Cole <[email protected]>
Date:   Tue Jun 13 16:48:28 2023 -0400

    WIP: adding unit tests for option conversion

commit 48eed955e7329f55f9427a7bc0656cfe2af395e8
Author: Megan Potter <[email protected]>
Date:   Mon Jul 17 13:47:46 2023 -0400

    fix: the return types for IAM service methods should be arrays, to match ReturnTuple (#1001)

    * fix: the return types for IAM service methods should be arrays, to match ReturnTuple

    * fix: update PR to current types

    * fix: also fix explicit typings for IAM

    * build: work around circular dependency with kms (second PR to follow)

    * docs: broken tsdoc

commit 4266f43922d0d582b8eced11f4a21c98a8b451fe
Author: Alexander Fenster <[email protected]>
Date:   Thu Jul 13 10:18:06 2023 -0700

    fix: replace proto-over-HTTP with REGAPIC (#1471)

commit c1c4dc19da45780ade32178f9f7ac76e8bb5aef1
Author: Alexander Fenster <[email protected]>
Date:   Thu Jul 13 10:00:57 2023 -0700

    test: run speech test from monorepo, use gapic-tools (#1472)

commit 7b8414bbb0c535e23dac90e8461a8145d6b6d08d
Author: Gal Zahavi <[email protected]>
Date:   Wed Jul 12 15:44:36 2023 -0700

    added tests

commit d2a5ccbf93a987bc4ae6fd6bc3e319ddf10d26f6
Author: Mend Renovate <[email protected]>
Date:   Thu Jul 13 00:06:38 2023 +0200

    chore(deps): update dependency protobufjs to v7.2.4 [security] (#1473)

    * chore(deps): update dependency protobufjs to v7.2.4 [security]

    * chore: update linkinator config

    ---------

    Co-authored-by: Alexander Fenster <[email protected]>

commit 0a7dd948573bd9553a0e9548e9ab92dbcfcb7414
Author: Simen Bekkhus <[email protected]>
Date:   Wed Jul 12 23:20:05 2023 +0200

    fix(deps): update protobufjs (#1467)

    * fix: update protobufjs

    * chore: add exclusion to linkinator config

    ---------

    Co-authored-by: Alexander Fenster <[email protected]>

commit 170a5b69a8d4610fb95ad149ba3632904286a904
Author: Gal Zahavi <[email protected]>
Date:   Wed Jul 12 11:17:25 2023 -0700

    uncomment tests and remove streaming retries.ts

commit 6fd1c08de3375df460507ce0ea0d588fb9bd1d65
Author: Gal Zahavi <[email protected]>
Date:   Wed Jul 12 10:49:40 2023 -0700

    added check in forwardEvents for API retry

commit f551ba8ca5d573a245830916f93fa65cfd44df67
Author: Gal Zahavi <[email protected]>
Date:   Wed Jul 12 10:30:31 2023 -0700

    add checks to forwardClientEvents

commit 115e317728c8ae6fa0e61f54d0087e26382d8230
Author: Alexander Fenster <[email protected]>
Date:   Tue Jul 11 15:34:54 2023 -0700

    fix: add missing devDependency for compodoc (#1470)

    * fix: add missing devDependency for compodoc

    * build: try with skipLibCheck

    * build: revert skipLibCheck

    * build: install dependency for compodoc

    * fix(deps): pin compodoc

commit f420a787774464130caa27724d04ba339b796110
Author: Gal Zahavi <[email protected]>
Date:   Mon Jul 10 15:44:53 2023 -0700

    added check to see which retryCodes are allowed

commit c628a344404ec68ded19dfa67f0be73d562c139e
Author: Gal Zahavi <[email protected]>
Date:   Fri Jul 7 11:24:40 2023 -0700

    server stream update

commit 17621154683532383505d8d07e8f82fdc4aad8ac
Author: Gal Zahavi <[email protected]>
Date:   Mon Jun 26 14:01:08 2023 -0700

    added retry logic

commit c51b69b14808717a295851af2b263289dc35f5cc
Author: Gal Zahavi <[email protected]>
Date:   Wed Jun 14 11:06:09 2023 -0700

    updated retry logic

commit 1ac4135dc151adec5d744d1ce5a60202b221a299
Author: Gal Zahavi <[email protected]>
Date:   Tue Jun 13 13:04:37 2023 -0700

    added retry logic

commit 6e7135f53e83e799d0b57ee5eb08e0d609dea165
Author: Gal Zahavi <[email protected]>
Date:   Mon Jun 5 15:23:23 2023 -0700

    added changes

commit 82aaa3996514aa74cd7078da095d7509fc91cf3d
Author: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date:   Fri Jun 2 13:27:43 2023 -0700

    docs: update docs-devsite.sh to use latest node-js-rad version (#1454)

    Co-authored-by: sofisl <[email protected]>

    Source-Link: https://github.com/googleapis/synthtool/commit/b1ced7db5adee08cfa91d6b138679fceff32c004
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:0527a86c10b67742c409dc726ba9a31ec4e69b0006e3d7a49b0e6686c59cdaa9

    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

commit 1473e5a8c7c5c3f5b068462fbaf275077216ae34
Author: Gal Zahavi <[email protected]>
Date:   Tue May 30 14:11:16 2023 -0700

    changed StreamRetries to StreamRetryRequest

commit 5d4e24206b720a07995227011ffe5d5940c3fe4e
Author: Gal Zahavi <[email protected]>
Date:   Thu May 25 13:47:32 2023 -0700

    Added new streamingRetryRequest option

commit b7b416cec3a3abd98bc4304eb7264f6963daaf1b
Author: Leah Cole <[email protected]>
Date:   Wed May 24 18:04:23 2023 -0400

    add one dev dependency

commit b2769be042ea4b872483dc1bca270d648b6efb6b
Author: Leah Cole <[email protected]>
Date:   Wed May 24 17:51:41 2023 -0400

    Revert "feat!: drop Node 12 & decouple development dependencies (#1439)"

    This reverts commit 61a71436e9428c8118831a05fb5c7a3b2b3f99a5.

commit 10b92429add5eaa05a548da9d1cfa396defb1618
Author: Leah Cole <[email protected]>
Date:   Wed May 24 17:49:03 2023 -0400

    Revert "build!: remove is-stream & fast-text-encoding dependencies (#1442)"

    This reverts commit 111133c5a2bd5a54ebe99a337de9a5a58ee67d2e.

commit 1489e3711b9362c6c2d4e91e5bf6d10db34397f3
Author: Leah Cole <[email protected]>
Date:   Wed May 24 17:49:01 2023 -0400

    Revert "chore(main): release 4.0.0 (#1445)"

    This reverts commit 064e131ba7371e6d994e3d73790fa5e1fd09189a.

commit e445d8ff207539bf4fef4595f69497cac9240083
Author: Leah Cole <[email protected]>
Date:   Tue May 2 16:06:55 2023 -0400

    revert our changes to how the server runs

commit 3806b29afef55b9639a1e54da7006aaa92bd1dd8
Author: Leah Cole <[email protected]>
Date:   Tue May 2 15:27:22 2023 -0400

    replace status codes with enums

commit a56867d5a56da088da0c846174a35944ca74eed2
Author: Leah Cole <[email protected]>
Date:   Tue May 2 14:58:32 2023 -0400

    remove not needed things

commit 8a4806c4f679206c8f31e03be0b5fd42a17d41c9
Author: Leah Cole <[email protected]>
Date:   Tue May 2 14:31:55 2023 -0400

    revert copyright year

commit b430bb2ebc4e0ed8cd8e84d27b75bb37213d027b
Author: Leah Cole <[email protected]>
Date:   Tue May 2 14:27:36 2023 -0400

    pacakge.json change

commit ad7cb0c10828b710996b9f54fdaeba0ca44961d6
Author: Leah Cole <[email protected]>
Date:   Tue May 2 14:26:38 2023 -0400

    revert package.json changes

commit a6df06029d8c0d0679f3a2f0c0e56f1ec1003ce8
Author: Cloud Composer Team <[email protected]>
Date:   Tue May 2 17:47:21 2023 +0000

    run npm run fix on the showcase client

commit 8cac3da20b6c58d35ceecc73ecb7142998102a0b
Author: Cloud Composer Team <[email protected]>
Date:   Wed Apr 26 19:44:49 2023 +0000

    update showcase-echo-client

commit 17b32ca0ccc4c2103688abccc85fc2095d3f19a4
Author: Leah Cole <[email protected]>
Date:   Tue Apr 25 14:14:18 2023 -0400

    Add comment to alex`

commit 6ae2f431ceb04efa25ffd6def7cc19f573e6e0bf
Author: Leah Cole <[email protected]>
Date:   Tue Apr 25 13:32:23 2023 -0400

    add back imports for running w/ local showcase-server

commit 1c64a2330082baf9ba610a81cb94ec89d9180baa
Author: Leah Cole <[email protected]>
Date:   Tue Apr 25 13:30:49 2023 -0400

    add first couple of tests for sequence streaming

commit 2022441d1bae0a22fc8e6e9475d531a9a0310c2d
Author: Leah Cole <[email protected]>
Date:   Tue Apr 25 11:09:31 2023 -0400

    WIP: Getting tests ready for PR

commit 11df39223f15a6b1a3b588ca6bc9bd43304e2183
Author: Gal Zahavi <[email protected]>
Date:   Mon Apr 24 21:28:44 2023 +0300

    updated streamingNotRetryEligible

commit 0671a2f5ad8e25bed27e5ea5efd12d420f73dd01
Author: Gal Zahavi <[email protected]>
Date:   Fri Apr 21 22:00:44 2023 +0300

    WIP: edit streamingNotRetryEligible test

    Co-authored-by: Leah E. Cole <[email protected]>

commit ed0918da295a8d92f4bfcfe6ef9bc8fb632d830f
Author: Leah Cole <[email protected]>
Date:   Wed Apr 19 16:20:14 2023 -0400

    WIP: test for non retry eligible calls

commit 3bea8a058365137d093cafc7983c791fc64e7f96
Author: Leah Cole <[email protected]>
Date:   Wed Apr 19 15:37:17 2023 -0400

    fix broken tests, add comments with next steps

commit b2c5afd750ba1c255382bd2d8a0ce1e71f3e28d2
Author: Leah Cole <[email protected]>
Date:   Tue Apr 18 13:54:54 2023 -0400

    fix merge conflict

commit 8be6b90c01bd81dd0db448d4c2e28a201c820eb7
Author: Gal Zahavi <[email protected]>
Date:   Tue Apr 18 17:41:59 2023 +0000

    chore : added sequenceStreamingService
  • Loading branch information
leahecole committed Aug 22, 2023
1 parent a804c37 commit ecfb2f7
Show file tree
Hide file tree
Showing 57 changed files with 4,831 additions and 986 deletions.
3 changes: 2 additions & 1 deletion .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest
digest: sha256:e6d785d6de3cab027f6213d95ccedab4cab3811b0d3172b78db2216faa182e32
digest: sha256:606f3d9d99a1c7cdfa7158cbb1a75bfeef490655e246a2052f9ee741740d736c
# created: 2023-08-17T19:15:55.176034173Z
24 changes: 24 additions & 0 deletions .kokoro/presubmit/node14/common.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .kokoro/presubmit/node14/samples-test.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .kokoro/presubmit/node14/system-test.cfg

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
5 changes: 3 additions & 2 deletions .kokoro/release/docs-devsite.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@

[1]: https://www.npmjs.com/package/gax-nodejs?activeTab=versions

## [4.0.3](https://github.com/googleapis/gax-nodejs/compare/v4.0.2...v4.0.3) (2023-07-27)


### Bug Fixes

* Make gapic-tools depend on gax-nodejs ([#1480](https://github.com/googleapis/gax-nodejs/issues/1480)) ([d0f410d](https://github.com/googleapis/gax-nodejs/commit/d0f410d2e08f393f2661c8c92568a0b518fddf99))

## [4.0.2](https://github.com/googleapis/gax-nodejs/compare/v4.0.1...v4.0.2) (2023-07-25)


### Bug Fixes

* Update some pnpm deps ([#1478](https://github.com/googleapis/gax-nodejs/issues/1478)) ([39583d5](https://github.com/googleapis/gax-nodejs/commit/39583d5f4faab89b511fe317bd1ec3334c2ea3f5))

## [4.0.1](https://github.com/googleapis/gax-nodejs/compare/v4.0.0...v4.0.1) (2023-07-21)


### Bug Fixes

* `rimraf` version + remove conflicting types ([#1475](https://github.com/googleapis/gax-nodejs/issues/1475)) ([f9f8b13](https://github.com/googleapis/gax-nodejs/commit/f9f8b1328c38718bf621b92338b3d81297525aa6))
* Add missing devDependency for compodoc ([#1470](https://github.com/googleapis/gax-nodejs/issues/1470)) ([115e317](https://github.com/googleapis/gax-nodejs/commit/115e317728c8ae6fa0e61f54d0087e26382d8230))
* **deps:** Update dependency google-auth-library to v9 ([#1476](https://github.com/googleapis/gax-nodejs/issues/1476)) ([8afdd59](https://github.com/googleapis/gax-nodejs/commit/8afdd591646a190fde38728f0df14c604643f5cc))
* **deps:** Update dependency retry-request to v6 ([#1477](https://github.com/googleapis/gax-nodejs/issues/1477)) ([6401a88](https://github.com/googleapis/gax-nodejs/commit/6401a88c50fa0eb3eb8a73cefc830896369c3330))
* **deps:** Update protobufjs ([#1467](https://github.com/googleapis/gax-nodejs/issues/1467)) ([0a7dd94](https://github.com/googleapis/gax-nodejs/commit/0a7dd948573bd9553a0e9548e9ab92dbcfcb7414))
* Replace proto-over-HTTP with REGAPIC ([#1471](https://github.com/googleapis/gax-nodejs/issues/1471)) ([4266f43](https://github.com/googleapis/gax-nodejs/commit/4266f43922d0d582b8eced11f4a21c98a8b451fe))
* The return types for IAM service methods should be arrays, to match ReturnTuple ([#1001](https://github.com/googleapis/gax-nodejs/issues/1001)) ([48eed95](https://github.com/googleapis/gax-nodejs/commit/48eed955e7329f55f9427a7bc0656cfe2af395e8))

## [4.0.0](https://github.com/googleapis/gax-nodejs/compare/v3.6.0...v4.0.0) (2023-05-17)


Expand Down
19 changes: 4 additions & 15 deletions client-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,31 +99,20 @@ binary tranport based on HTTP/2. It's Node.js implementation,

#### HTTP/1.1 REST API mode

- `options.fallback`: `true`, `"rest"`, or `false`, use HTTP fallback mode.
- `options.fallback`: `true` or `false`, use HTTP fallback mode.
Default value is `false`, unless the `window` object is defined.
For compatibility, you can pass any non-empty string, it will be considered
a `true` value.

If you need to use the client library in non-Node.js environment or when gRPC
cannot be used for any reason, you can use the HTTP/1.1 fallback mode. In this
mode, a special browser-compatible transport implementation is used instead of
gRPC transport.

There are two supported gRPC fallback modes:

- set `options.fallback` to `"rest"`: the library will send and receive JSON
payload, HTTP/1.1 REST API endpoints will be used. This mode is recommended
for fallback.

- set `options.fallback` to `true`: the library will send and receive serialized
protobuf payload to special endpoints accepting serialized protobufs over
HTTP/1.1.
gRPC transport. It will send and receive JSONs over HTTP.

In browser context (if the `window` object is defined) the fallback mode is
enabled automatically; set `options.fallback` to `false` if you need to override
this behavior.

Note that `options.fallback` accepts boolean values (`true` and `false`) for
compatibility only. We recommend using `"rest"` to use HTTP/1.1 instead of gRPC.

## Calling API methods

In all examples below we assume that `client` is an instance of the client
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "google-gax",
"version": "4.0.0",
"version": "4.0.3",
"description": "Google API Extensions",
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
Expand All @@ -10,50 +10,50 @@
"!build/src/**/*.map"
],
"dependencies": {
"@grpc/grpc-js": "~1.8.0",
"@grpc/grpc-js": "~1.9.0",
"@grpc/proto-loader": "^0.7.0",
"@types/long": "^4.0.0",
"abort-controller": "^3.0.0",
"duplexify": "^4.0.0",
"google-auth-library": "^8.0.2",
"extend": "^3.0.2",
"google-auth-library": "^9.0.0",
"node-fetch": "^2.6.1",
"object-hash": "^3.0.0",
"proto3-json-serializer": "^1.0.0",
"protobufjs": "7.2.3",
"retry-request": "^5.0.0"
"proto3-json-serializer": "^2.0.0",
"protobufjs": "7.2.5",
"retry-request": "^6.0.0"
},
"devDependencies": {
"@compodoc/compodoc": "1.1.19",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@compodoc/compodoc": "1.1.21",
"@types/mocha": "^9.0.0",
"@types/ncp": "^2.0.1",
"@types/node": "^18.0.0",
"@types/node": "^20.5.0",
"@types/node-fetch": "^2.5.4",
"@types/object-hash": "^3.0.0",
"@types/proxyquire": "^1.3.28",
"@types/pumpify": "^1.4.1",
"@types/rimraf": "^3.0.2",
"@types/sinon": "^10.0.0",
"@types/uglify-js": "^3.17.0",
"c8": "^7.0.0",
"c8": "^8.0.0",
"codecov": "^3.1.0",
"execa": "^5.0.0",
"gapic-tools": "^0.1.7",
"google-proto-files": "^3.0.0",
"gts": "^3.1.0",
"google-proto-files": "^4.0.0",
"gts": "^5.0.0",
"linkinator": "^4.0.0",
"long": "^4.0.0",
"mkdirp": "^2.0.0",
"mocha": "^9.0.0",
"ncp": "^2.0.0",
"null-loader": "^4.0.0",
"protobufjs-cli": "1.1.1",
"protobufjs-cli": "1.1.2",
"proxyquire": "^2.0.1",
"pumpify": "^2.0.0",
"rimraf": "^3.0.2",
"rimraf": "^5.0.1",
"sinon": "^15.0.0",
"stream-events": "^1.0.4",
"ts-loader": "^8.0.0",
"typescript": "^4.6.4",
"typescript": "^5.1.6",
"uglify-js": "^3.17.0",
"walkdir": "^0.4.0",
"webpack": "^4.0.0",
Expand All @@ -74,7 +74,7 @@
"compile-http-protos": "pbjs -t static-module -r http_proto --keep-case google/api/http.proto -p ./protos > protos/http.js && pbts protos/http.js -o protos/http.d.ts",
"compile-showcase-proto": "pbjs -t json google/showcase/v1beta1/echo.proto google/showcase/v1beta1/identity.proto google/showcase/v1beta1/messaging.proto google/showcase/v1beta1/testing.proto -p ./protos > test/fixtures/google-gax-packaging-test-app/protos/protos.json && pbjs -t static-module -r showcase_protos google/showcase/v1beta1/echo.proto google/showcase/v1beta1/identity.proto google/showcase/v1beta1/messaging.proto google/showcase/v1beta1/testing.proto -p ./protos > test/fixtures/google-gax-packaging-test-app/protos/protos.js && pbts test/fixtures/google-gax-packaging-test-app/protos/protos.js -o test/fixtures/google-gax-packaging-test-app/protos/protos.d.ts",
"fix": "gts fix",
"prepare": "npm run compile && prepublishProtos . && mkdirp build/protos && cp -r protos/* build/protos/ && npm run minify-proto-json",
"prepare": "npm run compile && node ./build/tools/src/prepublish.js . && mkdirp build/protos && cp -r protos/* build/protos/ && npm run minify-proto-json",
"system-test": "c8 mocha build/test/system-test --timeout 600000 && npm run test-application",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"docs-test": "linkinator docs",
Expand All @@ -83,8 +83,8 @@
"test-application": "cd test/test-application && npm run prefetch && npm install && npm start",
"prelint": "cd samples; npm link ../; npm install",
"precompile": "gts clean",
"update-protos": "listProtos .",
"minify-proto-json": "minifyProtoJson"
"update-protos": "node ./build/tools/src/listProtos.js .",
"minify-proto-json": "node ./build/tools/src/minify.js"
},
"repository": "googleapis/gax-nodejs",
"keywords": [
Expand Down
15 changes: 7 additions & 8 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"initial-version": "0.1.0",
"packages": {
".": {},
"tools": {}
},
"release-type": "node"
}

"initial-version": "0.1.0",
"packages": {
".": {},
"tools": {}
},
"release-type": "node"
}
4 changes: 2 additions & 2 deletions samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"*.js"
],
"dependencies": {
"google-gax": "^4.0.0"
"google-gax": "^4.0.3"
},
"devDependencies": {
"c8": "^7.0.0",
"c8": "^8.0.0",
"mocha": "^9.0.0"
}
}
1 change: 1 addition & 0 deletions src/clientInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface ClientOptions
clientConfig?: gax.ClientConfig;
fallback?: boolean | 'rest' | 'proto';
apiEndpoint?: string;
newRetry?: boolean;
}

export interface Descriptors {
Expand Down
62 changes: 44 additions & 18 deletions src/createApiCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
SimpleCallbackFunction,
} from './apitypes';
import {Descriptor} from './descriptor';
import {CallOptions, CallSettings} from './gax';
import {CallOptions, CallSettings, checkRetryOptions} from './gax';
import {retryable} from './normalCalls/retries';
import {addTimeoutArg} from './normalCalls/timeout';
import {StreamingApiCaller} from './streamingCalls/streamingApiCaller';
Expand Down Expand Up @@ -63,7 +63,6 @@ export function createApiCall(
// function. Currently client librares are only calling this method with a
// promise, but it will change.
const funcPromise = typeof func === 'function' ? Promise.resolve(func) : func;

// the following apiCaller will be used for all calls of this function...
const apiCaller = createAPICaller(settings, descriptor);

Expand All @@ -72,9 +71,21 @@ export function createApiCall(
callOptions?: CallOptions,
callback?: APICallback
) => {
const thisSettings = settings.merge(callOptions);

let currentApiCaller = apiCaller;
const gaxStreamingRetries = (currentApiCaller as StreamingApiCaller)
.descriptor?.gaxStreamingRetries;
let thisSettings: CallSettings;
if (currentApiCaller instanceof StreamingApiCaller) {
// If Gax streaming retries are enabled, check settings passed at call time and convert parameters if needed
const thisSettingsTemp = checkRetryOptions(
callOptions,
gaxStreamingRetries
);
thisSettings = settings.merge(thisSettingsTemp);
} else {
thisSettings = settings.merge(callOptions);
}

// special case: if bundling is disabled for this one call,
// use default API caller instead
if (settings.isBundling && !thisSettings.isBundling) {
Expand All @@ -89,23 +100,38 @@ export function createApiCall(

const streaming = (currentApiCaller as StreamingApiCaller).descriptor
?.streaming;

const retry = thisSettings.retry;
if (
!streaming &&
retry &&
retry.retryCodes &&
retry.retryCodes.length > 0
) {
retry.backoffSettings.initialRpcTimeoutMillis =
retry.backoffSettings.initialRpcTimeoutMillis ||
thisSettings.timeout;
return retryable(
func,
thisSettings.retry!,
thisSettings.otherArgs as GRPCCallOtherArgs,
thisSettings.apiName
if (!streaming && retry && retry.getResumptionRequestFn) {
throw new Error(
'Resumption strategy can only be used with server streaming retries'
);
}
if (!streaming && retry && retry.retryCodesOrShouldRetryFn) {
if (
retry.retryCodesOrShouldRetryFn instanceof Array &&
retry.retryCodesOrShouldRetryFn.length > 0
) {
retry.backoffSettings.initialRpcTimeoutMillis =
retry.backoffSettings.initialRpcTimeoutMillis ||
thisSettings.timeout;
return retryable(
func,
thisSettings.retry!,
thisSettings.otherArgs as GRPCCallOtherArgs,
thisSettings.apiName
);
} else {
if (
retry.retryCodesOrShouldRetryFn instanceof Function &&
!streaming
) {
throw new Error(
'Using a function to determine retry eligibility is only supported with server streaming calls'
);
}
}
}
return addTimeoutArg(
func,
thisSettings.timeout,
Expand Down
Loading

0 comments on commit ecfb2f7

Please sign in to comment.