release: - Renderer Options
- Reason: This was changed because of having all the renderer options that are mangled together and not respecting which renderer has been choosen. It also allows for custom renderers to have their own logic by exposing their options in a single class file rather than expecting that functionality from the project itself.
Before <v1.3.12:
new Listr<Ctx>([
{
task: async (ctx, task): Promise<void> => {
},
persistentOutput: true
}
], {
concurrent: [secure],
collapse: true
- After ([
{
task: async (ctx, task): Promise => {
},
options: { persistentOutput: true } // per task based options are moved to their own key
}
], {
concurrent: [secure],
rendererOptions: { collapse: [secure] }
// global renderer options moved to their own key
})
```
Some of the types has been changed.
- Reason: Some of the types had to be changed due to compatability reasons with new autocomplete functionality of the dynamic renderer options.
- Before
task = new Listr(..., { renderer: 'verbose' })
- After <v1.3.12:
```typescript
// this without the indication of verbose will now fail due to default renderer being 'default' for autocompleting goodness of the IDEs.
// So you have to overwrite it manually to 'verbose'.
// If it does not have a default you had to explicitly write { renderer: 'default' } everytime to have the auto complete feature
let task: Listr<Ctx, 'verbose'>
task = new Listr(..., { renderer: 'verbose' })
1.3.12 (2020-04-30)
Bug Fixes
- ignore: note to self dont do late night commits (56ff7b7)
1.3.11 (2020-04-30)
Bug Fixes
- build: ignored tests files (16d8d93)
1.3.10 (2020-04-30)
Bug Fixes
- tests: add tests to npm ignore (83cd9d3)
1.3.9 (2020-04-30)
Bug Fixes
- added e2e and unit tests, not comprehensive (4d3076b)
Reverts
- task: revert back to enable boolean for not breaking compatability (45b6c32)