v6.0.0
The yeoman-generator
package now export a native ESM module. (Learn more about ESM)
Notable changes:
- Convert to typescript
- Drop node 12/14 support.
- Requires yeoman-environment
^3.18.4
. - Provides built-in types.
- Uses new
@yeoman/types
for environment/generator interoperability. May conflict with@types/yeoman-*
types. - Move skipParseOptions and customPriorities to features c12806a
- Drop deprecated install (and not included by default) action 1a856b1
Install action was not scalable. A separated task package can be considered at yeoman-api. run-async
is not provided anymore:
Convert to Promises or userun-async
v3:
import runAsync from 'run-async';
class Gen {
asyncTaskWithCallback: runAsync(function() {
const done = this.async();
asyncMethod(done);
}),
}
- composeWith is async:
- If used inside constructor, move it to
_postConstruct
orbeforeQueue
. - Due to complexity, prefer
composeWith(generator, composeOptions
signature.
- If used inside constructor, move it to