File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ New entries must be placed in a section entitled `Unreleased`.
13
13
This allows us to use the built-in Node.js CLI parser and then to remove the [ Commander.js] ( https://www.npmjs.com/package/commander ) dependency.
14
14
This reduces the standalone binary size from 77KB to 45KB (42%).
15
15
16
+ - Support ` require(esm) ` in Node.js v22.10 and above
17
+
18
+ This package now has the [ new exports condition ` module-sync ` ] ( https://nodejs.org/en/blog/release/v22.10.0#new-module-sync-exports-condition ) .
19
+ This allows users of Node.js v22.10 and above to import the ESM version of the package using ` require ` .
20
+ This avoids the issues of [ dual-package hazard] ( https://nodejs.org/api/packages.html#dual-package-hazard ) .
21
+
16
22
## 0.15.0 (2023-10-19)
17
23
18
24
- BREAKING CHANGES: require Node.js 16.9.0 or above
Original file line number Diff line number Diff line change 35
35
"./package.json" : " ./package.json" ,
36
36
"." : {
37
37
"module" : " ./dist/index.js" ,
38
+ "module-sync" : " ./dist/index.js" ,
38
39
"require" : {
39
40
"types" : " ./dist/index.d.cts" ,
40
41
"default" : " ./dist/index.cjs"
You can’t perform that action at this time.
0 commit comments