Repository navigation
v6.5.0
Object versioning support — full read + write surface against versioned
buckets. None of this changes existing behavior on non-versioned buckets.
New
KoolbaseObjectVersionmodel — one entry in a path's version timeline.
CarriesversionId,size,metadata,isDeleteMarker,isCurrent,
createdAtand the rest of the version-row shape.KoolbaseStorageClient.listVersions({bucket, path})— returns the full
timeline newest-first, current + history mixed.KoolbaseStorageClient.getVersion({bucket, path, versionId})— metadata
for one specific version.KoolbaseStorageClient.restoreVersion({bucket, path, versionId})— brings
a history version back to current; the previously-current row is
snapshotted to history first, so the restore is itself a versioned event.KoolbaseStorageClient.purgeVersion({bucket, path, versionId})— hard
removes a single history version (row + R2 bytes).
Extended
KoolbaseStorageClient.getDownloadUrl(...)accepts an optional
versionId— when present, the returned URL points to that specific
version's bytes from.versions/.KoolbaseStorageClient.delete(...)accepts an optionalforcePurge
—truewipes the entire timeline for the path (all history rows,
all.versions/R2 keys, canonical, and the current row).
6.4.0
- feat(storage): edge image transforms (Gap #8).
- New
KoolbaseImageTransformvalue class — width, height,
format, quality, fit, dpr, gravity. Pair with the new
KoolbaseImageFormat,KoolbaseImageFit, and
KoolbaseImageGravityenums for type-safe option construction.
Out-of-range numeric values clamp silently to Cloudflare's
valid ranges (width/height 1–2000, quality 1–100, dpr 1–3). KoolbaseStorageClient.publicUrl({transform})and
KoolbaseObject.publicUrl(bucket, {transform})accept an
optional transform; the resulting URL hits Cloudflare's image
pipeline atcdn.koolbase.com/cdn-cgi/image/<opts>/...and
serves a resized, re-encoded copy of the source. Original URL
behavior unchanged whentransformis omitted.KoolbaseStorageClient.publicUrlWithPreset({projectId, presetName, bucket, path})and
KoolbaseObject.publicUrlWithPreset(bucket, presetName)
resolve a named preset stored server-side (managed via the
dashboard or REST API) atcdn.koolbase.com/p/{project_id}/ {preset_name}/{bucket}/{path}. Edit the preset once on the
server and every URL using it updates as the edge cache rolls
over.
- New
- Cloudflare bills unique transformations per calendar month;
every Koolbase account includes 5,000 free. Transformed
responses are edge-cached for 4 hours. - No breaking changes. All new APIs are additive; existing
publicUrlcalls withouttransformproduce the exact same
URL they did in 6.3.0.
6.3.0
- feat(storage): public bucket CDN URLs (Gap #2 SDK polish).
KoolbaseObjectgains anr2Bucket: Stringfield identifying
which physical R2 bucket holds the object's bytes. Always
populated.'koolbase-storage-public'means the object has a
stable CDN URL; anything else (typically'koolbase-storage')
means it's in private storage and reads go through a presigned
URL viagetDownloadUrl.KoolbaseObject.publicUrl(String bucketName)returns the stable
https://cdn.koolbase.com/...URL for the object when it lives
in the public R2 bucket,nullotherwise. Use this when you
have an object instance and want a safe URL — returnsnull
rather than a URL that 404s for private or legacy public-bucket
files.KoolbaseStorageClient.publicUrl({projectId, bucket, path})—
static helper that builds the CDN URL pattern unconditionally.
Use for build-time URL generation where you have the inputs but
don't need (or want) a check that the file is actually in a
public bucket.
- No breaking changes.
getDownloadUrlalready returns the CDN URL
for objects in public buckets since the server-side Gap #2 deploy
on Jun 2 2026 — this release just makes that URL constructible
without a network round-trip.