pinecone-vercel-starter icon indicating copy to clipboard operation
pinecone-vercel-starter copied to clipboard

[spruce] Bump @pinecone-database version to support global control plane

Open austin-denoble opened this issue 1 year ago • 0 comments

Problem

We've been working to support the new global control plane service in the Pinecone clients. We need to update our sample apps to migrate to the new client versions, and update associated code paths as needed.

Solution

  • Bump the @pinecone-database/pinecone dependency to use the new spruceDev version of the client: ^1.1.2-spruceDev.20231214000822.
  • Update pinecone.ts and seed.ts to handle the new object response from listIndexes().
  • Update seed.ts to pass the proper config object shape to createIndex().

For now, I've created a spruce branch to merge this into as we probably don't want to release sample apps that aren't aligned with what's available publicly.

Type of Change

  • [X] Bug fix (non-breaking change which fixes an issue)
  • [X] New feature (non-breaking change which adds functionality)
  • [X] This change requires a documentation update

Test Plan

Run the playwright test suite and run the application locally:

Screenshot 2023-12-18 at 3 23 32 PM Screenshot 2023-12-18 at 3 24 44 PM Screenshot 2023-12-18 at 3 24 08 PM

austin-denoble avatar Dec 18 '23 20:12 austin-denoble