1.0.0-alpha.42
πππ We just experimental provided Vue.js framework support with FS routing and data fetching!!!
Preview: https://aleph-vue.deno.dev/
Source Code: https://github.com/alephjs/aleph.js/tree/main/examples/vue-app
β€οΈ Huge thanks to @linbingquan
Other Changes
- Added typings for route
Data
, and now you don't need to returnResponse
object in date getter/actions.return new Response(JSON.string({}), { headers: [["content-type": "application/json"]] })
is so painful, we like web standards, but sometimes it is so formalism.
Screen.Recording.2022-05-11.at.09.31.57.mov
- Added server error handling api
serve({ ... onError: (error, cause) => { if (cause.by === "ssr" && error instanceof ApiErrorn && error.code === "NotFound") { return Response.redirect("/", 302); } }, });
- Improved the error UI
- Improved HTTP cache (add
Cache-Control
orEtag
header for requests automatically) - Refactored UnoCSS work mode and style loader (build 10x faster when ssr and use
CSSStyleSheet
to manage module CSS rules) - Moved compiler to https://github.com/alephjs/aleph-compiler to make this repo test faster
- And some other bugfixs/performance improvement/dependencies upgrade