v0.3.0-beta.18
版本发布时间: 2021-09-25 00:49:22
alephjs/aleph.js最新发布版本:1.0.0-alpha.47(2022-05-19 20:58:07)
- Allow
useDeno
andssr.props
to accessRequest
(close #22, #364, #401)
withexport default function Page() { const isLogined = useDeno(req => { return req.headers.get('Auth') === 'XXX' }, { revalidate: true }) return ( <p>isLogined: {isLogined}</p> ) }
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 totrue
by default - More useful Error in import onerror (#403) @TjeuKayim
- Add Props generic to SSROptions (#402) @tatemz