releases.shpreview
Figma/Code Connect

Code Connect

$npx -y @buildinternet/releases show figma-code-connect
Mon
Wed
Fri
AprMayJunJulAugSepOctNovDecJanFebMarApr
Less
More
Releases5Avg2/moVersionsv1.3.13 → v1.4.3
Nov 5, 2024
Code Connect v1.2.2

Features

General

  • Added support to create Custom parsers. Those allow users to add support for languages which aren't natively supported by Code Connect. Check the documentation for more details.

Fixed

React

  • Only show AI question for React
  • Fix error in autolinking in reduce function
Oct 23, 2024
Code Connect 1.2.1

Fixed

React

  • Fixed a bug introduced in 1.2.0 where nestedProps referencing a hidden layer would result in an error rendering Code Connect

SwiftUI

  • Fixed potential "index is out of bounds" error.

Compose

  • Fixed some parsing errors when running the create and publish commands

General

  • Changed how the extension makes HTTP requests to resolve issues when connecting through a proxy. Please submit a support ticket if you continue to have connection issues after this update.
Oct 16, 2024
Code Connect v1.2.0

Features

General

  • The interactive setup now offers AI support for accurate prop mapping between Figma and code components. Users will now be given the option to use AI during the setup process, which if chosen will assist in creating Code Connect files and attempting to accurately map your code to Figma properties.

    Data is used only for mapping and is not stored or used for training. To learn more, visit https://help.figma.com/hc/en-us/articles/23920389749655-Code-Connect

React

  • Added support for returning strings or React components from the example function, in addition to JSX
  • Added getProps on figma.instance() which can be used to access props of a nested connected component
  • Added render on figma.instance() which can be used to render a nested connected component dynamically
  • Added support for including any custom props in the props object, that can be accessed with getProps in a parent component

Fixed

HTML

Sep 30, 2024
Code Connect v1.1.4

Fixed

