Skip to content

feat(storage): object versioning updates - #2644

Merged
mandarini merged 1 commit into
masterfrom
tyler/feat/storage-versioning
Sep 2, 2026
Merged

mandarini merged 1 commit into
masterfrom
tyler/feat/storage-versioning

Conversation

@TylerHillery

Copy link
Copy Markdown
Contributor

🔍 Description

Updates to support the new object versioning feature in storage.

What changed?

Several new parameters were added. All changes are additive/optional:

  • Bucket gains versioning_status
  • ListBucketOptions response gains version, archived_at, is_delete_marker, is_versioned on FileObject (list()/remove()) and SearchV2Object (listV2())
  • FileObjectV2 gains archived_at, is_delete_marker, is_versioned
  • SearchOptions/SearchV2Options gain noncurrentVersions, deleteMarkers, exactMatch for list()/listV2()
  • DestinationOptions (shared by move()/copy()) gains sourceVersionId
  • New DeleteObjectEntry type. remove()'s paths param now accepts (string | { path: string; versionId: string })[] instead of string[], to target an exact version for deletion
  • New VersioningStatus, CreateSettableVersioningStatus, UpdateSettableVersioningStatus types: createBucket()/updateBucket() gain a versioningStatus option (DISABLED/ENABLED on create, ENABLED/SUSPENDED on update)
  • download() and info() gain a versionId option to target a specific object version

@TylerHillery
TylerHillery requested review from a team as code owners August 31, 2026 14:19
@github-actions github-actions Bot added the storage-js Related to the storage-js library. label Aug 31, 2026
@coderabbitai

coderabbitai Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: fe14955e-9bf6-497f-b6b7-b8c3ce454248

📥 Commits

Reviewing files that changed from the base of the PR and between 4c15574 and 2a5f721.

📒 Files selected for processing (3)
  • .github/workflows/validate-capabilities.yml
  • packages/core/storage-js/src/lib/types.ts
  • sdk-compliance.yaml

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Summary

Summary by CodeRabbit

  • New Features
    • Added object versioning support for buckets, including configurable versioning states.
    • Added version metadata to file and search results.
    • Added options to search current, noncurrent, or deleted object versions.
    • Added support for downloading, inspecting, copying, and moving specific object versions.
    • Added version-specific object deletion support.

Walkthrough

The storage SDK adds bucket versioning status types and API options. Object and search result types now expose version metadata and version filters. Bucket creation and updates send versioning_status to the API. File operations support source versions for move and copy, version IDs for download and info, and version-specific entries for removal.

Merge Risk: 🔵 Low · up to 2a5f7

The SDK now supports reading, copying, moving, and deleting exact object versions. The change is mergeable with explicit storage-service owner awareness that version identifiers must be validated against the requested bucket and object before access or mutation.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

@supabase/auth-js

npm i https://pkg.pr.new/@supabase/auth-js@2644

@supabase/functions-js

npm i https://pkg.pr.new/@supabase/functions-js@2644

@supabase/postgrest-js

npm i https://pkg.pr.new/@supabase/postgrest-js@2644

@supabase/realtime-js

npm i https://pkg.pr.new/@supabase/realtime-js@2644

@supabase/storage-js

npm i https://pkg.pr.new/@supabase/storage-js@2644

@supabase/supabase-js

npm i https://pkg.pr.new/@supabase/supabase-js@2644

commit: 2a5f721

@TylerHillery

Copy link
Copy Markdown
Contributor Author

Putting PR in draft while I investigate the SDK compliance CI failure

@coveralls

coveralls commented Aug 31, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 81.973% (+0.007%) from 81.966% — tyler/feat/storage-versioning into master

@TylerHillery
TylerHillery marked this pull request as draft August 31, 2026 14:27
@TylerHillery
TylerHillery force-pushed the tyler/feat/storage-versioning branch 2 times, most recently from cc8a44f to a7a5a65 Compare September 1, 2026 18:01
grdsdev pushed a commit to supabase/sdk that referenced this pull request Sep 1, 2026
## What kind of change does this PR introduce?

Feature

## What is the current behavior?

N/A

## What is the new behavior?

Added the storage capabilities for the new object versioning feature.
Not having this is causing my PR supabase/supabase-js#2644 to fail

## Additional context

Used the `capability-matrix` skill to generate initial draft and made my
edits from there.
@TylerHillery
TylerHillery force-pushed the tyler/feat/storage-versioning branch from a7a5a65 to e54fc81 Compare September 1, 2026 19:05
@mandarini
mandarini force-pushed the tyler/feat/storage-versioning branch from e54fc81 to 4c04087 Compare September 2, 2026 12:12
@TylerHillery
TylerHillery force-pushed the tyler/feat/storage-versioning branch from 4c04087 to 2a5f721 Compare September 2, 2026 12:18
@TylerHillery
TylerHillery marked this pull request as ready for review September 2, 2026 12:18
@TylerHillery
TylerHillery requested review from a team as code owners September 2, 2026 12:18
@mandarini
mandarini force-pushed the tyler/feat/storage-versioning branch 2 times, most recently from 7672d21 to 2a5f721 Compare September 2, 2026 12:31
@mandarini
mandarini merged commit 3366c56 into master Sep 2, 2026
54 of 57 checks passed
@mandarini
mandarini deleted the tyler/feat/storage-versioning branch September 2, 2026 12:55
mandarini pushed a commit to supabase/ssr that referenced this pull request Sep 2, 2026
This PR updates `@supabase/supabase-js` to v2.114.0.

**Source**: supabase-js-stable-release

---

## Release Notes

## v2.114.0

## 2.114.0 (2026-09-02)

### 🚀 Features

- **storage:** object versioning updates
([#2644](supabase/supabase-js#2644))

### 🩹 Fixes

- **auth:** unenroll the unverified factor after a failed registration
([#2641](supabase/supabase-js#2641))
- **deps:** override browserslist to patch high-severity advisories
([#2652](supabase/supabase-js#2652))

### ❤️ Thank You

- Katerina Skroumpelou @mandarini
- Miodrag Obradovic @Kjubikstronk
- Tyler Hillery
## v2.113.0

## 2.113.0 (2026-09-02)

### 🚀 Features

- **realtime:** allow wait for pg changes
([#2630](supabase/supabase-js#2630))

### ❤️ Thank You

- Filipe Cabaço @filipecabaco

This PR was created automatically.

Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

storage-js Related to the storage-js library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants