Skip to content

Commit 49ac43e

Browse files
committed
Merge branch 'master' into upgrade-to-angular-8
2 parents de818ae + 0af1cf8 commit 49ac43e

16 files changed

+841
-378
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# [7.1.1]
2+
3+
* Allow removal of HasMany relations by setting empty array ([#224](https://github.com/ghidoz/angular2-jsonapi/pull/224))
4+
5+
# [7.1.0]
6+
7+
* Allow mixed model types in a single HasMany relationships ([#216](https://github.com/ghidoz/angular2-jsonapi/pull/216))
8+
9+
### Bug fixes
10+
11+
* Fix using relationship config key ([#210](https://github.com/ghidoz/angular2-jsonapi/pull/210))
12+
* Fix connecting related model resources parsed from response ([#213](https://github.com/ghidoz/angular2-jsonapi/pull/213))
13+
114
# [7.0.0]
215

316
### BREAKING CHANGES

README.MD

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,21 +470,21 @@ Content-Type: application/vnd.api+json
470470
You can also add your custom headers to be appended to each http call:
471471

472472
```typescript
473-
this.datastore.headers = new Headers({'Authorization': 'Bearer ' + accessToken});
473+
this.datastore.headers = new HttpHeaders({'Authorization': 'Bearer ' + accessToken});
474474
```
475475

476476
Or you can pass the headers as last argument of any datastore call method:
477477

478478
```typescript
479479
this.datastore.findAll(Post, {
480480
include: 'comments'
481-
}, new Headers({'Authorization': 'Bearer ' + accessToken}));
481+
}, new HttpHeaders({'Authorization': 'Bearer ' + accessToken}));
482482
```
483483

484484
and in the `save()` method:
485485

486486
```typescript
487-
post.save({}, new Headers({'Authorization': 'Bearer ' + accessToken})).subscribe();
487+
post.save({}, new HttpHeaders({'Authorization': 'Bearer ' + accessToken})).subscribe();
488488
```
489489

490490
### Custom request options

0 commit comments

Comments
 (0)