Skip to content

Commit 4a14084

Browse files
committed
Prepare v2.2.0 release
1 parent 81a353e commit 4a14084

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Changelog
22

3+
## v2.2.0
4+
5+
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.
6+
37
## v2.1.0
48

59
This release introduces the **minimum duration** option. It gives the possibility to force a minimum duration during which the spinner should be visible.
6-
You can mix this parameter with the **debounce delay** option :
10+
You can mix this parameter with the **debounce delay** option:
711

812
```xml
913
<spinner
@@ -97,7 +101,7 @@ The responsible ``Subject`` has been replaced by a ``ReplaySubject``.
97101
The module is now splitted in sub-modules for more convenience. See [usage](https://github.com/mpalourdio/ng-http-loader#usage).
98102
It's an **opt-in** feature. The "old" module import method, by simply declaring ``NgHttpLoaderModule``, is still fully supported.
99103

100-
**BC break** : paths of components and services have changed.
104+
**BC break**: paths of components and services have changed.
101105
- Components are now located in the ``components`` folders.
102106
- Services are now located in the ``services`` folders.
103107

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import { NgHttpLoaderModule } from 'ng-http-loader'; <============
7272
export class AppModule { }
7373
```
7474

75-
In your app.component.html, simply add :
75+
In your app.component.html, simply add:
7676
```xml
7777
<spinner></spinner>
7878
```
@@ -120,20 +120,25 @@ You can define your own loader component in place of the built-in ones. The need
120120
- Create your component
121121
- Add it to the [entryComponent](https://angular.io/guide/ngmodule-faq#what-is-an-entry-component) definition in your module definition
122122
- Reference your component in a public property in your ``app.component.ts``
123-
- Reference the property in the spinner component like this :
123+
- Reference the property in the spinner component like this:
124124
```xml
125125
<spinner [entryComponent]="myAwesomeComponent"></spinner>
126126
```
127127

128128
You can find some short examples [here](https://gist.github.com/mpalourdio/2c0bec03d610b24ff49db649fbb69a48) and [here](https://gist.github.com/mpalourdio/e05b4495de2abeeecfcf92d70e4ef93e).
129129

130-
## Requests filtering
130+
## Requests filtering by URL or by HTTP method
131131

132-
You can also filter the http requests that shouldn't be caught by the interceptor by providing **an array of regex patterns**:
132+
You can filter the http requests that shouldn't be caught by the interceptor by providing **an array of regex patterns**:
133133
```xml
134134
<spinner [filteredUrlPatterns]="['\\d', '[a-zA-Z]', 'my-api']"></spinner>
135135
```
136136

137+
You can also filter the http requests that shouldn't be caught by the interceptor by providing **an array of HTTP methods** (case-insensitive):
138+
```xml
139+
<spinner [filteredMethods]="['gEt', 'POST', 'PuT']"></spinner>
140+
```
141+
137142
## Manually show and hide the spinner
138143

139144
You can manually show and hide the spinner component if needed. You must use the ``SpinnerVisibilityService`` for this purpose.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-http-loader",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"scripts": {
55
"ng": "ng",
66
"build": "ng build",

0 commit comments

Comments
 (0)