Skip to content

Commit 3857879

Browse files
committed
chore(update): release 5.1.0 🚀
1 parent 004da06 commit 3857879

File tree

3 files changed

+29
-14
lines changed

3 files changed

+29
-14
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-scrolltop",
3-
"version": "5.0.2",
3+
"version": "5.1.0",
44
"description": "Lightweight, Material Design inspired button for scroll-to-top of the page. No dependencies. Pure Angular!",
55
"author": "Lukas Bartak <[email protected]> (https://github.com/bartholomej)",
66
"scripts": {
@@ -118,4 +118,4 @@
118118
"publishConfig": {
119119
"registry": "https://registry.npmjs.org"
120120
}
121-
}
121+
}

projects/ngx-scrolltop/README.md

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,9 @@ Or play with it live on [stackblitz.com/edit/ngx-scrolltop](https://stackblitz.c
4444
> [See our Angular compatibility instructions…](#compatibility)
4545
4646
```bash
47-
ng add ngx-scrolltop # for Angular 12+ only! See our compatibility table
47+
ng add ngx-scrolltop # for latest Angular only! See our compatibility table
4848
```
4949

50-
<!--
51-
```bash
52-
npm install ngx-translate-cut # For Angular 13+. See compatibility table.
53-
```
54-
55-
Choose the version corresponding to your Angular version: -->
56-
5750
**Everything's done!** _(module imported and all settings automatically set in your project.)_
5851

5952
_Now just see some [options and examples](#options)._
@@ -63,7 +56,7 @@ _Now just see some [options and examples](#options)._
6356
Via **yarn** or **npm**
6457

6558
```bash
66-
npm install ngx-scrolltop --save # for Angular 12+ only! See our compatibility table
59+
npm install ngx-scrolltop --save # for lastest Angular only! See our compatibility table
6760

6861
# npm install ngx-scrolltop@2 --save # for Angular 5 – 11
6962
```
@@ -95,7 +88,7 @@ If you still need to use it with an older version of Angular, then use version 2
9588
| Angular version | ngx-scrolltop | Install |
9689
| --------------- | ------------- | ----------------------------- |
9790
| ng15 | v5.x.x | `ng add ngx-scrolltop@latest` |
98-
| ng14 | v5.x.x | `ng add ngx-scrolltop@latest` |
91+
| ng14 | v4.x.x | `ng add ngx-scrolltop@4` |
9992
| ng13 | v4.x.x | `ng add ngx-scrolltop@4` |
10093
| ng12 | v4.x.x | `ng add ngx-scrolltop@4` |
10194
| ng5 – ng11 | v2.x.x | `ng add ngx-scrolltop@2` |
@@ -242,13 +235,35 @@ Easy! Use compatibility version of this library `npm install ngx-scrolltop@2 --s
242235

243236
[See our Angular compatibility instructions…](#compatibility)
244237

238+
#### Error
239+
240+
If you are using Angular 14 with latest ngx-scrolltop library, you will see this error on build or start:
241+
242+
```bash
243+
Error: node_modules/ngx-scrolltop/lib/ngx-scrolltop.component.d.ts:21:18 - error TS2707: Generic type 'ɵɵComponentDeclaration' requires between 7 and 8 type arguments.
244+
245+
21 static ɵcmp: i0.ɵɵComponentDeclaration<NgxScrollTopComponent, "ngx-scrolltop", never, { "backgroundColor": "backgroundColor"; "symbolColor": "symbolColor"; "size": "size"; "symbol": "symbol"; "position": "position"; "theme": "theme"; "mode": "mode"; }, {}, never, ["*"], false, never>;
246+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247+
248+
249+
Error: node_modules/ngx-scrolltop/lib/ngx-scrolltop.directive.d.ts:17:18 - error TS2707: Generic type 'ɵɵDirectiveDeclaration' requires between 6 and 8 type arguments.
250+
251+
17 static ɵdir: i0.ɵɵDirectiveDeclaration<NgxScrollTopDirective, "[ngxScrollTop]", never, { "mode": "ngxScrollTopMode"; }, {}, never, never, false, never>;
252+
```
253+
254+
#### Solution
255+
256+
Easy! Use compatibility version of this library `npm install ngx-scrolltop@4 --save`
257+
258+
[See our Angular compatibility instructions…](#compatibility)
259+
245260
## Donation
246261

247262
If this project have helped you save time please consider [making a donation](https://github.com/sponsors/bartholomej) for some 🍺 or 🍵 ;)
248263

249264
## License
250265

251-
Copyright &copy; 2022 [Lukas Bartak](http://bartweb.cz)
266+
Copyright &copy; 2023 [Lukas Bartak](http://bartweb.cz)
252267

253268
Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)
254269

projects/ngx-scrolltop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngx-scrolltop",
3-
"version": "5.0.2",
3+
"version": "5.1.0",
44
"description": "Lightweight, Material Design inspired button for scroll-to-top of the page. No dependencies. Pure Angular!",
55
"author": "Lukas Bartak <[email protected]> (https://github.com/bartholomej)",
66
"peerDependencies": {

0 commit comments

Comments
 (0)