Skip to content

v0.19.0

Choose a tag to compare

@schultek schultek released this 14 May 17:06
· 396 commits to main since this release

Introducing Jaspr Content

jaspr_content is a new first-party Jaspr package for building content-driven sites like documentation, blogs, or marketing pages.

It provides out-of-the-box tools for loading, parsing, and rendering content from various sources like markdown files. It is fully customizable and you are able to add your own implementations for each part.

Checkout the docs for more: https://docs.jaspr.site/content


Changelog

  • BREAKING JasprOptions.useIsolates is now false by default (was true).

    If you want to keep the old behaviour of rendering each request in a separate isolate, use Jaspr.initializeApp(..., useIsolates: true).

  • Added allowedPathSuffixes option to Jaspr.initializeApp() to enable handling route paths with extensions other than html.

  • Added support for generating a sitemap.xml in static mode. To enable this, pass --sitemap-domain=my.domain.com to jaspr build.

    Add sitemap params like changefreq and priority to your routes by using Route(settings: RouteSettings(priority: 0.5)) or set them through ServerApp.requestRouteGeneration().

    Exclude routes from the sitemap through the --sitemap-exclude option to jaspr build.

    Read more about Generating a Sitemap.

  • Added support @client components from other packages.

    Components annotated with @client from other dependent packages are now also part of the js bundle when used during pre-rendering.

  • BREAKING The Flex(basis: ...) style now accepts a Unit value directly instead of a FlexBasis.

  • Allow nesting css.media and css.supports rules.

  • Deprecated Color.hex() and Color.named() in favor of the default Color() constructor.

  • Added onReassemble stream to ServerApp.

  • Various bug fixes.