Skip to content

v0.16.0

Latest
Compare
Choose a tag to compare
@schultek schultek released this 04 Oct 17:45
· 9 commits to main since this release

package:web | Flutter multi-view | WASM

This release combines three amazing new features:

  1. Migration of all packages to package:web and the new js interop mechanism, replacing dart:html.
  2. Adding support for Flutter multi-view embedding.
  3. Added experimental support for compiling to WASM.

... along with a bulk of smaller features, improvements and bugfixes.

We also published a new demo site showcasing the multi-view embedding here: https://jaspr-flutter-multiview-demo.web.app/

Changelogs

jaspr, jaspr_cli, jaspr_test

  • BREAKING Migrated all packages to package:web, replacing dart:html.

  • BREAKING Made ComponentsBinding.attachRootComponent() and ComponentTester.pumpComponent() synchronous.

  • Added InheritedModel<T> similar to Flutters InheritedModel

  • Added css.layer(), css.supports() and css.keyframes() rules.

  • Added ViewTransitionMixin to use view transitions in a StatefulComponent.

  • Added new --experimental-wasm flag to jaspr serve and jaspr build.

  • Improved html formatting on the server to not introduce unwanted whitespaces.

  • Fixed server issue during tests where the web directory would never resolve.

  • Fixed issue with unhandled parameter types of client components.

jaspr_flutter_embed

  • BREAKING Migrated to package:web.

  • BREAKING Added support for multi-view embedding. This allows you to use FlutterEmbedView multiple times across
    the website and add or remove views at any time.

  • Improved internals to use deferred imports for all imported flutter libraries.

  • Added FlutterEmbedView.preload() function to manually trigger the preload of all deferred libraries before rendering
    a Flutter view.

  • Added FlutterEmbedView.deferred() constructor as an easy way to work with deferred imports of widgets.

  • Updated sdk constraints of flutter to >=3.24.0 <4.0.0 and dart to >=3.5.0 <4.0.0.

jaspr_serverpod

  • Bump serverpod to 2.1.1