diff --git a/CHANGELOG.md b/CHANGELOG.md index 04d756e..39a597c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,54 @@ # Changelog +## 0.4.0 (2015-08-09) + +* Feature: Resolve relative URIs, add withBase() and resolve() + ([#41](https://github.com/clue/php-buzz-react/pull/41), [#44](https://github.com/clue/php-buzz-react/pull/44)) + + ```php +$browser = $browser->withBase('http://example.com/'); +$browser->post('/'); +``` + +* Feature: Resolve URI template placeholders according to RFC 6570 + ([#42](https://github.com/clue/php-buzz-react/pull/42), [#44](https://github.com/clue/php-buzz-react/pull/44)) + + ```php +$browser->post($browser->resolve('/{+path}{?version}', array( + 'path' => 'demo.json', + 'version' => '4' +))); +``` + +* Feature: Resolve and follow redirects to relative URIs + ([#45](https://github.com/clue/php-buzz-react/pull/45)) + +* Feature / BC break: Simplify Request and Response objects. + Remove Browser::request(), use Browser::send() instead. + ([#37](https://github.com/clue/php-buzz-react/pull/37)) + + ```php +// old +$browser->request('GET', 'http://www.example.com/'); + +// new +$browser->send(new Request('GET', 'http://www.example.com/')); +``` + +* Feature / Bc break: Enforce absolute URIs via new Uri class + ([#40](https://github.com/clue/php-buzz-react/pull/40), [#44](https://github.com/clue/php-buzz-react/pull/44)) + +* Feature: Add Browser::withSender() method + ([#38](https://github.com/clue/php-buzz-react/pull/38)) + +* Feature: Add Sender::createFromLoopDns() function + ([#39](https://github.com/clue/php-buzz-react/pull/39)) + +* Improve documentation and test suite + ## 0.3.0 (2015-06-14) -* Expose Response object in case of HTTP errors +* Feature: Expose Response object in case of HTTP errors ([#35](https://github.com/clue/php-buzz-react/pull/35)) * Feature: Add experimental `Transaction` options via `Browser` diff --git a/README.md b/README.md index 92b6f25..f0e7755 100644 --- a/README.md +++ b/README.md @@ -466,7 +466,7 @@ The recommended way to install this library is [through composer](http://getcomp ```JSON { "require": { - "clue/buzz-react": "~0.3.0" + "clue/buzz-react": "~0.4.0" } } ``` diff --git a/composer.json b/composer.json index c67a840..71f85e7 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "clue/buzz-react", - "description": "Simple async HTTP client for fetching URLs, talking to RESTful APIs, downloading, following redirects etc.", - "keywords": ["HTTP client", "HTTP requests", "ReactPHP", "async"], + "description": "Simple, async HTTP client for concurrently processing any number of HTTP requests, built on top of React PHP", + "keywords": ["HTTP client", "HTTP", "ReactPHP", "async"], "homepage": "https://github.com/clue/php-buzz-react", "license": "MIT", "authors": [