diff --git a/README-zh_CN.md b/README-zh_CN.md index f34f733b..36f9466b 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -33,12 +33,12 @@ > 需要 [polyfills](https://angular.io/guide/browser-support) -- `iOS 7.0+` +- `iOS 10.3+` - `Android 4.4+` ## Angular 支持 -现在支持 Angular `^14.0.0`. +现在支持 Angular `^15.0.0`. ## 安装 diff --git a/README.md b/README.md index 7b6ede77..52a84969 100644 --- a/README.md +++ b/README.md @@ -33,12 +33,12 @@ This is the **Angular** implementation of **Ant Design Mobile** specification, s > with [polyfills](https://angular.io/guide/browser-support) -- `iOS 7.0+` +- `iOS 10.3+` - `Android 4.4+` ## Angular Support -Now Supports Angular `^14.0.0`. +Now Supports Angular `^15.0.0`. ## Installation diff --git a/components/package.json b/components/package.json index a04a2f90..8c602eba 100644 --- a/components/package.json +++ b/components/package.json @@ -1,6 +1,6 @@ { "name": "ng-zorro-antd-mobile", - "version": "7.0.0", + "version": "8.0.0", "description": "An enterprise-class mobile UI components based on Ant Design and Angular", "schematics": "./schematics/collection.json", "keywords": [ @@ -22,26 +22,26 @@ "url": "https://github.com/NG-ZORRO/ng-zorro-antd-mobile/issues" }, "dependencies": { - "@angular/animations": "^14.2.8", - "@angular/cdk": "^14.2.6", - "@angular/common": "^14.2.8", - "@angular/compiler": "^14.2.8", - "@angular/core": "^14.2.8", - "@angular/forms": "^14.2.8", - "@angular/platform-browser": "^14.2.8", - "@angular/platform-browser-dynamic": "^14.2.8", - "@angular/router": "^14.2.8", - "@ant-design/icons-angular": "^14.1.0" + "@angular/animations": "^15.0.3", + "@angular/cdk": "^15.0.2", + "@angular/common": "^15.0.3", + "@angular/compiler": "^15.0.3", + "@angular/core": "^15.0.3", + "@angular/forms": "^15.0.3", + "@angular/platform-browser": "^15.0.3", + "@angular/platform-browser-dynamic": "^15.0.3", + "@angular/router": "^15.0.3", + "@ant-design/icons-angular": "^15.0.0" }, "devDependencies": { - "@angular/upgrade": "^14.2.8", - "@angular-devkit/build-angular": "^14.2.7", - "@angular/cli": "^14.2.7", - "@angular/compiler-cli": "^14.2.8", - "@angular/platform-server": "^14.2.8", - "tslib": "^2.3.0", + "@angular/upgrade": "^15.0.3", + "@angular-devkit/build-angular": "^15.0.3", + "@angular/cli": "^15.0.3", + "@angular/compiler-cli": "^15.0.3", + "@angular/platform-server": "^15.0.3", + "tslib": "^2.4.1", "tslint": "~6.1.3", - "typescript": "~4.7.4" + "typescript": "~4.8.4" }, "lint-staged": { "{src,docs}/**/*.{scss}": [ @@ -58,7 +58,7 @@ "test" ], "browserslist": [ - "iOS >= 7", - "Android >= 4.4" + "iOS > 10.3", + "Android > 4.4" ] } diff --git a/components/test.ts b/components/test.ts index 82990c6c..1e42f24f 100644 --- a/components/test.ts +++ b/components/test.ts @@ -21,6 +21,6 @@ getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDyn teardown: { destroyAfterEach: false } }); // Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); +// const context = require.context('./', true, /\.spec\.ts$/); +// // And load the modules. +// context.keys().map(context); diff --git a/components/tsconfig.json b/components/tsconfig.json index 6bc184d9..6a60b2e0 100644 --- a/components/tsconfig.json +++ b/components/tsconfig.json @@ -1,12 +1,13 @@ { "extends": "../tsconfig.json", "compilerOptions": { - "target": "es2015", + "target": "es2022", "module": "es2015", "sourceMap": true, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, + "useDefineForClassFields": false, "declaration": true, "outDir": "./dist", "lib": ["es2015", "dom"] diff --git a/components/tsconfig.lib.json b/components/tsconfig.lib.json index 60b2518a..590e7c28 100644 --- a/components/tsconfig.lib.json +++ b/components/tsconfig.lib.json @@ -2,7 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "baseUrl": "./", - "target": "es2020", + "target": "es2022", "module": "es2015", "sourceMap": true, "inlineSources": true, @@ -10,6 +10,7 @@ "importHelpers": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, + "useDefineForClassFields": false, "declaration": true, "outDir": "../release", "lib": ["es2015", "dom"] diff --git a/components/tsconfig.spec.json b/components/tsconfig.spec.json index d3491f2e..c3fdc874 100644 --- a/components/tsconfig.spec.json +++ b/components/tsconfig.spec.json @@ -3,7 +3,7 @@ "compilerOptions": { "outDir": "../out-tsc/spec", "baseUrl": "./", - "target": "es2020", + "target": "es2022", "types": [ "jasmine", "node" diff --git a/docs/introduce.en-US.md b/docs/introduce.en-US.md index eb104d75..fcf4b9b1 100755 --- a/docs/introduce.en-US.md +++ b/docs/introduce.en-US.md @@ -124,7 +124,7 @@ This is the **Angular** implementation of **Ant Design Mobile** specification, s > with [polyfills](https://angular.io/guide/browser-support) -- `iOS 7.0+` +- `iOS 10.3+` - `Android 4.4+` ## Version @@ -133,7 +133,7 @@ This is the **Angular** implementation of **Ant Design Mobile** specification, s ## Angular Support -Now Supports Angular `^14.0.0`. +Now Supports Angular `^15.0.0`. ## Installation diff --git a/docs/introduce.zh-CN.md b/docs/introduce.zh-CN.md index e01dbb9f..e0e704a8 100755 --- a/docs/introduce.zh-CN.md +++ b/docs/introduce.zh-CN.md @@ -124,7 +124,7 @@ title: Ant Design Mobile of Angular
需要 [polyfills](https://angular.io/guide/browser-support) -- `iOS 7.0+` +- `iOS 10.3+` - `Android 4.4+` ## 当前版本 @@ -133,7 +133,7 @@ title: Ant Design Mobile of Angular
=14.15.0" + "node": "14.20.x || 16.13.x || 18.10.x" }, "husky": { "hooks": { @@ -142,7 +139,8 @@ } }, "browserslist": [ - "iOS >= 7", - "Android >= 4.4" - ] + "iOS > 10.3", + "Android > 4.4" + ], + "repository": "https://github.com/aijunhao/ng-zorro-antd-mobile.git" } \ No newline at end of file diff --git a/schematics/utils/html.ts b/schematics/utils/html.ts index 7d6b75fe..91cb2d76 100755 --- a/schematics/utils/html.ts +++ b/schematics/utils/html.ts @@ -10,13 +10,12 @@ import { Project } from './devkit-utils/config'; * @param src the src path of the html file to parse */ export function getHeadTag(host: Tree, src: string) { - const document = parse5.parse(src, - { locationInfo: true }) as parse5.AST.Default.Document; + const document = parse5.parse(src, { sourceCodeLocationInfo: true }) ; let head; - const visit = (nodes: parse5.AST.Default.Node[]) => { + const visit = (nodes) => { nodes.forEach(node => { - const element = node; + const element = node; if (element.tagName === 'head') { head = element; } else { diff --git a/scripts/site/_site/src/app/app.component.ts b/scripts/site/_site/src/app/app.component.ts index 20c86c59..04dae391 100644 --- a/scripts/site/_site/src/app/app.component.ts +++ b/scripts/site/_site/src/app/app.component.ts @@ -22,18 +22,18 @@ export class AppComponent implements OnInit, AfterViewInit { docsearch = null; kitchenUrl = window.location.origin + '/#/kitchen-sink?lang=zh-CN'; language = 'zh'; - versionList = ['0.12.x', '1.0.6', '2.0.7', '3.0.3', '4.0.0', '5.0.1', '6.0.0', '7.0.0']; + versionList = ['0.12.x', '1.0.6', '2.0.7', '3.0.3', '4.0.0', '5.0.3', '6.0.2', '7.0.1']; versionMap = { '0.12.x': '0.12.5', '1.0.6': '2001.0.6', '2.0.7': '2012.0.7', '3.0.3': '2013.0.3', '4.0.0': '2014.0.0', - '5.0.1': '2015.0.3', - '6.0.0': '2016.0.0', - '7.0.0': '2016.0.0' + '5.0.3': '2015.0.3', + '6.0.2': '2016.0.2', + '7.0.1': '2017.0.1' }; - currentVersion = '7.0.0'; + currentVersion = '7.0.1'; isHomeURL = true; isKitchenURL = false; demoTitle = ''; diff --git a/scripts/site/_site/src/app/share/nz-codebox/nz-codebox.component.ts b/scripts/site/_site/src/app/share/nz-codebox/nz-codebox.component.ts index 9b24803f..4a36eadf 100644 --- a/scripts/site/_site/src/app/share/nz-codebox/nz-codebox.component.ts +++ b/scripts/site/_site/src/app/share/nz-codebox/nz-codebox.component.ts @@ -340,19 +340,19 @@ export class AppModule { } description: 'Created with <3 by the StackBlitz SDK!', template: 'angular-cli', dependencies: { - '@angular/animations': '^14.2.8', - '@angular/cdk': '^14.2.6', - '@angular/common': '^14.2.8', - '@angular/compiler': '^14.2.8', - '@angular/core': '^14.2.8', - '@angular/forms': '^14.2.8', - '@angular/platform-browser': '^14.2.8', - '@angular/platform-browser-dynamic': '^14.2.8', - '@angular/router': '^14.2.8', - '@ant-design/icons-angular': '^14.1.0', - rxjs: '~7.5.7', - 'zone.js': '~0.11.4', - 'ng-zorro-antd-mobile': '7.0.0' + '@angular/animations': '^15.0.3', + '@angular/cdk': '^15.0.2', + '@angular/common': '^15.0.3', + '@angular/compiler': '^15.0.3', + '@angular/core': '^15.0.3', + '@angular/forms': '^15.0.3', + '@angular/platform-browser': '^15.0.3', + '@angular/platform-browser-dynamic': '^15.0.3', + '@angular/router': '^15.0.3', + '@ant-design/icons-angular': '^15.0.0', + rxjs: '~7.6.0', + 'zone.js': '~0.12.0', + 'ng-zorro-antd-mobile': '8.0.0' }, tags: ['stackblitz', 'sdk'] }); diff --git a/tsconfig.json b/tsconfig.json index 41cf22f8..cb305f24 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,8 @@ "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, - "target": "es2020", + "useDefineForClassFields": false, + "target": "es2022", "typeRoots": [ "node_modules/@types" ],