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.
Code Connect
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
Fixed
Compose
- Fixed an issue where if there were multiple modules/files connecting to the same FigmaNode the parser only recognize the first module/file found.
- Update
libs.versions.tomlKotlin version to2.2.21.
Fixed
General
unpublishcommand showing success message in certain cases where the action didn't complete properlty.- Fixed path alias imports not being resolved.
Compose
- Released a new [Code Connect…
Fixed
General
- Updated
npx connect unpublish --nodeto require a--labelparam so it can unpublish any label type.
Compose
- Fixed parsing issue with multi-module projects.
SwiftUI
- Updated
swift-syntaxto support 602.0.0. Thanks to…
Fixed
General
- Fixed "Failed to fetch embeddings" error if empty payload in interactive setup
- Retain the temporary file and directory when
--verboseis enabled for improved debugging.
SwiftUI
- Fixed SourcePackages directory not found.
- Added…
Features
Compose
- Enhanced
--verbosecommand to output detailed stacktrace.
Fixed
General
- Bumped Undici version to address security issue

