npm / @rudderstack/rudder-sdk-node
@rudderstack/rudder-sdk-node
What changed in @rudderstack/rudder-sdk-node 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
5 breaking2 security5 new APIs and options1 tooling12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@rudderstack/rudder-sdk-node 317 changes
Breaking changes 3
flush() resolves even when a batch fails; the error goes to that batch's event callbacks and errorHandler, while the rest of the queue is still sent.
Each Analytics client sends one batch request at a time in queue order, preserving batch order and limiting parallel requests.
The queue format changes from v2 to v3 to eliminate an RCE vulnerability. Drain Redis queues before upgrading; in-flight v2 jobs are rejected with a clear error.
Security 2
Credentials are redacted from transport errors and retry hooks.
Remediated a GitHub Actions script injection vulnerability.
New APIs and options 1
Adds a hook to drop or edit events before queueing.
Fixes and other changes 11
Oversized hook results are now fully validated.
Send-fallback originals are now validated like calls without a hook.
Persistent queue errors are redacted.
Retry snapshots are isolated, preventing them from affecting one another.
Queue bytes are tracked incrementally and batches are split by size.
Patched axios versions are now allowed.
Corrected page event types.
Restores package entry points for developers using the SDK.
Specifies MIT license metadata, helping developers identify the package’s license.
Adds the missing tslib dependency.
Fixes repeated gzip on retry with the persistence queue.
@rudderstack/rudder-sdk-node 28 changes
Breaking changes 2
bull is now an optional dependency.
dataPlaneUrl can be passed in initialization options instead of as an argument, and must not include the /v1/batch suffix.
New APIs and options 4
Initialization options can accept an axios instance or config.
The batch events path can be configured during initialization.
An error handler function can be passed in initialization options.
Requests can be compressed with gzip.
Tooling 1
A type declaration was added for the screen API.
Fixes and other changes 1
The default queue prefix was fixed.