Skip to content

v0.13.0

Compare
Choose a tag to compare
@schultek schultek released this 22 May 08:18
· 457 commits to main since this release

Changelog (jaspr)

  • Added Head component to render metadata inside the documents <head>.

    You can specify a title, metadata or custom children:

    Head(
      title: 'My Title',
      meta: {
        'description': 'My Page Description',
        'custom': 'my-custom-metadata',
      },
      children: [
        link(rel: "canonical" href: "https://mysite.com/example"),
      ],
    )

    Deeper or latter Head components will override duplicate elements:

    Parent(children: [
      Head(
        title: "My Title",
        meta: {"description": "My Page Description"}
      ),
      Child(children: [
        Head(
          title: "Nested Title"
        ),
      ]),
    ]),

    will render:

    <head>
      <title>Nested Title</title>
      <meta name="description" content="My Page Description">
    </head>
  • Added AsyncStatelessComponent and AsyncBuilder.
    These are special components that are only available on the server (using package:jaspr/server.dart) and have an
    asynchronous build function.

  • Improved internal framework implementation of different element types.

    • Added BuildableElement and ProxyElement as replacement for MultiChildElement and SingleChildElement.
    • Added Element.didMount() and Element.didUpdate() lifecycle methods.
  • Fixed race condition where routes were skipped during static rendering.

  • Fixed infinite loading bug for async server builds.

  • Fixed hydration bug with empty or nested client components.

  • Added documentation comments.

Changelog (jaspr_router)

  • The title of the browser tab will no be properly set to the title of the current route.
  • Fixed race condition where routes were skipped during static rendering.