98.md (11266B)
1 # PR #98 Update dependency ng-http-loader to v9 - autoclosed 2 3 - **Status:** closed 4 - **Author:** @renovate[bot] 5 - **Created:** 2020-11-28T00:01:27Z 6 - **Branch:** renovate/ng-http-loader-9.x → master 7 - **Closed:** 2021-05-15T19:47:34Z 8 - **Diff:** [98.diff](./98.diff) 9 10 --- 11 12 [](https://renovatebot.com) 13 14 This PR contains the following updates: 15 16 | Package | Change | Age | Adoption | Passing | Confidence | 17 |---|---|---|---|---|---| 18 | [ng-http-loader](https://togithub.com/mpalourdio/ng-http-loader) | [`^2.0.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/ng-http-loader/2.0.0/9.1.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | 19 20 --- 21 22 ### Release Notes 23 24 <details> 25 <summary>mpalourdio/ng-http-loader</summary> 26 27 ### [`v9.1.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v910) 28 29 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/9.0.0...9.1.0) 30 31 - Added the possibility to specify the backdrop `background-color`. Contribution by [krishnakumarp](https://togithub.com/krishnakumarp). 32 33 ### [`v9.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v900) 34 35 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/8.0.0...9.0.0) 36 37 - Added angular 11 support. 38 39 ### [`v8.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v800) 40 41 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/7.0.0...8.0.0) 42 43 - Added angular 10 support. 44 45 ### [`v7.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v700) 46 47 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/6.0.1...7.0.0) 48 49 - Added angular 9 support. 50 - BC break : `AbstractLoader` has been renamed to `AbstractLoaderDirective`. See [here](https://next.angular.io/guide/deprecations#undecorated-base-classes) and [here](https://angular.io/guide/styleguide#style-02-03). 51 52 ### [`v6.0.1`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v601) 53 54 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/6.0.0...6.0.1) 55 56 - The `rxjs` peer dependency is now `^6.5.0`, because the module uses the new `creation function partition observable` introduced in [v6.5.0](https://togithub.com/ReactiveX/rxjs/blob/f07d349da8c2e0dbddca17d33a9b4a1ceaf59354/CHANGELOG.md#​650-2019-04-23). 57 58 ### [`v6.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v600) 59 60 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/5.1.0...6.0.0) 61 62 - Angular 8.x is now the default supported version. 63 - The `subscription` in `NgHttpLoaderComponent` has completely been removed in favor of an `observable`. As there's no need to unsubscribe anymore, `ngOnDestroy` has been removed. 64 - The `observable` initialization has been moved to `ngOnInit`. 65 - The tests suite could fail (and succeed) in some unexpected ways. This was caused by some race conditions introduced in v5.0.0. Those are now (hopefully) fixed. 66 67 ### [`v5.1.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v510) 68 69 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/5.0.1...5.1.0) 70 71 - This release introduces 2 new options: 72 - **backdrop** (`true` by default): If set to `false`, the spinner background elements will remain clickable, without any background color. 73 - **opacity**: This option lets you override the spinner opacity (0.7 by default). 74 75 ### [`v5.0.1`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v501) 76 77 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/5.0.0...5.0.1) 78 79 - The `rxjs` `peerDependency` has been relaxed from `~6.3.3` to `^6.3.3` so that no warning is thrown when the `rxjs` version has been bumped at application side. 80 81 ### [`v5.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v500) 82 83 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/4.0.0...5.0.0) 84 85 - Prior to this release, `NgHttpLoaderComponent#isSpinnerVisible` was a boolean. Because of unexpected behaviors when a component with `ChangeDetectionStrategy.OnPush` performed HTTP requests, it is now an `Observable<boolean>` and has been renamed to `NgHttpLoaderComponent#isVisible$`. 86 The associated template now uses an `async pipe` in order to perform the show/hide logic. 87 88 - `PendingInterceptorService` has been renamed to `PendingRequestsInterceptor`. 89 90 ### [`v4.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v400) 91 92 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.2.0...4.0.0) 93 94 - `HttpClientModule` has been removed from imports. 95 This caused some issues when external modules were imported in an application, and those modules registered their own HTTP interceptors. See [this issue](https://togithub.com/angular/angular/issues/20575) for reference. 96 97 - A static `forRoot()` method has been added to the module declaration. You must now [explicitly call this method](README.md#usage) when importing `NgHttpLoaderModule` in your root application module. 98 This intends to avoid multiple providers instances when working with lazy modules in which you would want to import `NgHttpLoaderModule` again for any reason. 99 100 - The default spinner is now `Spinkit.skWave` (less CPU intensive). 101 102 ### [`v3.2.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v320) 103 104 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.1.2...3.2.0) 105 106 `peerDependencies` section now targets `angular 7`. The module is still `angular 6` compatible, so this is not a major release. 107 Users are still encouraged to upgrade their applications ASAP. 108 109 ### [`v3.1.2`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v312) 110 111 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.1.1...3.1.2) 112 113 - Added [browserslist](https://togithub.com/browserslist/browserslist) support. 114 - Some cleanup has been done in CSS files to let the CSS auto-prefixer do the job automatically regarding supported browsers. 115 - Spinkit CSS integration has been been replaced by SCSS. 116 117 ### [`v3.1.1`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v311) 118 119 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.1.0...3.1.1) 120 121 The Subscriptions that had been previously moved from constructor to `ngOnInit` are back in constructor. This avoids testing if the subscriptions exist in `ngOnDestroy` before unsubscribing them. 122 123 ### [`v3.1.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v310) 124 125 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.0.0...3.1.0) 126 127 Awesome contribution by [gnom7](https://togithub.com/gnom7) 128 129 - Better handling of sequential HTTP requests. Particularly when mixed with the `minDuration` option. See [this issue](https://togithub.com/mpalourdio/ng-http-loader/issues/89) for reference. 130 131 Min. duration time: 300ms 132 ---0ms------------------------------200ms-------280ms----------------400ms| 133 ----|---------------------------------------------|-----------------------| 134 (req1 starts and spinner shows) (req1 ends) (req2 starts) (req2 ends and spinner hides) 135 136 Before this, `minDuration` would have been applied to both HTTP requests. 137 138 - Added the `extraDuration` option: 139 - This option make the spinner visible a certain amount of time after the moment when it should have naturally been hidden. This avoids flickering when, for example, multiple HTTP requests are ran sequentially. 140 - See [this issue](https://togithub.com/mpalourdio/ng-http-loader/issues/90) for reference 141 142 Extra duration time: 60ms 143 ---0ms----------200ms------260ms---- | 144 ----|------------|----------|--------| 145 req starts req ends spinner hides 146 147 ### [`v3.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v300) 148 149 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/2.3.0...3.0.0) 150 151 - All existing deprecations have been removed. 152 - BC breaks => 153 - `SpinnerComponent` has been renamed to `NgHttpLoaderComponent`. 154 - The `<spinner>` component-selector has been renamed to `<ng-http-loader>`. 155 156 ### [`v2.3.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v230) 157 158 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/2.2.0...2.3.0) 159 160 This release adds the possibility to filter HTTP requests that should not be handled by the interceptor by providing an array of HTTP headers to the component's `filteredHeaders` property. 161 162 ### [`v2.2.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v220) 163 164 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/2.1.0...2.2.0) 165 166 This release adds the possibility to filter HTTP requests that should not be handled by the interceptor by providing an array of HTTP methods to the component's `filteredMethods` property. 167 168 ### [`v2.1.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v210) 169 170 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/2.0.0...2.1.0) 171 172 This release introduces the **minimum duration** option. It gives the possibility to force a minimum duration during which the spinner should be visible. 173 You can mix this parameter with the **debounce delay** option: 174 175 ```xml 176 <ng-http-loader 177 [debounceDelay]="100" 178 [minDuration]="300"> 179 </ng-http-loader> 180 ``` 181 182 Debounce delay: 100ms 183 Min. duration time: 300ms 184 ---0ms--------100ms------------180ms-----------400ms-- 185 ----|----------|-----------------|---------------|---- 186 req starts spinner shows req ends spinner hides 187 188 `SpinnerVisibilityService#visibilityObservable` and `PendingInterceptorService#pendingRequestsStatus` have been respectively deprecated in favor of `visibilityObservable$` and `pendingRequestsStatus$` (note the **$**). 189 190 </details> 191 192 --- 193 194 ### Configuration 195 196 📅 **Schedule**: At any time (no schedule defined). 197 198 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. 199 200 ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 201 202 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. 203 204 --- 205 206 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. 207 208 --- 209 210 This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/SocialNetworkNews/SocialNetworkNews-Web). 211