deno_std
deno_std copied to clipboard
BREAKING(http/unstable): switch `params` and `info` args in `Handler` in `route()` for more conveniency
Closes #5884
Not sure if it qualifies for "breaking change" since the API is still unstable, but it does break apps relying on current implementation route()
As explained in the linked issue, since params: URLPatternResult is way more likely to be used than info: Deno.ServeHandlerInfo in non-default handlers, it makes sense to switch them for improved DX