Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
# CHANGELOG
2
 
3
## 1.4.2 - 2017-03-20
4
 
5
* Reverted BC break to `Uri::resolve` and `Uri::removeDotSegments` by removing
6
  calls to `trigger_error` when deprecated methods are invoked.
7
 
8
## 1.4.1 - 2017-02-27
9
 
10
* Reverted BC break by reintroducing behavior to automagically fix a URI with a
11
  relative path and an authority by adding a leading slash to the path. It's only
12
  deprecated now.
13
* Added triggering of silenced deprecation warnings.
14
 
15
## 1.4.0 - 2017-02-21
16
 
17
* Fix `Stream::read` when length parameter <= 0.
18
* `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory.
19
* Fix `ServerRequest::getUriFromGlobals` when `Host` header contains port.
20
* Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form.
21
* Allow `parse_response` to parse a response without delimiting space and reason.
22
* Ensure each URI modification results in a valid URI according to PSR-7 discussions.
23
  Invalid modifications will throw an exception instead of returning a wrong URI or
24
  doing some magic.
25
  - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception
26
    because the path of a URI with an authority must start with a slash "/" or be empty
27
  - `(new Uri())->withScheme('http')` will return `'http://localhost'`
28
* Fix compatibility of URIs with `file` scheme and empty host.
29
* Added common URI utility methods based on RFC 3986 (see documentation in the readme):
30
  - `Uri::isDefaultPort`
31
  - `Uri::isAbsolute`
32
  - `Uri::isNetworkPathReference`
33
  - `Uri::isAbsolutePathReference`
34
  - `Uri::isRelativePathReference`
35
  - `Uri::isSameDocumentReference`
36
  - `Uri::composeComponents`
37
  - `UriNormalizer::normalize`
38
  - `UriNormalizer::isEquivalent`
39
  - `UriResolver::relativize`
40
* Deprecated `Uri::resolve` in favor of `UriResolver::resolve`
41
* Deprecated `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments`
42
 
43
## 1.3.1 - 2016-06-25
44
 
45
* Fix `Uri::__toString` for network path references, e.g. `//example.org`.
46
* Fix missing lowercase normalization for host.
47
* Fix handling of URI components in case they are `'0'` in a lot of places,
48
  e.g. as a user info password.
49
* Fix `Uri::withAddedHeader` to correctly merge headers with different case.
50
* Fix trimming of header values in `Uri::withAddedHeader`. Header values may
51
  be surrounded by whitespace which should be ignored according to RFC 7230
52
  Section 3.2.4. This does not apply to header names.
53
* Fix `Uri::withAddedHeader` with an array of header values.
54
* Fix `Uri::resolve` when base path has no slash and handling of fragment.
55
* Fix handling of encoding in `Uri::with(out)QueryValue` so one can pass the
56
  key/value both in encoded as well as decoded form to those methods. This is
57
  consistent with withPath, withQuery etc.
58
* Fix `ServerRequest::withoutAttribute` when attribute value is null.
59
 
60
## 1.3.0 - 2016-04-13
61
 
62
* Added remaining interfaces needed for full PSR7 compatibility
63
  (ServerRequestInterface, UploadedFileInterface, etc.).
64
* Added support for stream_for from scalars.
65
* Can now extend Uri.
66
* Fixed a bug in validating request methods by making it more permissive.
67
 
68
## 1.2.3 - 2016-02-18
69
 
70
* Fixed support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote
71
  streams, which can sometimes return fewer bytes than requested with `fread`.
72
* Fixed handling of gzipped responses with FNAME headers.
73
 
74
## 1.2.2 - 2016-01-22
75
 
76
* Added support for URIs without any authority.
77
* Added support for HTTP 451 'Unavailable For Legal Reasons.'
78
* Added support for using '0' as a filename.
79
* Added support for including non-standard ports in Host headers.
80
 
81
## 1.2.1 - 2015-11-02
82
 
83
* Now supporting negative offsets when seeking to SEEK_END.
84
 
85
## 1.2.0 - 2015-08-15
86
 
87
* Body as `"0"` is now properly added to a response.
88
* Now allowing forward seeking in CachingStream.
89
* Now properly parsing HTTP requests that contain proxy targets in
90
  `parse_request`.
91
* functions.php is now conditionally required.
92
* user-info is no longer dropped when resolving URIs.
93
 
94
## 1.1.0 - 2015-06-24
95
 
96
* URIs can now be relative.
97
* `multipart/form-data` headers are now overridden case-insensitively.
98
* URI paths no longer encode the following characters because they are allowed
99
  in URIs: "(", ")", "*", "!", "'"
100
* A port is no longer added to a URI when the scheme is missing and no port is
101
  present.
102
 
103
## 1.0.0 - 2015-05-19
104
 
105
Initial release.
106
 
107
Currently unsupported:
108
 
109
- `Psr\Http\Message\ServerRequestInterface`
110
- `Psr\Http\Message\UploadedFileInterface`