Skip to content

fix(express,node,fastify): declare rxjs as a peer dependency - #18400

Merged
kamilmysliwiec merged 1 commit into
nestjs:masterfrom
ryodine:fix/platform-express-rxjs-peer-dep
Nov 5, 2026
Merged

kamilmysliwiec merged 1 commit into
nestjs:masterfrom
ryodine:fix/platform-express-rxjs-peer-dep

Conversation

@ryodine

@ryodine ryodine commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

@nestjs/platform-express, @nestjs/platform-node and @nestjs/platform-fastify import rxjs at runtime but don't list it in peerDependencies.

Since #17835 and acb98de, these packages import operators from rxjs at runtime (catchError, throwError, and in platform-fastify also concatMap and from). platform-node carries the same code as platform-express. Hoisted installs mask this, because @nestjs/common already requires rxjs and so installs it. Strict resolvers such as pnpm or Yarn PnP don't expose undeclared packages, so under those these packages can fail to resolve rxjs.

Issue Number: N/A

What is the new behavior?

Adds "rxjs": "^7.1.0" to peerDependencies in the three package.json files, the same range common, core, microservices, websockets, platform-ws and platform-socket.io already use. No code changes.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

🤖 Generated with Claude Code

These packages import rxjs operators at runtime (catchError, throwError,
and in platform-fastify also concatMap and from) but did not list rxjs in
peerDependencies. Add "rxjs": "^7.1.0", matching the other packages.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@kamilmysliwiec
kamilmysliwiec merged commit 1d22fa3 into nestjs:master Nov 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants