v0.18.0
jaspr
-
BREAKING Changed
AppBindingsUri get currentUritoString get currentUrl. -
BREAKING Changed return type of
renderComponent()fromFuture<String>toFuture<({int statusCode, String body, Map<String, List<String>> headers})>.The rendered html is accessible through the
bodyproperty.statusCodeandheaderscan be used to create a response object when part of a custom http handler. -
Added
context.urlextension getter on both client and server. -
Added
context.headers,context.headersAllandcontext.cookiesextension getters on the server. These can be used to access the headers and cookies of the currently handled request. -
Added
context.setHeader()andcontext.setCookie()andcontext.setStatusCode()extension on the server. These can be used to set headers, cookies and the status code of the response. -
Deprecated having seperate style groups (
Styles.box(),Styles.text(),Styles.background(), etc. as well as.box(),.text(), etc.). All styling properties are now available under the singleStyles()constructur and.styles()method.Before:
css('.main') .box(width: 100.px, height: 100.px) .text(align: TextAlign.center) .background(color: Colors.blue);
After:
css('.main').styles( width: 100.px, height: 100.px, textAlign: TextAlign.center, backgroundColor: Colors.blue, );
-
Deprecated
EdgeInsetsin favor ofPaddingandMargintypes. -
BREAKING Moved
zIndexproperty out ofPositionand directly intoStyles. -
Added
userSelect,pointerEventsandcontentproperties toStyles. -
Added
Unit.maxContent,Unit.minContent,Unit.fitContentandUnit.expression().
jaspr_lints
- Added 'styles_ordering' lint and quick fix.