v0.14.0
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 newDocument.head()
component.
Document.head()
has the same parameters as the oldHead
component and renders its children inside
the<head>
element. -
Added
Document.html()
andDocument.body()
to modify the attributes of<html>
and<body>
. -
BREAKING Removed
syncId
andsyncCodec
parameters fromSyncStateMixin
.
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 aStatefulComponent
to automatically sync its value.class MyComponentState extends State<MyComponent> with MyComponentStateSyncMixin { @sync String myValue; }
-
BREAKING Removed
MediaRuleQuery
in favor ofMediaQuery
. -
Added
css.import()
,css.fontFace()
andcss.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.