Skip to content

v0.14.0

Compare
Choose a tag to compare
@schultek schultek released this 14 Aug 17:18
· 229 commits to main since this release

Major documentation overhaul

This version comes together with a huge documentation overhaul over at https://docs.page/schultek/jaspr
A lot of new pages, guides, component docs and more were added to the documentation.

  • Complete "Get Started" guide with detailed explanation of the different rendering modes, a page about hydration and more.
  • New guides about the most important concepts and topics:
    • Styling
    • Routing
    • Data Fetching
    • SEO
    • Deployment
  • Separate documentation pages for all core components, like Document, AsyncBuilder, Router, FlutterEmbedView and more
  • Separate documentation pages for all core utilities, like @client, css(), @sync, SyncStateMixin, @Import and more

Additionally the starter template, examples and packages got a lot of improved code documentation.

Changelogs

jaspr, jaspr_builder

  • BREAKING Calling Jaspr.initializeApp() is now required in static and server mode.

  • BREAKING Removed Head component in favor of new Document.head() component.
    Document.head() has the same parameters as the old Head component and renders its children inside
    the <head> element.

  • Added Document.html() and Document.body() to modify the attributes of <html> and <body>.

  • BREAKING Removed syncId and syncCodec parameters from SyncStateMixin.
    SyncStateMixin now embeds its data locally in the pre-rendered html using standard json encoding.

  • Added @sync annotation. Can be used on any field of a StatefulComponent to automatically sync its value.

    class MyComponentState extends State<MyComponent> with MyComponentStateSyncMixin {
      @sync
      String myValue;
    }
  • BREAKING Removed MediaRuleQuery in favor of MediaQuery.

  • Added css.import(), css.fontFace() and css.media() shorthands.

  • Added @css annotation. Can be used on a list of style rules to automatically include them in the global styles.

    @css
    final styles = [
      css('.main').box(width: 100.px),
    ];
  • Added Fragment component.

  • Fixed missing html unescape in hydrated data.

jaspr_router

  • Changed the signature of the Link component, children is now a named parameter.

jaspr_tailwind

  • Added minify option to tailwind in release mode.
  • Made the content section of the tailwind.config.js file active at build time.