-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [6.0.0](v5.0.2...v6.0.0) (2024-06-27) ### ⚠ BREAKING CHANGES * it is now easier to check for too many requests error (429): ```go response, httpRes, err := client.FingerprintApi.GetVisits(auth, visitorId, &opts) fmt.Printf("%+v\n", httpRes) if err != nil { var tooManyRequestsError *sdk.TooManyRequestsError if errors.As(err, &tooManyRequestsError) { log.Printf("Too many requests, retry after %d seconds", tooManyRequestsError.RetryAfter()) } else { log.Print(err) } } ``` * rename `GenericSwaggerError` to `ApiError` * rename `ManyRequestsResponse` to `TooManyRequestsResponse` * go 1.20 has reached EOL. Minimal supported version of go is now 1.21 * right now we use native `errors` package for joining errors, meaning that multiple error messages are now joined by new line rather than colon (:) * optional pkg is no longer used in this SDK. Please pass native GO types instead. ### Features * add `IsValidWebhookSignature` function for validating webhook signature ([a5bf13d](a5bf13d)) * add delete API ([0e077c3](0e077c3)) * add os Mismatch ([30b0215](30b0215)) * add revision string field to confidence object ([8a2f270](8a2f270)) * drop support for go 1.20 ([46953bc](46953bc)) * drop usage of `github.com/pkg/errors` ([186d30a](186d30a)) * introduce `TooManyRequestsError` ([85f3307](85f3307)) * provide `HttpResponse()` in `ApiError` ([acd1274](acd1274)) * re-write request handling logic ([14b7e7f](14b7e7f)) * remove usage of github.com/antihax/optional package ([62db97f](62db97f)) * rename `GenericSwaggerError` to `ApiError` ([259b7b4](259b7b4)) * rename `ManyRequestsResponse` to `TooManyRequestsResponse` ([3f66641](3f66641)) ### Bug Fixes * allow passing `nil` configuration to `NewAPIClient` ([8234fbe](8234fbe)) * move test related dependencies to test module ([298275d](298275d)) * use correct error type for `incognito`, `rawDeviceAttributes` and `tampering` in the `GetEvent` method ([c29aea9](c29aea9)) ### Reverts * Revert "chore(release): 6.0.0-test.1 [skip ci]" ([9916b45](9916b45)) * "chore(release): 6.0.0-test.1 [skip ci]" ([84ec138](84ec138))
- Loading branch information
1 parent
f26a52e
commit dfd4eac
Showing
21 changed files
with
92 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v5 | ||
module github.com/fingerprintjs/fingerprint-pro-server-api-go-sdk/v6 | ||
|
||
go 1.21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters