Changelog - 2026-09-08
One vocabulary, on every method
Breaking Behavior ChangeIn one line. Every storage method now takes the same two nouns it returns, so a value you got back can be passed to the next call.
What changed
- Scoped locations. New
IBucketRef { name },IObjectRef { key }andIObjectLocation { bucket, object }replace{ bucket, name }and{ bucketName, objectName }everywhere. - Bucket methods take
{ bucket }.hasBucket,getBucket,createBucketandremoveBuckettake{ bucket };listObjectsanduploadtakebucket: IBucketRef. - Object methods take
{ bucket, object }.getObject,getObjectStream,getStat,removeObject,getObjectTags,replaceObjectTags,presignPut,presignGetandBunS3Helper.writeStream. - Other signatures.
removeObjectstakes{ bucket, objects: IObjectRef[] },normalizeLinkFntakesIObjectLocation, andbuildObjectLinktakes{ bucket, object, ... }. isValidNameis split. UseisValidSegment({ segment }),isValidBucketName({ bucket: { name } })orisValidObjectKey({ object: { key }, maxDepth }). The rules are unchanged.isValidPathis nowisValidObjectKey.- Presign expiry is a duration.
expiresInSeconds: numberisexpiresIn: IDuration.StoragePresignDefaults.PUT_EXPIRES_IN_SECONDSis nowPUT_EXPIRES_IN(10 minutes), andGET_EXPIRES_INis one minute.toExpirySecondsis exported for a helper that signs its own URLs; it throws on an unknown unit. An expiry over 7 days is refused, because SigV4 caps a presigned URL there. - Range reads (Behavior Change). The base
getObjectStreamfallback no longer buffers the whole range in memory and destroys the source when a client disconnects.MinioHelperissues a native ranged GET throughgetPartialObject. IFileStat.metadatadeclaresmimetype(Behavior Change). It is optional, because a backend may report nothing. If you persist it into a NOT NULL column, add a fallback. The built-in asset controller derives one from the object name.
Who is affected
- You call a storage helper directly. Every call site moves, and the compiler lists them.
- You wrote your own
IStorageHelper. The abstract members changed shape; the compiler lists them. - You use
AssetControllerFactoryorStaticAssetComponent. Nothing to do. URLs, routes and response bodies are unchanged.
Breaking changes
WARNING
Every direct storage call changes. TypeScript catches every one of them.
Before:
ts
await helper.getObject({ bucket: 'assets', name: 'photos/q1.png' });After:
ts
await helper.getObject({ bucket: { name: 'assets' }, object: { key: 'photos/q1.png' } });
await helper.presignGet({
bucket: { name: 'assets' },
object: { key: 'report.pdf' },
expiresIn: { unit: DurationUnits.MINUTE, value: 15 },
});See also
- Storage Serves Safely, Answers 404, and Runs on Bun S3 Alone - the rest of this batch