Skip to content

Conversation

marcomontalbano
Copy link
Owner

@marcomontalbano marcomontalbano commented Feb 27, 2024

Discussion #167

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.

@marcomontalbano marcomontalbano added this to the v6.0.0 milestone Feb 27, 2024
@marcomontalbano marcomontalbano changed the title Esm Move to ESM Mar 3, 2024
@marcomontalbano marcomontalbano added the PR: Breaking Changes ☄️ Only for pull request. Contains breaking changes label Mar 3, 2024
@marcomontalbano marcomontalbano self-assigned this Mar 3, 2024
@marcomontalbano marcomontalbano changed the title Move to ESM Drop Node.js 16 support and move to ESM Mar 3, 2024
@marcomontalbano marcomontalbano marked this pull request as ready for review May 10, 2024 20:53
@marcomontalbano marcomontalbano merged commit b149cc0 into main May 10, 2024
@marcomontalbano marcomontalbano deleted the esm branch May 10, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Breaking Changes ☄️ Only for pull request. Contains breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant