figma connect publish now sends preflight validation failure counts to Figma unless DO_NOT_TRACK=1 is set, and publishing on Professional plans confirms the active library and framework when first selected. Fixed file discovery in project folders with special characters, findLayers crashing when filtering text layers by parent path, and network failures now reporting the underlying reason instead of just "fetch failed".
Code Connect
npx @buildinternet/releases get figma-code-connectfigma connect preview now accepts the template file of a component declared in a .figma.batch.json file, which previously failed with "Not a valid Code Connect file" and forced previewing every component in the batch file at once.
Framework-specific parsers can only be used with figma connect migrate and figma connect unpublish — all other commands exit with migration guidance to template files. If you need parsers, install Code Connect v1. Also includes performance optimizations for figma connect preview.
Adds the --unique flag to figma connect preview, which hides duplicate outputs like --all but de-duplicates them. InstanceHandle now exposes the instance's Figma node ID, matching the Plugin API's SceneNode.id. Also fixed rendering of nested arrow function callbacks in React.
Fixed JavaScript template files authored with import figma from 'figma' publishing an unexecutable import.
Legacy framework-specific parsers (React, iOS, Android, Web Components) are deprecated and will stop being maintained after August 17, 2026. The new template API is the recommended path. This release adds a --delete option to figma connect migrate, relative import support for helper modules in templates, and expanded figma connect preview options including --inspect and --all for rendering property combinations.
Fixed parser invocation failing when paths or arguments contained spaces, affecting Swift, Compose, and custom parsers. Template-only projects no longer unnecessarily build and run native parsers. Augmented getSlot and figma.slot APIs to expose connectedInstances for inline rendering, and raised swift-syntax upper bound to allow 603.x releases. Added @figma/code-connect/figma-types-no-require variant for projects with @types/node installed.
Fixed browser compatibility issues where importing @figma/code-connect in Storybook or webpack environments would fail with "Can't resolve 'child_process'" or "Console is not a constructor" errors by dynamically importing Node.js-only modules. Fixed template files failing to publish or parse when a React, HTML, Swift, or Compose parser could not be inferred, and a getInstanceSwap error that broke templates when referencing missing instance-swap properties.
The --file (-f) option on figma connect publish, unpublish, and parse now accepts multiple files in one command, and shared flags (--verbose, --token, --config, etc.) now work before or after the subcommand name. Fixed a crash preventing the Code Connect Gradle plugin from being used with Kotlin 2.3 or newer, a parseCodeConnect failure in multi-module Gradle projects, and configuration cache incompatibility.
Fixed a Payload Too Large error that occurred when previewing many components from a large library by splitting requests into smaller chunks. The preview command also now prints a clearer single-line message when the preview service is temporarily unavailable.
Fixed
General
- Bumped Lodash version from 4.17 to 4.18 to address vulnerability CVE-2021-23337
Storybook
- Storybook files with
.ts,.jsx, or.jsextensions (e.g.Button.stories.jsx) are now discovered by the…
Fixed
Template files
- Fixed
getBoolean()returningundefinedinstead offalsewhen a boolean property is set tofalsein a template file. - Fixed some TS discrepancies in the
figma.*API in template files - Some fixes for the migration script
###…
Fixed
- Fixed issue with publishing template files without a
sourcevalue
Features
React
- Add support for
figma.slot()to map Figma slot layer properties in Code Connect files.
Parserless
- Added a beta migration script to migrate parser-based Code Connect files to parserless templates under
figma connect migrate. - The…
Features
- Add --api-url option to use a different code-connect api endpoint. This option can also be configured in figma.config.json with the
apiUrlfield - Add
languageconfig option to override syntax highlighting language in figma.config.json
###…
Fixed
General
- Fixed a problem with path alias imports incorrectly importing index files
- Fixed parsing failure for Compose in Windows.
Swift
- Fixed a corner case where the swift parser generated invalid code-connect code.
General
- Updated glob dependency to 11.0.4 to fix security vulnerability
Fixed
General
- Improve response of publish command to display succeeded and failed nodes
Compose / Swift
- Fixed parsing failure in
createcommand
