Skip to content

Commit 0d45fa1

Browse files
committed
Prepare v2.3.0 release
1 parent b7e90ac commit 0d45fa1

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v2.3.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 headers to the component's ``filteredHeaders`` property.
6+
37
## v2.2.0
48

59
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.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,23 @@ You can define your own loader component in place of the built-in ones. The need
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 by URL or by HTTP method
130+
## Requests filtering by URL, HTTP method or HTTP headers
131131

132132
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 by providing **an array of HTTP methods** (case insensitive):
137+
You can filter the http requests by providing **an array of HTTP methods** (case insensitive):
138138
```xml
139139
<spinner [filteredMethods]="['gEt', 'POST', 'PuT']"></spinner>
140140
```
141141

142+
You can also filter the http requests by providing **an array of HTTP headers** (case insensitive):
143+
```xml
144+
<spinner [filteredHeaders]="['hEaDeR', 'AnoTheR-HeAdEr']"></spinner>
145+
```
146+
142147
## Manually show and hide the spinner
143148

144149
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.2.0",
3+
"version": "2.3.0",
44
"scripts": {
55
"ng": "ng",
66
"build": "ng build",

0 commit comments

Comments
 (0)