Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
# Change Log
2
 
3
All notable changes to this project will be documented in this file.
4
 
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
 
8
## Unreleased
9
 
10
## 2.4.3 - 2022-10-26
11
 
12
### Changed
13
 
14
- Replaced `sha1(uniqid())` by `bin2hex(random_bytes(20))`
15
 
16
## 2.4.2 - 2022-10-25
17
 
18
### Fixed
19
 
20
- Fixed erroneous behaviour when combining host and relative path
21
 
22
## 2.4.1 - 2022-08-28
23
 
24
### Fixed
25
 
26
- Rewind body before reading in `Message::bodySummary`
27
 
28
## 2.4.0 - 2022-06-20
29
 
30
### Added
31
 
32
- Added provisional PHP 8.2 support
33
- Added `UriComparator::isCrossOrigin` method
34
 
35
## 2.3.0 - 2022-06-09
36
 
37
### Fixed
38
 
39
- Added `Header::splitList` method
40
- Added `Utils::tryGetContents` method
41
- Improved `Stream::getContents` method
42
- Updated mimetype mappings
43
 
44
## 2.2.2 - 2022-06-08
45
 
46
### Fixed
47
 
48
- Fix `Message::parseRequestUri` for numeric headers
49
- Re-wrap exceptions thrown in `fread` into runtime exceptions
50
- Throw an exception when multipart options is misformatted
51
 
52
## 2.2.1 - 2022-03-20
53
 
54
### Fixed
55
 
56
- Correct header value validation
57
 
58
## 2.2.0 - 2022-03-20
59
 
60
### Added
61
 
62
- A more compressive list of mime types
63
- Add JsonSerializable to Uri
64
- Missing return types
65
 
66
### Fixed
67
 
68
- Bug MultipartStream no `uri` metadata
69
- Bug MultipartStream with filename for `data://` streams
70
- Fixed new line handling in MultipartStream
71
- Reduced RAM usage when copying streams
72
- Updated parsing in `Header::normalize()`
73
 
74
## 2.1.1 - 2022-03-20
75
 
76
### Fixed
77
 
78
- Validate header values properly
79
 
80
## 2.1.0 - 2021-10-06
81
 
82
### Changed
83
 
84
- Attempting to create a `Uri` object from a malformed URI will no longer throw a generic
85
  `InvalidArgumentException`, but rather a `MalformedUriException`, which inherits from the former
86
  for backwards compatibility. Callers relying on the exception being thrown to detect invalid
87
  URIs should catch the new exception.
88
 
89
### Fixed
90
 
91
- Return `null` in caching stream size if remote size is `null`
92
 
93
## 2.0.0 - 2021-06-30
94
 
95
Identical to the RC release.
96
 
97
## 2.0.0@RC-1 - 2021-04-29
98
 
99
### Fixed
100
 
101
- Handle possibly unset `url` in `stream_get_meta_data`
102
 
103
## 2.0.0@beta-1 - 2021-03-21
104
 
105
### Added
106
 
107
- PSR-17 factories
108
- Made classes final
109
- PHP7 type hints
110
 
111
### Changed
112
 
113
- When building a query string, booleans are represented as 1 and 0.
114
 
115
### Removed
116
 
117
- PHP < 7.2 support
118
- All functions in the `GuzzleHttp\Psr7` namespace
119
 
120
## 1.8.1 - 2021-03-21
121
 
122
### Fixed
123
 
124
- Issue parsing IPv6 URLs
125
- Issue modifying ServerRequest lost all its attributes
126
 
127
## 1.8.0 - 2021-03-21
128
 
129
### Added
130
 
131
- Locale independent URL parsing
132
- Most classes got a `@final` annotation to prepare for 2.0
133
 
134
### Fixed
135
 
136
- Issue when creating stream from `php://input` and curl-ext is not installed
137
- Broken `Utils::tryFopen()` on PHP 8
138
 
139
## 1.7.0 - 2020-09-30
140
 
141
### Added
142
 
143
- Replaced functions by static methods
144
 
145
### Fixed
146
 
147
- Converting a non-seekable stream to a string
148
- Handle multiple Set-Cookie correctly
149
- Ignore array keys in header values when merging
150
- Allow multibyte characters to be parsed in `Message:bodySummary()`
151
 
