1.0.0-alpha.42
版本发布时间: 2022-05-11 09:45:21
alephjs/aleph.js最新发布版本:1.0.0-alpha.47(2022-05-19 20:58:07)
🎉🎉🎉 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.
https://user-images.githubusercontent.com/2883484/167751094-77a61ca2-34e4-48a8-9931-bab19259732c.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