unstale

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

@unstale/cli on npm

@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.

    3.0.16release notes

  • Each Analytics client sends one batch request at a time in queue order, preserving batch order and limiting parallel requests.

    3.0.16release notes

  • 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.

    3.0.0release notes

Security 2

  • Credentials are redacted from transport errors and retry hooks.

    3.0.18release notes

  • Remediated a GitHub Actions script injection vulnerability.

    3.0.4release notes

New APIs and options 1

  • Adds a hook to drop or edit events before queueing.

    3.1.0release notes

Fixes and other changes 11

  • Oversized hook results are now fully validated.

    3.1.1release notes

  • Send-fallback originals are now validated like calls without a hook.

    3.1.1release notes

  • Persistent queue errors are redacted.

    3.0.18release notes

  • Retry snapshots are isolated, preventing them from affecting one another.

    3.0.18release notes

  • Queue bytes are tracked incrementally and batches are split by size.

    3.0.15release notes

  • Patched axios versions are now allowed.

    3.0.14release notes

  • Corrected page event types.

    3.0.13release notes

  • Restores package entry points for developers using the SDK.

    3.0.12release notes

  • Specifies MIT license metadata, helping developers identify the package’s license.

    3.0.10release notes

  • Adds the missing tslib dependency.

    3.0.3release notes

  • Fixes repeated gzip on retry with the persistence queue.

    3.0.1release notes

@rudderstack/rudder-sdk-node 28 changes

Breaking changes 2

  • bull is now an optional dependency.

    2.0.0release notes

  • dataPlaneUrl can be passed in initialization options instead of as an argument, and must not include the /v1/batch suffix.

    2.0.0release notes

New APIs and options 4

  • Initialization options can accept an axios instance or config.

    2.0.0release notes

  • The batch events path can be configured during initialization.

    2.0.0release notes

  • An error handler function can be passed in initialization options.

    2.0.0release notes

  • Requests can be compressed with gzip.

    2.0.0release notes

Tooling 1

  • A type declaration was added for the screen API.

    2.0.0release notes

Fixes and other changes 1