Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/57 #58

Merged
merged 5 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.CN.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v19.0.0
## 破坏性更新
- feat: `angular`升级到`v19`;

---

# v18.0.0
## 破坏性更新
- feat: `angular`升级到`v18`;
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v19.0.0
## Breaking Changes
- feat: Upgrade `angular` to `v19`;

---

# v18.0.0
## Breaking Changes
- feat: Upgrade `angular` to `v18`;
Expand Down
1 change: 1 addition & 0 deletions README.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

---

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

---

Expand Down
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nb-common-demo",
"version": "18.0.0",
"version": "19.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -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",
Expand All @@ -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"
}
}
1 change: 1 addition & 0 deletions projects/nb-common/README.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

<br>

Expand Down
1 change: 1 addition & 0 deletions projects/nb-common/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

<br>

Expand Down
6 changes: 3 additions & 3 deletions projects/nb-common/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<span [nb-r-str]="content"></span>`,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: `<input [nbPlaceholder]="placeholder" />`,
})
Expand Down
2 changes: 1 addition & 1 deletion projects/nb-common/src/lib/pipes/nb-call-fn.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { ComponentFixture, TestBedStatic } from '@angular/core/testing';
// eslint-disable-next-line @angular-eslint/component-selector
selector: 'mock-templateRef',
template: `<ng-template #tplRef></ng-template>`,
// eslint-disable-next-line @angular-eslint/prefer-standalone
standalone: false,
})
export class TemplateRefTestingComponent {
@ViewChild('tplRef', { static: true }) tplRef!: TemplateRef<any>;
Expand Down
2 changes: 2 additions & 0 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/app/call-fn-demo/call-fn-demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
2 changes: 2 additions & 0 deletions src/app/img-demo/img-demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions src/app/r-str-demo/r-str-demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>('1');
Expand Down
2 changes: 2 additions & 0 deletions src/app/tpl-content-demo/tpl-content-demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down