Skip to content

Commit

Permalink
Update changelogs, README, and SDK version for v1.1 release (#124)
Browse files Browse the repository at this point in the history
## Problem

Prepare for releasing v1.1

## Solution

Update changelogs, README, and SDK version for releasing v1.1

## Type of Change

- [X] Non-code change (docs, etc)

## Test Plan

Publish the v1.1 jar locally and test data and control plane
functionalities on a maven project.
  • Loading branch information
rohanshah18 authored May 9, 2024
1 parent 82f6bd7 commit 891debd
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

[comment]: <> (When bumping [pc:VERSION_LATEST_RELEASE] create a new entry below)
### Unreleased version
### v1.1.0
- Add list vectors endpoint

### v1.0.0
- Remove vector_service.proto and replace it with the generated classes
- Add data and control plane wrappers
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ Maven:
<dependency>
<groupId>io.pinecone</groupId>
<artifactId>pinecone-client</artifactId>
<version>1.0.0</version>
<version>1.1.0</version>
</dependency>
```

[comment]: <> (^ [pc:VERSION_LATEST_RELEASE])

Gradle:
```
implementation "io.pinecone:pinecone-client:1.0.0"
implementation "io.pinecone:pinecone-client:1.1.0"
```

[comment]: <> (^ [pc:VERSION_LATEST_RELEASE])

Alternatively, you can use our standalone uberjar [pinecone-client-1.0.0-all.jar](https://repo1.maven.org/maven2/io/pinecone/pinecone-client/1.0.0/pinecone-client-1.0.0-all.jar), which bundles the pinecone
Alternatively, you can use our standalone uberjar [pinecone-client-1.1.0-all.jar](https://repo1.maven.org/maven2/io/pinecone/pinecone-client/1.1.0/pinecone-client-1.1.0-all.jar), which bundles the pinecone
client and all dependencies together. You can include this in your classpath like you do with any 3rd party JAR without
having to obtain the *pinecone-client* dependencies separately.

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pineconeClientVersion = 1.0.0
pineconeClientVersion = 1.1.0
2 changes: 1 addition & 1 deletion src/main/java/io/pinecone/configs/PineconeConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public String getUserAgentGrpc() {
}

private String buildUserAgent(String clientId) {
String userAgent = String.format("lang=java; %s=%s", clientId, "v1.0.0");
String userAgent = String.format("lang=java; %s=%s", clientId, "v1.1.0");
if (this.getSourceTag() != null && !this.getSourceTag().isEmpty()) {
userAgent += "; source_tag=" + this.getSourceTag();
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/io/pinecone/PineconeBuilderTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public void PineconeWithOkHttpClientAndUserAgent() throws IOException {

assertEquals(expectedIndex, index);
verify(mockClient, times(1)).newCall(requestCaptor.capture());
assertEquals("lang=java; pineconeClientVersion=v1.0.0", requestCaptor.getValue().header("User-Agent"));
assertEquals("lang=java; pineconeClientVersion=v1.1.0", requestCaptor.getValue().header("User-Agent"));
}

@Test
Expand All @@ -105,6 +105,6 @@ public void PineconeWithSourceTag() throws IOException {

assertEquals(expectedIndex, index);
verify(mockClient, times(1)).newCall(requestCaptor.capture());
assertEquals("lang=java; pineconeClientVersion=v1.0.0; source_tag=testsourcetag", requestCaptor.getValue().header("User-Agent"));
assertEquals("lang=java; pineconeClientVersion=v1.1.0; source_tag=testsourcetag", requestCaptor.getValue().header("User-Agent"));
}
}
8 changes: 4 additions & 4 deletions src/test/java/io/pinecone/PineconeConfigTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,26 +28,26 @@ public void testValidateWithEmptyApiKey() {
@Test
public void testGetUserAgent() {
PineconeConfig config = new PineconeConfig("testApiKey");
assertEquals(config.getUserAgent(), "lang=java; pineconeClientVersion=v1.0.0");
assertEquals(config.getUserAgent(), "lang=java; pineconeClientVersion=v1.1.0");
}

@Test
public void testGetUserAgentGrpc() {
PineconeConfig config = new PineconeConfig("testApiKey");
assertEquals(config.getUserAgentGrpc(), "lang=java; pineconeClientVersion[grpc]=v1.0.0");
assertEquals(config.getUserAgentGrpc(), "lang=java; pineconeClientVersion[grpc]=v1.1.0");
}
@Test
public void testGetUserAgentWithSourceTag() {
PineconeConfig config = new PineconeConfig("testApiKey");
config.setSourceTag("testSourceTag");
assertEquals(config.getUserAgent(), "lang=java; pineconeClientVersion=v1.0.0; source_tag=testsourcetag");
assertEquals(config.getUserAgent(), "lang=java; pineconeClientVersion=v1.1.0; source_tag=testsourcetag");
}

@Test
public void testGetUserAgentGrpcWithSourceTag() {
PineconeConfig config = new PineconeConfig("testApiKey");
config.setSourceTag("testSourceTag");
assertEquals(config.getUserAgentGrpc(), "lang=java; pineconeClientVersion[grpc]=v1.0.0; source_tag=testsourcetag");
assertEquals(config.getUserAgentGrpc(), "lang=java; pineconeClientVersion[grpc]=v1.1.0; source_tag=testsourcetag");
}

@Test
Expand Down

0 comments on commit 891debd

Please sign in to comment.