Repository navigation
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,FlutterEmbedViewand more - Separate documentation pages for all core utilities, like
@client,css(),@sync,SyncStateMixin,@Importand 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
Headcomponent in favor of newDocument.head()component.
Document.head()has the same parameters as the oldHeadcomponent and renders its children inside
the<head>element. -
Added
Document.html()andDocument.body()to modify the attributes of<html>and<body>. -
BREAKING Removed
syncIdandsyncCodecparameters fromSyncStateMixin.
SyncStateMixinnow embeds its data locally in the pre-rendered html using standard json encoding. -
Added
@syncannotation. Can be used on any field of aStatefulComponentto automatically sync its value.class MyComponentState extends State<MyComponent> with MyComponentStateSyncMixin { @sync String myValue; }
-
BREAKING Removed
MediaRuleQueryin favor ofMediaQuery. -
Added
css.import(),css.fontFace()andcss.media()shorthands. -
Added
@cssannotation. 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
Fragmentcomponent. -
Fixed missing html unescape in hydrated data.
jaspr_router
- Changed the signature of the
Linkcomponent,childrenis now a named parameter.
jaspr_tailwind
- Added minify option to tailwind in release mode.
- Made the content section of the
tailwind.config.jsfile active at build time.