conventional-changelog/conventional-changelog

conventional-changelog-cli: context file type must json, not support js file

damingerdai opened this issue · 1 comments

i found in this pr: [fix: fix semver vulnerability] (#1071) has a big break change that we can not use javescripts file as context file. we must use json file to setup context info.

so my question is that cloud your revert it these change? If no, why and please update it changelog file?

-  templateContext = JSON.parse(await readFile(relativeResolve(flags.context), 'utf8'))
+ templateContext = require(resolve(process.cwd(), flags.context))

Feel free to create a PR to support both