mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 17:57:04 +08:00
935 B
935 B
Changes
- Mithril
- See changes from v0.2.x @ https://mithril.js.org/migration-v02x.html
- Kept
m.prop
andm.withAttr
- Actual Promises are used now instead of
m.deferred
- Component
- Use new Mithril lifecycle hooks (
component.config
is gone)- When implementing your own, you must call
super.<hook>(vnode)
to updatethis.attrs
- When implementing your own, you must call
component.render
is gone
- Use new Mithril lifecycle hooks (
- Application
- New different methods
app.bus
for some event hooking
- Translator
- Added
app.translator.transText
, automatically extracts text fromtranslator.trans
output
- Added
- Utils
- Changed
computed
util to require multiple keys to be passed as an array SubtreeRetainer
now has anupdate
method instead ofretain
, and its output is used inonbeforeupdate
lifecycle hook
- Changed
Forum
- Forum Application
- Renamed to
Forum
app.search
is no longer global, extend usingextend
- Renamed to