Skip to content

Commit 06d2cb3

Browse files
committed
feat: update to angular 15
1 parent 10bd999 commit 06d2cb3

35 files changed

+224
-111
lines changed

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ module.exports = {
44
parserOptions: {
55
tsconfigRootDir: __dirname,
66
project: "./tsconfig.eslint.json",
7+
ecmaVersion: 2020,
8+
sourceType: "module",
79
},
8-
plugins: ["@typescript-eslint"],
10+
plugins: ["@typescript-eslint", "deprecation"],
911
extends: [
1012
"eslint:recommended",
1113
"plugin:@typescript-eslint/eslint-recommended",
@@ -25,6 +27,7 @@ module.exports = {
2527
"@typescript-eslint/unbound-method": 0,
2628
"@typescript-eslint/no-misused-promises": 0,
2729
"@typescript-eslint/restrict-template-expressions": 0,
30+
"deprecation/deprecation": "warn",
2831
quotes: [2, "single"]
2932
},
3033
};

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "miscellaneous",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"author": "craftsjs",
55
"description": "Material alert library for angular",
66
"license": "MIT",
@@ -27,7 +27,7 @@
2727
"@angular/platform-browser": "^15.0.4",
2828
"@angular/platform-browser-dynamic": "^15.0.4",
2929
"@angular/router": "^15.0.4",
30-
"@ngrx/store": "14.3.2",
30+
"@ngrx/store": "15.1.0",
3131
"@ngx-translate/core": "14.0.0",
3232
"perfect-scrollbar": "^1.5.0",
3333
"rxjs": "~6.6.3",
@@ -53,6 +53,7 @@
5353
"@typescript-eslint/parser": "^5.43.0",
5454
"codelyzer": "^5.1.2",
5555
"eslint": "^8.28.0",
56+
"eslint-plugin-deprecation": "^1.3.3",
5657
"jasmine-core": "~3.5.0",
5758
"jasmine-spec-reporter": "~5.0.0",
5859
"karma": "~6.3.4",
@@ -82,4 +83,4 @@
8283
"modal",
8384
"notifier"
8485
]
85-
}
86+
}

projects/craftsjs/alert/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Choose the version corresponding to your Angular version:
1313

1414
| Angular | @craftsjs/alert |
1515
| ------- | --------------- |
16+
| 15 | 5.x |
1617
| 13 | 4.x |
1718
| 12 | 3.x |
1819
| 11 | 2.x |

projects/craftsjs/alert/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"name": "@craftsjs/alert",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"author": "craftsjs",
55
"description": "Material alert library for angular",
66
"license": "MIT",
77
"homepage": "https://github.com/addapptables/angular-miscellaneous",
88
"peerDependencies": {
9-
"@angular/common": ">= 13.0.0 < 14.0.0",
10-
"@angular/core": ">= 13.0.0 < 14.0.0",
11-
"@angular/material": ">= 13.0.0 < 14.0.0",
12-
"@angular/cdk": ">= 13.0.0 < 14.0.0",
13-
"@angular/animations": ">= 13.0.0 < 14.0.0",
9+
"@angular/common": ">= 15.0.0 < 16.0.0",
10+
"@angular/core": ">= 15.0.0 < 16.0.0",
11+
"@angular/material": ">= 15.0.0 < 16.0.0",
12+
"@angular/cdk": ">= 15.0.0 < 16.0.0",
13+
"@angular/animations": ">= 15.0.0 < 16.0.0",
1414
"@ngx-translate/core": ">= 14.0.0 < 17.0.0",
15-
"@craftsjs/core": ">=4.0.0 < 5.0.0"
15+
"@craftsjs/core": ">=5.0.0 < 6.0.0"
1616
},
1717
"repository": {
1818
"type": "git",

projects/craftsjs/alert/src/lib/alert.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule, ModuleWithProviders } from '@angular/core';
2-
import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button';
3-
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
2+
import { MatButtonModule } from '@angular/material/button';
3+
import { MatDialogModule } from '@angular/material/dialog';
44
import { TranslateModule } from '@ngx-translate/core';
55
import { CommonModule } from '@angular/common';
66
import { CoreModule } from '@craftsjs/core';

projects/craftsjs/alert/src/lib/components/craftsjs-dialog-alert/craftsjs-dialog-alert.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
AfterViewInit,
1414
TemplateRef
1515
} from '@angular/core';
16-
import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog';
16+
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
1717
import { AlertModel } from '../../models/alert.model';
1818
import { alertComponents } from './components/components';
1919
import { DynamicDirective } from '@craftsjs/core';

projects/craftsjs/alert/src/lib/components/dialog-alert/dialog-alert.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
AfterViewInit,
1414
TemplateRef
1515
} from '@angular/core';
16-
import { MatLegacyDialogRef as MatDialogRef, MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA } from '@angular/material/legacy-dialog';
16+
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
1717
import { AlertModel } from '../../models/alert.model';
1818
import { alertComponents } from './components/components';
1919
import { DynamicDirective } from '@craftsjs/core';

projects/craftsjs/alert/src/lib/craftsjs-alert.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { NgModule, ModuleWithProviders } from '@angular/core';
2-
import { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button';
3-
import { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';
2+
import { MatButtonModule } from '@angular/material/button';
3+
import { MatDialogModule } from '@angular/material/dialog';
44
import { TranslateModule } from '@ngx-translate/core';
55
import { CommonModule } from '@angular/common';
66
import { CoreModule } from '@craftsjs/core';

projects/craftsjs/alert/src/lib/services/alert.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable } from '@angular/core';
2-
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
2+
import { MatDialog } from '@angular/material/dialog';
33
import { AlertModel } from '../models/alert.model';
44
import { AlertEnum } from '../models/alert-enum.model';
55
import { DialogAlertComponent } from '../components/dialog-alert/dialog-alert.component';

projects/craftsjs/card/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Choose the version corresponding to your Angular version:
1313

1414
Angular | @craftsjs/card
1515
----------- | -------------------
16+
15 | 5.x
1617
13 | 4.x
1718
12 | 3.x
1819
11 | 2.x

0 commit comments

Comments
 (0)