Skip to content

Await functions, upgraded Promises, security fix

Latest
Compare
Choose a tag to compare
@g105b g105b released this 02 May 12:23
ccb3b3f

Since there is no await keyword in PHP (yet), the functionality has been included by introducing new sister functions to the asynchronous Response body functions, such as json and text. Append await to the function name, and the returned value will be the resolved value of the Promise. $response->awaitJson() will return a JsonObject, rather than a Promise that resolves a JsonObject.

There was a vulnerability within the Github Actions workflow where the project's build artifact accidentally leaked the Action runner's token, potentially allowing naughty people to interfere with CI runs.

What's Changed

Full Changelog: v1.2.0...v1.2.1