Code Connect 1.4.2
documentUrlSubstitutions when one key is a prefix of another (e.g. SearchInput and SearchInputMenu). The CLI now processes longer keys first so the correct substitution is applied.--batch-size now retries automatically on rate-limit (429) and server error (5xx) responses, respecting the Retry-After header when present, rather than failing immediately.figma.js/.figma.ts files being incorrectly treated as template files--include-template-files flag now shows a deprecation warning instead of causing an error. The flag is no longer necessary as template files are automatically included by default.master/main. For cases where it can't be detected automatically, you can set defaultBranch in your figma.config.json.migrate script. These are inlined into one template file with if/else blocks..figma.template.ts / .figma.ts).
import figma from 'figma'import type) are supportedfigma API, add "@figma/code-connect/figma-types" to the types array in your tsconfig.json.migrate command. Can pass --typescript to output TypeScript (.figma.ts) files instead.Fetched March 26, 2026