Skip to content

Commit 0dcbed5

Browse files
committed
chore(transactions): leave comment instead of breaking change
1 parent 9d8e169 commit 0dcbed5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

projects/igniteui-angular/migrations/update-12_1_0/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ public onBannerOpened(event: BannerEventArgs) {
722722
@Component({
723723
template: '',
724724
providers: [/* Injection token 'IgxGridTransaction' has been deprecated. Please refer to the update guide for more details. */
725-
/* { provide: IgxGridTransaction, useClass: IgxTransactionService } */]
725+
{ provide: IgxGridTransaction, useClass: IgxTransactionService }]
726726
})
727727
export class TransactionComponent {
728728
@ViewChild(IgxGridComponent, { read: IgxGridComponent })
@@ -757,7 +757,7 @@ public onBannerOpened(event: BannerEventArgs) {
757757
providers: [
758758
{ provider: A, useClass: AService },
759759
/* Injection token 'IgxGridTransaction' has been deprecated. Please refer to the update guide for more details. */
760-
/* { provide: IgxGridTransaction, useClass: IgxTransactionService }, */
760+
{ provide: IgxGridTransaction, useClass: IgxTransactionService },
761761
{ provider: B, useClass: BService}
762762
]
763763
})

projects/igniteui-angular/migrations/update-12_1_0/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default (): Rule => (host: Tree, context: SchematicContext) => {
122122
if (content.indexOf(deprecatedToken) < 0) {
123123
continue;
124124
}
125-
content = content.replace(matchExpr, `${providerWarnMsg}\n/* $1 */`);
125+
content = content.replace(matchExpr, `${providerWarnMsg}\n$1`);
126126
host.overwrite(path, content);
127127
}
128128

0 commit comments

Comments
 (0)