Skip to content

chore: use v0.5 fetch library#76

Merged
Meldiron merged 1 commit intomainfrom
fetch-lib-version
Mar 23, 2026
Merged

chore: use v0.5 fetch library#76
Meldiron merged 1 commit intomainfrom
fetch-lib-version

Conversation

@hmacr
Copy link
Copy Markdown
Contributor

@hmacr hmacr commented Mar 23, 2026

No description provided.

@greptile-apps
Copy link
Copy Markdown

greptile-apps bot commented Mar 23, 2026

Greptile Summary

This PR downgrades the utopia-php/fetch dependency from 1.0.* to 0.5.*, updating both composer.json and composer.lock accordingly. The core library (src/VCS/Adapter.php) uses raw curl for all HTTP calls and is unaffected; the fetch library is only used in tests (tests/VCS/Base.php) for making requests to the request-catcher test helper.

Key observations:

  • The downgrade is intentional ("use v0.5 fetch library" in the title), moving from the current stable v1.0.0 (January 2026) back to v0.5.1 (December 2025).
  • The composer.lock diff also shows swoole/ide-helper was dropped as a dev dependency of utopia-php/fetch in v0.5.1, which may be the motivation for pinning to this older version.
  • tests/VCS/Base.php uses $response->getStatusCode() and $response->text() — confirming these methods exist in the v0.5.x API would prevent test failures.
  • Minor format normalization in composer.lock: stability-flags and platform-dev changed from empty arrays [] to empty objects {}, which is a harmless Composer serialization difference.

Confidence Score: 4/5

  • This PR is safe to merge, with low risk; the only concern is verifying API compatibility of the downgraded library in the test helper.
  • The change is limited in scope (dependency version pin only), the core library is unaffected (uses raw curl), and the fetch library is only used in tests. The main uncertainty is whether v0.5.x exposes the same getStatusCode() / text() response methods as v1.0.x, which would affect test execution rather than production behaviour.
  • No files require special attention beyond confirming utopia-php/fetch v0.5.x API compatibility with usages in tests/VCS/Base.php.

Important Files Changed

Filename Overview
composer.json Downgrades utopia-php/fetch dependency from 1.0.* to 0.5.*; this is an intentional downgrade to an older (pre-v1.0) version of the library.
composer.lock Lock file updated to reflect the downgrade of utopia-php/fetch from 1.0.0 to 0.5.1, including updated git reference and timestamp. Also includes minor format normalization of stability-flags and platform-dev from empty arrays [] to empty objects {}.

Reviews (1): Last reviewed commit: "chore: use v0.5 fetch library" | Re-trigger Greptile

@Meldiron Meldiron merged commit 0efe842 into main Mar 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants