104.md (11512B)
1 # PR #104 Update dependency ng-http-loader to v10 2 3 - **Status:** open 4 - **Author:** @renovate[bot] 5 - **Created:** 2021-05-15T19:47:29Z 6 - **Branch:** renovate/ng-http-loader-10.x → master 7 - **Diff:** [104.diff](./104.diff) 8 9 --- 10 11 [](https://renovatebot.com) 12 13 This PR contains the following updates: 14 15 | Package | Change | Age | Adoption | Passing | Confidence | 16 |---|---|---|---|---|---| 17 | [ng-http-loader](https://togithub.com/mpalourdio/ng-http-loader) | [`^2.0.0` -> `^10.0.0`](https://renovatebot.com/diffs/npm/ng-http-loader/2.0.0/10.0.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/) | 18 19 --- 20 21 ### Release Notes 22 23 <details> 24 <summary>mpalourdio/ng-http-loader</summary> 25 26 ### [`v10.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v1000) 27 28 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/9.1.0...10.0.0) 29 30 - Added angular 12 support. 31 - BC break: The library is not `view-engine`compatible anymore. 32 33 ### [`v9.1.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v910) 34 35 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/9.0.0...9.1.0) 36 37 - Added the possibility to specify the backdrop `background-color`. Contribution by [krishnakumarp](https://togithub.com/krishnakumarp). 38 39 ### [`v9.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v900) 40 41 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/8.0.0...9.0.0) 42 43 - Added angular 11 support. 44 45 ### [`v8.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v800) 46 47 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/7.0.0...8.0.0) 48 49 - Added angular 10 support. 50 51 ### [`v7.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v700) 52 53 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/6.0.1...7.0.0) 54 55 - Added angular 9 support. 56 - 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). 57 58 ### [`v6.0.1`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v601) 59 60 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/6.0.0...6.0.1) 61 62 - 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). 63 64 ### [`v6.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v600) 65 66 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/5.1.0...6.0.0) 67 68 - Angular 8.x is now the default supported version. 69 - 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. 70 - The `observable` initialization has been moved to `ngOnInit`. 71 - 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. 72 73 ### [`v5.1.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v510) 74 75 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/5.0.1...5.1.0) 76 77 - This release introduces 2 new options: 78 - **backdrop** (`true` by default): If set to `false`, the spinner background elements will remain clickable, without any background color. 79 - **opacity**: This option lets you override the spinner opacity (0.7 by default). 80 81 ### [`v5.0.1`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v501) 82 83 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/5.0.0...5.0.1) 84 85 - 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. 86 87 ### [`v5.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v500) 88 89 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/4.0.0...5.0.0) 90 91 - 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$`.\ 92 The associated template now uses an `async pipe` in order to perform the show/hide logic. 93 94 - `PendingInterceptorService` has been renamed to `PendingRequestsInterceptor`. 95 96 ### [`v4.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v400) 97 98 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.2.0...4.0.0) 99 100 - `HttpClientModule` has been removed from imports.\ 101 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. 102 103 - 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. 104 This intends to avoid multiple providers instances when working with lazy modules in which you would want to import `NgHttpLoaderModule` again for any reason. 105 106 - The default spinner is now `Spinkit.skWave` (less CPU intensive). 107 108 ### [`v3.2.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v320) 109 110 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.1.2...3.2.0) 111 112 `peerDependencies` section now targets `angular 7`. The module is still `angular 6` compatible, so this is not a major release.\ 113 Users are still encouraged to upgrade their applications ASAP. 114 115 ### [`v3.1.2`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v312) 116 117 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.1.1...3.1.2) 118 119 - Added [browserslist](https://togithub.com/browserslist/browserslist) support. 120 - Some cleanup has been done in CSS files to let the CSS auto-prefixer do the job automatically regarding supported browsers. 121 - Spinkit CSS integration has been been replaced by SCSS. 122 123 ### [`v3.1.1`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v311) 124 125 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.1.0...3.1.1) 126 127 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. 128 129 ### [`v3.1.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v310) 130 131 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/3.0.0...3.1.0) 132 133 Awesome contribution by [gnom7](https://togithub.com/gnom7) 134 135 - 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. 136 137 <!----> 138 139 Min. duration time: 300ms 140 ---0ms------------------------------200ms-------280ms----------------400ms| 141 ----|---------------------------------------------|-----------------------| 142 (req1 starts and spinner shows) (req1 ends) (req2 starts) (req2 ends and spinner hides) 143 144 Before this, `minDuration` would have been applied to both HTTP requests. 145 146 - Added the `extraDuration` option: 147 - 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. 148 - See [this issue](https://togithub.com/mpalourdio/ng-http-loader/issues/90) for reference 149 150 <!----> 151 152 Extra duration time: 60ms 153 ---0ms----------200ms------260ms---- | 154 ----|------------|----------|--------| 155 req starts req ends spinner hides 156 157 ### [`v3.0.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v300) 158 159 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/2.3.0...3.0.0) 160 161 - All existing deprecations have been removed. 162 - BC breaks => 163 - `SpinnerComponent` has been renamed to `NgHttpLoaderComponent`. 164 - The `<spinner>` component-selector has been renamed to `<ng-http-loader>`. 165 166 ### [`v2.3.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v230) 167 168 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/2.2.0...2.3.0) 169 170 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. 171 172 ### [`v2.2.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v220) 173 174 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/2.1.0...2.2.0) 175 176 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. 177 178 ### [`v2.1.0`](https://togithub.com/mpalourdio/ng-http-loader/blob/master/CHANGELOG.md#v210) 179 180 [Compare Source](https://togithub.com/mpalourdio/ng-http-loader/compare/2.0.0...2.1.0) 181 182 This release introduces the **minimum duration** option. It gives the possibility to force a minimum duration during which the spinner should be visible. 183 You can mix this parameter with the **debounce delay** option: 184 185 ```xml 186 <ng-http-loader 187 [debounceDelay]="100" 188 [minDuration]="300"> 189 </ng-http-loader> 190 ``` 191 192 Debounce delay: 100ms 193 Min. duration time: 300ms 194 ---0ms--------100ms------------180ms-----------400ms-- 195 ----|----------|-----------------|---------------|---- 196 req starts spinner shows req ends spinner hides 197 198 `SpinnerVisibilityService#visibilityObservable` and `PendingInterceptorService#pendingRequestsStatus` have been respectively deprecated in favor of `visibilityObservable$` and `pendingRequestsStatus$` (note the **$**). 199 200 </details> 201 202 --- 203 204 ### Configuration 205 206 📅 **Schedule**: At any time (no schedule defined). 207 208 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. 209 210 ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 211 212 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. 213 214 --- 215 216 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box. 217 218 --- 219 220 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). 221