unstale

npm / @opensearch-project/opensearch

@opensearch-project/opensearch

What changed in @opensearch-project/opensearch 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-13.

9 breaking3 security1 deprecations2 new APIs and options1 performance1 behavior and defaults1 tooling2 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.0 on npm

@opensearch-project/opensearch 314 changes

Breaking changes 5

  • Decompression is capped, limiting the amount of decompressed response data the client processes.

    2.14.0, 3.10.0release notesrelease notes

  • Declares the Connection agent property as agent rather than _agent.

    3.9.0release notes

  • API functions no longer accept camelCase parameters and accept only parameters matching the OpenSearch API specification.

    3.0.0release notes

  • API functions no longer allow overriding the HTTP method; method is treated as a querystring parameter. Use the client.http namespace for custom requests.

    3.0.0release notes

  • The client requires Node.js 14 or higher; support for Node.js 10 and 12 has been dropped.

    3.0.0release notes

Security 2

  • Response size limits are applied when Content-Length is absent, protecting users from oversized responses without that header.

    3.10.0release notes

  • Fixed SigV4 signing so the x-amz-content-sha256 header is signed.

    3.6.0release notes

New APIs and options 2

  • Adds support for overwriting the host header.

    3.9.0release notes

  • Over a hundred API functions were added, and existing functions were updated to match the latest OpenSearch API specification.

    3.0.0release notes

Performance 1

  • API namespaces are instantiated lazily to improve Client construction performance.

    3.9.0release notes

Behavior and default changes 1

  • The client was updated to reflect the latest OpenSearch API specification, potentially changing the API operations available to developers.

    3.6.0release notes

Tooling 1

  • Handwritten request and response types were replaced with types generated from the OpenSearch API specification, improving autocomplete and type checking.

    3.0.0release notes

Fixes and other changes 2

  • Fixes handling of mixed operations in the bulk helper.

    3.9.0release notes

  • The error listener was added back before the callback.

    3.6.0release notes

@opensearch-project/opensearch 26 changes

Breaking changes 4

Security 1

  • Response size is bounded when Content-Length is absent, limiting the size of responses the client processes.

    2.14.0release notes

Deprecations 1