You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: filter out deleted but referenced variables (#57)
* fix: filter out deleted but referenced variables
Add logic in ColorsVariablesLoader to skip variables marked as
deletedButReferenced in Figma responses. Extend VariableValue with a
deletedButReferenced property to track this status. Update test helpers
and add a test case to ensure that deleted but referenced variables are
not included in loader results. The change prevents errors from
attempting to load variables that are no longer active.
* chore: update doc
* fix: after review
`ValuesByMode` is a tagged union decoded via try-chain: `VariableAlias` → `PaintColor` → `String` → `Double` → `Bool`.
107
107
108
+
`VariableValue.deletedButReferenced: Bool?` — Figma marks deleted-but-still-referenced variables. Filter in loaders with `guard meta.deletedButReferenced != true`.
109
+
108
110
## Testing
109
111
110
112
Tests use `MockClient` (thread-safe via DispatchQueue) and JSON fixtures in `Tests/FigmaAPITests/Fixtures/`.
0 commit comments