Skip to content

v0.14.5

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 05:15
5f85c85

Fixed

  • Nested instances no longer lose their layers when a file marks a swap as unset. Figma can store an "unset" id (4294967295:4294967295) in an instance's swap field to mean "not swapped". figlens read it as a real component id in three places:

    • nodes reported componentId: "4294967295:4294967295", a component that does not exist.
    • Search read no component properties for that instance.
    • An instance-swap property holding the unset id swapped the nested instance to a missing component, so its children disappeared from nodes, inspect and exports.

    These instances now keep their default component, with its children and properties, as Figma shows them. (#259)

This case was reported against another .fig reader (storytold/figcraft#2206). None of our local test files contains the unset id, so the fix is covered by unit tests rather than a real-file comparison.

Update

figlens update
# or
brew upgrade runkids/tap/figlens
# or
npx @runkids/figlens@0.14.5 --version