angular/packages/core/schematics
cexbrayat 03a2acd2a3 fix(core): properly remove imports in the afterRender phase migration (#56524)
Before this commit, the migration was removing the `AfterRenderPhase` enum from the imports but not the comma, resulting in invalid code:

ts
```
import { , Directive, afterRender } from '@angular/core';
```

This commit fixes this by using `updateNamedImports` and `replaceNode` instead of `removeNode`.

After:

ts
```
import { Directive, afterRender } from '@angular/core';
```

PR Close #56524
2024-06-20 08:50:28 -07:00
..
migrations fix(core): properly remove imports in the afterRender phase migration (#56524) 2024-06-20 08:50:28 -07:00
ng-generate fix(migrations): resolve error in standalone migration (#56302) 2024-06-07 09:33:41 -07:00
test fix(core): properly remove imports in the afterRender phase migration (#56524) 2024-06-20 08:50:28 -07:00
utils refactor(compiler): implement let declarations in render3 ast (#55848) 2024-05-30 14:55:36 +00:00
BUILD.bazel feat(core): Add a schematic to migrate afterRender phase flag (#55648) 2024-06-10 13:53:39 -07:00
collection.json feat(core): Add schematic to migrate control flow syntax (#52035) 2023-10-10 11:33:00 -07:00
migrations.json feat(core): Add a schematic to migrate afterRender phase flag (#55648) 2024-06-10 13:53:39 -07:00
package.json refactor(migrations): ensure CommonJS migrations can be accessed (#43657) 2021-10-04 16:24:48 -07:00
tsconfig.json build: align schematics tsconfig with rest of the project (#51969) 2023-10-04 07:28:41 -07:00