diff --git a/.changeset/pre.json b/.changeset/pre.json new file mode 100644 index 0000000..a4b92f9 --- /dev/null +++ b/.changeset/pre.json @@ -0,0 +1,8 @@ +{ + "mode": "pre", + "tag": "develop", + "initialVersions": { + "fingerprint-pro-server-api-java-sdk": "6.2.0" + }, + "changesets": [] +} diff --git a/.changeset/shy-worms-wish.md b/.changeset/shy-worms-wish.md new file mode 100644 index 0000000..dbafb33 --- /dev/null +++ b/.changeset/shy-worms-wish.md @@ -0,0 +1,5 @@ +--- +'fingerprint-pro-server-api-java-sdk': minor +--- + +Remove `ipv4` format from `ip` field in `Botd`, `Identification`, `Visit` and `Webhook` models. \ No newline at end of file diff --git a/.schema-version b/.schema-version index 6eaf894..852700e 100644 --- a/.schema-version +++ b/.schema-version @@ -1 +1 @@ -v2.0.0 \ No newline at end of file +v2.1.0 \ No newline at end of file diff --git a/package.json b/package.json index 825a1ed..c737ef1 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "devDependencies": { "@changesets/cli": "^2.27.8", - "@fingerprintjs/changesets-changelog-format": "^0.2.0" + "@fingerprintjs/changesets-changelog-format": "^0.2.0", + "@fingerprintjs/commit-lint-dx-team": "^0.1.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b18a695..c25eab9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@fingerprintjs/changesets-changelog-format': specifier: ^0.2.0 version: 0.2.0 + '@fingerprintjs/commit-lint-dx-team': + specifier: ^0.1.0 + version: 0.1.0 packages: @@ -76,9 +79,16 @@ packages: '@changesets/write@0.3.2': resolution: {integrity: sha512-kDxDrPNpUgsjDbWBvUo27PzKX4gqeKOlhibaOXDJA6kuBisGqNHv/HwGJrAu8U/dSf8ZEFIeHIPtvSlZI1kULw==} + '@commitlint/config-conventional@17.8.1': + resolution: {integrity: sha512-NxCOHx1kgneig3VLauWJcDWS40DVjg7nKOpBEEK9E5fjJpQqLCilcnKkIIjdBH98kEO1q3NpE5NSrZ2kl/QGJg==} + engines: {node: '>=v14'} + '@fingerprintjs/changesets-changelog-format@0.2.0': resolution: {integrity: sha512-1jI+J1r8OKUtjlFfQW4bmQ8u4E1097zPaKw5fUCgAcahLPgwW4Ae+Keoc253CSyyaKgTu2v/wniUGchmPaXAsg==} + '@fingerprintjs/commit-lint-dx-team@0.1.0': + resolution: {integrity: sha512-MSYn4bRt9Iyob8hB3Oc/IXz3O8DA2E3ccqlG46pYYhdF090W6u9BNa9uCaVg611FUzqMU41+vs8ztXLkICbKkw==} + '@manypkg/find-root@1.1.0': resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} @@ -114,6 +124,9 @@ packages: argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} + array-ify@1.0.0: + resolution: {integrity: sha512-c5AMf34bKdvPhQ7tBGhqkgKNUzMr4WUs+WDtC2ZUGOUncbxKMTvqxYctiseW3+L4bA8ec+GcZ6/A/FW4m8ukng==} + array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -133,6 +146,13 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} + compare-func@2.0.0: + resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} + + conventional-changelog-conventionalcommits@6.1.0: + resolution: {integrity: sha512-3cS3GEtR78zTfMzk0AizXKKIdN4OvSh7ibNz6/DPbhWWQu7LqE/8+/GqSodV+sywUR2gpJAdP/1JFf4XtN7Zpw==} + engines: {node: '>=14'} + cross-spawn@5.1.0: resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==} @@ -144,6 +164,10 @@ packages: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} + dot-prop@5.3.0: + resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} + engines: {node: '>=8'} + enquirer@2.4.1: resolution: {integrity: sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==} engines: {node: '>=8.6'} @@ -217,6 +241,10 @@ packages: resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} engines: {node: '>=0.12.0'} + is-obj@2.0.0: + resolution: {integrity: sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==} + engines: {node: '>=8'} + is-subdir@1.2.0: resolution: {integrity: sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==} engines: {node: '>=4'} @@ -545,10 +573,18 @@ snapshots: human-id: 1.0.2 prettier: 2.8.8 + '@commitlint/config-conventional@17.8.1': + dependencies: + conventional-changelog-conventionalcommits: 6.1.0 + '@fingerprintjs/changesets-changelog-format@0.2.0': dependencies: '@changesets/types': 6.0.0 + '@fingerprintjs/commit-lint-dx-team@0.1.0': + dependencies: + '@commitlint/config-conventional': 17.8.1 + '@manypkg/find-root@1.1.0': dependencies: '@babel/runtime': 7.25.6 @@ -589,6 +625,8 @@ snapshots: dependencies: sprintf-js: 1.0.3 + array-ify@1.0.0: {} + array-union@2.1.0: {} better-path-resolve@1.0.0: @@ -603,6 +641,15 @@ snapshots: ci-info@3.9.0: {} + compare-func@2.0.0: + dependencies: + array-ify: 1.0.0 + dot-prop: 5.3.0 + + conventional-changelog-conventionalcommits@6.1.0: + dependencies: + compare-func: 2.0.0 + cross-spawn@5.1.0: dependencies: lru-cache: 4.1.5 @@ -615,6 +662,10 @@ snapshots: dependencies: path-type: 4.0.0 + dot-prop@5.3.0: + dependencies: + is-obj: 2.0.0 + enquirer@2.4.1: dependencies: ansi-colors: 4.1.3 @@ -694,6 +745,8 @@ snapshots: is-number@7.0.0: {} + is-obj@2.0.0: {} + is-subdir@1.2.0: dependencies: better-path-resolve: 1.0.0 diff --git a/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json b/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json index 3deac89..9820a56 100644 --- a/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json +++ b/sdk/src/test/resources/mocks/errors/403_feature_not_enabled.json @@ -1,6 +1,6 @@ { "error": { - "code": "SubscriptionNotActive", - "message": "forbidden" + "code": "FeatureNotEnabled", + "message": "feature not enabled" } } diff --git a/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json b/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json index 9820a56..3deac89 100644 --- a/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json +++ b/sdk/src/test/resources/mocks/errors/403_subscription_not_active.json @@ -1,6 +1,6 @@ { "error": { - "code": "FeatureNotEnabled", - "message": "feature not enabled" + "code": "SubscriptionNotActive", + "message": "forbidden" } }