Skip to content

2.3.0 Beta 2

Pre-release
Pre-release
Compare
Choose a tag to compare
@LightWayUp LightWayUp released this 22 Dec 14:08
· 3 commits to master since this release
766abb4
  • Dynamically detect used libraries and tools (including npm) instead of hardcoding a list of dependencies
  • Treat npm as a normal Node module, use getModuleFromPath() to retreive details instead of reading from stdout of npm process
  • Added function getModuleFromPath() to get a NodeModule from a directory path, if the directory contains a Node module
  • Added NodeModule class with 3 properties: name, version and license
  • Added missing semicolon at line 533 (now 542)
  • Refined error logging message used when response content type is unexpected
  • Use package name of ChillBot as User Agent used when making requests
  • Library version is now never empty
  • Changed getLibraries() from returning a Map (key: library name, value: library version) to returning an Array of NodeModules
  • Changed configuration "changelogFetchTimeout" to "apiFetchTimeout", as the configuration is used for fetching both project changelog and node runtime license. Please use environment variable BOT_API_FETCH_TIMEOUT instead of BOT_CHANGELOG_FETCH_TIMEOUT
  • Removed all files dedicated to licenses, they are now read from files in dependency folders in node_modules (except for node runtime, license for node runtime is now fetched through GitHub API). This means licenses don't have to be manually maintained anymore, and should guarantee that they are up-to-date and correct
  • Removed configuration "cliProcessTimeout", it'll be added again in the future if necessary
  • Bumped version to v2.3.0-beta2