Skip to content

fix(storage): support Validators 0.6 alongside 1.x - #249

Closed
ChiragAgg5k wants to merge 1 commit into
mainfrom
fix/storage-validators-06-compatibility
Closed

ChiragAgg5k wants to merge 1 commit into
mainfrom
fix/storage-validators-06-compatibility

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Summary

Allow Validators ^0.6 alongside the existing ^1.0 support. Storage uses the shared base Validator API, not the Assoc type change introduced in Validators 1.0. No runtime code changes or Client aliases.

This supplies the missing Storage compatibility for appwrite/appwrite#13575 and https://github.com/appwrite-labs/cloud/pull/5734. Published Storage 4.1.0 requires Validators ^1.0, while CE and Domains 4.2 require ^0.6. Storage 4.0.8 instead requires ^0.5, so neither release resolves. A new Storage release is needed after merge; this PR does not publish one.

Verification

PHP 8.5.10, released Client 0.4.4:

  • bin/monorepo test storage with Validators 1.0.1: unit 81 tests / 275 assertions, local MinIO E2E 28 tests / 78 assertions, passed.
  • composer update 'utopia-php/validators:0.6.0' --with-all-dependencies --minimal-changes --ignore-platform-reqs, then composer test: 81 tests / 275 assertions, passed.
  • With Validators 0.6.0, docker compose up -d --wait then composer test:e2e: 28 tests / 78 assertions, passed. An initial direct E2E attempt failed because the preceding monorepo runner had torn down MinIO; the rerun explicitly started it. Container removed after verification.
  • bin/monorepo check storage: Pint, PHPStan, Rector passed against Validators 0.6.0.
  • bin/monorepo validate and git diff --check: passed.
  • CE's unmodified targeted Composer dry-run still rejects all published Storage versions against Validators ^0.6; its lockfile cannot be regenerated until this compatibility is released.

No live S3 services or credentials used. Backend-only change; no screenshots apply. Package lockfiles are not committed.

@greptile-apps

greptile-apps Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge because it makes a narrowly scoped dependency-compatibility change without altering runtime behavior.

Summary

  • Changes no runtime code or public Storage API.
  • Preserves existing Validators 1.x compatibility while allowing consumers pinned to 0.6 to resolve Storage.

Reviews (1) · Last reviewed commit: "fix(storage): support Validators 0.6 alo..."

@ChiragAgg5k

Copy link
Copy Markdown
Member Author

Superseded: the intended migration is Validators ^1.0 throughout the dependency graph, not a compatibility range. Storage already requires ^1.0; no Storage change or release is needed for this.

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.

1 participant