Skip to content

v4.3.0

Compare
Choose a tag to compare
@inttter inttter released this 09 Jun 18:19
· 25 commits to main since this release

πŸ’₯ Breaking

  • ea08bce πŸ’₯ BREAKING: use ESM by default
    • --esm has become --cjs. ESM syntax is now used by default.
    • Behind the scenes, a lot more has been done to ensure there are no issues (especially when using ESM), such as adding "type": "module" and adding the engines field with a minimum of Node.js 18. You can view the rest by clicking on the commit hash.
    • Most of this was taken from Sindre Sorhus' FAQ.

🧹 Chores

  • ea08bce 🧹 chore: warn if user uses --cjs
  • ea08bce 🧹 chore(esm): add type and engines to package.json
  • 53931ad 🧹 chore: use node .gitignore template

πŸ“ Documentation

  • d3b1839 πŸ“ docs: update documentation

πŸ› Bugfixes

  • 81487b4 πŸ› fix(dependencies): remove versions from statements

    Let's say you put chalk@4.0.0 as one of the dependencies to install. Before, the statement would become:

    import chalk@4.0.0 from 'chalk@4.0.0' or const chalk@4.0.0 = require('chalk@4.0.0')

    This is no longer the case. Anything after (and including) an @ is removed, so the above would now become:

    import chalk from 'chalk' or const chalk = require('chalk')

    Obviously, this doesn't eliminate the fact that packages import / require() modules differently, however this will help in cases where people use a specific version of a dependency.