diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index f82a9d5c..873e9fae 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: [16.x] + node-version: [18.x] task: [test-headless, pre-release] steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index 67fbe127..6a8e44bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +# [10.0.0](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/compare/9.0.0...10.0.0) (2024-01-04) + + +### Features + +* **all:** support Angular 17 ([#886](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/issues/886)) ([31e8ca5](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/commit/31e8ca5869140768b6a10c8a4e8e362c99b62c78)) + + + # [9.0.0](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/compare/8.0.0...9.0.0) (2023-06-20) diff --git a/README-zh_CN.md b/README-zh_CN.md index 048c966b..54c8d6aa 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -38,7 +38,7 @@ ## Angular 支持 -现在支持 Angular `^16.0.0`. +现在支持 Angular `^17.0.0`. ## 安装 diff --git a/README.md b/README.md index 82551021..3fafd844 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ This is the **Angular** implementation of **Ant Design Mobile** specification, s ## Angular Support -Now Supports Angular `^16.0.0`. +Now Supports Angular `^17.0.0`. ## Installation diff --git a/components/package.json b/components/package.json index 022f4f1c..47a97798 100644 --- a/components/package.json +++ b/components/package.json @@ -1,6 +1,6 @@ { "name": "ng-zorro-antd-mobile", - "version": "9.0.0", + "version": "10.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": "^16.0.0", - "@angular/cdk": "^16.0.0", - "@angular/common": "^16.0.0", - "@angular/compiler": "^16.0.0", - "@angular/core": "^16.0.0", - "@angular/forms": "^16.0.0", - "@angular/platform-browser": "^16.0.0", - "@angular/platform-browser-dynamic": "^16.0.0", - "@angular/router": "^16.0.0", - "@ant-design/icons-angular": "^16.0.0" + "@angular/animations": "^17.0.0", + "@angular/cdk": "^17.0.0", + "@angular/common": "^17.0.0", + "@angular/compiler": "^17.0.0", + "@angular/core": "^17.0.0", + "@angular/forms": "^17.0.0", + "@angular/platform-browser": "^17.0.0", + "@angular/platform-browser-dynamic": "^17.0.0", + "@angular/router": "^17.0.0", + "@ant-design/icons-angular": "^17.0.0" }, "devDependencies": { - "@angular/upgrade": "^16.0.0", - "@angular-devkit/build-angular": "^16.0.0", - "@angular/cli": "^16.0.0", - "@angular/compiler-cli": "^16.0.0", - "@angular/platform-server": "^16.0.0", + "@angular/upgrade": "^17.0.0", + "@angular-devkit/build-angular": "^17.0.0", + "@angular/cli": "^17.0.0", + "@angular/compiler-cli": "^17.0.0", + "@angular/platform-server": "^17.0.0", "tslib": "^2.4.1", "tslint": "~6.1.3", - "typescript": "~5.0.4" + "typescript": "~5.2.4" }, "lint-staged": { "{src,docs}/**/*.{scss}": [ diff --git a/docs/changelog.en-US.md b/docs/changelog.en-US.md index 2600524f..ec7e80f2 100755 --- a/docs/changelog.en-US.md +++ b/docs/changelog.en-US.md @@ -13,6 +13,13 @@ timeline: true - Monthly release: minor version at the end of every month for new features. - Major version release is not included in this schedule for breadking change and new features. +## 10.0.0(2024-01-04) + + +### Features + +* **all:** support Angular 17 ([#886](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/issues/886)) ([31e8ca5](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/commit/31e8ca5869140768b6a10c8a4e8e362c99b62c78)) + ## 9.0.0(2023-06-20) ### Bug Fixes diff --git a/docs/changelog.zh-CN.md b/docs/changelog.zh-CN.md index dd6ddd87..45fd780a 100755 --- a/docs/changelog.zh-CN.md +++ b/docs/changelog.zh-CN.md @@ -13,6 +13,14 @@ timeline: true - 次版本号:每月发布一个带有新特性的向下兼容的版本。 - 主版本号:含有破坏性更新和新特性,不在发布周期内。 +## 10.0.0(2024-01-04) + + +### Features + +* **all:** 升级支持 Angular 17 ([#886](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/issues/886)) ([31e8ca5](https://github.com/NG-ZORRO/ng-zorro-antd-mobile/commit/31e8ca5869140768b6a10c8a4e8e362c99b62c78)) + + ## 9.0.0(2023-06-20) ### Bug Fixes diff --git a/docs/introduce.en-US.md b/docs/introduce.en-US.md index 152d8255..128a8908 100755 --- a/docs/introduce.en-US.md +++ b/docs/introduce.en-US.md @@ -133,7 +133,7 @@ This is the **Angular** implementation of **Ant Design Mobile** specification, s ## Angular Support -Now Supports Angular `^16.0.0`. +Now Supports Angular `^17.0.0`. ## Installation diff --git a/docs/introduce.zh-CN.md b/docs/introduce.zh-CN.md index f4420587..d2798411 100755 --- a/docs/introduce.zh-CN.md +++ b/docs/introduce.zh-CN.md @@ -133,7 +133,7 @@ title: Ant Design Mobile of Angular
{ const baseRunner = new SchematicTestRunner('schematics', collectionPath); return await baseRunner - .runSchematicAsync('application', { + .runSchematic('application', { directory: '', name: 'app', prefix: 'app', @@ -22,6 +22,5 @@ export async function createTestApp(): Promise { style: 'scss', skipTests: false, minimal: false - }) - .toPromise(); + }); } diff --git a/scripts/site/_site/src/app/app.component.ts b/scripts/site/_site/src/app/app.component.ts index 908ce7f3..7e7435de 100644 --- a/scripts/site/_site/src/app/app.component.ts +++ b/scripts/site/_site/src/app/app.component.ts @@ -22,7 +22,7 @@ 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.3', '6.0.2', '7.0.1', '8.0.0', '9.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', '8.0.0', '9.0.0', '10.0.0']; versionMap = { '0.12.x': '0.12.5', '1.0.6': '2001.0.6', @@ -33,9 +33,10 @@ export class AppComponent implements OnInit, AfterViewInit { '6.0.2': '2016.0.2', '7.0.1': '2017.0.1', '8.0.0': '2018.0.11', - '9.0.0': '2019.0.0' + '9.0.0': '2019.0.0', + '10.0.0': '2020.0.0' }; - currentVersion = '9.0.0'; + currentVersion = '10.0.0'; 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 a0f136a2..49e1d1ee 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 @@ -352,7 +352,7 @@ export class AppModule { } '@ant-design/icons-angular': '^16.0.0', rxjs: '~7.6.0', 'zone.js': '~0.13.0', - 'ng-zorro-antd-mobile': '9.0.0' + 'ng-zorro-antd-mobile': '10.0.0' }, tags: ['stackblitz', 'sdk'] }); diff --git a/scripts/site/_site/src/test.ts b/scripts/site/_site/src/test.ts index cd612eeb..bcd7831d 100644 --- a/scripts/site/_site/src/test.ts +++ b/scripts/site/_site/src/test.ts @@ -1,11 +1,6 @@ // This file is required by karma.conf.js and loads recursively all the .spec and framework files -import 'zone.js/dist/long-stack-trace-zone'; -import 'zone.js/dist/proxy.js'; -import 'zone.js/dist/sync-test'; -import 'zone.js/dist/jasmine-patch'; -import 'zone.js/dist/async-test'; -import 'zone.js/dist/fake-async-test'; +import 'zone.js'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, diff --git a/scripts/site/utils/generate-demo.js b/scripts/site/utils/generate-demo.js index aaa40c30..fe493bab 100644 --- a/scripts/site/utils/generate-demo.js +++ b/scripts/site/utils/generate-demo.js @@ -5,8 +5,8 @@ const camelCase = require('./camelcase'); const PrismAngular = require('./angular-language-marked'); module.exports = function (showCaseComponentPath, result) { const demoTemplate = generateTemplate(result); - fs.writeFileSync(path.join(showCaseComponentPath, `zh.html`), demoTemplate.zh); - fs.writeFileSync(path.join(showCaseComponentPath, `en.html`), demoTemplate.en); + fs.writeFileSync(path.join(showCaseComponentPath, `zh.html`), demoTemplate.zh.replaceAll('@', '@')); + fs.writeFileSync(path.join(showCaseComponentPath, `en.html`), demoTemplate.en.replaceAll('@', '@')); const demoComponent = generateDemoComponent(result); fs.writeFileSync(path.join(showCaseComponentPath, `zh.component.ts`), demoComponent.zh); fs.writeFileSync(path.join(showCaseComponentPath, `en.component.ts`), demoComponent.en); diff --git a/scripts/site/utils/generate-docs.js b/scripts/site/utils/generate-docs.js index 8ecbf021..1fb166e8 100644 --- a/scripts/site/utils/generate-docs.js +++ b/scripts/site/utils/generate-docs.js @@ -80,14 +80,14 @@ function generateTemplate(docsPath, name, zh, en) { generateTitle(zh.meta.title, '', zh.path), angularNonBindAble(zh.content, name), generateStyle(zh.content) - ) + ).replaceAll('@', '@') ); fs.writeFileSync(path.join(docsPath, `${name}-en.html`), wrapperDocs( generateToc(en.meta, en.raw), generateTitle(en.meta.title, '', en.path), angularNonBindAble(en.content, name), generateStyle(en.content) - ), + ).replaceAll('@', '@'), ); }