Skip to content

Commit 3025958

Browse files
committed
Merge branch 'master' into release/version-8
2 parents 1243676 + f549c1a commit 3025958

16 files changed

+1259
-633
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# [8.1.0-beta]
2+
3+
* Merge fixes from version 7 (7.1.0)
4+
5+
# [8.0.0-beta]
6+
7+
* Allow upgrade to Angular 8
8+
9+
# [7.1.0]
10+
11+
* Allow mixed model types in a single HasMany relationships ([#216](https://github.com/ghidoz/angular2-jsonapi/pull/216))
12+
13+
### Bug fixes
14+
15+
* Fix using relationship config key ([#210](https://github.com/ghidoz/angular2-jsonapi/pull/210))
16+
* Fix connecting related model resources parsed from response ([#213](https://github.com/ghidoz/angular2-jsonapi/pull/213))
17+
118
# [7.0.0]
219

320
### 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)