sveltejs / kit

web development, streamlined
https://svelte.dev/docs/kit
MIT License
18.76k stars 1.95k forks source link

chore: change error helpers to use public interface types #13036

Open eltigerchino opened 5 days ago

eltigerchino commented 5 days ago

closes https://github.com/sveltejs/kit/issues/12986

This PR changes the error, isHttpError, redirect, and isRedirect functions to use the public interface version of the HttpError and Redirect errors instead of our internal classes.


Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

Tests

Changesets

Edits

changeset-bot[bot] commented 5 days ago

🦋 Changeset detected

Latest commit: 9c4eb9699529bc5e22c3654b5863d434d7a5f7c7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------- | ----- | | @sveltejs/kit | Major |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Rich-Harris commented 5 days ago

preview: https://svelte-dev-git-preview-kit-13036-svelte.vercel.app/

this is an automated message