Skip to content

Commit

Permalink
chore(release): 4.0.0 [skip ci]
Browse files Browse the repository at this point in the history
## [4.0.0](v3.1.0...v4.0.0) (2024-02-29)

### ⚠ BREAKING CHANGES

* change models for the most smart signals
* make identification field `confidence` optional
* deprecated `ipLocation` field uses `DeprecatedIpLocation` model

### Features

* add `linkedId` field to the `BotdResult` type ([044109e](044109e))
* add `SuspectScore` smart signal support ([c66373e](c66373e))
* add missed errors structures ([efb8fd6](efb8fd6))
* fix `ipLocation` deprecation ([f61a78d](f61a78d))
* make identification field `tag` required ([069d9c5](069d9c5))
* update `originCountry` field to the `vpn` signal ([1a7451b](1a7451b))
* use shared structures for webhooks and event ([69bfd84](69bfd84))

### Bug Fixes

* make fields required according to real API response ([a94fd56](a94fd56))
  • Loading branch information
semantic-release-bot committed Feb 29, 2024
1 parent 53f8546 commit a92cbba
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 22 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
## [4.0.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/compare/v3.1.0...v4.0.0) (2024-02-29)


### ⚠ BREAKING CHANGES

* change models for the most smart signals
* make identification field `confidence` optional
* deprecated `ipLocation` field uses `DeprecatedIpLocation` model

### Features

* add `linkedId` field to the `BotdResult` type ([044109e](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/commit/044109e37b77b37c9be489e457af874f79bd8a31))
* add `SuspectScore` smart signal support ([c66373e](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/commit/c66373e5ff3ee194d1fea05329ab10f1c21544cf))
* add missed errors structures ([efb8fd6](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/commit/efb8fd65ceb210b0b9113f38ef99e20e731078c6))
* fix `ipLocation` deprecation ([f61a78d](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/commit/f61a78d61e69b8abaf3f92f0c8174bc857ec1c81))
* make identification field `tag` required ([069d9c5](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/commit/069d9c506311e1bd0bd835ba46a4809658b107ab))
* update `originCountry` field to the `vpn` signal ([1a7451b](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/commit/1a7451b872d2725b0fe16a788f3f665e70c2c10b))
* use shared structures for webhooks and event ([69bfd84](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/commit/69bfd84b6d834c9957a584d7e6b1151172fa1930))


### Bug Fixes

* make fields required according to real API response ([a94fd56](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/commit/a94fd56417f5de340215f15eb0806006e157e4e6))

## [3.1.0](https://github.com/fingerprintjs/fingerprint-pro-server-api-java-sdk/compare/v3.0.0...v3.1.0) (2024-02-14)


Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.github.fingerprintjs</groupId>
<artifactId>fingerprint-pro-server-api-java-sdk</artifactId>
<version>v3.1.0</version>
<version>v4.0.0</version>
</dependency>
```

Expand All @@ -81,7 +81,7 @@ Add this dependency to your project's build file:
}
dependencies {
implementation "com.github.fingerprintjs:fingerprint-pro-server-api-java-sdk:v3.1.0"
implementation "com.github.fingerprintjs:fingerprint-pro-server-api-java-sdk:v4.0.0"
}
```

Expand All @@ -95,7 +95,7 @@ At first generate the JAR by executing:

Then manually install the following JARs:

- `target/fingerprint-pro-server-api-sdk-3.1.0.jar`
- `target/fingerprint-pro-server-api-sdk-4.0.0.jar`

## Usage

Expand Down
31 changes: 16 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'eclipse'
apply plugin: 'com.diffplug.spotless'

group = 'com.fingerprint'
version = '3.1.0'
version = '4.0.0'

buildscript {
repositories {
Expand All @@ -22,7 +22,7 @@ repositories {
mavenCentral()
}

apply plugin: 'java-library'
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
Expand All @@ -37,7 +37,7 @@ publishing {
artifact jar
groupId 'com.fingerprint'
artifactId 'fingerprint-pro-server-api-sdk'
version '3.1.0'
version '4.0.0'
}
}
}
Expand All @@ -60,18 +60,18 @@ ext {
dependencies {
implementation "io.swagger:swagger-annotations:$swagger_annotations_version"
implementation "com.google.code.findbugs:jsr305:3.0.2"
api "org.glassfish.jersey.core:jersey-client:$jersey_version"
api "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"
api "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version"
api "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
api "org.glassfish.jersey.connectors:jersey-apache-connector:$jersey_version"
api "com.fasterxml.jackson.core:jackson-core:$jackson_version"
api "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
api "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version"
api "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version"
api "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
api "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
api 'io.github.cdimascio:dotenv-java:2.1.0'
implementation "org.glassfish.jersey.core:jersey-client:$jersey_version"
implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version"
implementation "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version"
implementation "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version"
implementation "org.glassfish.jersey.connectors:jersey-apache-connector:$jersey_version"
implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version"
implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version"
implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version"
implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version"
implementation 'io.github.cdimascio:dotenv-java:2.1.0'
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
testImplementation 'org.mockito:mockito-all:1.10.19'
Expand Down Expand Up @@ -121,6 +121,7 @@ spotless {
jar {
exclude 'com/fingerprint/example/**'
duplicatesStrategy 'exclude'
from configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}

tasks.register('runFunctionalTests', JavaExec) {
Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
artifactVersion: 3.1.0
artifactVersion: 4.0.0
apiPackage: com.fingerprint.api
modelPackage: com.fingerprint.model
invokerPackage: com.fingerprint.sdk
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION='3.1.0'
VERSION='4.0.0'

while getopts "v:" arg; do
case $arg in
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/fingerprint/api/FingerprintApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class FingerprintApi {
public static final String INTEGRATION_INFO = "fingerprint-pro-server-java-sdk/3.1.0";
public static final String INTEGRATION_INFO = "fingerprint-pro-server-java-sdk/4.0.0";
private ApiClient apiClient;

public FingerprintApi() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/fingerprint/sdk/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public ApiClient(Map<String, Authentication> authMap) {
this.dateFormat = new RFC3339DateFormat();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/3.1.0/java");
setUserAgent("OpenAPI-Generator/4.0.0/java");

// Setup authentications (key: authentication name, value: authentication).
authentications = new HashMap<String, Authentication>();
Expand Down

0 comments on commit a92cbba

Please sign in to comment.