152
### Changed
153
 
154
- Restored partial HHVM 3 support
155
 
156
 
157
## [1.6.1] - 2019-07-02
158
 
159
### Fixed
160
 
161
- Accept null and bool header values again
162
 
163
 
164
## [1.6.0] - 2019-06-30
165
 
166
### Added
167
 
168
- Allowed version `^3.0` of `ralouphie/getallheaders` dependency (#244)
169
- Added MIME type for WEBP image format (#246)
170
- Added more validation of values according to PSR-7 and RFC standards, e.g. status code range (#250, #272)
171
 
172
### Changed
173
 
174
- Tests don't pass with HHVM 4.0, so HHVM support got dropped. Other libraries like composer have done the same. (#262)
175
- Accept port number 0 to be valid (#270)
176
 
177
### Fixed
178
 
179
- Fixed subsequent reads from `php://input` in ServerRequest (#247)
180
- Fixed readable/writable detection for certain stream modes (#248)
181
- Fixed encoding of special characters in the `userInfo` component of an URI (#253)
182
 
183
 
184
## [1.5.2] - 2018-12-04
185
 
186
### Fixed
187
 
188
- Check body size when getting the message summary
189
 
190
 
191
## [1.5.1] - 2018-12-04
192
 
193
### Fixed
194
 
195
- Get the summary of a body only if it is readable
196
 
197
 
198
## [1.5.0] - 2018-12-03
199
 
200
### Added
201
 
202
- Response first-line to response string exception (fixes #145)
203
- A test for #129 behavior
204
- `get_message_body_summary` function in order to get the message summary
205
- `3gp` and `mkv` mime types
206
 
207
### Changed
208
 
209
- Clarify exception message when stream is detached
210
 
211
### Deprecated
212
 
213
- Deprecated parsing folded header lines as per RFC 7230
214
 
215
### Fixed
216
 
217
- Fix `AppendStream::detach` to not close streams
218
- `InflateStream` preserves `isSeekable` attribute of the underlying stream
219
- `ServerRequest::getUriFromGlobals` to support URLs in query parameters
220
 
221
 
222
Several other fixes and improvements.
223
 
224
 
225
## [1.4.2] - 2017-03-20
226
 
227
### Fixed
228
 
229
- Reverted BC break to `Uri::resolve` and `Uri::removeDotSegments` by removing
230
  calls to `trigger_error` when deprecated methods are invoked.
231
 
232
 
233
## [1.4.1] - 2017-02-27
234
 
235
### Added
236
 
237
- Rriggering of silenced deprecation warnings.
238
 
239
### Fixed
240
 
241
- Reverted BC break by reintroducing behavior to automagically fix a URI with a
242
  relative path and an authority by adding a leading slash to the path. It's only
243
  deprecated now.
244
 
245
 
246
## [1.4.0] - 2017-02-21
247
 
248
### Added
249
 
250
- Added common URI utility methods based on RFC 3986 (see documentation in the readme):
251
  - `Uri::isDefaultPort`
252
  - `Uri::isAbsolute`
253
  - `Uri::isNetworkPathReference`
254
  - `Uri::isAbsolutePathReference`
255
  - `Uri::isRelativePathReference`
256
  - `Uri::isSameDocumentReference`
257
  - `Uri::composeComponents`
258
  - `UriNormalizer::normalize`
259
  - `UriNormalizer::isEquivalent`
260
  - `UriResolver::relativize`
261
 
262
### Changed
263
 
264
- Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form.
265
- Allow `parse_response` to parse a response without delimiting space and reason.
266
- Ensure each URI modification results in a valid URI according to PSR-7 discussions.
267
  Invalid modifications will throw an exception instead of returning a wrong URI or
268
  doing some magic.
269
  - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception
270
    because the path of a URI with an authority must start with a slash "/" or be empty
271
  - `(new Uri())->withScheme('http')` will return `'http://localhost'`
272
 
273
### Deprecated
274
 
275
- `Uri::resolve` in favor of `UriResolver::resolve`
276
- `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments`
277
 
278
### Fixed
279
 
280
- `Stream::read` when length parameter <= 0.
281
- `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory.
282
- `ServerRequest::getUriFromGlobals` when `Host` header contains port.
283
- Compatibility of URIs with `file` scheme and empty host.
284
 
285
 
286
## [1.3.1] - 2016-06-25
287
 
288
### Fixed
289
 
290
- `Uri::__toString` for network path references, e.g. `//example.org`.
291
- Missing lowercase normalization for host.
292
- Handling of URI components in case they are `'0'` in a lot of places,
293
  e.g. as a user info password.
294
- `Uri::withAddedHeader` to correctly merge headers with different case.
295
- Trimming of header values in `Uri::withAddedHeader`. Header values may
296
  be surrounded by whitespace which should be ignored according to RFC 7230
297
  Section 3.2.4. This does not apply to header names.
298
- `Uri::withAddedHeader` with an array of header values.
299
- `Uri::resolve` when base path has no slash and handling of fragment.
300
- Handling of encoding in `Uri::with(out)QueryValue` so one can pass the
301
  key/value both in encoded as well as decoded form to those methods. This is
302
  consistent with withPath, withQuery etc.
303
- `ServerRequest::withoutAttribute` when attribute value is null.
304
 
305
 
306
## [1.3.0] - 2016-04-13
307
 
308
### Added
309
 
310
- Remaining interfaces needed for full PSR7 compatibility
311
  (ServerRequestInterface, UploadedFileInterface, etc.).
312
- Support for stream_for from scalars.
313
 
314
### Changed
315
 
316
- Can now extend Uri.
317
 
318
### Fixed
319
- A bug in validating request methods by making it more permissive.
320
 
321
 
322
## [1.2.3] - 2016-02-18
323
 
324
### Fixed
325
 
326
- Support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote
327
  streams, which can sometimes return fewer bytes than requested with `fread`.
328
- Handling of gzipped responses with FNAME headers.
329
 
330
 
331
## [1.2.2] - 2016-01-22
332
 
333
### Added
334
 
335
- Support for URIs without any authority.
336
- Support for HTTP 451 'Unavailable For Legal Reasons.'
337
- Support for using '0' as a filename.
338
- Support for including non-standard ports in Host headers.
339
 
340
 
341
## [1.2.1] - 2015-11-02
342
 
343
### Changes
344
 
345
- Now supporting negative offsets when seeking to SEEK_END.
346
 
347
 
348
## [1.2.0] - 2015-08-15
349
 
350
### Changed
351
 
352
- Body as `"0"` is now properly added to a response.
353
- Now allowing forward seeking in CachingStream.
354
- Now properly parsing HTTP requests that contain proxy targets in
355
  `parse_request`.
356
- functions.php is now conditionally required.
357
- user-info is no longer dropped when resolving URIs.
358
 
359
 
360
## [1.1.0] - 2015-06-24
361
 
362
### Changed
363
 
364
- URIs can now be relative.
365
- `multipart/form-data` headers are now overridden case-insensitively.
366
- URI paths no longer encode the following characters because they are allowed
367
  in URIs: "(", ")", "*", "!", "'"
368
- A port is no longer added to a URI when the scheme is missing and no port is
369
  present.
370
 
371
 
372
## 1.0.0 - 2015-05-19
373
 
374
Initial release.
375
 
376
Currently unsupported:
377
 
378
- `Psr\Http\Message\ServerRequestInterface`
379
- `Psr\Http\Message\UploadedFileInterface`
380
 
381
 
382
 
383
[1.6.0]: https://github.com/guzzle/psr7/compare/1.5.2...1.6.0
384
[1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2
385
[1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1
386
[1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0
387
[1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2
388
[1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1
389
[1.4.0]: https://github.com/guzzle/psr7/compare/1.3.1...1.4.0
390
[1.3.1]: https://github.com/guzzle/psr7/compare/1.3.0...1.3.1
391
[1.3.0]: https://github.com/guzzle/psr7/compare/1.2.3...1.3.0
392
[1.2.3]: https://github.com/guzzle/psr7/compare/1.2.2...1.2.3
393
[1.2.2]: https://github.com/guzzle/psr7/compare/1.2.1...1.2.2
394
[1.2.1]: https://github.com/guzzle/psr7/compare/1.2.0...1.2.1
395
[1.2.0]: https://github.com/guzzle/psr7/compare/1.1.0...1.2.0
396
[1.1.0]: https://github.com/guzzle/psr7/compare/1.0.0...1.1.0