v0.3.0-beta.1
版本发布时间: 2021-08-24 03:03:26
alephjs/aleph.js最新发布版本:1.0.0-alpha.47(2022-05-19 20:58:07)
- Rewrite
Plugin
system - Use Deno native http instead of std http
- Support API middleware
- Strip SSR code in browser
- Add
ssr
options for pagesimport type { SSROptions, Router } = 'aleph/types.ts' export const ssr: SSROptions = { props: async (router: Router) => ({ ... }), paths: async () => [ ... ], // static paths for dynamic route } export default function Index(ssrProps) { return ( <div>ssr props: {ssrProps}</div> ) }
- CSS Modules Magic
import React from "https://esm.sh/react"; export default function App() { return ( <> <link rel="stylesheet" href="../style/app.module.css" /> <h1 className="$title $bold">Hi :)</h1> <p className="$intro">Welcome!</p> </> ); }
- Improve dev bootstrap time for large app (compile on demand)
- Improve HMR (refresh page when
useDeno
was updated) - Support import maps in
aleph.config.ts
(fix #323) - Don't resolve remote deps in API modules
- Don't process
.css
files in./public
folder (fix #304) - Update docs: https://alephjs.org/docs
- Bugfixs #320 #341