Skip to content

v6.5.0

Choose a tag to compare

@github-actions github-actions released this 05 Jun 18:32
· 194 commits to main since this release

Object versioning support — full read + write surface against versioned
buckets. None of this changes existing behavior on non-versioned buckets.

New

  • KoolbaseObjectVersion model — one entry in a path's version timeline.
    Carries versionId, size, metadata, isDeleteMarker, isCurrent,
    createdAt and 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 optional forcePurge
    — true wipes 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 KoolbaseImageTransform value class — width, height,
      format, quality, fit, dpr, gravity. Pair with the new
      KoolbaseImageFormat, KoolbaseImageFit, and
      KoolbaseImageGravity enums 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 at cdn.koolbase.com/cdn-cgi/image/<opts>/... and
      serves a resized, re-encoded copy of the source. Original URL
      behavior unchanged when transform is 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) at cdn.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.
  • 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
    publicUrl calls without transform produce the exact same
    URL they did in 6.3.0.

6.3.0

  • feat(storage): public bucket CDN URLs (Gap #2 SDK polish).
    • KoolbaseObject gains an r2Bucket: String field 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 via getDownloadUrl.
    • KoolbaseObject.publicUrl(String bucketName) returns the stable
      https://cdn.koolbase.com/... URL for the object when it lives
      in the public R2 bucket, null otherwise. Use this when you
      have an object instance and want a safe URL — returns null
      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. getDownloadUrl already 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.