Closed angeloashmore closed 1 year ago
All modified lines are covered by tests :white_check_mark:
Comparison is base (
163d03e
) 99.97% compared to head (f719e31
) 99.97%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Types of changes
Description
This PR adds support for two errors in response to the Prismic Document API.
PreviewTokenExpiredError
: Thrown when a query's preview token (used as a ref) is expired. This error extends fromForbiddenError
for consistency with the other ref-related errors.RepositoryNotFoundError
: Thrown when a Prismic repository does not exist. This error was previously thrown asNotFoundError
. Thus, the new error extends fromNotFoundError
to ensure this change is non-breaking.The new errors will extend from PrismicError in a future major version for better semantics.
Checklist:
🐤