diff --git a/src/utils/user-agent.ts b/src/utils/user-agent.ts index 4e291263..eddac888 100644 --- a/src/utils/user-agent.ts +++ b/src/utils/user-agent.ts @@ -10,6 +10,11 @@ export const buildUserAgent = (isLegacy: boolean) => { 'lang=typescript', ]; + // If the @spruce release is in use, add that to the user agent + if (packageInfo.release) { + userAgentParts.push(`release=${packageInfo.release}`); + } + if (isEdge()) { userAgentParts.push('Edge Runtime'); } diff --git a/src/version.json b/src/version.json index adc962b9..793d151d 100644 --- a/src/version.json +++ b/src/version.json @@ -1,4 +1,5 @@ { "name": "@pinecone-database/pinecone", - "version": "1.1.2" + "version": "1.1.2", + "release": "@spruce" }