Updating For 1.x
优质
小牛编辑
136浏览
2023-12-01
tip
If you need help applying these changes or using new features, please start a discussion on the community forum or Discord chat.
Flarum version 1.1 mostly focuses on bugfixes and quality-of-life improvements following our stable release earlier this year. These are mainly user-facing and internal infrastructure changes, so extensions are not significantly affected.
- Flarum now has an organization-wide prettier config package under
@flarum/prettier-config
. - Most custom (setting or data based) coloring in core is now done via CSS custom properties.
- Typehinting for Flarum's globals are now supported in extensions.
- You can now pass extra attrs to the
Select
component, and they will be passed through to the DOM. - The
DiscussionPage
component is now organized as an item list, so it's easier for extensions to change its content. - Extensions can now edit the
page
parameter ofPaginatedListState
.
- Flarum now comes with a Preload extender for preloading any custom frontend assets.
- A new Theme extender now allows overriding Less files and internal imports. This allows themes to more easily completely replace Less modules.