Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 991 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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