Subversion-Projekte lars-tiefland.laravel_shop

Revision

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