Litho (By Facebook) v0.30.0 Release Notes

  • 2019-08-23

    • Breaking: Rename @FromCreateLayout to @FromPreviousCreateLayout.
    • Breaking: Add compile-time error when Component.Builder is passed as a @Prop. (5da7121)
    • Breaking: Remove MountSpec.shouldUseDisplayList() - remnant of removed DisplayLists' usage. Was not doing anything.
    • New: Make DynamicValue.get() public.
    • New: Expose RecyclerBinder's Commit Policy through DynamicConfig. (ac513f3)
    • New: Allow to provide custom GridLayoutInfo (i.e. custom GridLayoutManager) through GridLayoutInfoFactory. (4568d58)
    • New: Allow creating ComponentTree without specifying root.
    • New: Deprecate ComponentsLogger.emitMessage() in favor of ComponentsReporter.Reporter.emitMessage(). (9cb4caf)
    • New: Auto set Text.ellipsize() if maxLines() is specified without an accompanying ellipsize, to make behavior consistent across different Android versions. (3bef059)
    • New: Share the same ResourceResolver across all Components in the same tree. (c93517c, 7656822, dde30dc)
    • New: Add support for A11y headers. (#573)
    • New: Update documentation and javadocs.
    • Fix: Better error messages for releasing mount content.
    • Fix: Don't use internal javac API in codegen. (#577)
    • Fix: Propagate injected treeProps for Layout PerfEvent. (#574)
    • Fix: Don't crash when using primitive @CachedValues together with HotSwap mode. (501f1a1)
    • Fix: Improve @OnUpdateStateWithTransition's behavior.

    For more details, see the full diff.