npm / @pinecone-database/pinecone
@pinecone-database/pinecone
What changed in @pinecone-database/pinecone 1 to 9, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
40 breaking1 security6 deprecations88 new APIs and options1 performance8 behavior and defaults1 tooling19 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@pinecone-database/pinecone 964 changes
Breaking changes 22
Integrated-embedding indexes accept at most 96 documents per upsert or update, rather than the usual 1,000.
HTTP 413 no longer surfaces as
Errors.PineconeUnmappedHttpError; check forErrors.PineconePayloadTooLargeErrorinstead.An
embedorsparse_embedclause must be the only clause inscoreBy.Use BackupListPagination instead of the removed BackupPaginationResponse type.
createdAt now decodes to an optional Date; use toISOString instead of string methods.
Backup dimension and metric fields move into the optional schema.
Document update and delete now return response objects instead of void, which may require updating explicitly typed wrappers.
Top-level configuration embed is rejected; update semantic fields through a schema.fields patch or create an integrated-embedding index with createForModel.
Pod creation, legacy metadata-indexing schemas, and sourceCollection/sourceBackupId creation options are rejected; use the backup restoration resource method for restoration.
Do not mix legacy dimension, metric, vectorType, or spec fields with native schema or deployment fields in one creation request.
recordCount and sizeBytes are now optional decimal strings instead of optional numbers; convert explicitly for arithmetic and handle missing values.
Node.js 22 or later is required to use v9.
next is required when a pagination object exists; omit an empty pagination envelope or provide a real cursor.
Use this resource method to restore an index from a backup.
Preview document methods are removed; migrate document operations to the index namespace documents accessor and stable request and response types.
Preview exports are removed; migrate preview request and response types to their stable equivalents.
Use ReadCapacityDedicated instead of ReadCapacityDedicatedSpec.
Response declarations now require nodeType, scaling, and manual replicas and shards; capacity status counts can be null.
Use ReadCapacityOnDemand instead of ReadCapacityOnDemandSpec.
Requests reject resource identifiers whose dot segments would resolve to a different URL path.
Timestamps and several response fields can now be null or absent, so check values before accessing them.
SearchMatchTerms now requires both strategy and terms; omit optional matchTerms when no filter is intended.
Security 1
Request-header logging redacts Api-Key and Authorization across header casing and supported header container formats.
Deprecations 4
Flat control methods remain available as deprecated delegates; use pc.indexes.configure for new code.
Use pc.backups.create instead of the deprecated flat control method.
Use pc.backups.createIndex instead of the deprecated flat control method.
Use pc.backups.listByIndex or pc.backups.list instead of the deprecated flat control method.
New APIs and options 25
An embed clause accepts parameters that override the field's readParameters for that search only.
A string field's embed configuration accepts processingLocation to select a processing location such as the US; it applies to writes and queries and is fixed at index creation.
ModelInfo has a supportedOn field indicating where a hosted model can be used; it is undefined when the API does not report it.
A new deployment option lets you restore a serverless backup into another region of the same cloud.
The RestoreDeploymentRequest type is exported for describing restore deployment requests.
A new exported type for integrated embedding creation configuration.
A new exported type for sparse integrated embedding creation configuration.
Set the integrated embedding dimension with
embed.dimension; omitted keys use the model's defaults.Choose the integrated embedding model with
embed.model; omitted keys use the model's defaults.Declare
embedon a string field to embed document text on write and query text on search with the same hosted model.HTTP 413 responses now throw a dedicated error class, allowing oversized requests to be caught and split into smaller batches.
A new exported type for integrated embedding string fields.
A new exported type for integrated embedding configuration in responses.
A new exported type for sparse embedding configuration in responses.
Declare
sparseEmbedon a string field to use integrated sparse embedding for document text and query text.Set
storeText: falseto embed text without storing it; unstored fields cannot be returned or searched withtext/query_stringclauses.Read responses can report
usage.egressBytes, the billed response size in bytes; the field is omitted when the server does not report it.Responses report the number of embedding tokens in
usage.embedTotalTokens.Assistant uploads accept Uint8Array, Blob, and async iterables of byte or string chunks, including Node Buffer and Readable inputs; iterable uploads require Node.js and are sent once.
The main client now provides document upsert, search, fetch, update, delete, and list operations through the index namespace documents accessor.
HTTP 412 errors now have a dedicated error class.
HTTP 402 errors now have a dedicated error class.
Legacy properties derive values from schema and deployment, are non-enumerable, and can be undefined or throw when values are unavailable or ambiguous.
Create and manage daily, weekly, or monthly backup schedules with retention periods and inspect their run history.
Define searchable fields when creating an index for schema-based document operations.
Behavior and default changes 3
Client additionalHeaders now propagate to index and assistant clients, including upload and streaming calls; target-specific exact-key matches take precedence.
Client construction now uses globalThis.fetch, and importing the package no longer eagerly loads Node built-ins.
An exact X-Pinecone-Api-Version header key now overrides the default API version.
Tooling 1
Published declarations support TypeScript 5.2 through 7.x, including CommonJS and ESM consumer configurations.
Fixes and other changes 8
The stream no longer drops its final event when the server sends it without a trailing newline.
model.dimensionnow reads from a string field'sembedwhen it is the index's only dense vector, instead of throwingPineconeIndexPropertyError.model.metricnow reads from a string field'sembedwhen it is the index's only dense vector, instead of throwingPineconeIndexPropertyError.model.vectorTypenow reads from a string field'sembedwhen it is the index's only dense vector, instead of throwingPineconeIndexPropertyError.Requests failing with specified undici socket or timeout causes now retry with the same backoff as 5xx responses; exhausted retries still produce
PineconeConnectionErrorwith the original error ascause.Chat streams now preserve multibyte UTF-8 characters split across byte chunks.
Operation Content-Type remains protected regardless of header casing.
Nested API error envelopes now expose the server's message correctly.
@pinecone-database/pinecone 821 changes
Breaking changes 2
Now accepts a bare fileId string instead of an object and returns an OperationModel for the in-progress deletion.
Now returns an OperationModel for the in-progress upload instead of an AssistantFileModel; poll the operation to determine when the file is ready.
New APIs and options 17
Adds a top-level client for managing organizations, projects, API keys, service accounts, role bindings, invites, and users through the Pinecone Admin API.
Uses service-account OAuth2 instead of a project
Api-Key; fetches and caches the bearer token on the first admin request, with no proactive refresh.Adds an
initAdmin()helper tonpm run replfor spinning up anAdminClient.Can be set in the environment to provide the service-account client ID used by
AdminClient.Can be set in the environment to provide the service-account client secret used by
AdminClient.Adds an n-gram tokenizer option for full-text search string fields, enabling substring matching; it cannot be combined with
stemmingorstopWords.Adds an alpha preview method to list document IDs for a namespace, with prefix filtering, a result limit, and cursor-based pagination.
Adds an alpha preview method for partial updates to existing documents by
_id, including setting values or removing fields; updates to nonexistent documents are accepted as a no-op.Deletes schema-based documents by IDs or by filter.
Checks progress on a specific asynchronous file operation.
Fetches specific documents by ID from a schema-based index.
Lists recent operations across an assistant; operations are retained for 30 days.
Provides schema-based index management through create, list, describe, configure, and delete operations.
Introduces alpha control-plane and data-plane APIs for schema-based indexes, including integrated full-text search alongside dense and sparse vector search; signatures may change before graduation to stable.
Searches schema-based documents using mixed scoring methods, including BM25 text, dense and sparse vectors, and Lucene query strings.
Upserts schema-aware documents into a schema-based index;
_idis the only required field.Uploads a file at a caller-supplied stable ID, replacing existing content or creating a new file; metadata is not accepted.
Fixes and other changes 2
This SDK version depends on the 2026-04 Pinecone API version; the v8 release line is expected to receive fixes while that API version is supported.
The temperature option is now forwarded to the API on chat, chatStream, chatCompletion, and chatCompletionStream.
@pinecone-database/pinecone 731 changes
Breaking changes 10
Now accepts a single options object with name and configuration fields instead of an index name and options as positional arguments.
Now accepts an object with optional ids, filter, and namespace fields instead of positional ids or filter arguments.
Now accepts an object containing the id and an optional namespace instead of an id argument.
Retrieves records using metadata filters without requiring vector IDs, with pagination support.
Now accepts limit and paginationToken in an options object instead of positional arguments.
Now accepts uri, errorMode, and integration in an options object instead of positional arguments.
Now accepts an object containing records and an optional namespace instead of a records array.
Now accepts an object containing records and an optional namespace instead of a records array.
The minimum supported Node.js version increased from 18 to 20.
The SDK now uses TypeScript ~5.6.3 and is compatible with TypeScript 5.2.0 or later; previously it supported TypeScript 4.x or later.
Deprecations 1
The preferred targeting syntax now passes an options object using host or name; the legacy string syntax still works but is deprecated and will be removed in v8.
New APIs and options 15
The Uploadable type is exported for application-level type annotations and represents Buffer, Blob, or NodeJS.ReadableStream.
The file input now accepts a Buffer, Blob, or Node.js ReadableStream as well as a local file path, enabling uploads without first writing the file to disk.
The Index.query operation now supports maxCandidates for dedicated (DRN) dense indexes.
BYOC index creation now supports configuring dedicated read capacity.
The Index.query operation now supports scanFactor for dedicated (DRN) dense indexes.
Create indexes in your own cloud infrastructure using the byoc index specification.
Assistant chat and context can include base64 image data in multimodal results.
Explicitly creates namespaces with optional metadata schemas.
Now accepts an object with an optional namespace instead of no arguments.
All operations retry server errors (5xx) by default with exponential backoff; maxRetries configures the retry count, and zero disables retries.
Assistant file upload, chat, and context operations support multimodal PDF processing and image-related context snippets.
Many data plane operations accept namespace as an operation-level parameter, allowing callers to override the default namespace.
Evaluates assistant responses for quality and relevance using a question, answer, and ground truth.
Serverless indexes can be configured with dedicated read nodes for improved read performance when creating or updating an index.
Configure which metadata fields are indexed for filtering, improving performance for large-scale deployments.
Performance 1
Reading files for path-based uploads is asynchronous rather than synchronous, so reading large files no longer blocks the Node.js event loop.
Behavior and default changes 2
The update method now supports updating metadata for multiple records that match a metadata filter; filter cannot be combined with id.
Unknown request-object properties are no longer rejected, and enum values are provided for convenience but string values are accepted, improving forward compatibility.
Fixes and other changes 2
ReadableStream uploads do not support automatic retries because the stream is consumed after the first read.
This SDK release line depends on Pinecone API version 2025-10 and is supported with fixes while that API version remains supported.
@pinecone-database/pinecone 614 changes
New APIs and options 12
Adds an optional configuration for identifying AI coding agents; the information is incorporated into request User-Agent headers to help track product usage.
Adds the ability to create a backup of a serverless index.
Adds an API to create a new index from a backup, initiating a restore job.
Adds an Index method to delete a namespace, including all its record data.
Adds an API to retrieve details about a backup.
Adds an Index method to describe a namespace associated with an index.
Adds an API to check the progress of an index restoration.
Adds an inference API to retrieve details for a single model.
Adds the Inference class for browsing models hosted by Pinecone and viewing their detailed configuration options.
Adds an API to list backups for a project or for a specific index.
Adds an inference API to list all available models.
Adds an Index method to list all namespaces associated with an index.
Fixes and other changes 2
Fixes filtering files: the filter object no longer needs a top-level metadata key.
The Node SDK depends on version 2025-04 of the Pinecone API; the v6 SDK release line should receive fixes while that API version is supported.
@pinecone-database/pinecone 56 changes
New APIs and options 5
Chat with an Assistant and consume its response as a stream.
Check an uploaded Assistant file's status, including its percent done.
Sparse vectors can be upserted with sparseValues containing indices and values.
Upload a document file to an Assistant, with optional metadata.
Set vectorType to 'sparse' when creating a sparse-only index, enabling direct indexing and retrieval of sparse vectors.
Fixes and other changes 1
The SDK now depends on version 2025-01 of the Pinecone API; the v5 release line should continue receiving fixes while that API version is supported.
@pinecone-database/pinecone 42 changes
New APIs and options 2
Adds
pc.inference.rerankto rerank documents in descending relevance order against a query, supporting documents as strings or objects.Adds
index.startImportto asynchronously import vectors directly from object storage into a Pinecone index for large-scale jobs.
@pinecone-database/pinecone 35 changes
Breaking changes 1
The minimum supported Node version moves from 14.0.0 to 18.0.0 because earlier versions reached end of life and no longer receive security support.
New APIs and options 2
Use configureIndex or createIndex to enable or disable deletion protection for indexes; it is disabled by default, and protected indexes cannot be deleted until protection is disabled.
The SDK adds access to Pinecone's Inference API, currently in public preview.
Fixes and other changes 2
The v3 SDK depends on API version 2024-07, and this release line should continue receiving fixes while that API version is supported.
The QueryByVectorValues type now correctly represents sparseValues.
@pinecone-database/pinecone 27 changes
Breaking changes 4
Now accepts an object conforming to PodSpec or ServerlessSpec, enabling deployment of pod or serverless indexes; pod-specific properties are moved into PodSpec.
Keeps the same index-name argument but returns a different shape, moving some configurations under spec and elevating host to the top level.
Now returns an array of full resource descriptions instead of names, changing the response shape.
Now returns an array of full resource descriptions instead of names, changing the response shape.
Behavior and default changes 3
The SDK uses the new Control Plane API hosted at api.pinecone.io, allowing more flexibility in how API keys are used than the former rigid project-to-environment relationship.
Serverless fetch responses now include the quantity of read units consumed, helping developers understand cost.
Serverless query responses now include the quantity of read units consumed, helping developers understand cost.
@pinecone-database/pinecone 114 changes
Breaking changes 1
Method parameters no longer require the legacy top-level createRequest key; pass index properties such as name and dimension directly.
Deprecations 1
The legacy export remains usable for now, but the notes say it will be removed in a future release and encourage migration to Pinecone.
New APIs and options 10
Set waitUntilReady to make the create method wait to resolve its promise until the index is ready to receive data.
A convenience method is available to delete all items more easily.
A convenience method is available to delete many items more easily.
A convenience method is available to delete one item more easily.
Create a scoped index client so data operations target the same namespace without passing the namespace to every method call.
A new client export provides a normal TypeScript client that can be instantiated with new Pinecone(), without asynchronous initialization.
The new client can read this environment variable instead of requiring the API key in a config argument.
Set this environment variable to true to disable runtime validations.
The new client can read this environment variable instead of requiring the environment in a config argument.
Published TypeScript types support generics for metadata, typing query and fetch results and reporting metadata that does not match the declared type.
Fixes and other changes 2
The library migrated from the MIT license to the Apache 2 open source license; the notes say this is a distinction without a difference for most users.
Incorrect parameters receive runtime validation with improved user feedback and stacktraces.