Skip to content

Commit b384253

Browse files
sagikazarmarkNyholm
authored andcommitted
Prepare release (#149)
* Update change log * Update readme * Prepare release * Remove branch alias * Update PSR-18 dependency version * Fix changelog * Mention in the readme that new implementations should use PSR-18 * Make requested changes * Update readme * Update change log
1 parent a4652dd commit b384253

File tree

3 files changed

+51
-24
lines changed

3 files changed

+51
-24
lines changed

CHANGELOG.md

+36-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Change Log
22

3-
## 2.0.0 - UNRELEASED
3+
4+
All notable changes to this project will be documented in this file.
5+
6+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
7+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
8+
9+
10+
## [Unreleased]
11+
12+
13+
## [2.0.0] - 2018-10-31
414

515
This version is no BC break for consumers using HTTPlug. However, HTTP clients that
616
implement HTTPlug need to adjust because we add return type declarations.
@@ -9,40 +19,41 @@ implement HTTPlug need to adjust because we add return type declarations.
919

1020
- Support for PSR-18 (HTTP client).
1121

22+
### Changed
23+
24+
- **BC Break:** `HttpClient::sendRequest(RequestInterface $request)` has a return type annotation. The new
25+
signature is `HttpClient::sendRequest(RequestInterface $request): ResponseInterface`.
26+
- **BC Break:** `RequestException::getRequest()` has a return type annotation. The new
27+
signature is `RequestException::getRequest(): RequestInterface`.
28+
1229
### Removed
1330

1431
- PHP 5 support
1532

16-
### Changed
17-
18-
- [BC Break] `HttpClient::sendRequest(RequestInterface $request)` has a return type annotation. The new
19-
signature is `HttpClient::sendRequest(RequestInterface $request): ResponseInterface`.
20-
- [BC Break] `RequestException::getRequest()` has a return type annotation. The new
21-
signature is `RequestException::getRequest(): RequestInterface`.
2233

23-
## 1.1.0 - 2016-08-31
34+
## [1.1.0] - 2016-08-31
2435

2536
### Added
2637

2738
- HttpFulfilledPromise and HttpRejectedPromise which respect the HttpAsyncClient interface
2839

2940

30-
## 1.0.0 - 2016-01-26
41+
## [1.0.0] - 2016-01-26
3142

3243
### Removed
3344

3445
- Stability configuration from composer
3546

3647

37-
## 1.0.0-RC1 - 2016-01-12
48+
## [1.0.0-RC1] - 2016-01-12
3849

3950
### Changed
4051

4152
- Updated package files
4253
- Updated promise dependency to RC1
4354

4455

45-
## 1.0.0-beta - 2015-12-17
56+
## [1.0.0-beta] - 2015-12-17
4657

4758
### Added
4859

@@ -53,7 +64,7 @@ signature is `RequestException::getRequest(): RequestInterface`.
5364
- Exception concept
5465

5566

56-
## 1.0.0-alpha3 - 2015-12-13
67+
## [1.0.0-alpha3] - 2015-12-13
5768

5869
### Changed
5970

@@ -64,14 +75,14 @@ signature is `RequestException::getRequest(): RequestInterface`.
6475
- Promise interface moved to its own repository: [php-http/promise](https://github.com/php-http/promise)
6576

6677

67-
## 1.0.0-alpha2 - 2015-11-16
78+
## [1.0.0-alpha2] - 2015-11-16
6879

6980
### Added
7081

7182
- Async client and Promise interface
7283

7384

74-
## 1.0.0-alpha - 2015-10-26
85+
## [1.0.0-alpha] - 2015-10-26
7586

7687
### Added
7788

@@ -93,3 +104,14 @@ signature is `RequestException::getRequest(): RequestInterface`.
93104
### Added
94105

95106
- Initial release
107+
108+
109+
[Unreleased]: https://github.com/php-http/httplug/compare/v2.0.0...HEAD
110+
[2.0.0]: https://github.com/php-http/httplug/compare/v1.1.0...HEAD
111+
[1.1.0]: https://github.com/php-http/httplug/compare/v1.0.0...v1.1.0
112+
[1.0.0]: https://github.com/php-http/httplug/compare/v1.0.0-RC1...v1.0.0
113+
[1.0.0-RC1]: https://github.com/php-http/httplug/compare/v1.0.0-beta...v1.0.0-RC1
114+
[1.0.0-beta]: https://github.com/php-http/httplug/compare/v1.0.0-alpha3...v1.0.0-beta
115+
[1.0.0-alpha3]: https://github.com/php-http/httplug/compare/v1.0.0-alpha2...v1.0.0-alpha3
116+
[1.0.0-alpha2]: https://github.com/php-http/httplug/compare/v1.0.0-alpha...v1.0.0-alpha2
117+
[1.0.0-alpha]: https://github.com/php-http/httplug/compare/v0.1.0...v1.0.0-alpha

README.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@
1313
**HTTPlug, the HTTP client abstraction for PHP.**
1414

1515

16+
## Intro
17+
18+
HTTPlug is the predecessor of [PSR-18](http://www.php-fig.org/psr/psr-18/)
19+
HTTP Client standard built on [PSR-7](http://www.php-fig.org/psr/psr-7/) HTTP messages.
20+
Since there is an entire ecosystem built around HTTPlug which is already widely adopted,
21+
we will keep maintaining this package for the time being,
22+
but new implementations and consumers should use the PSR-18 interfaces.
23+
HTTPlug 2.x extends the PSR-18 interfaces to allow a convenient migration path.
24+
In the long term, we expect PSR-18 to completely replace the need for HTTPlug.
25+
26+
This library is the official successor of the [ivory http adapter](https://github.com/egeloen/ivory-http-adapter).
27+
28+
1629
## Install
1730

1831
Via Composer
@@ -22,14 +35,6 @@ $ composer require php-http/httplug
2235
```
2336

2437

25-
## Intro
26-
27-
This is the contract package for HTTP Client.
28-
Use it to create HTTP Clients which are interoperable and compatible with [PSR-7](http://www.php-fig.org/psr/psr-7/).
29-
30-
This library is the official successor of the [ivory http adapter](https://github.com/egeloen/ivory-http-adapter).
31-
32-
3338
## Documentation
3439

3540
Please see the [official documentation](http://docs.php-http.org).

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"require": {
1818
"php": "^7.0",
1919
"psr/http-message": "^1.0",
20-
"psr/http-client": "^0.3",
20+
"psr/http-client": "^1.0",
2121
"php-http/promise": "^1.0"
2222
},
2323
"require-dev": {
@@ -35,7 +35,7 @@
3535
},
3636
"extra": {
3737
"branch-alias": {
38-
"dev-2.x": "2.0.x-dev"
38+
"dev-master": "2.0.x-dev"
3939
}
4040
}
4141
}

0 commit comments

Comments
 (0)