Skip to content

1.0.0-alpha.42

Compare
Choose a tag to compare
@ije ije released this 11 May 01:45
· 626 commits to main since this release

πŸŽ‰πŸŽ‰πŸŽ‰ 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

Screen Shot 2022-05-11 at 09 00 11

Other Changes

  • Added typings for route Data, and now you don't need to return Response 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
    Screen Shot 2022-05-11 at 09 21 22
  • Improved HTTP cache (add Cache-Control or Etag 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