Skip to content

Commit d7cde53

Browse files
committed
Updated changelog
1 parent 0efb593 commit d7cde53

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

CHANGELOG.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@ The change log describes what is "Added", "Removed", "Changed" or "Fixed" betwee
55

66
## 2.0.0-rc5 (UNRELEASED)
77

8-
### Changed
9-
10-
First parameter of `Github\Client` has changed type from `\Http\Client\HttpClient` to
11-
`Github\HttpClient\Builder`. A factory class was also added. To upgrade you need to change:
12-
13-
```php
14-
// Old way does not work:
15-
$github = new Github\Client($httpClient);
16-
17-
// New way will work:
18-
$github = new Github\Client(new Github\HttpClient\Builder($httpClient));
19-
$github = Github\Client::createWithHttpClient($httpClient);
20-
```
21-
228
### Added
239

2410
- Support for JWT authentication
@@ -32,6 +18,18 @@ $github = Github\Client::createWithHttpClient($httpClient);
3218
### Changed
3319

3420
- `ApiLimitExceedException::__construct` has a new second parameter for the remaining API calls.
21+
- First parameter of `Github\Client` has changed type from `\Http\Client\HttpClient` to
22+
`Github\HttpClient\Builder`. A factory class was also added. To upgrade you need to change:
23+
24+
```php
25+
// Old way does not work:
26+
$github = new Github\Client($httpClient);
27+
28+
// New way will work:
29+
$github = new Github\Client(new Github\HttpClient\Builder($httpClient));
30+
$github = Github\Client::createWithHttpClient($httpClient);
31+
```
32+
3533

3634
## 2.0.0-rc4
3735

0 commit comments

Comments
 (0)