Skip to content

Commit b858968

Browse files
author
figma-bot
committed
Code Connect v1.4.4
1 parent 2404b36 commit b858968

34 files changed

Lines changed: 2942 additions & 77 deletions

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# Code Connect v1.4.4 (22 April 2026)
2+
3+
## Fixed
4+
5+
### General
6+
7+
- Bumped Lodash version from 4.17 to 4.18 to address vulnerability [CVE-2021-23337](https://www.cve.org/CVERecord?id=)
8+
9+
### Storybook
10+
11+
- Storybook files with `.ts`, `.jsx`, or `.js` extensions (e.g. `Button.stories.jsx`) are now discovered by the CLI. Previously only `.stories.tsx` files were picked up.
12+
13+
### Template files
14+
15+
- `--exit-on-unreadable-files` is now respected for template files (`.figma.ts` / `.figma.js`)
16+
- Fixed batch data not being picked up when rendering Code Connect snippets
17+
18+
## Features
19+
20+
### General
21+
22+
- Added `--force` flag to `figma connect publish`. When Figma already has UI-created Code Connect mappings for one or more nodes, publishing will now show a warning instead of failing silently. Use `--force` to overwrite those existing mappings with the Code Connect files from your codebase.
23+
- The `connect create` command can now generates template files.
24+
- Added `preview` command: you can now run `npx figma connect preview {fileUrl}` to locally preview a Code Connect file without having to publish it.
25+
26+
### Template files
27+
28+
- Added batch template support (`.figma.batch.json` + `.figma.batch.ts`). A batch file defines a shared template and an array of component entries, allowing hundreds of similar components (e.g. icons) to be Code Connected without individual template files. Per-entry data is available in the template via `figma.batch`.
29+
130
# Code Connect v1.4.3 (1st April 2026)
231

332
## Fixed

cli/figma-types.d.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ declare module 'figma' {
154154
) => TemplateStringResult
155155

156156
export interface Figma {
157+
/** Per-entry data from a .figma.batch.json file. Available in batch templates. */
158+
readonly batch: Record<string, any>
159+
157160
/** The currently selected component instance */
158161
readonly selectedInstance: InstanceHandle & { readonly __properties__: FigmaProperties }
159162
/** Alias for selectedInstance */

cli/npm_catalog.toml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
"@babel/template" = "7.28.5"
9999
"@babel/traverse" = "7.28.5"
100100
"@babel/types" = "7.28.5"
101-
"eslint" = "^9.36.0"
101+
"eslint" = "9.37.0"
102102
"eslint-config-prettier" = "^9.1.0"
103103
"eslint-plugin-clsx" = "^0.0.12"
104104
"eslint-plugin-import" = "^2.32.0"
@@ -110,7 +110,7 @@
110110
"eslint-import-resolver-typescript" = "^4.4.4"
111111
"eslint-plugin-testing-library" = "^7.15.4"
112112
"eslint-plugin-workspaces" = "^0.11.1"
113-
"@eslint/js" = "^9.23.0"
113+
"@eslint/js" = "9.37.0"
114114
"@eslint/config-helpers" = "^0.4.0"
115115
"@vitest/eslint-plugin" = "^1.6.6"
116116
"@typescript-eslint/eslint-plugin" = "8.52.0"
@@ -136,11 +136,26 @@
136136
"jest-cli" = "^29.7.0"
137137
"jest-junit" = "16.0.0"
138138
"ts-jest" = "^29.2.5"
139+
"c8" = "^11.0.0"
139140
"just-bash" = "^2.10.2"
141+
"@lexical/clipboard" = "0.21.0"
142+
"@lexical/code" = "0.21.0"
143+
"@lexical/devtools-core" = "0.21.0"
144+
"@lexical/headless" = "0.21.0"
145+
"@lexical/history" = "0.21.0"
146+
"@lexical/html" = "0.21.0"
147+
"@lexical/link" = "0.21.0"
148+
"@lexical/list" = "0.21.0"
149+
"@lexical/markdown" = "0.21.0"
150+
"@lexical/react" = "0.21.0"
151+
"@lexical/rich-text" = "0.21.0"
152+
"@lexical/selection" = "0.21.0"
153+
"@lexical/utils" = "0.21.0"
154+
"lexical" = "0.21.0"
140155
"@types/lodash" = "4.17.20"
141156
"@types/lodash-es" = "4.17.12"
142-
"lodash" = "4.17.23"
143-
"lodash-es" = "4.17.23"
157+
"lodash" = "4.18.1"
158+
"lodash-es" = "4.18.1"
144159
"@oclif/core" = "3.27.0"
145160
"@storybook/addon-actions" = "8.5.1"
146161
"@storybook/addon-a11y" = "8.5.1"
@@ -176,14 +191,14 @@
176191
"@tanstack/react-router-devtools" = "1.130.0"
177192
"webpack" = "5.91.0"
178193
"webpack-cli" = "5.1.4"
179-
"modal" = "^0.6.0"
194+
"modal" = "0.7.2"
180195
"@axe-core/playwright" = "4.11.0"
181196
"@bazel/runfiles" = "^6.3.1"
182197
"@figma/plugin-typings" = "1.121.0"
183198
"@figma/widget-typings" = "1.12.1"
184199
"@formatjs/icu-messageformat-parser" = "^2.11.2"
185200
"@modelcontextprotocol/ext-apps" = "1.0.1"
186-
"@modelcontextprotocol/sdk" = "1.24.0"
201+
"@modelcontextprotocol/sdk" = "1.27.0"
187202
"@opentelemetry/api" = "^1.9.0"
188203
"@sentry/cli" = "2.58.3"
189204
"@tanstack/react-virtual" = "3.13.18"
@@ -200,7 +215,7 @@
200215
"csstype" = "^3.2.3"
201216
"dayjs" = "^1.11.19"
202217
"esbuild" = "0.25.0"
203-
"flatted" = "^3.3.3"
218+
"flatted" = "^3.4.2"
204219
"jotai" = "2.9.3"
205220
"intl-messageformat" = "^10.7.14"
206221
"graphql" = "16.12.0"
@@ -216,7 +231,9 @@
216231
"react-dom" = "18.3.1"
217232
"react-redux" = "8.0.5"
218233
"react" = "18.3.1"
219-
"sharp" = "0.33.5"
234+
"sharp" = "0.34.5"
235+
"@img/sharp-darwin-arm64" = "0.34.5"
236+
"@img/sharp-linux-x64" = "0.34.5"
220237
"sinon" = "^17.0.1"
221238
"ts-morph" = "^27.0.0"
222239
"ts-node" = "^10.9.2"

cli/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@figma/code-connect",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"description": "A tool for connecting your design system components in code with your design system in Figma",
55
"keywords": [],
66
"author": "Figma",
@@ -11,6 +11,10 @@
1111
"types": "./dist/react/index_react.d.ts",
1212
"default": "./dist/react/index_react.js"
1313
},
14+
"./cli-commands-template": {
15+
"types": "./dist/commands/connect_template.d.ts",
16+
"default": "./dist/commands/connect_template.js"
17+
},
1418
"./html": {
1519
"types": "./dist/html/index_html.d.ts",
1620
"default": "./dist/html/index_html.js"
@@ -106,7 +110,7 @@
106110
"find-up": "^5.0.0",
107111
"glob": "^11.0.4",
108112
"jsdom": "^24.1.1",
109-
"lodash": "4.17.23",
113+
"lodash": "4.18.1",
110114
"minimatch": "^9.0.3",
111115
"ora": "^5.4.1",
112116
"parse5": "^7.1.2",

0 commit comments

Comments
 (0)