From 3857879c0410c6d9e05da39f961fbfac5703cd4f Mon Sep 17 00:00:00 2001 From: BART! Date: Tue, 28 Feb 2023 10:52:42 +0100 Subject: [PATCH] =?UTF-8?q?chore(update):=20release=205.1.0=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- projects/ngx-scrolltop/README.md | 37 ++++++++++++++++++++--------- projects/ngx-scrolltop/package.json | 2 +- 3 files changed, 29 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 8c147e9..d5cb1a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-scrolltop", - "version": "5.0.2", + "version": "5.1.0", "description": "Lightweight, Material Design inspired button for scroll-to-top of the page. No dependencies. Pure Angular!", "author": "Lukas Bartak (https://github.com/bartholomej)", "scripts": { @@ -118,4 +118,4 @@ "publishConfig": { "registry": "https://registry.npmjs.org" } -} \ No newline at end of file +} diff --git a/projects/ngx-scrolltop/README.md b/projects/ngx-scrolltop/README.md index b64768d..8f44262 100644 --- a/projects/ngx-scrolltop/README.md +++ b/projects/ngx-scrolltop/README.md @@ -44,16 +44,9 @@ Or play with it live on [stackblitz.com/edit/ngx-scrolltop](https://stackblitz.c > [See our Angular compatibility instructions…](#compatibility) ```bash -ng add ngx-scrolltop # for Angular 12+ only! See our compatibility table +ng add ngx-scrolltop # for latest Angular only! See our compatibility table ``` - - **Everything's done!** _(module imported and all settings automatically set in your project.)_ _Now just see some [options and examples](#options)._ @@ -63,7 +56,7 @@ _Now just see some [options and examples](#options)._ Via **yarn** or **npm** ```bash -npm install ngx-scrolltop --save # for Angular 12+ only! See our compatibility table +npm install ngx-scrolltop --save # for lastest Angular only! See our compatibility table # npm install ngx-scrolltop@2 --save # for Angular 5 – 11 ``` @@ -95,7 +88,7 @@ If you still need to use it with an older version of Angular, then use version 2 | Angular version | ngx-scrolltop | Install | | --------------- | ------------- | ----------------------------- | | ng15 | v5.x.x | `ng add ngx-scrolltop@latest` | -| ng14 | v5.x.x | `ng add ngx-scrolltop@latest` | +| ng14 | v4.x.x | `ng add ngx-scrolltop@4` | | ng13 | v4.x.x | `ng add ngx-scrolltop@4` | | ng12 | v4.x.x | `ng add ngx-scrolltop@4` | | 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 [See our Angular compatibility instructions…](#compatibility) +#### Error + +If you are using Angular 14 with latest ngx-scrolltop library, you will see this error on build or start: + +```bash +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. + +21 static ɵcmp: i0.ɵɵComponentDeclaration; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + +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. + +17 static ɵdir: i0.ɵɵDirectiveDeclaration; +``` + +#### Solution + +Easy! Use compatibility version of this library `npm install ngx-scrolltop@4 --save` + +[See our Angular compatibility instructions…](#compatibility) + ## Donation If this project have helped you save time please consider [making a donation](https://github.com/sponsors/bartholomej) for some 🍺 or 🍵 ;) ## License -Copyright © 2022 [Lukas Bartak](http://bartweb.cz) +Copyright © 2023 [Lukas Bartak](http://bartweb.cz) Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;) diff --git a/projects/ngx-scrolltop/package.json b/projects/ngx-scrolltop/package.json index fe1b4a4..4a87459 100644 --- a/projects/ngx-scrolltop/package.json +++ b/projects/ngx-scrolltop/package.json @@ -1,6 +1,6 @@ { "name": "ngx-scrolltop", - "version": "5.0.2", + "version": "5.1.0", "description": "Lightweight, Material Design inspired button for scroll-to-top of the page. No dependencies. Pure Angular!", "author": "Lukas Bartak (https://github.com/bartholomej)", "peerDependencies": {