Repository navigation
chore(deps): allow utopia-php/query 0.9 - #1085
Conversation
0.9 is 0.8 with the PHP sources removed: it requires the utopia extension, whose classes the extension lane here already runs against. The lock stays on 0.8 so the lanes without the extension keep working. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Code review
The Composer constraint now allows either utopia-php/query 0.8 or 0.9. The lockfile continues to resolve query 0.8.0 while updating its content hash and lock metadata. Note Not approving while a bug finding is open: ext-utopia alone does not guarantee the query library is enabled Findings (1)
Fix with agent prompt### Issue 1
composer.json:57
**ext-utopia alone does not guarantee the query library is enabled**
Composer satisfies this alternative whenever the extension is installed, even if an application configures `utopia.libraries=validators` or another explicit list without `query`. Query 0.9 removes the PHP implementations, so `Utopia\Query\NativeQuery` and the other query classes are then unavailable at runtime; the 0.8 PHP fallback worked in that configuration.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Walkthrough (2)
Reviewed Tip Comment |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
| "utopia-php/pools": "^2.0", | ||
| "utopia-php/mongo": "^1.5.4", | ||
| "utopia-php/query": "^0.8.0", | ||
| "utopia-php/query": "^0.8.0 || ^0.9.0", |
There was a problem hiding this comment.
ext-utopia alone does not guarantee the query library is enabled
Composer satisfies this alternative whenever the extension is installed, even if an application configures utopia.libraries=validators or another explicit list without query. Query 0.9 removes the PHP implementations, so Utopia\Query\NativeQuery and the other query classes are then unavailable at runtime; the 0.8 PHP fallback worked in that configuration.
Prompt To Fix With AI
This is a comment left during a code review.
Path: composer.json
Line: 57
Comment:
**ext-utopia alone does not guarantee the query library is enabled**
Composer satisfies this alternative whenever the extension is installed, even if an application configures `utopia.libraries=validators` or another explicit list without `query`. Query 0.9 removes the PHP implementations, so `Utopia\Query\NativeQuery` and the other query classes are then unavailable at runtime; the 0.8 PHP fallback worked in that configuration.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.🟡 Minor · bug · Reply if this doesn't apply.
There was a problem hiding this comment.
Not changing: Composer cannot see utopia.libraries, and an app that lists libraries without query and installs 0.9 fails at boot with a missing class, not silently.

Widens the constraint to
^0.8.0 || ^0.9.0.Query 0.9 is 0.8 with the PHP sources removed. It requires
ext-utopia, so Composer only picks it where the extension is installed, and everyone else stays on 0.8. The lock stays on 0.8.0, which keeps the lanes without the extension working. The extension lane already runs the SQL adapters against the same native classes 0.9 depends on.Blocks the
utopia-php/query0.9.0 release.🤖 Generated with Claude Code
Summary by CodeRabbit