From a7f394dbd13ee5260198e1556b4016684c37649b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Sun, 4 Jun 2023 16:03:46 +0800 Subject: [PATCH] chore: bump angular 15 to 16 (#122) --- .github/workflows/ci.yml | 14 ++++---- lib/package.json | 2 +- lib/src/countdown.component.ts | 4 +-- package.json | 58 +++++++++++++++++----------------- tsconfig.json | 8 ++--- 5 files changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e0d7db0..1f95b0b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v3.0.0 + - uses: borales/actions-yarn@v4 with: cmd: install @@ -23,7 +23,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v3.0.0 + - uses: borales/actions-yarn@v4 with: cmd: install @@ -40,13 +40,13 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v3.0.0 + - uses: borales/actions-yarn@v4 with: cmd: install - - name: run - run: | - yarn run lint + - uses: borales/actions-yarn@v4 + with: + cmd: lint site: runs-on: ubuntu-latest @@ -54,7 +54,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v3.0.0 + - uses: borales/actions-yarn@v4 with: cmd: install diff --git a/lib/package.json b/lib/package.json index 8cac089..36b822c 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "ngx-countdown", - "version": "15.0.0", + "version": "16.0.0", "description": "Simple, easy and performance countdown for angular", "keywords": [ "ngx-countdown", diff --git a/lib/src/countdown.component.ts b/lib/src/countdown.component.ts index 0f386df..b5fa0fb 100644 --- a/lib/src/countdown.component.ts +++ b/lib/src/countdown.component.ts @@ -46,7 +46,7 @@ export class CountdownComponent implements OnInit, OnChanges, OnDestroy { i: CountdownItem = {}; left = 0; - @Input() + @Input({ required: true }) set config(i: CountdownConfig) { if (i.notify != null && !Array.isArray(i.notify) && i.notify > 0) { i.notify = [i.notify]; @@ -56,7 +56,7 @@ export class CountdownComponent implements OnInit, OnChanges, OnDestroy { get config(): CountdownConfig { return this._config; } - @Input() render!: TemplateRef; + @Input() render!: TemplateRef<{ $implicit: CountdownItem }>; @Output() readonly event = new EventEmitter(); constructor( diff --git a/package.json b/package.json index 9150bf1..ce0892d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-countdown", - "version": "15.0.0", + "version": "16.0.0", "description": "Simple, easy and performance countdown for angular", "keywords": [ "ngx-countdown", @@ -30,42 +30,42 @@ "release": "npm run build && cd publish && npm publish --access public" }, "dependencies": { - "@angular/animations": "^15.0.0", - "@angular/common": "^15.0.0", - "@angular/compiler": "^15.0.0", - "@angular/core": "^15.0.0", - "@angular/forms": "^15.0.0", - "@angular/platform-browser": "^15.0.0", - "@angular/platform-browser-dynamic": "^15.0.0", - "@angular/router": "^15.0.0", - "rxjs": "~7.5.0", + "@angular/animations": "^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", + "rxjs": "~7.8.0", "tslib": "^2.3.0", - "zone.js": "~0.12.0", - "bootstrap": "^5.2.3", - "ngx-highlight-js": "^15.0.0", - "date-fns": "^2.29.0" + "zone.js": "~0.13.0", + "bootstrap": "^5.3.0", + "ngx-highlight-js": "^16.0.0", + "date-fns": "^2.30.0" }, "devDependencies": { - "@angular-devkit/build-angular": "^15.0.4", - "@angular/cli": "~15.0.4", - "@angular/compiler-cli": "^15.0.0", + "@angular-devkit/build-angular": "^16.0.3", + "@angular/cli": "~16.0.3", + "@angular/compiler-cli": "^16.0.0", "@types/jasmine": "~4.3.0", - "jasmine-core": "~4.5.0", + "jasmine-core": "~4.6.0", "karma": "~6.4.0", - "karma-chrome-launcher": "~3.1.0", + "karma-chrome-launcher": "~3.2.0", "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.0.0", - "typescript": "~4.8.2", - "@angular-eslint/builder": "^15.1.0", - "@angular-eslint/eslint-plugin": "^15.1.0", - "@angular-eslint/eslint-plugin-template": "^15.1.0", - "@angular-eslint/schematics": "^15.1.0", - "@angular-eslint/template-parser": "^15.1.0", - "@typescript-eslint/eslint-plugin": "^5.47.1", - "@typescript-eslint/parser": "^5.47.1", + "typescript": "~5.0.2", + "@angular-eslint/builder": "^16.0.3", + "@angular-eslint/eslint-plugin": "^16.0.3", + "@angular-eslint/eslint-plugin-template": "^16.0.3", + "@angular-eslint/schematics": "^16.0.3", + "@angular-eslint/template-parser": "^16.0.3", + "@typescript-eslint/eslint-plugin": "^5.59.8", + "@typescript-eslint/parser": "^5.59.8", "codecov": "^3.8.3", - "eslint": "^8.31.0", - "ng-packagr": "^15.0.3" + "eslint": "^8.42.0", + "ng-packagr": "^16.0.1" } } diff --git a/tsconfig.json b/tsconfig.json index dce1d5b..15292bc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,15 +17,15 @@ "moduleResolution": "node", "importHelpers": true, "target": "ES2022", - "module": "es2020", + "module": "ES2022", + "useDefineForClassFields": false, "lib": [ - "es2020", + "ES2022", "dom" ], "paths": { "ngx-countdown": ["lib/src/index"] - }, - "useDefineForClassFields": false + } }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false,