Releases: facebook/litho
Releases · facebook/litho
v0.49.1
v0.49.0
2024-02-01
- Converted more code to Kotlin.
- [NEW] Added debug event APIs for better debugging and integration with Flipper's new UI Debugger.
- [NEW] Added layout caching to improve performance.
- [BREAKING] Moved several configs from LithoConfiguration to ComponentsConfiguration.
- [BREAKING] Merged several configs from RecyclerBinderConfig and RecyclerBinderConfiguration.
- [BREAKING] Removed Component.canResolve() and Component.resolve(ResolveContext, ComponentContext) methods.
- [BREAKING] Renamed Styles: performAccessibilityAction, sendAccessibilityEvent and sendAccessibilityEventUnchecked.
- [BREAKING] Yoga updated to use C++ 20.
- [BREAKING] Deletes several public constructors of EventHandler.
- Overhauled the render pipeline to support custom layout systems.
- Numerous bug fixes.
For more details, see the full diff.
v0.47.0
Version 0.47.0
2023-02-13
- [New] Adds debug overlay for to show components bounds, and interactive elements. Set the following configs to enable the feature:
debugHighlightInteractiveBounds
,debugHighlightMountBounds
. - [Deprecated]
ComponentTree.canInterruptAndMoveLayoutsBetweenThreads
,RecyclerBinder.canInterruptAndMoveLayoutsBetweenThreads
,ComponentTreeHolder.canInterruptAndMoveLayoutsBetweenThreads
. All of those will be removed in one of subsequent versions. - [BREAKING] Introduces several new API to replace the ComponentTree in ComponentContext.
- Use
ComponentContext#getLithoTree
to get access to API previous accessed from theComponentTree
. ComponentTree
removed from theOnError
API; UseComponentContext#getErrorComponentReceiver
to set the root on error.
- Use
- [BREAKING]
equivalence
utility method have moved fromCommonUtils
toEquivalenceUtils
. - The logic to trigger mount has be simplified; there are now fewer hops between LithoView and ComponentTree.
v0.45.0
Version 0.45.0
2022-12-02
- Many internals changes which should not affect end-users: StateContainers are now immutable and added support for testing split of resolve and layout processes
- Fix for bug where some EventHandlers would be stale after updates when using sections
- SimpleMountable API is stabilized and ready to replace @MountSpec usages in Kotlin. See here for the docs!
For more details, see the full diff.
Version 0.43.0
- Breaking:: If you use
ComponentsSystrace.provide
to provide a custom Systrace implementation, there have been some changes to the types and methods involved: - Instead of implementing
ComponentsSystrace.Systrace
, implementations should implementcom.facebook.rendercore.Systracer
, located in litho-rendercore. TheArgsBuilder
interface has also moved from ComponentsSystrace to the Systracer interface.
See CHANGELOG.md for the complete list of updates
Version 0.41.2
- Target SDK is now v31, min SDK is now 16.
- Uses Gradle 7, and build tools is v30.
- Breaking: Requires JDK 11 to compile.
- Breaking: Fix: More fully support
@PropDefault
annotations in Kotlin Specs (see change logs for more details). - Breaking:
InternalNode
renamed toLithoNode
, and elevated to a concrete class. DeletesDefaultInternalNode
. - Breaking:
NodeInfo
is now a concrete class; deletesDefaultNodeInfo
.
See CHANGELOG.md for the complete list of updates
Version 0.41.1
This release fixes broken Litho artifacts deployment on Maven. Should be used instead of v0.41.0.
See CHANGELOG.md for the complete list of updates
Version 0.41.0
See CHANGELOG.md for the complete list of updates
Version 0.40.0
See CHANGELOG.md for the complete list of updates
Version 0.39.0
See CHANGELOG.md for the complete list of updates