npm / @zilliz/milvus2-sdk-node
@zilliz/milvus2-sdk-node
What changed in @zilliz/milvus2-sdk-node 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-24.
2 breaking2 security62 new APIs and options1 performance3 behavior and defaults34 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@zilliz/milvus2-sdk-node 361 changes
Breaking changes 1
Credential and RBAC payloads are redacted from request, response, and retry logs.
Security 1
The SDK now uses a secure parquetjs fork.
New APIs and options 43
Adds analyzer and file resource operations to the REST client.
Adds batch segment manifest updates.
Exposes client telemetry administration over gRPC; telemetry administration requires root access when authorization is enabled on Milvus 3.0.6.
Adds collection schema evolution and truncate operations to the REST client.
Adds external collection refresh to the REST client.
Adds manual import commit and abort operations to the REST client.
Adds support for path replacement in partial upserts.
Adds phrase-match slop calculation.
Adds portable snapshot export and restore.
Exposes proxy administration over gRPC.
Adds QueryScan chains; they require a server build with QueryScan support, and older servers may ignore them.
Exposes replication and WAL streams over gRPC.
Adds resource group operations to the REST client.
Adds query grouping and filter parameters to the REST client.
Expands the REST client with snapshot lifecycle and export operations.
Adds role and privilege group operations to the REST client.
Adds search aggregation to the REST client.
Adds search inputs, grouping, and function chains to the REST client.
Adds segment and quota diagnostics to the REST client.
Adds typed function-chain builders with search and query integration.
StructArray fields support scalar array sub-fields when creating or describing collections and reading or writing rows. Requires Milvus 3.0.6 or later.
The SDK can build client-side bloom filter blobs for bloom_match.
Client telemetry support is added.
The SDK supports client-side roaring bitmap blobs for roaring_match.
Adds support for advanced struct array operations.
Adds support for collection schema evolution APIs.
Adds support for updating descriptions.
Adds wrappers for file resources.
Adds support for function field backfill.
Adds a schema wrapper for function fields.
Adds support for query aggregation.
Adds support for search aggregation.
Adds support for the Text data type.
The SDK adds support for array-of-vector struct payloads.
The SDK adds cluster session routing for DQL.
The SDK adds support for element-level result offsets.
The SDK adds support for external collections.
Vector payloads can now be nullable.
The SDK adds support for order-by parameters.
The SDK adds support for partial array upsert operations.
The SDK adds APIs for replicate configuration.
The SDK adds APIs for working with snapshots.
The SDK adds a volume manager API.
Fixes and other changes 16
Fixes partial upsert of StructArray fields by using the expected ArrayOfStruct wire type.
Function output fields are included when collection descriptions are formatted.
Destroyed clients no longer reconnect and leave orphaned connections.
count() preserves query options, including expression-template values, partition selection, consistency, timeout, and request IDs; request types were extended accordingly.
Sparse vectors with different lengths for CSR indices and values are rejected early with a descriptive error.
Rows built with dynamic fields preserve typed-array vectors.
Date conversion preserves millisecond precision, and fractional Unix timestamps no longer throw.
Serialization uses only the selected range of an Int8Array view, not its entire backing buffer.
Numbers represented in scientific notation now retain correct score precision formatting.
VarChar primary keys are escaped correctly in query, delete, and query-iterator expressions.
Six previously missing index types are added to the IndexType enum.
Fixes support for adding fields to external collections.
Exposes the TypeScript declaration entry so consumers can access the SDK's declarations.
Fixed the parquetjs package import.
Compact advanced parameters are now forwarded.
Import jobs now support project region.
@zilliz/milvus2-sdk-node 243 changes
Breaking changes 1
Default value validation no longer checks partial_update, changing when default values are validated.
Security 1
Resolves a fast-xml-parser vulnerability via yarn resolutions.
New APIs and options 19
Reserved options are passed through connect, allowing developers to supply those options when connecting.
Adds an API to describe collections in a batch.
Adds BulkWriter to generate Milvus-compatible JSON import files.
Adds Parquet format support for BulkWriter.
Adds an API to flush all collections.
Adds a synchronous API to flush all collections.
Adds an API to retrieve the state of a flush-all operation.
Adds an API to retrieve import state.
Adds an API to retrieve index statistics.
Adds global cluster support with automatic primary routing.
Adds highlighter support for the search API.
Adds an API to truncate a collection.
Collection function management is now available through the gRPC API.
More HTTP APIs were added.
Request tracing was added, allowing developers to trace requests.
Search functionality now supports IDs.
Adds support for timestamptz in the Node.js SDK.
Adds function score support for search operations.
Adds support for struct array fields, with float vectors only.
Performance 1
Vector field data array concatenation is faster as row count grows.
Behavior and default changes 3
Upsert now supports array field operations.
The gRPC keepalive interval is set to 10 seconds with a 5-second timeout.
Upsert operations now implement partial update field filtering.
Fixes and other changes 18
Database properties support is aligned, affecting how developers use database properties through the SDK.
The bulk writer now marks nullable fields as optional in the Parquet schema.
Warns when no port is specified in the address.
Fixes a typo in clustering_key_field.
Forwards db_name in simplified createCollection.
Avoids class-name checks so minified builds can use getGRPCService.
Fixes Int64 precision.
Fixes ResourceGroup type fields to match proto definitions.
Prevents infinite recursion when SchemaMismatch occurs for other reasons.
Sets the VarChar placeholder type for all function output vector fields.
The addCollectionFields flow now passes db_name to addCollectionField.
Insert logic now considers the allow_insert_auto_id property.
When partial_update is true, nullable and default fields are skipped during validation.
HTTP error handling was improved, affecting how developers encounter errors from the SDK.
Fixed RRFRanker not working after v2.6.2.
Fixed creating a collection containing only a struct with a vector field.
Fixed WeightedRanker not working after v2.6.2.
Fixes the struct field's max_capacity.