Repository navigation
feat(storage): add purge_project_cache capability - #294
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Summary
Priority: ⬇️ Low Change: Feature Merge Risk: ⚪ Minimal · up to
|
🤖 I have created a release *beep* *boop* --- ## [1.18.0](capability-matrix/v1.17.0...capability-matrix/v1.18.0) (2026-10-20) ### Features * **storage:** add purge_project_cache capability ([#294](#294)) ([94b4da6](94b4da6)) * **storage:** add transfer_progress capability and spec ([#282](#282)) ([1d2c1be](1d2c1be)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
## Summary Adds `purgeProjectCache` next to `purgeBucketCache`, so `supabase.storage.purgeProjectCache()` purges the CDN cache for every bucket in the project. ```dart await supabase.storage.purgeProjectCache(); // DELETE /cdn/ await supabase.storage.purgeProjectCache(transformations: true); // DELETE /cdn/?transformations=true ``` `transformations: true` purges only the transformed variants. The default purges the originals and their variants. Like the other purge calls, it needs the service-role key and the tenant `purgeCache` feature. Registered as `storage.file_buckets.purge_project_cache` in `sdk-compliance.yaml`. The capability-matrix pin in `.github/workflows/validate-capabilities.yml` moves to `capability-matrix/v1.18.0`, which defines that id (supabase/sdk#294). ## Evidence - `dart test test/basic_test.dart` in `supabase_storage`: 116 pass, including the two new tests for the request path and the `transformations` query parameter. - `dart analyze` and `dcm analyze` are clean. - Compliance checks run locally against the supabase/sdk#294 branch: symbol check, drift check and `validate-compliance` all pass. Fixes SDK-2298
Summary
New capability
storage.file_buckets.purge_project_cache, next topurge_cacheandpurge_bucket_cache.Storage serves it from
src/http/routes/cdn/purgeCache.ts. Like the other purge calls it needs the service-role key and the tenantpurgeCachefeature. supabase-swift already ships it aspurgeCache(bucket: nil)(supabase/supabase-swift#1546).SDKs do not have to declare the new id:
validate-compliancetreats an undeclared feature asnot_implemented, andsync-complianceadds it as such.Evidence
From
packages/capability-matrix:bun test222 pass / 0 fail;bun run format-and-lintclean;bun run knipclean;bun run validatepasses.Merge Danger
Door: two-way
Blast Radius: registry
Adds one feature id to
capabilities/storage.yaml; every SDK sees it as not implemented until it declares it.