v1.1.0 Release
Fixed: Next.js fetch compatibility
In this release we made some adjustments to how we polyfill fetch
(which is not natively supported in all versions of node) to avoid conflicting with the Next.js framework. Next.js expects you to use @vercel/fetch
and stubs out other polyfills to keep the bundle small, so the cross-fetch polyfill we depend on was not working as expected.
We have tested these changes in an updated version of our pinecone-vercel-starter sample app deployed on Vercel, so we think this resolves the known issues (#124) using the Pinecone TypeScript client in combination with Next.js.
If you encounter other problems with Vercel Edge Runtime or next.js, please file a new issue and we'll work on it ASAP. Smoothing out this experience is important to us.
Added: Replacements for some deprecated utilities
Following up on a conversation about v1 replacements for the deprecated utils methods waitUntilIndexIsReady
and createIndexIfNotExists
, you can now pass additional options to the create method.
import { Pinecone } from '@pinecone-database/pinecone';
const pinecone = new Pinecone()
await pinecone.createIndex({
name: 'my-index',
dimension: 1536,
// This option tells the client not to throw if the index already exists.
// It serves as replacement for createIndexIfNotExists
suppressConflicts: true,
// This option tells the client not to resolve the promise until the
// index is ready. It replaces waitUntilIndexIsReady.
waitUntilReady: true
})
Changelog
Bug fixes
Features
Doc improvements
- Migration guide improvements by @jhamon in #120
- Add docstrings to Index class properties and methods by @austin-denoble in #123
Full Changelog: v1.0.1...v1.1.0