Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.08k stars 1.2k forks source link

Blob Storage: Be able to set api version to use like in the Python package #31606

Open ThomasShih opened 2 hours ago

ThomasShih commented 2 hours ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I can't figure out how to set the outbound api version to use for BlobServiceClient in '@azure/storage-blob'. I would assume there might be two locations where we can set it but I don't see any options in the interfaces/types.

Best pratices in the API docs state that we should set the version, https://learn.microsoft.com/en-us/rest/api/storageservices/versioning-best-practices. While we don't have a use case to set the version on our prod/dev environments, this is breaking our testing.

Describe the solution you'd like

OR

USE CASE We are currently using test containers to spin up azurite instances. Since test containers use docker, we typically retrieve the latest image in our local cache. This means that if the node package updates and has a newer api version that a historical 'latest' image might not support, our testing environment breaks. We get the error of The API version 2024-11-04 is not supported by Azurite.

github-actions[bot] commented 2 hours ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.