Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 70c3be2

Browse files
committed
Merging develop to master in preparation for 1.5.0 release.
2 parents 55e793b + 671f65f commit 70c3be2

34 files changed

+1599
-529
lines changed

.travis.yml

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,11 @@ cache:
99
env:
1010
global:
1111
- COMPOSER_ARGS="--no-interaction"
12+
- COVERAGE_DEPS="satooshi/php-coveralls"
13+
- LEGACY_DEPS="phpunit/phpunit"
1214

1315
matrix:
1416
include:
15-
- php: 5.4
16-
env:
17-
- DEPS=lowest
18-
- php: 5.4
19-
env:
20-
- DEPS=locked
21-
- php: 5.4
22-
env:
23-
- DEPS=latest
24-
- php: 5.5
25-
env:
26-
- DEPS=lowest
27-
- php: 5.5
28-
env:
29-
- DEPS=locked
30-
- php: 5.5
31-
env:
32-
- DEPS=latest
3317
- php: 5.6
3418
env:
3519
- DEPS=lowest
@@ -59,16 +43,29 @@ matrix:
5943
- php: 7.1
6044
env:
6145
- DEPS=latest
46+
- php: 7.2
47+
env:
48+
- DEPS=lowest
49+
- php: 7.2
50+
env:
51+
- DEPS=locked
52+
- TEST_COVERAGE=true
53+
- php: 7.2
54+
env:
55+
- DEPS=latest
56+
allow_failures:
57+
- php: 7.2
6258

6359
before_install:
6460
- travis_retry composer self-update
6561
- if [[ $TEST_COVERAGE != 'true' && "$(php --version | grep xdebug -ci)" -ge 1 ]]; then phpenv config-rm xdebug.ini ; fi
6662

6763
install:
64+
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
65+
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
6866
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
6967
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
70-
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS satooshi/php-coveralls:^1.0 ; fi
71-
- travis_retry composer install $COMPOSER_ARGS
68+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
7269
- stty cols 120 && composer show
7370

7471
script:

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,66 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 1.5.0 - TBD
6+
7+
### Added
8+
9+
- [#205](https://github.com/zendframework/zend-diactoros/pull/205) adds support
10+
for PHP 7.2.
11+
12+
- [#250](https://github.com/zendframework/zend-diactoros/pull/250) adds a new
13+
API to `JsonResponse` to avoid the need for decoding the response body in
14+
order to make changes to the underlying content. New methods include:
15+
- `getPayload()`: retrieve the unencoded payload.
16+
- `withPayload($data)`: create a new instance with the given data.
17+
- `getEncodingOptions()`: retrieve the flags to use when encoding the payload
18+
to JSON.
19+
- `withEncodingOptions(int $encodingOptions)`: create a new instance that uses
20+
the provided flags when encoding the payload to JSON.
21+
22+
### Changed
23+
24+
- [#249](https://github.com/zendframework/zend-diactoros/pull/249) changes the
25+
behavior of the various `Uri::with*()` methods slightly: if the value
26+
represents no change, these methods will return the same instance instead of a
27+
new one.
28+
29+
- [#248](https://github.com/zendframework/zend-diactoros/pull/248) changes the
30+
behavior of `Uri::getUserInfo()` slightly: it now (correctly) returns the
31+
percent-encoded values for the user and/or password, per RFC 3986 Section
32+
3.2.1. `withUserInfo()` will percent-encode values, using a mechanism that
33+
prevents double-encoding.
34+
35+
- [#243](https://github.com/zendframework/zend-diactoros/pull/243) changes the
36+
exception messages thrown by `UploadedFile::getStream()` and `moveTo()` when
37+
an upload error exists to include details about the upload error.
38+
39+
- [#233](https://github.com/zendframework/zend-diactoros/pull/233) adds a new
40+
argument to `SapiStreamEmitter::emit`, `$maxBufferLevel` **between** the
41+
`$response` and `$maxBufferLength` arguments. This was done because the
42+
`Server::listen()` method passes only the response and `$maxBufferLevel` to
43+
emitters; previously, this often meant that streams were being chunked 2 bytes
44+
at a time versus the expected default of 8kb.
45+
46+
If you were calling the `SapiStreamEmitter::emit()` method manually
47+
previously, you will need to update your code.
48+
49+
### Deprecated
50+
51+
- Nothing.
52+
53+
### Removed
54+
55+
- [#205](https://github.com/zendframework/zend-diactoros/pull/205) and
56+
[#243](https://github.com/zendframework/zend-diactoros/pull/243) **remove
57+
support for PHP versions prior to 5.6 as well as HHVM**.
58+
59+
### Fixed
60+
61+
- [#248](https://github.com/zendframework/zend-diactoros/pull/248) fixes how the
62+
`Uri` class provides user-info within the URI authority; the value is now
63+
correctly percent-encoded , per RFC 3986 Section 3.2.1.
64+
565
## 1.4.2 - TBD
666

767
### Added

composer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,24 @@
1313
"issues": "https://github.com/zendframework/zend-diactoros/issues",
1414
"source": "https://github.com/zendframework/zend-diactoros"
1515
},
16+
"config": {
17+
"sort-packages": true
18+
},
1619
"extra": {
1720
"branch-alias": {
1821
"dev-master": "1.4-dev",
1922
"dev-develop": "1.5-dev"
2023
}
2124
},
2225
"require": {
23-
"php": "^5.4 || ^7.0",
24-
"psr/http-message": "~1.0"
26+
"php": "^5.6 || ^7.0",
27+
"psr/http-message": "^1.0"
2528
},
2629
"require-dev": {
27-
"phpunit/phpunit": "^4.6 || ^5.5",
28-
"zendframework/zend-coding-standard": "~1.0.0",
2930
"ext-dom": "*",
30-
"ext-libxml": "*"
31+
"ext-libxml": "*",
32+
"phpunit/phpunit": "^5.7.16 || ^6.0.8",
33+
"zendframework/zend-coding-standard": "~1.0"
3134
},
3235
"provide": {
3336
"psr/http-message-implementation": "1.0"

0 commit comments

Comments
 (0)