Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

fix(deps): update dependency @figma/code-connect to ^1.3.1 #7544

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 2, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@figma/code-connect ^1.1.3 -> ^1.3.1 age adoption passing confidence

Test plan: CI should pass with updated dependencies. No review required: this is an automated dependency update PR.


Release Notes

figma/code-connect (@​figma/code-connect)

v1.3.1

Compare Source

Fixed

Features

  • Added interactiveSetupFigmaFileUrl to the interactive setup, allowing you to specify the Figma file to use for connecting components in your figma.config.json file.
  • Rename --include-raw-templates flag to --include-template-files. Further details of this feature can be found in the documentation.
SwiftUI
  • Updated swift-syntax to point to the new URL. Thanks to @​pontusJPaf for the PR.

v1.3.0

Compare Source

Features

  • Add support for JSX Figma connection files.
  • Added an option to automatically create or append the access token to the project's .env file
  • Add better handling of many figma components in the wizard (grouping per page)
  • Allow variant restrictions to use boolean-like properties
General
  • Added support for Bitbucket, Gitlab and Azure DevOps for generated source file URLs

Fixed

  • Don't show a red-cross when the file-matching prompt is finished in the wizard
  • Add default values for @FigmaEnum declarations in SwiftUI
SwiftUI
  • Fixed a formatting error when running the CLI
React
  • Fix nested objects and arrays in props not rendering properly in code snippets
  • Fixed a type issue when passing functions as values to figma.boolean
  • Add support for multiple exports per file in the wizard
Storybook

v1.2.4

Compare Source

Fixed

  • Fix issue with CLI not working on some cases in 1.2.3

v1.2.3

Compare Source

Features

Fixed

  • In the interactive setup, the automatic file linking now matches components exported from index files
React
  • Fix issue where React component references in props would serialize to strings when accessed with getProps()
  • Fix issue with nesting figma.boolean and getProps

v1.2.2

Compare Source

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

v1.2.1

Compare Source

General
  • Added a --exit-on-unreadable-files flag to all commands to exit if any Code Connect files cannot be parsed. We recommend using this option for CI/CD.

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.
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.
Compose
  • Fixed some parsing errors when running the create and publish commands

v1.2.0

Compare Source

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

Fixed

v1.1.4

Compare Source

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)

Configuration

📅 Schedule: Branch creation - "on the 1st through 7th day of the month" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

netlify bot commented Feb 2, 2025

Deploy Preview for sourcegraph ready!

Name Link
🔨 Latest commit 7177e82
🔍 Latest deploy log https://app.netlify.com/sites/sourcegraph/deploys/67af83b3ecbd8b000871747e
😎 Deploy Preview https://deploy-preview-7544--sourcegraph.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@renovate renovate bot force-pushed the renovate/figma-code-connect-1.x branch from bf84b2c to af1a1d3 Compare February 2, 2025 06:15
@renovate renovate bot force-pushed the renovate/figma-code-connect-1.x branch from af1a1d3 to 7177e82 Compare February 14, 2025 17:56
@renovate renovate bot changed the title fix(deps): update dependency @figma/code-connect to ^1.3.0 fix(deps): update dependency @figma/code-connect to ^1.3.1 Feb 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants