Release [changeset]#261
Open
fingerprint-dx-team-actions-runner[bot] wants to merge 1 commit into
Open
Conversation
Contributor
Coverage report
Test suite run success83 tests passing in 24 suites. Report generated by 🧪jest coverage report action from 6122286 Show full coverage report
|
11d75f5 to
cc68750
Compare
cc68750 to
6122286
Compare
Contributor
pnpm exec changesetto create a changeset. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@fingerprint/node-sdk@7.5.0
Minor Changes
Separate Server API errors from other request errors and strongly type the error code.
ServerApiError(extendsRequestError), thrown when the Server API returns a structured error response. It narrowserrorCodeto the strongly typedErrorCodeand exposesresponseBody: ErrorResponse.ErrorCodetype (the union of error codes returned by the Fingerprint Server API).TooManyRequestsErrornow extendsServerApiError.RequestErrorremains the base class for request-level errors and is thrown directly for non–Server-API responses (for example, errors returned by an intermediate proxy). ItserrorCodestays a free-formstring(a best-effort placeholder derived fromstatusText), exactly as before.This is a backward-compatible change: structured Server API errors are now instances of
ServerApiError(a subclass ofRequestError).error instanceof RequestErrorchecks keep working, anderrorCodestays populated on every error. To get the strictly typederrorCode, narrow toServerApiError(if (error instanceof ServerApiError) { error.errorCode }). (808c802)Patch Changes
Errorinstances, so errors fromunsealand JSON parsing always carry a genuineError. (5764c11)RequestErrorinstead of a top-levelSdkErrorwhen a Server API error response has a non-JSON body (e.g. an HTML error page from a proxy). (b16cb93)