Updating libs
parent
b14cdaeaa0
commit
ce812b88d4
|
@ -8,16 +8,16 @@
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/guzzle",
|
"name": "guzzlehttp/guzzle",
|
||||||
"version": "7.4.5",
|
"version": "7.5.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/guzzle/guzzle.git",
|
"url": "https://github.com/guzzle/guzzle.git",
|
||||||
"reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82"
|
"reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
|
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba",
|
||||||
"reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
|
"reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -32,10 +32,10 @@
|
||||||
"psr/http-client-implementation": "1.0"
|
"psr/http-client-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
"bamarni/composer-bin-plugin": "^1.8.1",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"php-http/client-integration-tests": "^3.0",
|
"php-http/client-integration-tests": "^3.0",
|
||||||
"phpunit/phpunit": "^8.5.5 || ^9.3.5",
|
"phpunit/phpunit": "^8.5.29 || ^9.5.23",
|
||||||
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
@ -45,8 +45,12 @@
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
|
"bamarni-bin": {
|
||||||
|
"bin-links": true,
|
||||||
|
"forward-command": false
|
||||||
|
},
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "7.4-dev"
|
"dev-master": "7.5-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -112,7 +116,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/guzzle/guzzle/issues",
|
"issues": "https://github.com/guzzle/guzzle/issues",
|
||||||
"source": "https://github.com/guzzle/guzzle/tree/7.4.5"
|
"source": "https://github.com/guzzle/guzzle/tree/7.5.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -128,20 +132,20 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-06-20T22:16:13+00:00"
|
"time": "2022-08-28T15:39:27+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/promises",
|
"name": "guzzlehttp/promises",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/guzzle/promises.git",
|
"url": "https://github.com/guzzle/promises.git",
|
||||||
"reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da"
|
"reference": "b94b2807d85443f9719887892882d0329d1e2598"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
|
"url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598",
|
||||||
"reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
|
"reference": "b94b2807d85443f9719887892882d0329d1e2598",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -196,7 +200,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/guzzle/promises/issues",
|
"issues": "https://github.com/guzzle/promises/issues",
|
||||||
"source": "https://github.com/guzzle/promises/tree/1.5.1"
|
"source": "https://github.com/guzzle/promises/tree/1.5.2"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -212,20 +216,20 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2021-10-22T20:56:57+00:00"
|
"time": "2022-08-28T14:55:35+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/psr7",
|
"name": "guzzlehttp/psr7",
|
||||||
"version": "2.4.0",
|
"version": "2.4.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/guzzle/psr7.git",
|
"url": "https://github.com/guzzle/psr7.git",
|
||||||
"reference": "13388f00956b1503577598873fffb5ae994b5737"
|
"reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737",
|
"url": "https://api.github.com/repos/guzzle/psr7/zipball/69568e4293f4fa993f3b0e51c9723e1e17c41379",
|
||||||
"reference": "13388f00956b1503577598873fffb5ae994b5737",
|
"reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -239,15 +243,19 @@
|
||||||
"psr/http-message-implementation": "1.0"
|
"psr/http-message-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
"bamarni/composer-bin-plugin": "^1.8.1",
|
||||||
"http-interop/http-factory-tests": "^0.9",
|
"http-interop/http-factory-tests": "^0.9",
|
||||||
"phpunit/phpunit": "^8.5.8 || ^9.3.10"
|
"phpunit/phpunit": "^8.5.29 || ^9.5.23"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
|
"bamarni-bin": {
|
||||||
|
"bin-links": true,
|
||||||
|
"forward-command": false
|
||||||
|
},
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.4-dev"
|
"dev-master": "2.4-dev"
|
||||||
}
|
}
|
||||||
|
@ -311,7 +319,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/guzzle/psr7/issues",
|
"issues": "https://github.com/guzzle/psr7/issues",
|
||||||
"source": "https://github.com/guzzle/psr7/tree/2.4.0"
|
"source": "https://github.com/guzzle/psr7/tree/2.4.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -327,7 +335,7 @@
|
||||||
"type": "tidelift"
|
"type": "tidelift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2022-06-20T21:43:11+00:00"
|
"time": "2022-08-28T14:45:39+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "microsoft/microsoft-graph",
|
"name": "microsoft/microsoft-graph",
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/guzzle",
|
"name": "guzzlehttp/guzzle",
|
||||||
"version": "7.4.5",
|
"version": "7.5.0",
|
||||||
"version_normalized": "7.4.5.0",
|
"version_normalized": "7.5.0.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/guzzle/guzzle.git",
|
"url": "https://github.com/guzzle/guzzle.git",
|
||||||
"reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82"
|
"reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
|
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/b50a2a1251152e43f6a37f0fa053e730a67d25ba",
|
||||||
"reference": "1dd98b0564cb3f6bd16ce683cb755f94c10fbd82",
|
"reference": "b50a2a1251152e43f6a37f0fa053e730a67d25ba",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -27,10 +27,10 @@
|
||||||
"psr/http-client-implementation": "1.0"
|
"psr/http-client-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
"bamarni/composer-bin-plugin": "^1.8.1",
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"php-http/client-integration-tests": "^3.0",
|
"php-http/client-integration-tests": "^3.0",
|
||||||
"phpunit/phpunit": "^8.5.5 || ^9.3.5",
|
"phpunit/phpunit": "^8.5.29 || ^9.5.23",
|
||||||
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
@ -38,11 +38,15 @@
|
||||||
"ext-intl": "Required for Internationalized Domain Name (IDN) support",
|
"ext-intl": "Required for Internationalized Domain Name (IDN) support",
|
||||||
"psr/log": "Required for using the Log middleware"
|
"psr/log": "Required for using the Log middleware"
|
||||||
},
|
},
|
||||||
"time": "2022-06-20T22:16:13+00:00",
|
"time": "2022-08-28T15:39:27+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
|
"bamarni-bin": {
|
||||||
|
"bin-links": true,
|
||||||
|
"forward-command": false
|
||||||
|
},
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "7.4-dev"
|
"dev-master": "7.5-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"installation-source": "dist",
|
"installation-source": "dist",
|
||||||
|
@ -109,7 +113,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/guzzle/guzzle/issues",
|
"issues": "https://github.com/guzzle/guzzle/issues",
|
||||||
"source": "https://github.com/guzzle/guzzle/tree/7.4.5"
|
"source": "https://github.com/guzzle/guzzle/tree/7.5.0"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -129,17 +133,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/promises",
|
"name": "guzzlehttp/promises",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"version_normalized": "1.5.1.0",
|
"version_normalized": "1.5.2.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/guzzle/promises.git",
|
"url": "https://github.com/guzzle/promises.git",
|
||||||
"reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da"
|
"reference": "b94b2807d85443f9719887892882d0329d1e2598"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/guzzle/promises/zipball/fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
|
"url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598",
|
||||||
"reference": "fe752aedc9fd8fcca3fe7ad05d419d32998a06da",
|
"reference": "b94b2807d85443f9719887892882d0329d1e2598",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -148,7 +152,7 @@
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"symfony/phpunit-bridge": "^4.4 || ^5.1"
|
"symfony/phpunit-bridge": "^4.4 || ^5.1"
|
||||||
},
|
},
|
||||||
"time": "2021-10-22T20:56:57+00:00",
|
"time": "2022-08-28T14:55:35+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
|
@ -196,7 +200,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/guzzle/promises/issues",
|
"issues": "https://github.com/guzzle/promises/issues",
|
||||||
"source": "https://github.com/guzzle/promises/tree/1.5.1"
|
"source": "https://github.com/guzzle/promises/tree/1.5.2"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
@ -216,17 +220,17 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "guzzlehttp/psr7",
|
"name": "guzzlehttp/psr7",
|
||||||
"version": "2.4.0",
|
"version": "2.4.1",
|
||||||
"version_normalized": "2.4.0.0",
|
"version_normalized": "2.4.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/guzzle/psr7.git",
|
"url": "https://github.com/guzzle/psr7.git",
|
||||||
"reference": "13388f00956b1503577598873fffb5ae994b5737"
|
"reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/guzzle/psr7/zipball/13388f00956b1503577598873fffb5ae994b5737",
|
"url": "https://api.github.com/repos/guzzle/psr7/zipball/69568e4293f4fa993f3b0e51c9723e1e17c41379",
|
||||||
"reference": "13388f00956b1503577598873fffb5ae994b5737",
|
"reference": "69568e4293f4fa993f3b0e51c9723e1e17c41379",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
|
@ -240,16 +244,20 @@
|
||||||
"psr/http-message-implementation": "1.0"
|
"psr/http-message-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
"bamarni/composer-bin-plugin": "^1.8.1",
|
||||||
"http-interop/http-factory-tests": "^0.9",
|
"http-interop/http-factory-tests": "^0.9",
|
||||||
"phpunit/phpunit": "^8.5.8 || ^9.3.10"
|
"phpunit/phpunit": "^8.5.29 || ^9.5.23"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
||||||
},
|
},
|
||||||
"time": "2022-06-20T21:43:11+00:00",
|
"time": "2022-08-28T14:45:39+00:00",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
|
"bamarni-bin": {
|
||||||
|
"bin-links": true,
|
||||||
|
"forward-command": false
|
||||||
|
},
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.4-dev"
|
"dev-master": "2.4-dev"
|
||||||
}
|
}
|
||||||
|
@ -314,7 +322,7 @@
|
||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/guzzle/psr7/issues",
|
"issues": "https://github.com/guzzle/psr7/issues",
|
||||||
"source": "https://github.com/guzzle/psr7/tree/2.4.0"
|
"source": "https://github.com/guzzle/psr7/tree/2.4.1"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'reference' => '9089b333d8a10d3ba3902005e7f904814f4bd162',
|
'reference' => 'b14cdaeaa0d5b54c6f00ec27f4f0fb99a3da8cb4',
|
||||||
'name' => '__root__',
|
'name' => '__root__',
|
||||||
'dev' => true,
|
'dev' => true,
|
||||||
),
|
),
|
||||||
|
@ -16,34 +16,34 @@
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../../',
|
'install_path' => __DIR__ . '/../../',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'reference' => '9089b333d8a10d3ba3902005e7f904814f4bd162',
|
'reference' => 'b14cdaeaa0d5b54c6f00ec27f4f0fb99a3da8cb4',
|
||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
),
|
),
|
||||||
'guzzlehttp/guzzle' => array(
|
'guzzlehttp/guzzle' => array(
|
||||||
'pretty_version' => '7.4.5',
|
'pretty_version' => '7.5.0',
|
||||||
'version' => '7.4.5.0',
|
'version' => '7.5.0.0',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
|
'install_path' => __DIR__ . '/../guzzlehttp/guzzle',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'reference' => '1dd98b0564cb3f6bd16ce683cb755f94c10fbd82',
|
'reference' => 'b50a2a1251152e43f6a37f0fa053e730a67d25ba',
|
||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
),
|
),
|
||||||
'guzzlehttp/promises' => array(
|
'guzzlehttp/promises' => array(
|
||||||
'pretty_version' => '1.5.1',
|
'pretty_version' => '1.5.2',
|
||||||
'version' => '1.5.1.0',
|
'version' => '1.5.2.0',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../guzzlehttp/promises',
|
'install_path' => __DIR__ . '/../guzzlehttp/promises',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'reference' => 'fe752aedc9fd8fcca3fe7ad05d419d32998a06da',
|
'reference' => 'b94b2807d85443f9719887892882d0329d1e2598',
|
||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
),
|
),
|
||||||
'guzzlehttp/psr7' => array(
|
'guzzlehttp/psr7' => array(
|
||||||
'pretty_version' => '2.4.0',
|
'pretty_version' => '2.4.1',
|
||||||
'version' => '2.4.0.0',
|
'version' => '2.4.1.0',
|
||||||
'type' => 'library',
|
'type' => 'library',
|
||||||
'install_path' => __DIR__ . '/../guzzlehttp/psr7',
|
'install_path' => __DIR__ . '/../guzzlehttp/psr7',
|
||||||
'aliases' => array(),
|
'aliases' => array(),
|
||||||
'reference' => '13388f00956b1503577598873fffb5ae994b5737',
|
'reference' => '69568e4293f4fa993f3b0e51c9723e1e17c41379',
|
||||||
'dev_requirement' => false,
|
'dev_requirement' => false,
|
||||||
),
|
),
|
||||||
'microsoft/microsoft-graph' => array(
|
'microsoft/microsoft-graph' => array(
|
||||||
|
|
|
@ -2,6 +2,13 @@
|
||||||
|
|
||||||
Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version.
|
Please refer to [UPGRADING](UPGRADING.md) guide for upgrading to a major version.
|
||||||
|
|
||||||
|
## 7.5.0 - 2022-08-28
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Support PHP 8.2
|
||||||
|
- Add request to delay closure params
|
||||||
|
|
||||||
## 7.4.5 - 2022-06-20
|
## 7.4.5 - 2022-06-20
|
||||||
|
|
||||||
* Fix change in port should be considered a change in origin
|
* Fix change in port should be considered a change in origin
|
||||||
|
|
|
@ -63,9 +63,9 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"ext-curl": "*",
|
"ext-curl": "*",
|
||||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
"bamarni/composer-bin-plugin": "^1.8.1",
|
||||||
"php-http/client-integration-tests": "^3.0",
|
"php-http/client-integration-tests": "^3.0",
|
||||||
"phpunit/phpunit": "^8.5.5 || ^9.3.5",
|
"phpunit/phpunit": "^8.5.29 || ^9.5.23",
|
||||||
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
"psr/log": "^1.1 || ^2.0 || ^3.0"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
@ -81,8 +81,12 @@
|
||||||
"sort-packages": true
|
"sort-packages": true
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
|
"bamarni-bin": {
|
||||||
|
"bin-links": true,
|
||||||
|
"forward-command": false
|
||||||
|
},
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "7.4-dev"
|
"dev-master": "7.5-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
|
|
@ -178,7 +178,6 @@ class CookieJar implements CookieJarInterface
|
||||||
|
|
||||||
// Resolve conflicts with previously set cookies
|
// Resolve conflicts with previously set cookies
|
||||||
foreach ($this->cookies as $i => $c) {
|
foreach ($this->cookies as $i => $c) {
|
||||||
|
|
||||||
// Two cookies are identical, when their path, and domain are
|
// Two cookies are identical, when their path, and domain are
|
||||||
// identical.
|
// identical.
|
||||||
if ($c->getPath() != $cookie->getPath() ||
|
if ($c->getPath() != $cookie->getPath() ||
|
||||||
|
|
|
@ -19,6 +19,7 @@ use Psr\Http\Message\RequestInterface;
|
||||||
*
|
*
|
||||||
* @final
|
* @final
|
||||||
*/
|
*/
|
||||||
|
#[\AllowDynamicProperties]
|
||||||
class CurlMultiHandler
|
class CurlMultiHandler
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -109,7 +109,7 @@ class RetryMiddleware
|
||||||
|
|
||||||
private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null): PromiseInterface
|
private function doRetry(RequestInterface $request, array $options, ResponseInterface $response = null): PromiseInterface
|
||||||
{
|
{
|
||||||
$options['delay'] = ($this->delay)(++$options['retries'], $response);
|
$options['delay'] = ($this->delay)(++$options['retries'], $response, $request);
|
||||||
|
|
||||||
return $this($request, $options);
|
return $this($request, $options);
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,6 +86,8 @@ final class Utils
|
||||||
public static function chooseHandler(): callable
|
public static function chooseHandler(): callable
|
||||||
{
|
{
|
||||||
$handler = null;
|
$handler = null;
|
||||||
|
|
||||||
|
if (\defined('CURLOPT_CUSTOMREQUEST')) {
|
||||||
if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) {
|
if (\function_exists('curl_multi_exec') && \function_exists('curl_exec')) {
|
||||||
$handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
|
$handler = Proxy::wrapSync(new CurlMultiHandler(), new CurlHandler());
|
||||||
} elseif (\function_exists('curl_exec')) {
|
} elseif (\function_exists('curl_exec')) {
|
||||||
|
@ -93,6 +95,7 @@ final class Utils
|
||||||
} elseif (\function_exists('curl_multi_exec')) {
|
} elseif (\function_exists('curl_multi_exec')) {
|
||||||
$handler = new CurlMultiHandler();
|
$handler = new CurlMultiHandler();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (\ini_get('allow_url_fopen')) {
|
if (\ini_get('allow_url_fopen')) {
|
||||||
$handler = $handler
|
$handler = $handler
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
# CHANGELOG
|
# CHANGELOG
|
||||||
|
|
||||||
|
## 1.5.2 - 2022-08-07
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Officially support PHP 8.2
|
||||||
|
|
||||||
## 1.5.1 - 2021-10-22
|
## 1.5.1 - 2021-10-22
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -12,10 +18,11 @@
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Call handler when waiting on fulfilled/rejected Promise
|
- Call handler when waiting on fulfilled/rejected Promise
|
||||||
|
- Officially support PHP 8.1
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fix manually settle promises generated with Utils::task
|
- Fix manually settle promises generated with `Utils::task`
|
||||||
|
|
||||||
## 1.4.1 - 2021-02-18
|
## 1.4.1 - 2021-02-18
|
||||||
|
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
all: clean test
|
|
||||||
|
|
||||||
test:
|
|
||||||
vendor/bin/phpunit
|
|
||||||
|
|
||||||
coverage:
|
|
||||||
vendor/bin/phpunit --coverage-html=artifacts/coverage
|
|
||||||
|
|
||||||
view-coverage:
|
|
||||||
open artifacts/coverage/index.html
|
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -rf artifacts/*
|
|
|
@ -17,7 +17,7 @@ for a general introduction to promises.
|
||||||
- [Implementation notes](#implementation-notes)
|
- [Implementation notes](#implementation-notes)
|
||||||
|
|
||||||
|
|
||||||
# Features
|
## Features
|
||||||
|
|
||||||
- [Promises/A+](https://promisesaplus.com/) implementation.
|
- [Promises/A+](https://promisesaplus.com/) implementation.
|
||||||
- Promise resolution and chaining is handled iteratively, allowing for
|
- Promise resolution and chaining is handled iteratively, allowing for
|
||||||
|
@ -29,15 +29,14 @@ for a general introduction to promises.
|
||||||
`GuzzleHttp\Promise\Coroutine::of()`.
|
`GuzzleHttp\Promise\Coroutine::of()`.
|
||||||
|
|
||||||
|
|
||||||
# Quick start
|
## Quick Start
|
||||||
|
|
||||||
A *promise* represents the eventual result of an asynchronous operation. The
|
A *promise* represents the eventual result of an asynchronous operation. The
|
||||||
primary way of interacting with a promise is through its `then` method, which
|
primary way of interacting with a promise is through its `then` method, which
|
||||||
registers callbacks to receive either a promise's eventual value or the reason
|
registers callbacks to receive either a promise's eventual value or the reason
|
||||||
why the promise cannot be fulfilled.
|
why the promise cannot be fulfilled.
|
||||||
|
|
||||||
|
### Callbacks
|
||||||
## Callbacks
|
|
||||||
|
|
||||||
Callbacks are registered with the `then` method by providing an optional
|
Callbacks are registered with the `then` method by providing an optional
|
||||||
`$onFulfilled` followed by an optional `$onRejected` function.
|
`$onFulfilled` followed by an optional `$onRejected` function.
|
||||||
|
@ -60,12 +59,11 @@ $promise->then(
|
||||||
```
|
```
|
||||||
|
|
||||||
*Resolving* a promise means that you either fulfill a promise with a *value* or
|
*Resolving* a promise means that you either fulfill a promise with a *value* or
|
||||||
reject a promise with a *reason*. Resolving a promises triggers callbacks
|
reject a promise with a *reason*. Resolving a promise triggers callbacks
|
||||||
registered with the promises's `then` method. These callbacks are triggered
|
registered with the promise's `then` method. These callbacks are triggered
|
||||||
only once and in the order in which they were added.
|
only once and in the order in which they were added.
|
||||||
|
|
||||||
|
### Resolving a Promise
|
||||||
## Resolving a promise
|
|
||||||
|
|
||||||
Promises are fulfilled using the `resolve($value)` method. Resolving a promise
|
Promises are fulfilled using the `resolve($value)` method. Resolving a promise
|
||||||
with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger
|
with any value other than a `GuzzleHttp\Promise\RejectedPromise` will trigger
|
||||||
|
@ -92,8 +90,7 @@ $promise
|
||||||
$promise->resolve('reader.');
|
$promise->resolve('reader.');
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Promise Forwarding
|
||||||
## Promise forwarding
|
|
||||||
|
|
||||||
Promises can be chained one after the other. Each then in the chain is a new
|
Promises can be chained one after the other. Each then in the chain is a new
|
||||||
promise. The return value of a promise is what's forwarded to the next
|
promise. The return value of a promise is what's forwarded to the next
|
||||||
|
@ -123,7 +120,7 @@ $promise->resolve('A');
|
||||||
$nextPromise->resolve('B');
|
$nextPromise->resolve('B');
|
||||||
```
|
```
|
||||||
|
|
||||||
## Promise rejection
|
### Promise Rejection
|
||||||
|
|
||||||
When a promise is rejected, the `$onRejected` callbacks are invoked with the
|
When a promise is rejected, the `$onRejected` callbacks are invoked with the
|
||||||
rejection reason.
|
rejection reason.
|
||||||
|
@ -140,7 +137,7 @@ $promise->reject('Error!');
|
||||||
// Outputs "Error!"
|
// Outputs "Error!"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Rejection forwarding
|
### Rejection Forwarding
|
||||||
|
|
||||||
If an exception is thrown in an `$onRejected` callback, subsequent
|
If an exception is thrown in an `$onRejected` callback, subsequent
|
||||||
`$onRejected` callbacks are invoked with the thrown exception as the reason.
|
`$onRejected` callbacks are invoked with the thrown exception as the reason.
|
||||||
|
@ -195,7 +192,8 @@ $promise
|
||||||
$promise->reject('Error!');
|
$promise->reject('Error!');
|
||||||
```
|
```
|
||||||
|
|
||||||
# Synchronous wait
|
|
||||||
|
## Synchronous Wait
|
||||||
|
|
||||||
You can synchronously force promises to complete using a promise's `wait`
|
You can synchronously force promises to complete using a promise's `wait`
|
||||||
method. When creating a promise, you can provide a wait function that is used
|
method. When creating a promise, you can provide a wait function that is used
|
||||||
|
@ -247,8 +245,7 @@ $promise->wait();
|
||||||
|
|
||||||
> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo'
|
> PHP Fatal error: Uncaught exception 'GuzzleHttp\Promise\RejectionException' with message 'The promise was rejected with value: foo'
|
||||||
|
|
||||||
|
### Unwrapping a Promise
|
||||||
## Unwrapping a promise
|
|
||||||
|
|
||||||
When synchronously waiting on a promise, you are joining the state of the
|
When synchronously waiting on a promise, you are joining the state of the
|
||||||
promise into the current state of execution (i.e., return the value of the
|
promise into the current state of execution (i.e., return the value of the
|
||||||
|
@ -275,7 +272,7 @@ wait function will be the value delivered to promise B.
|
||||||
**Note**: when you do not unwrap the promise, no value is returned.
|
**Note**: when you do not unwrap the promise, no value is returned.
|
||||||
|
|
||||||
|
|
||||||
# Cancellation
|
## Cancellation
|
||||||
|
|
||||||
You can cancel a promise that has not yet been fulfilled using the `cancel()`
|
You can cancel a promise that has not yet been fulfilled using the `cancel()`
|
||||||
method of a promise. When creating a promise you can provide an optional
|
method of a promise. When creating a promise you can provide an optional
|
||||||
|
@ -283,10 +280,9 @@ cancel function that when invoked cancels the action of computing a resolution
|
||||||
of the promise.
|
of the promise.
|
||||||
|
|
||||||
|
|
||||||
# API
|
## API
|
||||||
|
|
||||||
|
### Promise
|
||||||
## Promise
|
|
||||||
|
|
||||||
When creating a promise object, you can provide an optional `$waitFn` and
|
When creating a promise object, you can provide an optional `$waitFn` and
|
||||||
`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is
|
`$cancelFn`. `$waitFn` is a function that is invoked with no arguments and is
|
||||||
|
@ -349,7 +345,7 @@ A promise has the following methods:
|
||||||
Rejects the promise with the given `$reason`.
|
Rejects the promise with the given `$reason`.
|
||||||
|
|
||||||
|
|
||||||
## FulfilledPromise
|
### FulfilledPromise
|
||||||
|
|
||||||
A fulfilled promise can be created to represent a promise that has been
|
A fulfilled promise can be created to represent a promise that has been
|
||||||
fulfilled.
|
fulfilled.
|
||||||
|
@ -366,7 +362,7 @@ $promise->then(function ($value) {
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## RejectedPromise
|
### RejectedPromise
|
||||||
|
|
||||||
A rejected promise can be created to represent a promise that has been
|
A rejected promise can be created to represent a promise that has been
|
||||||
rejected.
|
rejected.
|
||||||
|
@ -383,7 +379,7 @@ $promise->then(null, function ($reason) {
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
# Promise interop
|
## Promise Interoperability
|
||||||
|
|
||||||
This library works with foreign promises that have a `then` method. This means
|
This library works with foreign promises that have a `then` method. This means
|
||||||
you can use Guzzle promises with [React promises](https://github.com/reactphp/promise)
|
you can use Guzzle promises with [React promises](https://github.com/reactphp/promise)
|
||||||
|
@ -409,7 +405,7 @@ a foreign promise. You will need to wrap a third-party promise with a Guzzle
|
||||||
promise in order to utilize wait and cancel functions with foreign promises.
|
promise in order to utilize wait and cancel functions with foreign promises.
|
||||||
|
|
||||||
|
|
||||||
## Event Loop Integration
|
### Event Loop Integration
|
||||||
|
|
||||||
In order to keep the stack size constant, Guzzle promises are resolved
|
In order to keep the stack size constant, Guzzle promises are resolved
|
||||||
asynchronously using a task queue. When waiting on promises synchronously, the
|
asynchronously using a task queue. When waiting on promises synchronously, the
|
||||||
|
@ -437,10 +433,9 @@ $loop->addPeriodicTimer(0, [$queue, 'run']);
|
||||||
*TODO*: Perhaps adding a `futureTick()` on each tick would be faster?
|
*TODO*: Perhaps adding a `futureTick()` on each tick would be faster?
|
||||||
|
|
||||||
|
|
||||||
# Implementation notes
|
## Implementation Notes
|
||||||
|
|
||||||
|
### Promise Resolution and Chaining is Handled Iteratively
|
||||||
## Promise resolution and chaining is handled iteratively
|
|
||||||
|
|
||||||
By shuffling pending handlers from one owner to another, promises are
|
By shuffling pending handlers from one owner to another, promises are
|
||||||
resolved iteratively, allowing for "infinite" then chaining.
|
resolved iteratively, allowing for "infinite" then chaining.
|
||||||
|
@ -476,8 +471,7 @@ all of its pending handlers to the new promise. When the new promise is
|
||||||
eventually resolved, all of the pending handlers are delivered the forwarded
|
eventually resolved, all of the pending handlers are delivered the forwarded
|
||||||
value.
|
value.
|
||||||
|
|
||||||
|
### A Promise is the Deferred
|
||||||
## A promise is the deferred.
|
|
||||||
|
|
||||||
Some promise libraries implement promises using a deferred object to represent
|
Some promise libraries implement promises using a deferred object to represent
|
||||||
a computation and a promise object to represent the delivery of the result of
|
a computation and a promise object to represent the delivery of the result of
|
||||||
|
@ -505,7 +499,10 @@ $promise->resolve('foo');
|
||||||
|
|
||||||
## Upgrading from Function API
|
## Upgrading from Function API
|
||||||
|
|
||||||
A static API was first introduced in 1.4.0, in order to mitigate problems with functions conflicting between global and local copies of the package. The function API will be removed in 2.0.0. A migration table has been provided here for your convenience:
|
A static API was first introduced in 1.4.0, in order to mitigate problems with
|
||||||
|
functions conflicting between global and local copies of the package. The
|
||||||
|
function API will be removed in 2.0.0. A migration table has been provided here
|
||||||
|
for your convenience:
|
||||||
|
|
||||||
| Original Function | Replacement Method |
|
| Original Function | Replacement Method |
|
||||||
|----------------|----------------|
|
|----------------|----------------|
|
||||||
|
@ -536,10 +533,12 @@ A static API was first introduced in 1.4.0, in order to mitigate problems with f
|
||||||
|
|
||||||
If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information.
|
If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see [Security Policy](https://github.com/guzzle/promises/security/policy) for more information.
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.
|
Guzzle is made available under the MIT License (MIT). Please see [License File](LICENSE) for more information.
|
||||||
|
|
||||||
|
|
||||||
## For Enterprise
|
## For Enterprise
|
||||||
|
|
||||||
Available as part of the Tidelift Subscription
|
Available as part of the Tidelift Subscription
|
||||||
|
|
|
@ -81,16 +81,8 @@ class EachPromise implements PromisorInterface
|
||||||
$this->iterable->rewind();
|
$this->iterable->rewind();
|
||||||
$this->refillPending();
|
$this->refillPending();
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
/**
|
|
||||||
* @psalm-suppress NullReference
|
|
||||||
* @phpstan-ignore-next-line
|
|
||||||
*/
|
|
||||||
$this->aggregate->reject($e);
|
$this->aggregate->reject($e);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
/**
|
|
||||||
* @psalm-suppress NullReference
|
|
||||||
* @phpstan-ignore-next-line
|
|
||||||
*/
|
|
||||||
$this->aggregate->reject($e);
|
$this->aggregate->reject($e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
## 2.4.1 - 2022-08-28
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Rewind body before reading in `Message::bodySummary`
|
||||||
|
|
||||||
## 2.4.0 - 2022-06-20
|
## 2.4.0 - 2022-06-20
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -60,9 +60,9 @@
|
||||||
"psr/http-message-implementation": "1.0"
|
"psr/http-message-implementation": "1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"bamarni/composer-bin-plugin": "^1.4.1",
|
"bamarni/composer-bin-plugin": "^1.8.1",
|
||||||
"http-interop/http-factory-tests": "^0.9",
|
"http-interop/http-factory-tests": "^0.9",
|
||||||
"phpunit/phpunit": "^8.5.8 || ^9.3.10"
|
"phpunit/phpunit": "^8.5.29 || ^9.5.23"
|
||||||
},
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
"laminas/laminas-httphandlerrunner": "Emit PSR-7 responses"
|
||||||
|
@ -78,6 +78,10 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
|
"bamarni-bin": {
|
||||||
|
"bin-links": true,
|
||||||
|
"forward-command": false
|
||||||
|
},
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "2.4-dev"
|
"dev-master": "2.4-dev"
|
||||||
}
|
}
|
||||||
|
|
|
@ -191,7 +191,6 @@ final class AppendStream implements StreamInterface
|
||||||
$progressToNext = false;
|
$progressToNext = false;
|
||||||
|
|
||||||
while ($remaining > 0) {
|
while ($remaining > 0) {
|
||||||
|
|
||||||
// Progress to the next stream if needed.
|
// Progress to the next stream if needed.
|
||||||
if ($progressToNext || $this->streams[$this->current]->eof()) {
|
if ($progressToNext || $this->streams[$this->current]->eof()) {
|
||||||
$progressToNext = false;
|
$progressToNext = false;
|
||||||
|
|
|
@ -67,6 +67,7 @@ final class Message
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$body->rewind();
|
||||||
$summary = $body->read($truncateAt);
|
$summary = $body->read($truncateAt);
|
||||||
$body->rewind();
|
$body->rewind();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue