Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

v0.3.0-beta.1

Compare
Choose a tag to compare
@ije ije released this 23 Aug 19:03
  • Rewrite Plugin system
  • Use Deno native http instead of std http
  • Support API middleware
  • Strip SSR code in browser
  • Add ssr options for pages
    import 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