Skip to content

Commit 90e52fd

Browse files
committed
release: 21.0.1
1 parent 692a2e9 commit 90e52fd

7 files changed

Lines changed: 6 additions & 15 deletions

File tree

.yarnrc.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

lib/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-github-button",
3-
"version": "21.0.0",
3+
"version": "21.0.1",
44
"description": "Unofficial GitHub buttons in Angular.",
55
"author": "cipchk <cipchk@qq.com>",
66
"license": "MIT",

lib/src/github-button.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
signal,
1111
} from '@angular/core';
1212
import { GithubButtonService } from './service';
13-
import { takeUntilDestroyed, toObservable } from '@angular/core/rxjs-interop';
13+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
1414

1515
const isSSR = !(typeof document === 'object' && !!document);
1616

@@ -64,9 +64,6 @@ export class GithubButtonComponent {
6464
protected count = computed(() => this._data()?.[`${this.type()}_count`] ?? 0);
6565

6666
constructor() {
67-
toObservable(this.type).pipe(takeUntilDestroyed()).subscribe((res) => {
68-
console.log('type changed:', res);
69-
});
7067
this.srv.notify.pipe(takeUntilDestroyed()).subscribe(res => {
7168
this._data.set(res);
7269
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-github-button",
3-
"version": "21.0.0",
3+
"version": "21.0.1",
44
"description": "Unofficial GitHub buttons in Angular.",
55
"keywords": [
66
"angular",

src/app.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import { HighlightJsDirective } from 'ngx-highlight-js';
3333
</div> `,
3434
imports: [GithubButtonComponent, HighlightJsDirective],
3535
})
36-
export class AppComponent {
36+
export class App {
3737
ns = 'cipchk';
3838
repo = 'ng-github-button';
3939

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { provideHttpClient } from '@angular/common/http';
2-
import { AppComponent } from './app';
2+
import { App } from './app';
33
import { bootstrapApplication } from '@angular/platform-browser';
44
import { provideZonelessChangeDetection } from '@angular/core';
55

6-
bootstrapApplication(AppComponent, {
6+
bootstrapApplication(App, {
77
providers: [provideHttpClient(), provideZonelessChangeDetection()],
88
}).catch((err) => console.error(err));

0 commit comments

Comments
 (0)