blob: 6be65bde1157630b070cda8f927ea57ecdd7dbe9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
---
'astro': major
---
Removes support for returning simple objects from endpoints (deprecated since Astro 3.0). You should return a `Response` instead.
`ResponseWithEncoding` is also removed. You can refactor the code to return a response with an array buffer instead, which is encoding agnostic.
The types for middlewares have also been revised. To type a middleware function, you should now use `MiddlewareHandler` instead of `MiddlewareResponseHandler`. If you used `defineMiddleware()` to type the function, no changes are needed.
|