# What changed in @figma/code-connect

> 15 changes in @figma/code-connect 2 from its official release notes, upgrade guides and advisories: 4 breaking, 3 new APIs and options. Each one cited. Sources checked 2026-10-21. HTML: https://unstale.sh/npm/@figma/code-connect/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @figma/code-connect 2

### Breaking changes

- The command always generates a parserless template file, including in projects configured for a framework-specific parser. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- Unsupported output filenames are rejected with guidance to use `.figma.ts` or `.figma.js`. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- Framework-specific parsers can now be used only with migrate and unpublish; other commands exit with guidance to migrate to template files. (2.0.0) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.0)
- Framework-specific parsers will no longer receive updates or support; template files are the only actively maintained way to use Code Connect. (2.0.0) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.0)

### New APIs and options

- Set this environment variable to 1 to disable telemetry of preflight validation failure counts sent by `figma connect publish`. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- Running a command with this flag shows the stack trace for a network request failure. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- The command now accepts a component template file declared in a .figma.batch.json file, allowing that component to be previewed individually. (2.0.1) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.1)

### Performance

- Performance optimizations were made for the preview command. (2.0.0) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.0)

### Behavior and default changes

- JSON output now includes each connection's source file. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- Publishing now sends preflight validation failure counts to Figma; set DO_NOT_TRACK=1 to disable this telemetry. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- On Professional plans, publishing now confirms the active library and framework when they are first selected, and explains how to change the selection or upgrade if the limit is exceeded. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)

### Fixes and other changes

- File discovery now works in project folders with special characters while preserving configured exclusions and project-relative includes with a leading slash. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- The command leaves existing template files unchanged and reports success when no components need migrating. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- Filtering text layers by parent path no longer crashes, including when the text is inside nested instances. (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
- Network request failures now show the underlying reason, such as a timeout or connection error, instead of only “fetch failed.” (2.0.2) — [release notes](https://github.com/figma/code-connect/releases/tag/v2.0.2)
