Litho (By Facebook) v0.32.0 Release Notes
-
2019-11-15
- Breaking: Make ctors of
Component
/ComponentLifecycle
that take an explicit type id package private. - Breaking: Add
categoryKey
param forComponentsReporter.emitMessage()
API to distribute errors into different buckets. - Breaking: Remove
ComponentsLogger.emitMessage()
API as it was fully replaced byComponentsReporter.emitMessage()
. - Breaking: Remove
YogaNode
parameter fromYogaLogger.log()
. - Breaking: Remove error reporting from
ComponentsLogger
. - Breaking: Limit scope of
Component
/ComponentLifecycle
constructors that take explicit type param. - New: Add
requestSmoothScrollBy()
andrequestScrollToPositionWithSnap()
APIs forRecyclerCollectionEventsController
. - New: Add ability to provide custom
ComponentsLogger
perComponentRenderInfo
. - New: Add new counters (calculateLayout, section state update, section changeset calculation) to
LithoStats
global counter. - New: Allow custom
StaggeredGridLayoutInfo
when usingStaggeredGridRecyclerConfiguration
. - New: Add support for more
textAlignment
values forTextSpec
. - New: Add
ComponentWarmer
API to allow calculating layout ahead of time. - New: Add
ThreadPoolDynamicPriorityLayoutHandler
to enable changing priority of threads calculating layouts. - New: Add
varArgs
to the generatedComponent
. - New: Add snap support for
GridRecyclerConfiguration
. - New: Add support for custom fling offset for
StartSnapHelper
. - New: Allow disabling top or bottom shadow in
TransparencyEnabledCardSpec
. - New: Add
Handle
API for LithoTooltip
s viaLithoTooltipController.showTooltipOnHandle()
that replaces previous way of anchoring tooltip with concatenated keys. - New: Track component hierarchy using
DebugHierarchy
after mount time. - Fix: Add generics support to
@OnCalculateCachedValue
methods. - Fix: Move setting
ItemAnimator
fromonBind
/onUnbind
toonMount
/onUnmount
inRecyclerSpec
. - Fix: Stop and clean running transitions that do not exist and not declared in the new layout.
- Fix: Fix concurrent modification on finishing undeclared transitions.
- Fix: Allow
TreeProp
s to be used in@OnCreateInitialState
of Sections. - Fix: Define default color for spannable link in
TextSpec
. - Fix: Postpone
ComponentTree.mountComponent()
for reentrant mounts, then mount newLayoutState
afterwards. - Fix: Enable automatic RTL support in sample apps.
👀 For more details, see the full diff.
- Breaking: Make ctors of