Skip to content

Commit af8eda0

Browse files
authored
Merge pull request #5981 from jrfnl/feature/update-requests
2 parents c9224d4 + 887b0bb commit af8eda0

File tree

11 files changed

+451
-149
lines changed

11 files changed

+451
-149
lines changed

bundle/rmccue/requests/CHANGELOG.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,61 @@
11
Changelog
22
=========
33

4+
2.0.12
5+
------
6+
7+
### Overview of changes
8+
- Update bundled certificates as of 2024-07-02. [#877]
9+
10+
[#877]: https://github.com/WordPress/Requests/pull/877
11+
12+
2.0.11
13+
------
14+
15+
### Overview of changes
16+
- Update bundled certificates as of 2024-03-11. [#864]
17+
- Fixed: PHP 8.4 deprecation of the two parameter signature of `stream_context_set_option()`. [#822] Props [@jrfnl][gh-jrfnl]
18+
- Fixed: PHP 8.4 deprecation of implicitly nullable parameter. [#865] Props [@Ayesh][gh-ayesh], [@jrfnl][gh-jrfnl]
19+
Note: this fix constitutes an, albeit small, breaking change to the signature of the `Cookie::parse_from_headers()` method.
20+
Classes which extend the `Cookie` class and overload the `parse_from_headers()` method should be updated for the new method signature.
21+
Additionally, if code calling the `Cookie::parse_from_headers()` method would be wrapped in a `try - catch` to catch a potential PHP `TypeError` (PHP 7.0+) or `Exception` (PHP < 7.0) for when invalid data was passed as the `$origin` parameter, this code will need to be updated to now also catch a potential `WpOrg\Requests\Exception\InvalidArgumentException`.
22+
As due diligence could not find any classes which would be affected by this BC-break, we have deemed it acceptable to include this fix in the 2.0.11 release.
23+
24+
[#822]: https://github.com/WordPress/Requests/pull/822
25+
[#864]: https://github.com/WordPress/Requests/pull/864
26+
[#865]: https://github.com/WordPress/Requests/pull/865
27+
28+
2.0.10
29+
------
30+
31+
### Overview of changes
32+
- Update bundled certificates as of 2023-12-04. [#850]
33+
34+
[#850]: https://github.com/WordPress/Requests/pull/850
35+
36+
2.0.9
37+
-----
38+
39+
### Overview of changes
40+
- Hotfix: Rollback changes from PR [#657]. [#839] Props [@tomsommer][gh-tomsommer] & [@laszlof][gh-laszlof]
41+
42+
[#839]: https://github.com/WordPress/Requests/pull/839
43+
44+
2.0.8
45+
-----
46+
47+
### Overview of changes
48+
- Update bundled certificates as of 2023-08-22. [#823]
49+
- Fixed: only force close cURL connection when needed (cURL < 7.22). [#656], [#657] Props [@mircobabini][gh-mircobabini]
50+
- Composer: updated list of suggested PHP extensions to enable. [#821]
51+
- README: add information about the PSR-7/PSR-18 wrapper for Requests. [#827]
52+
53+
[#656]: https://github.com/WordPress/Requests/pull/656
54+
[#657]: https://github.com/WordPress/Requests/pull/657
55+
[#821]: https://github.com/WordPress/Requests/pull/821
56+
[#823]: https://github.com/WordPress/Requests/pull/823
57+
[#827]: https://github.com/WordPress/Requests/pull/827
58+
459
2.0.7
560
-----
661

@@ -65,7 +120,7 @@ Changelog
65120
- Docs: the Hook documentation has been updated to reflect the current available hooks. [#646]
66121
- General housekeeping. [#635], [#649], [#650], [#653], [#655], [#658], [#660], [#661], [#662], [#669], [#671], [#672], [#674]
67122

68-
Props [@alpipego][gh-alpipego], [@costdev][gh-costdev], [@jegrandet][gh-jegrandet] [@jrfnl][gh-jrfnl], [@schlessera][gh-schlessera]
123+
Props [@alpipego][gh-alpipego], [@costdev][gh-costdev], [@jegrandet][gh-jegrandet], [@jrfnl][gh-jrfnl], [@schlessera][gh-schlessera]
69124

70125
[#674]: https://github.com/WordPress/Requests/pull/674
71126
[#672]: https://github.com/WordPress/Requests/pull/672
@@ -983,6 +1038,7 @@ Initial release!
9831038
[gh-adri]: https://github.com/adri
9841039
[gh-alpipego]: https://github.com/alpipego/
9851040
[gh-amandato]: https://github.com/amandato
1041+
[gh-ayesh]: https://github.com/Ayesh
9861042
[gh-beutnagel]: https://github.com/beutnagel
9871043
[gh-carlalexander]: https://github.com/carlalexander
9881044
[gh-catharsisjelly]: https://github.com/catharsisjelly
@@ -1000,8 +1056,10 @@ Initial release!
10001056
[gh-jrfnl]: https://github.com/jrfnl
10011057
[gh-KasperFranz]: https://github.com/KasperFranz
10021058
[gh-kwuerl]: https://github.com/kwuerl
1059+
[gh-laszlof]: https://github.com/laszlof
10031060
[gh-laurentmartelli]: https://github.com/laurentmartelli
10041061
[gh-mbabker]: https://github.com/mbabker
1062+
[gh-mircobabini]: https://github.com/mircobabini
10051063
[gh-mishan]: https://github.com/mishan
10061064
[gh-ntwb]: https://github.com/ntwb
10071065
[gh-ocean90]: https://github.com/ocean90
@@ -1023,6 +1081,7 @@ Initial release!
10231081
[gh-TimothyBJacobs]: https://github.com/TimothyBJacobs
10241082
[gh-tnorthcutt]: https://github.com/tnorthcutt
10251083
[gh-todeveni]: https://github.com/todeveni
1084+
[gh-tomsommer]: https://github.com/tomsommer
10261085
[gh-tonebender]: https://github.com/tonebender
10271086
[gh-twdnhfr]: https://github.com/twdnhfr
10281087
[gh-TysonAndre]: https://github.com/TysonAndre

bundle/rmccue/requests/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,29 @@ If you'd like to run a single set of tests, specify just the name:
151151
$ phpunit Transport/cURL
152152
```
153153

154+
Requests and PSR-7/PSR-18
155+
-------------------------
156+
157+
[PSR-7][psr-7] describes common interfaces for representing HTTP messages.
158+
[PSR-18][psr-18] describes a common interface for sending HTTP requests and receiving HTTP responses.
159+
160+
Both PSR-7 as well as PSR-18 were created after Requests' conception.
161+
At this time, there is no intention to add a native PSR-7/PSR-18 implementation to the Requests library.
162+
163+
However, the amazing [Artur Weigandt][art4] has created a [package][requests-psr-18], which allows you to use Requests as a PSR-7 compatible PSR-18 HTTP Client.
164+
If you are interested in a PSR-7/PSR-18 compatible version of Requests, we highly recommend you check out [this package][requests-psr-18].
165+
166+
[psr-7]: https://www.php-fig.org/psr/psr-7/
167+
[psr-18]: https://www.php-fig.org/psr/psr-18/
168+
[art4]: https://github.com/Art4
169+
[requests-psr-18]: https://packagist.org/packages/art4/requests-psr18-adapter
170+
171+
154172
Contribute
155173
----------
156174

157175
1. Check for open issues or open a new issue for a feature request or a bug.
158-
2. Fork [the repository][] on GitHub to start making your changes to the
176+
2. Fork [the repository][] on Github to start making your changes to the
159177
`develop` branch (or branch off of it).
160178
3. Write one or more tests which show that the bug was fixed or that the feature works as expected.
161179
4. Send in a pull request.

0 commit comments

Comments
 (0)