Skip to content

docs(api): Say which entries import p-limit and http-cache-semantics - #131250

Merged
BYK merged 1 commit into
masterfrom
docs/api-client-dependencies
Nov 17, 2026
Merged

BYK merged 1 commit into
masterfrom
docs/api-client-dependencies

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Part of #131203.

The README says the root @sentry/api entry has no runtime dependencies. Yet package.json lists p-limit and http-cache-semantics under dependencies. Both statements hold:

  • The built root, /browser, /operations and /docs bundles import no packages.
  • /client is the only entry that imports those two packages, and its type declarations don't import them.

This rewords the README paragraph to say which entry imports what, and that npm installs both packages with @sentry/api. The packages stay regular dependencies. Making them optional or peer dependencies would break existing /client consumers, who get them installed automatically today.

via @BYK.

--

View Session [Sentry]

The README said the root entry has no runtime dependencies while
package.json lists p-limit and http-cache-semantics. Both are right:
only the /client entry imports them, and they stay regular dependencies
so /client consumers keep working. Reword the README to say that, and
test that the root, /browser, /operations and /docs bundles import no
package and that /client imports only the declared ones.

Co-Authored-By: BYK <[email protected]>
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 16, 2026 14:19
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 16, 2026 14:19
@sentry-junior
sentry-junior Bot requested a review from BYK November 16, 2026 14:19
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 16, 2026
@BYK
BYK merged commit 99d59b1 into master Nov 17, 2026
88 checks passed
@BYK
BYK deleted the docs/api-client-dependencies branch November 17, 2026 12:48

This branch was successfully deployed

1 active deployment
Preview — 4c34a2fd Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant