Skip to content

v6.0.0-test.1

Pre-release
Pre-release
Compare
Choose a tag to compare
@fingerprint-dx-team fingerprint-dx-team released this 21 Jun 14:18
· 12 commits to test since this release

6.0.0-test.1 (2024-06-21)

⚠ BREAKING CHANGES

  • it is now easier to check for too many requests error (429):
	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.Fatalf("Too many requests, retry after %d seconds", tooManyRequestsError.RetryAfter())
		} else {
			log.Fatal(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)
  • add delete API (0e077c3)
  • add os Mismatch (30b0215)
  • add revision string field to confidence object (8a2f270)
  • drop support for go 1.20 (46953bc)
  • drop usage of github.com/pkg/errors (186d30a)
  • introduce TooManyRequestsError (6ee7ff2)
  • provide HttpResponse() in ApiError (acd1274)
  • re-write request handling logic (14b7e7f)
  • remove usage of github.com/antihax/optional package (62db97f)
  • rename GenericSwaggerError to ApiError (259b7b4)
  • rename ManyRequestsResponse to TooManyRequestsResponse (3f66641)

Bug Fixes

  • allow passing nil configuration to NewAPIClient (595eaf8)
  • move test related dependencies to test module (298275d)

Reverts

  • "chore(release): 6.0.0-test.1 [skip ci]" (84ec138)