From a92cbba9ea29f3c6bba7f15c45e759c4cbb7aacf Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 29 Feb 2024 10:49:30 +0000 Subject: [PATCH] chore(release): 4.0.0 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [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)) --- CHANGELOG.md | 24 ++++++++++++++ README.md | 6 ++-- build.gradle | 31 ++++++++++--------- config.yaml | 2 +- scripts/generate.sh | 2 +- .../com/fingerprint/api/FingerprintApi.java | 2 +- .../java/com/fingerprint/sdk/ApiClient.java | 2 +- 7 files changed, 47 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f80691..4d70d59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/README.md b/README.md index 798504c..ddcabbc 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Add this dependency to your project's POM: com.github.fingerprintjs fingerprint-pro-server-api-java-sdk - v3.1.0 + v4.0.0 ``` @@ -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" } ``` @@ -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 diff --git a/build.gradle b/build.gradle index 2db9cac..6d94736 100644 --- a/build.gradle +++ b/build.gradle @@ -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 { @@ -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 @@ -37,7 +37,7 @@ publishing { artifact jar groupId 'com.fingerprint' artifactId 'fingerprint-pro-server-api-sdk' - version '3.1.0' + version '4.0.0' } } } @@ -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' @@ -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) { diff --git a/config.yaml b/config.yaml index 239e831..4db3d39 100644 --- a/config.yaml +++ b/config.yaml @@ -1,4 +1,4 @@ -artifactVersion: 3.1.0 +artifactVersion: 4.0.0 apiPackage: com.fingerprint.api modelPackage: com.fingerprint.model invokerPackage: com.fingerprint.sdk diff --git a/scripts/generate.sh b/scripts/generate.sh index 24e264f..c698eca 100755 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION='3.1.0' +VERSION='4.0.0' while getopts "v:" arg; do case $arg in diff --git a/src/main/java/com/fingerprint/api/FingerprintApi.java b/src/main/java/com/fingerprint/api/FingerprintApi.java index 57cae54..76d2a28 100644 --- a/src/main/java/com/fingerprint/api/FingerprintApi.java +++ b/src/main/java/com/fingerprint/api/FingerprintApi.java @@ -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() { diff --git a/src/main/java/com/fingerprint/sdk/ApiClient.java b/src/main/java/com/fingerprint/sdk/ApiClient.java index 7984f86..e6b87b6 100644 --- a/src/main/java/com/fingerprint/sdk/ApiClient.java +++ b/src/main/java/com/fingerprint/sdk/ApiClient.java @@ -130,7 +130,7 @@ public ApiClient(Map 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();