Skip to content

v0.3.0-beta.18

Compare
Choose a tag to compare
@ije ije released this 24 Sep 16:49
  • Allow useDeno and ssr.props to access Request (close #22, #364, #401)
    export default function Page() {
      const isLogined = useDeno(req => {
        return req.headers.get('Auth') === 'XXX'
      }, { revalidate: true })
    
      return (
        <p>isLogined: {isLogined}</p>
      )
    }
    with ssr.props options:
    export const ssr: SSROptions = {
      props: req => {
        return {
           $revalidate: true,
           username: req.params.username,
           logined: req.headers.get('Auth') === 'XXX'
        }
      }
    }
  • Add code highlight for the markdown plugin (optional)
    export default <Config> {
      plugins: [
        markdown({
          highlight: {
            provider: 'highlight.js',
            theme: 'github'
          }
        }),
      ]
    }
  • Update css.cache config to true by default
  • More useful Error in import onerror (#403) @TjeuKayim
  • Add Props generic to SSROptions (#402) @tatemz