Skip to content

Commit 9ffa4e6

Browse files
chore(release): release 12.0.0-beta.1
1 parent cc77ca4 commit 9ffa4e6

21 files changed

+86
-61
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To see more in [devui.design](https://devui.design/home).
2323

2424
## Angular Support
2525

26-
Now supports Angular <font color=red>`^11.0.0`</font>
26+
Now supports Angular <font color=red>`^12.0.0-beta.1`</font>
2727

2828
## Getting Started
2929

README_zh_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ DevUI Design设计系统包含了DevUI规则、设计语言和最佳实践的资
2323

2424
## Angular版本
2525

26-
当前支持的angular版本<font color=red>`^11.0.0`</font>
26+
当前支持的angular版本<font color=red>`^12.0.0-beta.1`</font>
2727

2828
## 快速开始
2929

devui/form/services/d-validate-sync.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { Injectable } from '@angular/core';
22
import { AbstractControl } from '@angular/forms';
33
import { Subscription } from 'rxjs';
44

5-
const resolvedPromise = (() => Promise.resolve(null))();
5+
function resolvedPromiseFunc() { return Promise.resolve(null); }
6+
const resolvedPromise = resolvedPromiseFunc();
67
@Injectable({ providedIn: 'root' })
78
export class DValidateSyncService {
89

devui/mention/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ const properties = [
4040

4141
const isBrowser = typeof window !== 'undefined';
4242
const isFirefox = isBrowser && window['mozInnerScreenX'] != null;
43-
const _parseInt = value => {
43+
function _parseInt(value) {
4444
return parseInt(value, 10);
45-
};
45+
}
4646

4747
export function getCaretCoordinates(element, position, options?) {
4848
if (!isBrowser) {

devui/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-devui",
3-
"version": "11.3.0",
3+
"version": "12.0.0-beta.1",
44
"license": "MIT",
55
"description": "DevUI components based on Angular",
66
"keywords": [
@@ -17,7 +17,7 @@
1717
"url": "https://github.com/DevCloudFE/ng-devui/issues"
1818
},
1919
"dependencies": {
20-
"@angular/cdk": "^11.0.0",
20+
"@angular/cdk": "^12.0.0",
2121
"date-fns": "^1.30.1",
2222
"lodash-es": "^4.17.11",
2323
"@popperjs/core": "^2.5.4",
@@ -26,9 +26,9 @@
2626
"tslib": "^2.0.0"
2727
},
2828
"peerDependencies": {
29-
"@angular/animations": "^11.0.0",
30-
"@angular/common": "^11.0.0",
31-
"@angular/core": "^11.0.0",
32-
"@angular/forms": "^11.0.0"
29+
"@angular/animations": "^12.0.0",
30+
"@angular/common": "^12.0.0",
31+
"@angular/core": "^12.0.0",
32+
"@angular/forms": "^12.0.0"
3333
}
3434
}

devui/polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import 'classlist.js'; // Run `npm install --save classlist.js`.
7272
/***************************************************************************************************
7373
* Zone JS is required by default for Angular itself.
7474
*/
75-
import 'zone.js/dist/zone'; // Included with Angular CLI.
75+
import 'zone.js'; // Included with Angular CLI.
7676

7777
/***************************************************************************************************
7878
* APPLICATION IMPORTS

devui/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22
/* tslint:disable:ordered-imports*/
3-
import 'zone.js/dist/zone';
3+
import 'zone.js';
44
import 'zone.js/dist/long-stack-trace-zone';
55
import 'zone.js/dist/proxy';
66
import 'zone.js/dist/sync-test';
77
import 'zone.js/dist/jasmine-patch';
88
import 'zone.js/dist/async-test';
99
import 'zone.js/dist/fake-async-test';
1010

11-
// import 'zone.js/dist/zone-testing';
11+
// import 'zone.js/testing';
1212
import { getTestBed } from '@angular/core/testing';
1313
import {
1414
BrowserDynamicTestingModule,

devui/tree/demo/draggable/draggable.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class DraggableComponent implements OnInit {
7070
return new Promise((resovle) => {
7171
console.log('dragNodeId: ' + dragNodeId);
7272
console.log('dropNodeId: ' + dropNodeId);
73-
resovle();
73+
resovle(undefined);
7474
});
7575
}
7676

devui/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { Version } from '@angular/core';
22

3-
export const VERSION = new Version('11.3.0');
3+
export const VERSION = new Version('12.0.0-beta.1');

package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@
3333
"build:devui:ivy": "node --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build devui-lib"
3434
},
3535
"dependencies": {
36-
"@angular/animations": "~11.2.7",
37-
"@angular/cdk": "^11.2.6",
38-
"@angular/common": "~11.2.7",
39-
"@angular/compiler": "~11.2.7",
40-
"@angular/core": "~11.2.7",
41-
"@angular/forms": "~11.2.7",
42-
"@angular/platform-browser": "~11.2.7",
43-
"@angular/platform-browser-dynamic": "~11.2.7",
44-
"@angular/router": "~11.2.7",
36+
"@angular/animations": "~12.0.3",
37+
"@angular/cdk": "^12.0.2",
38+
"@angular/common": "~12.0.3",
39+
"@angular/compiler": "~12.0.3",
40+
"@angular/core": "~12.0.3",
41+
"@angular/forms": "~12.0.3",
42+
"@angular/platform-browser": "~12.0.3",
43+
"@angular/platform-browser-dynamic": "~12.0.3",
44+
"@angular/router": "~12.0.3",
4545
"@devui-design/icons": "^1.2.0",
4646
"@ngx-translate/core": "^13.0.0",
4747
"@ngx-translate/http-loader": "^6.0.0",
@@ -59,14 +59,14 @@
5959
"marked": "^2.0.0",
6060
"@popperjs/core": "^2.5.4",
6161
"web-animations-js": "^2.3.2",
62-
"zone.js": "~0.10.2"
62+
"zone.js": "~0.11.4"
6363
},
6464
"devDependencies": {
65-
"@angular-builders/custom-webpack": "^11.0.0",
66-
"@angular-devkit/build-angular": "~0.1102.6",
67-
"@angular/cli": "^11.2.6",
68-
"@angular/compiler-cli": "~11.2.7",
69-
"@angular/language-service": "^11.2.7",
65+
"@angular-builders/custom-webpack": "^12.0.0",
66+
"@angular-devkit/build-angular": "~12.0.3",
67+
"@angular/cli": "^12.0.3",
68+
"@angular/compiler-cli": "~12.0.3",
69+
"@angular/language-service": "^12.0.3",
7070
"@commitlint/cli": "^11.0.0",
7171
"@commitlint/config-conventional": "^11.0.0",
7272
"@types/jasmine": "~3.6.0",
@@ -87,7 +87,7 @@
8787
"karma-junit-reporter": "^2.0.1",
8888
"lint-staged": "^9.2.3",
8989
"markdown-loader": "^5.1.0",
90-
"ng-packagr": "11.2.4",
90+
"ng-packagr": "^12.0.0",
9191
"ngx-build-plus": "^8.1.5",
9292
"patch-package": "^6.2.2",
9393
"postcss": "^8.2.4",
@@ -102,7 +102,7 @@
102102
"stylelint-scss": "^3.17.0",
103103
"ts-node": "~7.0.0",
104104
"tslint": "~6.1.0",
105-
"typescript": "~4.0.7"
105+
"typescript": "~4.2.4"
106106
},
107107
"lint-staged": {
108108
"devui/**/*.ts": [

0 commit comments

Comments
 (0)