diff --git a/CHANGELOG.md b/CHANGELOG.md index d6c12844..cade87bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 8.0.1 + +### Bugfixes + +- fix `config.service.ts` adding `providedIn: 'root'` to the service (fixes #244) reported by @dreiquevada + + # 8.0.0 ### Features diff --git a/README.md b/README.md index 0da6930c..363d4439 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,7 @@ You can use all default features without font-awesome. For more info, check offi **More than 100 releases in two years**, and more to come... :) +- 09/27/2021 - 8.0.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases) - 07/10/2021 - 8.0.0 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases) - 06/13/2021 - 8.0.0-rc.1 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases) - 11/22/2020 - 8.0.0-beta.5 - @ks89/angular-modal-gallery - [HERE](https://github.com/Ks89/angular-modal-gallery/releases) diff --git a/package-lock.json b/package-lock.json index ed0e3b3e..a76fc79e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20260,6 +20260,7 @@ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.13.tgz", "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", "dev": true, + "hasInstallScript": true, "optional": true, "os": [ "darwin" diff --git a/projects/ks89/angular-modal-gallery/package.json b/projects/ks89/angular-modal-gallery/package.json index 32b50b35..37f95beb 100644 --- a/projects/ks89/angular-modal-gallery/package.json +++ b/projects/ks89/angular-modal-gallery/package.json @@ -1,6 +1,6 @@ { "name": "@ks89/angular-modal-gallery", - "version": "8.0.0", + "version": "8.0.1", "description": "Image gallery for Angular", "license": "MIT", "author": "Stefano Cappa", diff --git a/projects/ks89/angular-modal-gallery/src/lib/modal-gallery.module.ts b/projects/ks89/angular-modal-gallery/src/lib/modal-gallery.module.ts index 4afd9399..a7dc72de 100644 --- a/projects/ks89/angular-modal-gallery/src/lib/modal-gallery.module.ts +++ b/projects/ks89/angular-modal-gallery/src/lib/modal-gallery.module.ts @@ -31,7 +31,6 @@ import { OverlayModule } from '@angular/cdk/overlay'; import { COMPONENTS, CarouselComponent } from './components/components'; import { PlainGalleryComponent } from './components/plain-gallery/plain-gallery.component'; import { DIRECTIVES } from './directives/directives'; -import { ConfigService } from './services/config.service'; // to prevent bad scrolling behaviour on mobile phone with carousels. // From @mohaxspb (https://github.com/Ks89/angular-modal-gallery/pull/187) @@ -56,8 +55,7 @@ export class KsHammerGestureConfig extends HammerGestureConfig { { provide: HAMMER_GESTURE_CONFIG, useClass: KsHammerGestureConfig - }, - ConfigService + } ] }) export class GalleryModule {} diff --git a/projects/ks89/angular-modal-gallery/src/lib/services/config.service.ts b/projects/ks89/angular-modal-gallery/src/lib/services/config.service.ts index 60e05ece..94bb2216 100644 --- a/projects/ks89/angular-modal-gallery/src/lib/services/config.service.ts +++ b/projects/ks89/angular-modal-gallery/src/lib/services/config.service.ts @@ -144,7 +144,7 @@ const DEFAULT_CONFIG: LibConfig = Object.freeze({ /** * Service to handle library configuration in a unique place */ -@Injectable() +@Injectable({ providedIn: 'root' }) export class ConfigService { configMap: Map = new Map();