Skip to content

v6.0.0

Compare
Choose a tag to compare
@marcomontalbano marcomontalbano released this 10 May 21:16
· 11 commits to main since this release
5043287

v6.0.0 (2024-05-10)

☄️ Breaking Changes

  • cli, core, output-components-as-es6, output-components-as-stdout, output-components-as-svg, output-components-as-svgr, output-components-as-svgstore, output-styles-as-css, output-styles-as-less, output-styles-as-sass, output-styles-as-style-dictionary, transform-svg-with-svgo, types, utils, website

Committers: 1

What's inside?

  • Drop Node.js 16 support
  • Move from CJS to ESM
  • Update all dependencies to the latest major
  • Replace mocha and sinon with vitest
  • Update documentation and configuration samples

Breaking changes

This library is now pure ESM.

This change may seem significant, but for most users, it's likely to have minimal impact. If your project already uses type="module" in your package.json, you're good to go.

However, if your project hasn't yet made this transition, you'll need to rename your .figmaexportrc.js configuration file:

-  .figmaexportrc.js
+  .figmaexportrc.mjs

adjust the command you run:

figma-export use-config .figmaexportrc.mjs

and start using import foo from 'foo' instead of const foo = require('foo') to import the packages inside the .figmaexportrc.mjs. You can take a look at .figmaexportrc.example.js as an example.