Open Beta v6 #167
marcomontalbano
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Last year, I made the decision to stop supporting older versions of Node.js. Continuing to use outdated versions meant missing out on important updates and leaving ourselves vulnerable to security risks. That's why, back in February, I introduced v5, which no longer supports Node.js 12 and 14.
Now it's time to move forward and drop support for Node.js 16, as it stopped receiving updates in October 2023.
With the introduction of v6, I'm aiming to upgrade all our dependencies to their latest major versions.
Since we're also incorporating dependencies that have transitioned to being pure ESM, I've decided to fully embrace this by migrating to pure ESM ourselves.
This change may seem significant, but for most users, it's likely to have minimal impact. If your project already uses
type="module"
in yourpackage.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:adjust the command you run:
and start using
import foo from 'foo'
instead ofconst foo = require('foo')
to import the packages inside the.figmaexportrc.mjs
. You can take a look at .figmaexportrc.example.js as an example.I've just released the first
v6.0.0-beta.0
, which includes this major change.To update your project, simply run:
npx npm-check-updates "@figma-export/*" -t @next -u npm i npx figma-export use-config -v
As always, your feedback is greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions