The method still may return an empty string when the versioning is disabled on the bucket (that's because the returned <VersioningConfiguration> xml element is empty in such a case).
Otherwise the returned value could be null or undefined, but that may be a breaking change.
I may submit a PR to bring the change if it would be welcome.
Follow-up of #1296, see comment https://github.com/minio/minio-js/issues/1296#issuecomment-2135726689
The method still may return an empty string when the versioning is disabled on the bucket (that's because the returned
<VersioningConfiguration>
xml element is empty in such a case).Otherwise the returned value could be null or undefined, but that may be a breaking change.
I may submit a PR to bring the change if it would be welcome.