Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

1.5.0 - "Server components"

Latest
Compare
Choose a tag to compare
@kaleidawave kaleidawave released this 22 Mar 19:58
· 11 commits to main since this release
aa6a4f4

See https://kaleidawave.github.io/posts/prism-one-point-five

This release adds the ability to render components content on the server using the @RenderFromEndpoint decorator.

Text can now be interpolated alongside elements so the following is now possible:

<template>
    <div>
        {someText}
        <a href="#">Some Link</a>
    </div>
</template>

And for the following:

<div #if="someProp">
    <span>{title}</span>
</div>
<div #else>
    <p>{title}</p>
</div>

The get expression for title is now span.innerText ?? p.innerText . Before it would try and get the first instance and return null if it didn't exist.

Rust SSR methods are greatly improved. Now uses a single buffer, capacity can be set with @WithCapacity decorator and removed unnecessary to_stringing of String types.

New compiler options: noBundle to not concatenate client output and outputTypeScript to output client code with TypeScript syntax.

Lots of internal improvements for compiling components in the browser.