chore(deps): update dependency @figma/code-connect to v1.5.3 - #2155
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency @figma/code-connect to v1.5.3#2155renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
renovate
Bot
force-pushed
the
renovate/figma-code-connect-1.x
branch
from
August 14, 2026 14:50
2f6873f to
ef604a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.4.4→1.5.3Release Notes
figma/code-connect (@figma/code-connect)
v1.5.3Compare Source
Fixed
React
Features
General
figma connect preview <file> --unique, which is similar to--allbut hides duplicate outputs.Template files
idtoInstanceHandleto expose the instance's Figma node ID. It matches the Plugin API'sSceneNode.id, including stable paths for nested instance sublayers.v1.5.2Compare Source
Fixed
import figma from 'figma'publishing an unexecutable import.v1.5.1Compare Source
v1.5.0Compare Source
Fixed
Template files
Features
Template files
--deleteoption tofigma connect migratethat deletes source Code Connect files after they are successfully migrated../shared-helpers) to promote reuse of shared formatting and utility logic. Helper code is bundled into the published template so it can run standalone, and helpers may import other local helpers to organize shared logic across multiple files. Only relative imports within the project are supported (external packages are not), and helpers must be brought in withimportsyntax —requireremains available for the Figma API itself. Helper code you don't actually use is left out of the published template, and if the bundled output exceeds the maximum template size, the CLI fails before publishing.General
figma connect previewcan now render a component in states beyond its default, and inspect its properties:figma connect preview <file> --inspectprints the component's properties and variants — name, type, variant options, and default — without rendering a snippet.figma connect preview <file> --props Name=Value …renders a single specific property combination. Pairs are space-separated arguments (quote a pair only when its name or value contains spaces, e.g."Has Icon Start=true"). Property names and variant values are matched case-insensitively, unspecified properties keep their defaults, and an invalid variant value is reported along with the valid options. To target a property when two properties share a name but differ in type, prefix the pair with the type, e.g."BOOLEAN:textMsg=false" "TEXT:textMsg=Hello"; the prefix is optional and only needed to disambiguate.figma connect preview <file> --allrenders every property combination of the component — the cartesian product of its variant and boolean properties. Requires a specific component file argument. Use--max-combinations <number>to render fewer combinations when the full set is large.v1.4.9Compare Source
Fixed
General
parserCommandreferencing a path with spaces).Template files
.figma.ts/.figma.js), the CLI no longer invokes the Swift or Compose parser — which is slow at best and can fail outright (for example a Swift package targeting macOS 12 whoseFigmadependency requires macOS 13, producing "the library '...' requires macos 12.0, but depends on the product 'Figma' which requires macos 13.0"). Projects that also contain native source files are unaffected and still run the parser.Swift
swift-syntaxupper bound to allow the 603.x release. Previously the cap below 603 could silently downgradeswift-syntaxin projects that depend on both Code Connect andswift-syntax(directly or transitively) on a Swift 6.3 toolchain. Older toolchains remain supported.Features
General
@figma/code-connect/figma-types-no-require, a variant of the template type definitions for projects that have@types/nodeinstalled. The default@figma/code-connect/figma-typesentry declares a globalrequire(soconst figma = require('figma')works without@types/node), but that declaration overrides Node's ownrequiretype and causes errors likeProperty 'resolve' does not existonrequire.resolve(...)elsewhere in projects that use@types/node. Such projects can now use"@figma/code-connect/figma-types-no-require"in theirtypesarray instead, adding it to their maintsconfig.jsonwithout a separate config. The default entry is unchanged, so no existing setup needs to change.Template files
getSlotAPI:getSlot('SlotName')still renders the same way, and the returned value now also exposesconnectedInstances(the connected instances directly in the slot). This lets you render a slot's connected children inline. For examplegetSlot('body').connectedInstances.map((c) => c.executeTemplate().example).React & HTML
figma.slotAPI:figma.slot('SlotName')still maps the slot the same way, and you can now also writefigma.slot('SlotName').connectedInstancesin apropsobject to render the slot's code-connected instances inline. For exampleprops: { content: figma.slot('Content').connectedInstances }.v1.4.8Compare Source
Fixed
General
@figma/code-connectin Storybook or webpack environments would fail with "Can't resolve 'child_process'" or "Console is not a constructor" errors. Node.js-only modules (child_process,console) are now imported dynamically only when needed by CLI commands, making the package safe to use in browser environments.Template files
getInstanceSwap(...)?.executeTemplate is not a function" error that could break a template whengetInstanceSwap('prop')referenced an instance-swap property that isn't present on the selected node (for example a property that is conditionally hidden by a boolean). The missing property now renders an inline error, consistent with the other accessors, instead of failing the whole template.figma.textContent('...')helper) producing a TypeScript error and silently rendering nothing when the layer was missing. Migration now preserves the original behavior — the text renders when the layer is found, and a clear error is shown when it isn't.Features
Template files
figma connect migratecommand now uses the same--dirand--filefiltering behavior aspublish,parse, andunpublish. The migrate-only positional glob argument has been removed.figma connect migratecommand can now migrate compatible large source files into batch template files. Files with 10 or more Code Connect docs are attempted automatically,--batch allforces a batch attempt, and--batch nonedisables batch migration.v1.4.7Compare Source
Fixed
General
--file(-f) option onfigma connect publish,unpublish, andparsenow accepts multiple files, so you can target several Code Connect files in one command (e.g.figma connect publish --file a.figma.ts b.figma.ts). Previously only a single file path was accepted.publishcommand to reduce 429s errors--verbose,--token,--config,--dir,--file,--out-file,--out-dir,--api-url,--skip-update-check,--exit-on-unreadable-files,--dry-run) now work whether you write them before or after the subcommand name. Previously, onlyfigma connect publish -vtoggled verbose mode;figma connect -v publishwas silently ignored.Compose
parseCodeConnect/createCodeConnectfailing in multi-module Gradle projects when the plugin is applied to more than one subproject. The task now resolves the-PfilePath/-PoutputDirarguments against the root project so every subproject finds the input the CLI wrote at the build root.--configuration-cachecaused an opaque serialization error; the tasks now store and reuse the configuration cache entry as expected.v1.4.5Compare Source
Fixed
General
previewcommand now prints a clearer single-line message if the preview service is temporarily unavailable, instead of repeating a per-file error.figma connect previewnow splits requests into smaller chunks when previewing many components at once, so previews of large component libraries no longer fail with “Payload Too Large” errors.Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.