New
v0.20.0
jaspr 0.20.0
- Breaking: Removed the children parameter from
inputandcolmethods as they are void elements and shouldn't be passed children. - Breaking: Replaced the children parameter from
scriptmethod with aString? contentparameter, as it can only contain text content. Also madesrcparameter optional. - Breaking: Removed deprecated
Color.hexandColor.namedconstructors. - Breaking: Removed deprecated style groups (
Styles.box(),Styles.text(),Styles.background(), etc. as well as.box(),.text(), etc.). - Breaking: Removed deprecated
EdgeInsetstype. - Breaking: Removed deprecated
Border.allconstructor. - Added
withOpacity(),withLightness(),withHue()andwithValues()methods toColor. - Added
figureandfigcaptionhtml methods. - Added the
wbrhtml method for creating a line-break opportunity element. - Moved
DomValidatorclass to foundation library. - Added support for disabling the sitemap generation for specific pages of
jaspr_contentsites. - Better error handling for async components.
- Fixed an error where building too many routes in succession caused ports to be exhausted on macOS.
jaspr_content 0.3.0
- Breaking:
Page.datanow returns aPageDataMapwith typed getters for the maps stored underpageandsite. It's alsofinalnow and should be modified using thePage.applymethod. - Breaking: The
dataparameters inPage.newandMemoryPage.newhave been renamed toinitialDatato reflect they don't necessarily specify the final data. - Breaking:
Headerhas been moved topackage:jaspr_content/components/header.dart. - Breaking:
Sidebarhas been moved topackage:jaspr_content/components/sidebar.dart. - Added a new
Markdowncomponent for directly rendering markdown content from aString. - Added support for
sitemap: falsein the page data to exclude pages from the sitemap. - Ignores files and folders in the content directory starting with
.(in addition to_). - Require Dart 3.6 or later to match the other Jaspr packages.
- Renamed the
GithubButtoncomponent toGitHubButton. - Fixed
GitHubButtonnot linking to the correct repository. - Renamed the
GithubLoaderroute loader toGitHubLoader. - Breaking: Made
GitHubPageSourceprivate. - Fixed subfolders in
Contentare not recognized on Windows.