Skip to content

chore: bump nats.js to 2.29.3 - #181

Merged
prakash100198 merged 1 commit into
developfrom
nats-version-upgrade
Nov 13, 2026
Merged

prakash100198 merged 1 commit into
developfrom
nats-version-upgrade

Conversation

@prakash100198

@prakash100198 prakash100198 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes: https://github.com/devtron-labs/sprint-tasks/issues/2993

Bumps nats (nats.js) 2.10.0 → 2.29.3 as part of the NATS server upgrade from 2.9.3 to 2.14.9.

2.29.3 no longer ships nats/lib/nats-base-client/jsconsumeropts or nats/lib/nats-base-client/types, so src/pubSub/pubSub.ts stopped compiling. It now imports consumerOpts, ConsumerInfo, JetStreamManager and StreamConfig from "nats". consumerOpts(...) returns the same ConsumerOptsBuilderImpl as before, so behaviour does not change.

npm marks nats 2.x as deprecated because it moved to @nats-io/transport-node v3. Moving to v3 would mean rewriting the NATS code, so it is left for later.

How Has This Been Tested?

  • tsc --noEmit passes (develop's imports fail on 2.29.3)
  • The real PubSubServiceImpl.Subscribe against nats-server 2.14.9 creates NOTIFICATION_EVENT_DURABLE with the configured ack_wait and receives 3/3 events published through Devtron's Go pubsub-lib. On restart it updates ack_wait.

Not tested: running the full notifier service.

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit/api test cases.

Does this PR introduce a user-facing change?

Related PRs

🤖 Generated with Claude Code

2.29.3 no longer ships the internal nats/lib/nats-base-client/* paths,
so pubSub.ts now imports consumerOpts and the JetStream types from the
public "nats" entry point. consumerOpts(...) builds the same
ConsumerOptsBuilderImpl as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@prakash100198
prakash100198 merged commit 8439169 into develop Nov 13, 2026
2 checks passed
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.

2 participants