rename EndpointOutput to RequestHandlerOutput and tidy up#4109
rename EndpointOutput to RequestHandlerOutput and tidy up#4109Rich-Harris merged 3 commits intomasterfrom
EndpointOutput to RequestHandlerOutput and tidy up#4109Conversation
|
|
Shouldn't this have a changeset (probably marked as a breaking change) so that the published types are updated, instead of just the site? |
|
It's not a breaking change, since |
|
@Rich-Harris Its breaking for us. We're using EndpointOutput. e.g. |
|
It sounds like #4104 would have been the breaking change for you then, not this change. |
|
@Conduitry Yes you're right. Was on .278 |
|
At any rate that's a convincing reason to move |

This clarifies the terminology a bit — an endpoint is a module corresponding to a route, a request handler is a function exported from an endpoint. Therefore
RequestHandlerOutputmakes more sense thanEndpointOutput.It also neatens the type up. Before:
After:
Before:
After:
No changeset, since now that these types are private there's no breakage involved.
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm testand lint the project withpnpm lintandpnpm checkChangesets
pnpx changesetand following the prompts. All changesets should bepatchuntil SvelteKit 1.0