deno_std icon indicating copy to clipboard operation
deno_std copied to clipboard

BREAKING(http/unstable): switch `params` and `info` args in `Handler` in `route()` for more conveniency

Open lowlighter opened this issue 1 year ago • 1 comments

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

lowlighter avatar Oct 05 '24 16:10 lowlighter