React

  • Fixed a Prettier bug with the interactive setup
  • Removed empty enum mappings from generated Code Connect in interactive setup
  • Fixed an issue with props not rendering correctly in the Figma UI if used in the body of a component (e.g. as a hook argument). Any Code Connect with this issue will need republishing to be fixed. (fixes https://github.com/figma/code-connect/issues/167)
  • Support mapping from an enum value to a boolean prop in CLI Assistant

Features

Compose

  • The dependencies required to author Code Connect files now live in a separate module from the plugin and are hosted on Maven Central. Refer to the documentation for updated instructions on adding Code Connect to your project.

SwiftUI

  • Updated the swift-syntax dependency to include 600.0.0 (Swift 6)
Sep 11, 2024
Code Connect v1.1.3

Fixed

HTML

  • Fixed an issue where imports was incorrectly not included in the TypeScript interface
  • Added a note in the documentation that HTML support requires moduleResolution: "NodeNext"

React

Sep 10, 2024
Code Connect v1.1.2

Fixed

React

Code Connect v1.1.1

Features

HTML

  • Added support for documenting HTML-based frameworks (including Web Components, Angular and Vue), using the new html parser. See the documentation for more information.

    HTML support for Code Connect is in preview, and the API is liable to change during this period. Please let us know your feedback via GitHub Issues.

SwiftUI

  • Added a swiftPackagePath configuration option to specify a custom path to a Package.swift file to run Code Connect from.

React

  • Code Connect files created in the CLI assistant will now start including some auto-generated prop mappings between Figma properties and linked code props. This is an early feature and support for different prop types is limited.

General

  • Restructured the Code Connect documentation. All documentation can now be found in the docs directory.

Fixed

React

General

  • Fixed an issue where the @figma/code-connect@1.1.0 npm package had an incorrect README
Aug 21, 2024
Code Connect v1.0.6

Fixed

React

Features

React

  • figma.enum now supports floating point numbers

Compose

  • Update the dependency for Code Connect to use Kotlin 2.0 libraries
Aug 13, 2024
Code Connect v1.0.5

Fixed

React

Aug 7, 2024
Code Connect v1.0.4

Fixed

React

  • Fixed rendering of identifiers, functions and objects when used as children

SwiftUI

  • Updated the component definition in FigmaConnect protocol to be optional and have a default implementation.

Compose

  • Added a more helpful error message when the JDK version is too low.

Features

General

  • Added error message to suggest splitting publish when request too large
  • CLI assistant support for selecting file exports to use in Code Connect template
  • New --batch-size argument for publish command in order to split uploading into smaller "batches". This will allow for large uploads without having to split running the publish command with different directories.
Jul 23, 2024
Code Connect v1.0.3

Fixed

General

React

SwiftUI

  • Fixed checkouts folder resolution edge case

Compose

  • Fixed issue with create command creating invalid code
  • Added import resolution for components

Features

General

  • Added support for SwiftUI and Compose in the CLI Assistant
  • Added --skip-update-check flag
  • Added --label flag to the publish and unpublish commands to publish or unpublish to a custom label
  • We now print the label used when running the publish command
  • Improved autolinking algorithm
Jul 10, 2024
Code Connect v1.0.2

Fixed

General

  • Improvements to CLI Assistant

React

SwiftUI

  • Fix spaces in Xcode file path
Jun 20, 2024
Code Connect v1.0.1

Fixed

General

  • The automatic update check introduced in v1.0.0 did not show the correct update command for React users with the @figma/code-connect package installed locally – it always showed the command for globally updating the package.

    We now show both npm install @figma/code-connect@latest and npm install -g @figma/code-connect@latest as options. React users with the package installed locally should use npm install @figma/code-connect@latest, and users of other targets (or with the package installed globally) should use npm install -g @figma/code-connect@latest.

    We have temporarily removed the update command added in v1.0.0.


Full release notes for 1.0.0

Features

General

  • Added documentUrlSubstitutions config option

Jetpack Compose

  • Added support for Android Jetpack Compose. See the README to get started

React

  • Interactive setup flow, launched by running figma connect, which guides you through the setup process and auto-connects your components

Fixed

General

  • Automatic config migration (added in v0.2.0) now correctly preserves include/exclude config options
  • Icon script helpers moved to a named export so they can be imported correctly (see README)

React

  • Nested helpers within figma.nestedProps now work as expected
  • Props can now be rendered in nested object props

SwiftUI

  • create now outputs Swift files with the correct syntax

Full release notes for 0.2.1

Fixed

React

  • Fixed a bug in v0.2.0 where source paths for components could be incorrect
  • Fixed a bug in v0.2.0 where Code Connect files using the new prop types failed to validate

SwiftUI

  • Fixed parsing of Code Connect files using @FigmaChildren annotations

Full release notes for 0.2.0

Breaking changes

  • Since 0.2.0 Code Connect now uses a single CLI tool for all supported targets. This ensures consistency and feature parity, and provides the foundations for our upcoming Android Compose and extensibility support.

    For Code Connect Swift users, you should follow the updated CLI installation instructions to install the new CLI version, and update your Code Connect Swift package to v0.2.0 by following the Swift installation instructions.

    For Code Connect React users, no change to installation is necessary, and you can simply update the npm dependency to v0.2.0.

    If you have a Code Connect configuration file, you will need to ensure it is located in your React or SwiftUI project root (e.g. alongside your package.json or .xcodeproj file), and you will need to update it to remove the top level react or swiftui key. The Code Connect CLI will offer to update your config file for you, but in unusual cases a manual migration may be necessary. This allows us to simplify configuration going forward, as each target now has its own configuration file, situated in the project root.

    Please let us know via GitHub Issues if you encounter any problems.

Features

General

  • Added --outDir option to connect create to specify output directory for created files

React

  • Added support for nested properties, using figma.nestedProps
  • Added support for concatenating strings for CSS class names, using figma.className
  • Added support for text content from layers, using figma.textContent
  • Added support for wildcards with figma.children

SwiftUI

  • Added a new API for prop mapping, using @FigmaString, @FigmaBoolean and @FigmaEnum instead of @FigmaProp. The old syntax is still supported, but we recommend using the new syntax going forward.
  • Added support for nested children, using the @FigmaChildren property wrapper
  • Added support for rendering single-statement nested Code Connect inline

Fixed

General

React

  • Multiline JSX and strings are now supported in figma.enum values
  • Added support for objects, JSX and functions in figma.boolean enums
  • Imported values referenced from a figma.enum (e.g. values from an object or enum) now render correctly (fixes https://github.com/figma/code-connect/issues/55)
Jun 19, 2024
Code Connect v1.0.0

Features

General

  • Added documentUrlSubstitutions config option

Jetpack Compose

  • Added support for Android Jetpack Compose. See the README to get started

React

  • Interactive setup flow, launched by running figma connect, which guides you through the setup process and auto-connects your components

Fixed

General

  • Automatic config migration (added in v0.2.0) now correctly preserves include/exclude config options
  • Icon script helpers moved to a named export so they can be imported correctly (see README)

React

  • Nested helpers within figma.nestedProps now work as expected
  • Props can now be rendered in nested object props

SwiftUI

  • create now outputs Swift files with the correct syntax

Full release notes for 0.2.1

Fixed

React

  • Fixed a bug in v0.2.0 where source paths for components could be incorrect
  • Fixed a bug in v0.2.0 where Code Connect files using the new prop types failed to validate

SwiftUI

  • Fixed parsing of Code Connect files using @FigmaChildren annotations

Full release notes for 0.2.0

Breaking changes

  • Since 0.2.0 Code Connect now uses a single CLI tool for all supported targets. This ensures consistency and feature parity, and provides the foundations for our upcoming Android Compose and extensibility support.

    For Code Connect Swift users, you should follow the updated CLI installation instructions to install the new CLI version, and update your Code Connect Swift package to v0.2.0 by following the Swift installation instructions.

    For Code Connect React users, no change to installation is necessary, and you can simply update the npm dependency to v0.2.0.

    If you have a Code Connect configuration file, you will need to ensure it is located in your React or SwiftUI project root (e.g. alongside your package.json or .xcodeproj file), and you will need to update it to remove the top level react or swiftui key. The Code Connect CLI will offer to update your config file for you, but in unusual cases a manual migration may be necessary. This allows us to simplify configuration going forward, as each target now has its own configuration file, situated in the project root.

    Please let us know via GitHub Issues if you encounter any problems.

Features

General

  • Added --outDir option to connect create to specify output directory for created files

React

  • Added support for nested properties, using figma.nestedProps
  • Added support for concatenating strings for CSS class names, using figma.className
  • Added support for text content from layers, using figma.textContent
  • Added support for wildcards with figma.children

SwiftUI

  • Added a new API for prop mapping, using @FigmaString, @FigmaBoolean and @FigmaEnum instead of @FigmaProp. The old syntax is still supported, but we recommend using the new syntax going forward.
  • Added support for nested children, using the @FigmaChildren property wrapper
  • Added support for rendering single-statement nested Code Connect inline

Fixed

General

React

  • Multiline JSX and strings are now supported in figma.enum values
  • Added support for objects, JSX and functions in figma.boolean enums
  • Imported values referenced from a figma.enum (e.g. values from an object or enum) now render correctly (fixes https://github.com/figma/code-connect/issues/55)
Jun 17, 2024
Code Connect v0.2.1

Fixed

React

  • Fixed a bug in v0.2.0 where source paths for components could be incorrect
  • Fixed a bug in v0.2.0 where Code Connect files using the new prop types failed to validate

SwiftUI

  • Fixed parsing of Code Connect files using @FigmaChildren annotations

Full release notes for 0.2.0

Breaking changes

  • Since 0.2.0 Code Connect now uses a single CLI tool for all supported targets. This ensures consistency and feature parity, and provides the foundations for our upcoming Android Compose and extensibility support.

    For Code Connect Swift users, you should follow the updated CLI installation instructions to install the new CLI version, and update your Code Connect Swift package to v0.2.0 by following the Swift installation instructions.

    For Code Connect React users, no change to installation is necessary, and you can simply update the npm dependency to v0.2.0.

    If you have a Code Connect configuration file, you will need to ensure it is located in your React or SwiftUI project root (e.g. alongside your package.json or .xcodeproj file), and you will need to update it to remove the top level react or swiftui key. The Code Connect CLI will offer to update your config file for you, but in unusual cases a manual migration may be necessary. This allows us to simplify configuration going forward, as each target now has its own configuration file, situated in the project root.

    Please let us know via GitHub Issues if you encounter any problems.

Features

General

  • Added --outDir option to connect create to specify output directory for created files

React

  • Added support for nested properties, using figma.nestedProps
  • Added support for concatenating strings for CSS class names, using figma.className
  • Added support for text content from layers, using figma.textContent
  • Added support for wildcards with figma.children

SwiftUI

  • Added a new API for prop mapping, using @FigmaString, @FigmaBoolean and @FigmaEnum instead of @FigmaProp. The old syntax is still supported, but we recommend using the new syntax going forward.
  • Added support for nested children, using the @FigmaChildren property wrapper
  • Added support for rendering single-statement nested Code Connect inline

Fixed

General

React

  • Multiline JSX and strings are now supported in figma.enum values
  • Added support for objects, JSX and functions in figma.boolean enums
  • Imported values referenced from a figma.enum (e.g. values from an object or enum) now render correctly (fixes https://github.com/figma/code-connect/issues/55)
Code Connect v0.2.0

Breaking changes

  • Code Connect now uses a single CLI tool for all supported targets. This ensures consistency and feature parity, and provides the foundations for our upcoming Android Compose and extensibility support.

    For Code Connect Swift users, you should follow the updated CLI installation instructions to install the new CLI version, and update your Code Connect Swift package to v0.2.0 by following the Swift installation instructions.

    For Code Connect React users, no change to installation is necessary, and you can simply update the npm dependency to v0.2.0.

    If you have a Code Connect configuration file, you will need to ensure it is located in your React or SwiftUI project root (e.g. alongside your package.json or .xcodeproj file), and you will need to update it to remove the top level react or swiftui key. The Code Connect CLI will offer to update your config file for you, but in unusual cases a manual migration may be necessary. This allows us to simplify configuration going forward, as each target now has its own configuration file, situated in the project root.

    Please let us know via GitHub Issues if you encounter any problems.

Features

General

  • Added --outDir option to connect create to specify output directory for created files

React

  • Added support for nested properties, using figma.nestedProps
  • Added support for concatenating strings for CSS class names, using figma.className
  • Added support for text content from layers, using figma.textContent
  • Added support for wildcards with figma.children

SwiftUI

  • Added a new API for prop mapping, using @FigmaString, @FigmaBoolean and @FigmaEnum instead of @FigmaProp. The old syntax is still supported, but we recommend using the new syntax going forward.
  • Added support for nested children, using the @FigmaChildren property wrapper
  • Added support for rendering single-statement nested Code Connect inline

Fixed

General

React

  • Multiline JSX and strings are now supported in figma.enum values
  • Added support for objects, JSX and functions in figma.boolean enums
  • Imported values referenced from a figma.enum (e.g. values from an object or enum) now render correctly (fixes https://github.com/figma/code-connect/issues/55)
May 15, 2024
Code Connect 0.1.2

Fixed

  • SwiftUI: Fix validation for boolean variants.
  • React: Support for different types for each boolean value (Fixes #32).
  • React: Allow props to be used as object values (Fixes #40).
  • Storybook: Allow the Storybook meta default export to be a reference to another variable (Fixes #34).
  • Documentation: Update README files to fix typos.

Added

  • Storybook: Add source link to code snippets.
  • React: Add a signature to figma.connect that excludes the component argument. This allows supporting code snippets that don't use React components, but rather native tags.
  • React: Support numbers in enums.
  • SwiftUI: Implement figmaApply: a helper function that allows for selective showing & hiding of code based on whether a boolean mapping.
  • SwiftUI: Implement hideDefault: allows a user to specify properties in which the default values should be hidden. This can be seen as being used to represent a subset of what's provided by figmaApply.

Changed

  • React: Update the folder structure in preparation for some future changes.
Apr 24, 2024
Code Connect 0.1.1

Fixed

  • SwiftUI: Fixed issue with boolean prop rendering.
  • React: Added React import statements in files generated with figma create. Thanks @chsmc-stripe!

Added

  • React: Added an option to override the imports by passing an imports key in the object argument to figma.connect. This just takes an array of strings, and is intended as an escape hatch for cases where we can’t determine the imports properly yet.
  • React: Added support for “partial” props spreading in the example, like example: ({ variant, ...props }) => <Button variant={variant} {...props} />.
  • SwiftUI: Added new dry-run command to CLI.

Changed

  • React: Moved path and importPath under the react key in the config file.
  • SwiftUI: CLI now use --token instead of --access-token for the authentication token flag.
  • SwiftUI: Updated config file format.
  • Documentation: Updated README files to fix incorrect information and improving readability.
  • Renamed some internal functions for consistency.
Apr 16, 2024
Code Connect 0.1.0

Code Connect is a tool for connecting your design system components in code with your design system in Figma. When using Code Connect, Figma's Dev Mode will display true-to-production code snippets from your design system instead of autogenerated code examples. In addition to connecting component definitions, Code Connect also supports mapping properties from code to Figma enabling dynamic and correct examples. This can be useful for when you have an existing design system and are looking to drive consistent and correct adoption of that design system across design and engineering.

Code Connect is easy to set up, easy to maintain, type-safe, and extensible. Out of the box Code Connect comes with support for React, Storybook and SwiftUI.

Latest
v1.4.3
Tracking Since
Apr 16, 2024
Last fetched Apr 18, 2026