v4.3.0
π₯ 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 theengines
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
andengines
topackage.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'
orconst 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'
orconst 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.