Skip to content

fix(retry-request): move teeny-request to devDependencies - #9500

Merged
quirogas merged 2 commits into
googleapis:mainfrom
fhinkel:retry-request-drop-teeny-request
Oct 2, 2026
Merged

quirogas merged 2 commits into
googleapis:mainfrom
fhinkel:retry-request-drop-teeny-request

Conversation

@fhinkel

@fhinkel fhinkel commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

https://github.com/googleapis/teeny-request has been deprecated 2 years ago. retry-request never requires teeny-request at runtime. Callers must pass their own request function via opts.request, and index.js throws if they don't. The only non-test reference was a type in index.d.ts:

import * as teenyRequest from 'teeny-request';
type teenyRequestFunction =
  typeof teenyRequest extends Function ? typeof teenyRequest : never;

teeny-request uses a named export, so typeof teenyRequest is the module namespace and this type always resolves to never. Removing it leaves Options['request'] exactly as before (typeof request).

Moving teeny-request to devDependencies cuts a production install of retry-request from 16 packages (9.7 MB) to 2 (88 KB), removing node-fetch, the proxy agents, and polyfills for every google-gax consumer, since google-gax depends on retry-request but never uses teeny-request.

Fixes #9010

retry-request never requires teeny-request at runtime. Callers must pass
their own `request` function via `opts.request`, and index.js throws if
they don't. The only non-test reference was a type in index.d.ts:

    import * as teenyRequest from 'teeny-request';
    type teenyRequestFunction =
      typeof teenyRequest extends Function ? typeof teenyRequest : never;

teeny-request uses a named export, so `typeof teenyRequest` is the module
namespace and this type always resolves to `never`. Removing it leaves
`Options['request']` exactly as before (`typeof request`).

Moving teeny-request to devDependencies cuts a production install of
retry-request from 16 packages (9.7 MB) to 2 (88 KB), removing
node-fetch, the proxy agents, and polyfills for every google-gax
consumer, since google-gax depends on retry-request but never uses
teeny-request.
@fhinkel
fhinkel requested a review from a team as a code owner October 1, 2026 23:24
@github-actions
github-actions Bot requested a review from danieljbruce October 1, 2026 23:24

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the 'teeny-request' dependency from the production dependencies of 'retry-request', moving it to 'devDependencies'. Consequently, the TypeScript type definitions in 'index.d.ts' have been updated to remove references to 'teeny-request' and its associated types, restricting the 'request' option to only accept 'typeof request'. There are no review comments, so I have no feedback to provide.

Comment thread core/packages/retry-request/index.d.ts

@quirogas quirogas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! I have to go over a few things before merging, but LGTM!

Add license header

Co-authored-by: Santiago Quiroga <[email protected]>
@quirogas
quirogas enabled auto-merge (squash) October 2, 2026 20:14
@quirogas
quirogas merged commit 068fe52 into googleapis:main Oct 2, 2026
46 of 47 checks passed
@release-please release-please Bot mentioned this pull request Oct 2, 2026
shivanee-p pushed a commit that referenced this pull request Oct 5, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>google-gax: 6.11.0</summary>

##
[6.11.0](google-gax-v6.10.0...google-gax-v6.11.0)
(2026-10-03)


### Features

* **gax:** Emit T4 attempt spans
([#9496](#9496))
([51aedce](51aedce))


### Bug Fixes

* **gax:** Propagate chunk granularity on resume and preserve retry
error details
([#9480](#9480))
([02b9478](02b9478))
</details>

<details><summary>retry-request: 9.0.2</summary>

##
[9.0.2](retry-request-v9.0.1...retry-request-v9.0.2)
(2026-10-03)


### Bug Fixes

* **retry-request:** Move teeny-request to devDependencies
([#9500](#9500))
([068fe52](068fe52))
</details>

<details><summary>test-utils: 0.2.0</summary>

##
[0.2.0](test-utils-v0.1.0...test-utils-v0.2.0)
(2026-10-03)


### Features

* **test-utils:** Add runtime detection predicates and cross-engine
assertion helpers
([#9492](#9492))
([f971bb5](f971bb5))
</details>

<details><summary>chat: 0.34.0</summary>

##
[0.34.0](chat-v0.33.1...chat-v0.34.0)
(2026-10-03)


### Features

* Update API sources and regenerate
([#9481](#9481))
([35a2b9a](35a2b9a))
</details>

<details><summary>aiplatform: 7.5.0</summary>

##
[7.5.0](aiplatform-v7.4.1...aiplatform-v7.5.0)
(2026-10-03)


### Features

* Update API sources and regenerate
([#9481](#9481))
([35a2b9a](35a2b9a))
</details>

<details><summary>bigtable-api: 0.10.0</summary>

##
[0.10.0](bigtable-api-v0.9.0...bigtable-api-v0.10.0)
(2026-10-03)


### Features

* Update API sources and regenerate
([#9427](#9427))
([5cd945d](5cd945d))
* Update API sources and regenerate
([#9472](#9472))
([514e2f6](514e2f6))
</details>

<details><summary>procurement: 0.10.0</summary>

##
[0.10.0](procurement-v0.9.1...procurement-v0.10.0)
(2026-10-03)


### Features

* Update API sources and regenerate
([#9481](#9481))
([35a2b9a](35a2b9a))
</details>

<details><summary>commerceproducer: 0.6.0</summary>

##
[0.6.0](commerceproducer-v0.5.0...commerceproducer-v0.6.0)
(2026-10-03)


### Features

* Update API sources and regenerate
([#9481](#9481))
([35a2b9a](35a2b9a))
</details>

<details><summary>compute: 7.7.0</summary>

##
[7.7.0](compute-v7.6.0...compute-v7.7.0)
(2026-10-03)


### Features

* Update API sources and regenerate
([#9481](#9481))
([35a2b9a](35a2b9a))
* Update Compute v1 API to version 2026-09-01
([#9503](#9503))
([02e3361](02e3361))


### Bug Fixes

* All AggregatedList RPCs behavior is now return_partial_success=true
([02e3361](02e3361))
* All AggregatedList RPCs return_partial_success fields removed
([02e3361](02e3361))
</details>

<details><summary>products: 0.12.0</summary>

##
[0.12.0](products-v0.11.1...products-v0.12.0)
(2026-10-03)


### Features

* Update API sources and regenerate
([#9481](#9481))
([35a2b9a](35a2b9a))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate/archive teeny-request

3 participants