Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad8ce3f

Browse files
authored
build: optimizing angular 15 upgrade (#223)
1 parent 33095ae commit ad8ce3f

File tree

5 files changed

+41
-33
lines changed

5 files changed

+41
-33
lines changed

.changeset/soft-chefs-lie.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"slate-angular": major
3+
---
4+
5+
optimizing angular 15 upgrade

package.json

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -45,53 +45,54 @@
4545
"@angular/platform-browser": "~15.1.4",
4646
"@angular/platform-browser-dynamic": "~15.1.4",
4747
"@angular/router": "^15.1.4",
48+
"core-js": "3.28.0",
4849
"direction": "^1.0.3",
4950
"is-hotkey": "^0.1.6",
5051
"rxjs": "~6.6.0",
5152
"slate": "0.72.8",
5253
"slate-history": "0.66.0",
53-
"tslib": "^2.4.0",
54-
"zone.js": "~0.11.4"
54+
"tslib": "^2.5.0",
55+
"zone.js": "~0.12.0"
5556
},
5657
"devDependencies": {
5758
"@angular-devkit/build-angular": "^15.1.5",
5859
"@angular-devkit/core": "^15.1.5",
59-
"@angular-eslint/builder": "14.0.2",
60-
"@angular-eslint/eslint-plugin": "14.0.2",
61-
"@angular-eslint/eslint-plugin-template": "14.0.2",
62-
"@angular-eslint/schematics": "14.0.2",
63-
"@angular-eslint/template-parser": "14.0.2",
60+
"@angular-eslint/builder": "15.2.1",
61+
"@angular-eslint/eslint-plugin": "15.2.1",
62+
"@angular-eslint/eslint-plugin-template": "15.2.1",
63+
"@angular-eslint/schematics": "15.2.1",
64+
"@angular-eslint/template-parser": "15.2.1",
6465
"@angular/cli": "^15.1.5",
6566
"@angular/compiler-cli": "^15.1.4",
6667
"@angular/language-service": "^15.1.4",
67-
"@commitlint/cli": "^11.0.0",
68-
"@commitlint/config-conventional": "^11.0.0",
68+
"@commitlint/cli": "^17.4.3",
69+
"@commitlint/config-conventional": "^17.4.3",
6970
"@types/codemirror": "0.0.81",
70-
"@types/jasmine": "~3.6.0",
71-
"@types/jasminewd2": "~2.0.3",
72-
"@types/node": "^12.11.1",
73-
"@typescript-eslint/eslint-plugin": "4.28.2",
74-
"@typescript-eslint/parser": "4.28.2",
75-
"coveralls": "^3.0.6",
71+
"@types/jasmine": "~4.3.1",
72+
"@types/jasminewd2": "~2.0.10",
73+
"@types/node": "^18.13.0",
74+
"@typescript-eslint/eslint-plugin": "5.52.0",
75+
"@typescript-eslint/parser": "5.52.0",
76+
"coveralls": "^3.1.1",
7677
"cpx": "^1.5.0",
77-
"eslint": "^7.26.0",
78+
"eslint": "^8.34.0",
7879
"faker": "^4.1.0",
79-
"husky": "^4.3.0",
80-
"jasmine": "~4.0.0",
81-
"jasmine-core": "~4.0.0",
82-
"karma": "^6.3.4",
83-
"karma-chrome-launcher": "~3.1.0",
80+
"husky": "^8.0.3",
81+
"jasmine": "~4.5.0",
82+
"jasmine-core": "~4.5.0",
83+
"karma": "^6.4.1",
84+
"karma-chrome-launcher": "~3.1.1",
8485
"karma-coverage": "~2.2.0",
85-
"karma-jasmine": "~4.0.0",
86-
"karma-jasmine-html-reporter": "~1.7.0",
87-
"lint-staged": "^10.0.8",
86+
"karma-jasmine": "~5.1.0",
87+
"karma-jasmine-html-reporter": "~2.0.0",
88+
"lint-staged": "^13.1.2",
8889
"ng-packagr": "^15.1.1",
89-
"prettier": "^1.19.1",
90-
"standard-version": "^7.0.1",
91-
"ts-node": "~8.3.0",
90+
"prettier": "^2.8.4",
91+
"standard-version": "^9.5.0",
92+
"ts-node": "~10.9.1",
9293
"typescript": "~4.9.5",
9394
"is-url": "^1.2.2",
94-
"@changesets/changelog-github": "^0.3.0",
95-
"@changesets/cli": "^2.19.0"
95+
"@changesets/changelog-github": "^0.4.8",
96+
"@changesets/cli": "^2.26.0"
9697
}
9798
}

packages/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
"license": "MIT",
88
"peerDependencies": {
99
"slate": ">= 0.63.0",
10-
"tslib": "^2.0.0",
1110
"slate-history": "^0.66.0",
1211
"debug": "^4.1.1",
1312
"direction": "^1.0.3",
1413
"is-hotkey": "^0.1.6"
1514
},
15+
"dependencies": {
16+
"tslib": "^2.5.0"
17+
},
1618
"exports": {
1719
".": {
1820
"sass": "./styles/index.scss"

packages/src/components/editable/editable.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
4343
import { SlateChildrenContext, SlateViewContext } from '../../view/context';
4444
import { ViewType } from '../../types/view';
4545
import { HistoryEditor } from 'slate-history';
46-
import { isDecoratorRangeListEqual } from '../../utils';
47-
import { check, normalize } from '../../utils/global-normalize';
46+
import { isDecoratorRangeListEqual, check, normalize } from '../../utils';
4847
import { SlatePlaceholder } from '../../types/feature';
4948

5049
// not correctly clipboardData on beforeinput

packages/src/view/container-item.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ComponentRef, Directive, EmbeddedViewRef, Input, TemplateRef, ViewContainerRef } from "@angular/core";
2+
import { AngularEditor } from "../plugins/angular-editor";
23
import { SlateBlockCardComponent } from "../components/block-card/block-card.component";
3-
import { AngularEditor } from "../public-api";
4+
45
import { ViewType } from "../types/view";
56
import { isComponentType, isDOMElement, isTemplateRef } from "../utils";
67
import { BaseComponent, BaseEmbeddedView } from "./base";

0 commit comments

Comments
 (0)