diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b946e91..d9f766a 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@v2.3.0 + - uses: borales/actions-yarn@v3.0.0 with: cmd: install @@ -23,7 +23,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v2.3.0 + - uses: borales/actions-yarn@v3.0.0 with: cmd: install @@ -40,7 +40,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v2.3.0 + - uses: borales/actions-yarn@v3.0.0 with: cmd: install @@ -54,7 +54,7 @@ jobs: - name: checkout uses: actions/checkout@master - - uses: borales/actions-yarn@v2.3.0 + - uses: borales/actions-yarn@v3.0.0 with: cmd: install diff --git a/angular.json b/angular.json index ff87555..89027ef 100644 --- a/angular.json +++ b/angular.json @@ -101,8 +101,9 @@ } } }, - "defaultProject": "ngx-highlight-js", "cli": { - "defaultCollection": "@angular-eslint/schematics" + "schematicCollections": [ + "@angular-eslint/schematics" + ] } } diff --git a/lib/package.json b/lib/package.json index c8755e2..fbe07ce 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "ngx-ueditor", - "version": "13.0.0", + "version": "14.0.0", "description": "Angular for Baidu UEditor", "author": "cipchk ", "license": "MIT", @@ -9,7 +9,7 @@ }, "homepage": "https://cipchk.github.io/ngx-ueditor/", "dependencies": { - "@ng-util/lazy": "^13.0.0", - "@ng-util/util": "^13.0.0" + "@ng-util/lazy": "^14.0.0", + "@ng-util/util": "^14.0.0" } } diff --git a/lib/src/ueditor.component.ts b/lib/src/ueditor.component.ts index e98ab1b..99ae3bd 100644 --- a/lib/src/ueditor.component.ts +++ b/lib/src/ueditor.component.ts @@ -17,7 +17,7 @@ import { } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms'; -import { InputNumber } from '@ng-util/util'; +import { InputNumber } from '@ng-util/util/convert'; import { UEditorConfig } from './ueditor.config'; import { NuLazyService } from '@ng-util/lazy'; @@ -66,6 +66,7 @@ export type EventTypes = }, ], changeDetection: ChangeDetectionStrategy.OnPush, + standalone: true, }) export class UEditorComponent implements OnInit, AfterViewInit, OnChanges, OnDestroy, ControlValueAccessor { @Input() diff --git a/lib/src/ueditor.module.ts b/lib/src/ueditor.module.ts index 5fa12bd..8e95eab 100644 --- a/lib/src/ueditor.module.ts +++ b/lib/src/ueditor.module.ts @@ -4,8 +4,7 @@ import { UEditorComponent } from './ueditor.component'; import { UEditorConfig } from './ueditor.config'; @NgModule({ - imports: [CommonModule], - declarations: [UEditorComponent], + imports: [CommonModule, UEditorComponent], exports: [UEditorComponent], }) export class UEditorModule { diff --git a/package.json b/package.json index 5662484..3413daf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-ueditor", - "version": "13.0.0", + "version": "14.0.0", "description": "Angular for Baidu UEditor", "license": "MIT", "author": "cipchk ", @@ -10,51 +10,50 @@ "homepage": "https://cipchk.github.io/ngx-ueditor/", "scripts": { "analyze": "ng b --stats-json --source-map", - "lint": "ng l", + "lint": "ng lint", "test": "ng t --no-progress --browsers=ChromeHeadlessCI --code-coverage --no-watch", "build": "node scripts/build.js", "release:next": "npm run build && cd publish && npm publish --access public --tag next", "release": "npm run build && cd publish && npm publish --access public" }, "dependencies": { - "@angular/animations": "~13.1.1", - "@angular/common": "~13.1.1", - "@angular/compiler": "~13.1.1", - "@angular/core": "~13.1.1", - "@angular/forms": "~13.1.1", - "@angular/platform-browser": "~13.1.1", - "@angular/platform-browser-dynamic": "~13.1.1", - "@angular/router": "~13.1.1", - "rxjs": "~7.4.0", - "tslib": "^2.3.1", + "@angular/animations": "^14.0.0", + "@angular/common": "^14.0.0", + "@angular/compiler": "^14.0.0", + "@angular/core": "^14.0.0", + "@angular/forms": "^14.0.0", + "@angular/platform-browser": "^14.0.0", + "@angular/platform-browser-dynamic": "^14.0.0", + "@angular/router": "^14.0.0", + "rxjs": "~7.5.0", + "tslib": "^2.3.0", "zone.js": "~0.11.4", - "@ng-util/lazy": "^13.0.0", - "@ng-util/util": "^13.0.0" + "@ng-util/lazy": "^14.0.0", + "@ng-util/util": "^14.0.0" }, "devDependencies": { - "@angular-devkit/build-angular": "~13.1.2", - "@angular/cli": "~13.1.2", - "@angular/compiler-cli": "~13.1.0", - "@types/jasmine": "~3.10.0", - "@types/node": "^12.11.1", - "jasmine-core": "~3.10.0", + "@angular-devkit/build-angular": "^14.0.3", + "@angular/cli": "~14.0.3", + "@angular/compiler-cli": "^14.0.0", + "@types/jasmine": "~4.0.0", + "jasmine-core": "~4.1.0", "karma": "~6.3.0", - "karma-chrome-launcher": "~3.1.0", - "karma-coverage": "~2.1.0", - "karma-jasmine": "~4.0.0", + "karma-chrome-launcher": "~3.1.1", + "karma-coverage": "~2.2.0", + "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~1.7.0", - "typescript": "~4.5.2", - "@angular-eslint/builder": "^13.0.1", - "@angular-eslint/eslint-plugin": "^13.0.1", - "@angular-eslint/eslint-plugin-template": "^13.0.1", - "@angular-eslint/schematics": "^13.0.1", - "@angular-eslint/template-parser": "^13.0.1", - "@typescript-eslint/eslint-plugin": "^5.8.1", - "@typescript-eslint/parser": "^5.8.1", + "typescript": "~4.7.4", + "@angular-eslint/builder": "^14.0.0", + "@angular-eslint/eslint-plugin": "^14.0.0", + "@angular-eslint/eslint-plugin-template": "^14.0.0", + "@angular-eslint/schematics": "^14.0.0", + "@angular-eslint/template-parser": "^14.0.0", + "@typescript-eslint/eslint-plugin": "^5.29.0", + "@typescript-eslint/parser": "^5.29.0", "codecov": "^3.8.3", - "eslint": "^8.5.0", - "ng-packagr": "^13.1.2", - "ngx-highlight-js": "^13.0.0", - "ngx-bootstrap": "^8.0.0-RC.5" + "eslint": "^8.18.0", + "ng-packagr": "^14.0.2", + "ngx-highlight-js": "^14.0.0", + "ngx-bootstrap": "^8.0.0" } }