Skip to content

Commit

Permalink
vsn bump to 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
UmanShahzad committed Oct 8, 2023
1 parent 93c8b9f commit 32b6aac
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 3.0.0

- Removed loading of country/continent/currency/EU-related data via files. This
is done fully statically now.
- IPinfo builder no longer supports functions `setContinentFile`,
`setCountryCurrencyFile`, `setCountryFlagFile`, `setEUCountryFile`,
`setCountryFile`.
- IPinfo `Context` object no longer supports being initialized via input maps.

# 2.2.2

- Updated guava to vsn 32.1.2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Dependency:
<dependency>
<groupId>io.ipinfo</groupId>
<artifactId>ipinfo-api</artifactId>
<version>2.2.2</version>
<version>3.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.ipinfo</groupId>
<artifactId>ipinfo-api</artifactId>
<version>2.2.2</version>
<version>3.0.0</version>
<packaging>jar</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/ipinfo/api/IPinfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ private ConcurrentHashMap<String, Object> getBatchGeneric(
.url(postUrl)
.addHeader("Content-Type", "application/json")
.addHeader("Authorization", Credentials.basic(token, ""))
.addHeader("User-Agent", "IPinfoClient/Java/2.2.2");
.addHeader("User-Agent", "IPinfoClient/Java/3.0.0");

for (int i = 0; i < lookupUrls.size(); i += batchSize) {
// create chunk.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/ipinfo/api/request/BaseRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected BaseRequest(OkHttpClient client, String token) {
public Response handleRequest(Request.Builder request) throws RateLimitedException {
request
.addHeader("Authorization", Credentials.basic(token, ""))
.addHeader("user-agent", "IPinfoClient/Java/2.2.2")
.addHeader("user-agent", "IPinfoClient/Java/3.0.0")
.addHeader("Content-Type", "application/json");

Response response;
Expand Down

0 comments on commit 32b6aac

Please sign in to comment.