Skip to content

Commit

Permalink
add @spruce release to version.json and incorporate in user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
austin-denoble committed Nov 7, 2023
1 parent 74ca598 commit 28b38d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/utils/user-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down
3 changes: 2 additions & 1 deletion src/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "@pinecone-database/pinecone",
"version": "1.1.2"
"version": "1.1.2",
"release": "@spruce"
}

0 comments on commit 28b38d6

Please sign in to comment.