diff --git a/CHANGELOG.CN.md b/CHANGELOG.CN.md index 7bf76e5..54cdc4a 100644 --- a/CHANGELOG.CN.md +++ b/CHANGELOG.CN.md @@ -1,3 +1,9 @@ +# v19.0.0 +## 破坏性更新 +- feat: `angular`升级到`v19`; + +--- + # v18.0.0 ## 破坏性更新 - feat: `angular`升级到`v18`; diff --git a/CHANGELOG.md b/CHANGELOG.md index 44bb6cd..6d72d17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v19.0.0 +## Breaking Changes +- feat: Upgrade `angular` to `v19`; + +--- + # v18.0.0 ## Breaking Changes - feat: Upgrade `angular` to `v18`; diff --git a/README.CN.md b/README.CN.md index dfbf1a3..56939aa 100644 --- a/README.CN.md +++ b/README.CN.md @@ -50,6 +50,7 @@ Angular common lib by bigBear713, include some common `component`, `directive`, | ^16.0.0 | ^16.0.0 | | ^17.0.0 | ^17.0.0 | | ^18.0.0 | ^18.0.0 | +| ^19.0.0 | ^19.0.0 | --- diff --git a/README.md b/README.md index 373d92f..fdc2c84 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ Angular common lib by bigBear713, include some common `component`, `directive`, | ^16.0.0 | ^16.0.0 | | ^17.0.0 | ^17.0.0 | | ^18.0.0 | ^18.0.0 | +| ^19.0.0 | ^19.0.0 | --- diff --git a/package.json b/package.json index 5b7dde5..641d535 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nb-common-demo", - "version": "18.0.0", + "version": "19.0.0", "scripts": { "ng": "ng", "start": "ng serve", @@ -23,34 +23,34 @@ }, "private": true, "dependencies": { - "@angular/animations": "^18.0.1", - "@angular/common": "^18.0.1", - "@angular/compiler": "^18.0.1", - "@angular/core": "^18.0.1", - "@angular/forms": "^18.0.1", - "@angular/platform-browser": "^18.0.1", - "@angular/platform-browser-dynamic": "^18.0.1", - "@angular/router": "^18.0.1", + "@angular/animations": "^19.0.5", + "@angular/common": "^19.0.5", + "@angular/compiler": "^19.0.5", + "@angular/core": "^19.0.5", + "@angular/forms": "^19.0.5", + "@angular/platform-browser": "^19.0.5", + "@angular/platform-browser-dynamic": "^19.0.5", + "@angular/router": "^19.0.5", "dayjs": "^1.11.10", "lodash-es": "^4.17.21", "rxjs": "~6.6.0", "tslib": "^2.3.0", - "zone.js": "~0.14.2" + "zone.js": "~0.15.0" }, "devDependencies": { - "@angular-devkit/build-angular": "^18.0.2", - "@angular-eslint/builder": "18.0.1", - "@angular-eslint/eslint-plugin": "18.0.1", - "@angular-eslint/eslint-plugin-template": "18.0.1", - "@angular-eslint/schematics": "18.0.1", - "@angular-eslint/template-parser": "18.0.1", - "@angular/cli": "^18.0.2", - "@angular/compiler-cli": "^18.0.1", + "@angular-devkit/build-angular": "^19.0.6", + "@angular-eslint/builder": "19.0.2", + "@angular-eslint/eslint-plugin": "19.0.2", + "@angular-eslint/eslint-plugin-template": "19.0.2", + "@angular-eslint/schematics": "19.0.2", + "@angular-eslint/template-parser": "19.0.2", + "@angular/cli": "^19.0.6", + "@angular/compiler-cli": "^19.0.5", "@types/jasmine": "~3.8.0", "@types/lodash-es": "^4.17.5", "@types/node": "^12.11.1", - "@typescript-eslint/eslint-plugin": "7.8.0", - "@typescript-eslint/parser": "7.8.0", + "@typescript-eslint/eslint-plugin": "8.18.1", + "@typescript-eslint/parser": "8.18.1", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3", @@ -60,9 +60,9 @@ "karma-coverage": "~2.0.3", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "~1.7.0", - "ng-packagr": "^18.0.0", + "ng-packagr": "^19.0.1", "source-map-explorer": "^2.5.3", "prettier": "^3.2.5", - "typescript": "~5.4.5" + "typescript": "~5.6.3" } } \ No newline at end of file diff --git a/projects/nb-common/README.CN.md b/projects/nb-common/README.CN.md index 2c72ddf..af9760e 100644 --- a/projects/nb-common/README.CN.md +++ b/projects/nb-common/README.CN.md @@ -50,6 +50,7 @@ Angular common lib by bigBear713, include some common `component`, `directive`, | ^16.0.0 | ^16.0.0 | | ^17.0.0 | ^17.0.0 | | ^18.0.0 | ^18.0.0 | +| ^19.0.0 | ^19.0.0 |
diff --git a/projects/nb-common/README.md b/projects/nb-common/README.md index 0e45140..b34d771 100644 --- a/projects/nb-common/README.md +++ b/projects/nb-common/README.md @@ -50,6 +50,7 @@ Angular common lib by bigBear713, include some common `component`, `directive`, | ^16.0.0 | ^16.0.0 | | ^17.0.0 | ^17.0.0 | | ^18.0.0 | ^18.0.0 | +| ^19.0.0 | ^19.0.0 |
diff --git a/projects/nb-common/package.json b/projects/nb-common/package.json index 87818a5..297219f 100644 --- a/projects/nb-common/package.json +++ b/projects/nb-common/package.json @@ -1,6 +1,6 @@ { "name": "@bigbear713/nb-common", - "version": "18.0.0", + "version": "19.0.0", "homepage": "https://github.com/bigBear713/nb-common/blob/main/projects/nb-common/README.md", "description": "An angular(2+) common component, pipe, service library.", "keywords": [ @@ -25,8 +25,8 @@ "url": "https://github.com/bigBear713/nb-common/issues" }, "peerDependencies": { - "@angular/common": "^18.0.0", - "@angular/core": "^18.0.0" + "@angular/common": "^19.0.0", + "@angular/core": "^19.0.0" }, "dependencies": { "lodash-es": "^4.17.21", diff --git a/projects/nb-common/src/lib/components/r-str/test/r-str.component.spec.ts b/projects/nb-common/src/lib/components/r-str/test/r-str.component.spec.ts index 76d46cc..15a6ea9 100644 --- a/projects/nb-common/src/lib/components/r-str/test/r-str.component.spec.ts +++ b/projects/nb-common/src/lib/components/r-str/test/r-str.component.spec.ts @@ -5,6 +5,8 @@ import { NbCommonTestingModule } from '../../../testing/nb-common-testing.module import { NbRStrComponent } from '../r-str.component'; @Component({ + // eslint-disable-next-line @angular-eslint/prefer-standalone + standalone: false, selector: 'nb-r-str-host', template: ``, }) diff --git a/projects/nb-common/src/lib/directives/test/placeholder.directive.spec.ts b/projects/nb-common/src/lib/directives/test/placeholder.directive.spec.ts index 245839b..5577c50 100644 --- a/projects/nb-common/src/lib/directives/test/placeholder.directive.spec.ts +++ b/projects/nb-common/src/lib/directives/test/placeholder.directive.spec.ts @@ -10,6 +10,8 @@ const STR_PLACEHOLDER = 'this is a string placeholder'; const OBSERVABLE_PLACEHOLDER = 'this is a observable placeholder'; @Component({ + // eslint-disable-next-line @angular-eslint/prefer-standalone + standalone: false, selector: 'mock-component', template: ``, }) diff --git a/projects/nb-common/src/lib/pipes/nb-call-fn.pipe.ts b/projects/nb-common/src/lib/pipes/nb-call-fn.pipe.ts index 6f7c5bb..071a91c 100644 --- a/projects/nb-common/src/lib/pipes/nb-call-fn.pipe.ts +++ b/projects/nb-common/src/lib/pipes/nb-call-fn.pipe.ts @@ -2,7 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core'; @Pipe({ standalone: true, name: 'nbCallFn' }) export class NbCallFnPipe implements PipeTransform { - // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types + // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-function-type transform(fn: Function, ...args: any): undefined | unknown { if (!fn) return; return fn(...args); diff --git a/projects/nb-common/src/lib/testing/templateRef/templateRef-testing.module.ts b/projects/nb-common/src/lib/testing/templateRef/templateRef-testing.module.ts index d55b461..a05bb5b 100644 --- a/projects/nb-common/src/lib/testing/templateRef/templateRef-testing.module.ts +++ b/projects/nb-common/src/lib/testing/templateRef/templateRef-testing.module.ts @@ -7,6 +7,8 @@ import { ComponentFixture, TestBedStatic } from '@angular/core/testing'; // eslint-disable-next-line @angular-eslint/component-selector selector: 'mock-templateRef', template: ``, + // eslint-disable-next-line @angular-eslint/prefer-standalone + standalone: false, }) export class TemplateRefTestingComponent { @ViewChild('tplRef', { static: true }) tplRef!: TemplateRef; diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 34fb983..0071590 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -6,6 +6,8 @@ import { GTagService } from './g-tag.service'; templateUrl: './app.component.html', styleUrls: ['./app.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, + // eslint-disable-next-line @angular-eslint/prefer-standalone + standalone: false, }) export class AppComponent { title = 'nb-common-demo'; diff --git a/src/app/call-fn-demo/call-fn-demo.component.ts b/src/app/call-fn-demo/call-fn-demo.component.ts index e19565f..0ddf8da 100644 --- a/src/app/call-fn-demo/call-fn-demo.component.ts +++ b/src/app/call-fn-demo/call-fn-demo.component.ts @@ -5,8 +5,8 @@ import { NbCallFnPipe } from 'nb-common'; import { GTagService } from '../g-tag.service'; @Component({ - selector: 'app-call-fn-demo', standalone: true, + selector: 'app-call-fn-demo', imports: [NbCallFnPipe, FormsModule], templateUrl: './call-fn-demo.component.html', styleUrls: ['./call-fn-demo.component.css'], diff --git a/src/app/img-demo/img-demo.component.ts b/src/app/img-demo/img-demo.component.ts index d3bf8a7..c195f8f 100644 --- a/src/app/img-demo/img-demo.component.ts +++ b/src/app/img-demo/img-demo.component.ts @@ -6,6 +6,8 @@ import { GTagService } from '../g-tag.service'; templateUrl: './img-demo.component.html', styleUrls: ['./img-demo.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, + // eslint-disable-next-line @angular-eslint/prefer-standalone + standalone: false, }) export class ImgDemoComponent implements OnInit { bigImg = 'https://pic2.zhimg.com/v2-77be54b348b0168f3562f51404451aeb_r.jpg'; diff --git a/src/app/placeholder-str-demo/placeholder-str-demo.component.ts b/src/app/placeholder-str-demo/placeholder-str-demo.component.ts index 5d8fc38..444c46d 100644 --- a/src/app/placeholder-str-demo/placeholder-str-demo.component.ts +++ b/src/app/placeholder-str-demo/placeholder-str-demo.component.ts @@ -7,6 +7,8 @@ import { GTagService } from '../g-tag.service'; templateUrl: './placeholder-str-demo.component.html', styleUrls: ['./placeholder-str-demo.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, + // eslint-disable-next-line @angular-eslint/prefer-standalone + standalone: false, }) export class PlaceholderStrDemoComponent implements OnInit { placeholder$ = new BehaviorSubject('这是placeholder'); diff --git a/src/app/r-str-demo/r-str-demo.component.ts b/src/app/r-str-demo/r-str-demo.component.ts index 38e1f17..ace7ff9 100644 --- a/src/app/r-str-demo/r-str-demo.component.ts +++ b/src/app/r-str-demo/r-str-demo.component.ts @@ -7,6 +7,8 @@ import { GTagService } from '../g-tag.service'; templateUrl: './r-str-demo.component.html', styleUrls: ['./r-str-demo.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, + // eslint-disable-next-line @angular-eslint/prefer-standalone + standalone: false, }) export class RStrDemoComponent implements OnInit { observableDemo$ = new BehaviorSubject('1'); diff --git a/src/app/tpl-content-demo/tpl-content-demo.component.ts b/src/app/tpl-content-demo/tpl-content-demo.component.ts index 910087e..1d98603 100644 --- a/src/app/tpl-content-demo/tpl-content-demo.component.ts +++ b/src/app/tpl-content-demo/tpl-content-demo.component.ts @@ -6,6 +6,8 @@ import { GTagService } from '../g-tag.service'; templateUrl: './tpl-content-demo.component.html', styleUrls: ['./tpl-content-demo.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, + // eslint-disable-next-line @angular-eslint/prefer-standalone + standalone: false, }) export class TplContentDemoComponent implements OnInit { constructor(private gtagService: GTagService) {