Skip to content

v0.17.1

Compare
Choose a tag to compare
@SBoudrias SBoudrias released this 03 Jul 06:47
· 965 commits to main since this release

Fixes

  • Generator#help() doesn't output undefined default value for options.
  • Generator#arguments() would sometime create endless loop and crash the process.
  • Generators queue hash won't run private methods (_ prefixed methods name).
  • Generator will wait for the Storage to be persisted (if necessary) before triggering the end event.
  • Generator#log() can now use falsy value to replace string placeholder.

Storage

  • Storage#set() and Storage#defaults() now return the content of the store.
  • Can now be used by multiple Generator instances (e.g. with composability) without having one generator overwrite the config saved by another.

Testing (RunContext)

  • Deprecate RunContext#onEnd() for a real event: runContext.on('end, cb).

  • Rename RunContext#withPrompt() to RunContext#withPrompts()

  • Add RunContext#withGenerators() to stub sub-generators called by the tested generator.

  • RunContext#inDir() now take a callback, and the callback can perform async task using this.async()

  • Multiple minor improvements (ready event to modify env, etc)

  • Lots of fixes

    Kudos to @blai for the large effort he put into fixing and improving the testing helper.

generator#user.git

  • Move getter property to methods for explicit performance side-effect. user.git.name(), user.git.email(), user.github.username()