Skip to content

Releases: phpgt/Fetch

June 2026 release

Choose a tag to compare

@g105b g105b released this 22 Jun 21:52
ab5df84

What's Changed

Full Changelog: v1.2.2...v1.2.3

December 2025 release

Choose a tag to compare

@g105b g105b released this 09 Dec 23:17
bc34736

What's Changed

Full Changelog: v1.2.1...v1.2.2

Await functions, upgraded Promises, security fix

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

New `awaitFetch` method

Choose a tag to compare

@g105b g105b released this 31 Jan 09:54
dc0ebc6

What's Changed

Full Changelog: v1.1.1...v1.2.0

Refactor web APIs to phpgt/http

Choose a tag to compare

@g105b g105b released this 11 Jul 18:08
44df571

This release refactors the web API classes used in this repository into the upstream phpgt/http library.

What's Changed

New Contributors

Full Changelog: v1.1.0...v1.1.1

Replaced async functionality

Choose a tag to compare

@g105b g105b released this 20 Jan 17:50
59a3d1c

This feature removes any third part implementations of the underlying Promise implementation.

What's Changed

Full Changelog: v1.0.1...v1.1.0

JSON improvements

Choose a tag to compare

@g105b g105b released this 29 Dec 20:55
927f847

Type-safe functions have been added to the Json object, along with enhanced iterator functions. This release is being made ready for the work starting on v2, where PhpGt's Async functions are integrated as opposed to React's.

Stable release

Choose a tag to compare

@g105b g105b released this 20 Jun 15:08

The last few weeks have seen many PHP.Gt repositories reach stable release, and as Fetch was dependent on a few core repositories, is has finally got a clear dependency tree of stable repositories through Composer.

Blob response type

Blob response type Pre-release
Pre-release

Choose a tag to compare

@g105b g105b released this 22 May 08:41

The 0.7.x releases mark the final steps towards stable release, implementing the other types of response, starting with the blob type.

Implementing the different types has outlined a potential new repository for PhpGt: WebAPI, which would be a collection of the standard objects that make up the W3C WebAPI, such as Blob, ArrayBuffer, etc. For now, these exist within Fetch, because there doesn't seem to be much use of reusing them on the server elsewhere... yet.

CURLOPT from RequestInterface

Pre-release

Choose a tag to compare

@g105b g105b released this 22 May 08:37
122111b

Calling the fetch method with a PSR-7 RequestInterface is now possible, with the library converting the properties of the Request object to the corresponding CURLOPT settings.