2019-02-27 14:30:38 -05:00
{
"schematics" : {
2019-04-17 00:06:06 -04:00
"migration-v8-move-document" : {
"version" : "8-beta" ,
"description" : "Migrates DOCUMENT Injection token from platform-browser imports to common import" ,
"factory" : "./migrations/move-document/index"
} ,
2019-02-27 14:30:38 -05:00
"migration-v8-static-queries" : {
2019-04-05 12:58:56 -04:00
"version" : "8-beta" ,
2019-02-27 14:30:38 -05:00
"description" : "Migrates ViewChild and ContentChild to explicit query timing" ,
"factory" : "./migrations/static-queries/index"
2019-03-30 07:48:21 -04:00
} ,
"migration-v8-template-local-variables" : {
2019-04-05 12:58:56 -04:00
"version" : "8-beta" ,
2019-03-30 07:48:21 -04:00
"description" : "Warns developers if values are assigned to template variables" ,
"factory" : "./migrations/template-var-assignment/index"
2019-06-09 09:38:18 -04:00
} ,
"migration-v9-renderer-to-renderer2" : {
"version" : "9-beta" ,
"description" : "Migrates usages of Renderer to Renderer2" ,
"factory" : "./migrations/renderer-to-renderer2/index"
2019-07-24 06:07:07 -04:00
} ,
2019-08-27 09:09:09 -04:00
"migration-v9-missing-injectable" : {
"version" : "9-beta" ,
"description" : "Decorates all declared undecorated provider classes with @Injectable" ,
"factory" : "./migrations/missing-injectable/index"
} ,
2019-07-24 06:07:07 -04:00
"migration-v9-undecorated-classes-with-di" : {
"version" : "9-beta" ,
"description" : "Decorates undecorated base classes of directives/components that use dependency injection. Copies metadata from base classes to derived directives/components/pipes that are not decorated." ,
"factory" : "./migrations/undecorated-classes-with-di/index"
2019-08-15 05:40:53 -04:00
} ,
"migration-v9-undecorated-classes-with-decorated-fields" : {
"version" : "9-beta" ,
"description" : "Adds an Angular decorator to undecorated classes that have decorated fields" ,
"factory" : "./migrations/undecorated-classes-with-decorated-fields/index"
feat(core): add dynamic queries schematic (#32231)
Adds a schematic that will remove the explicit `static: false` flag from dynamic queries. E.g.
```ts
import { Directive, ViewChild, ContentChild, ElementRef } from '@angular/core';
@Directive()
export class MyDirective {
@ViewChild('child', { static: false }) child: any;
@ViewChild('secondChild', { read: ElementRef, static: false }) secondChild: ElementRef;
@ContentChild('thirdChild', { static: false }) thirdChild: any;
}
```
```ts
import { Directive, ViewChild, ContentChild, ElementRef } from '@angular/core';
@Directive()
export class MyDirective {
@ViewChild('child') child: any;
@ViewChild('secondChild', { read: ElementRef }) secondChild: ElementRef;
@ContentChild('thirdChild') thirdChild: any;
}
```
PR Close #32231
2019-08-21 01:40:30 -04:00
} ,
"migration-v9-dynamic-queries" : {
"version" : "9-beta" ,
"description" : "Removes the `static` flag from dynamic queries." ,
"factory" : "./migrations/dynamic-queries/index"
2019-02-27 14:30:38 -05:00
}
}
}