2019.11 12.0.0
- This release marks the general availability of the
@azure/storage-blob
package. - Bug Fix - Previous versions of
@azure/storage-blob
preview library failed for React apps because of the usage offs.stat
method which is not available in browsers and due to the presence of some circular dependencies. Both of these issues are fixed in this new release. - [Breaking] The custom browser and retry policies that are specific to the Storage libraries have been
renamed to have theStorage
prefix. PR 5862.
Below are the entities that now have the Storage prefix- BrowserPolicy
- BrowserPolicyFactory
- RetryPolicy
- RetryPolicyType
- RetryOptions
- RetryPolicyFactory
- [Breaking]
LeaseClient
is renamed toBlobLeaseClient
. The helper methodgetLeaseClient
on bothBlobClient
andContainerClient
is renamed togetBlobLeaseClient
. - [Breaking] The properties in the
StoragePipelineOptions
interface have been updated as below:- The
proxy
property of typeProxySettings | string
has been renamed toproxyOptions
and
will be of typeProxyOptions
. If you have been passing url directly, split the value intohost
andport
then pass it as a json object. - The
telemetry
property of typeTelemetryOptions
has been renamed touserAgentOptions
of
typeUserAgentOptions
. - The
logger
is no longer a property available to configure. To enable logging, please see the
Troubleshooting section of our readme. - The
UniqueRequestIdPolicy
andKeepAlivePolicy
are no longer exported from this library. The
corresponding policies from the@azure/core-http
library are meant to be used instead.
- The
beginCopyFromURL
is added to theBlobClient
, it returns a poller that can be used to watch the status of a copy operation. It also supports cancelling a pending copy.- Updates to
BlockBlobClient.uploadStream
- [Breaking]
maxBuffers
attribute of is renamed tomaxConcurrency
- Added default values for parameters, bufferSize =
8MB
and maxConcurrency =5
- [Breaking]
- [Breaking] Bug Fix - The page object returned from
ContainerClient.listContainers
had itscontainerItems
property set to an empty string instead of an empty array if the storage account has no blob containers. The issue is fixed in this new release. BlobClient.downloadToBuffer()
helper method has a new overload where it is not required to pass theBuffer
. Attributesoffset
andcount
are optional, downloads the entire blob if they are not provided.- [Breaking] The default browser bundle has been removed from the npm package. Bundling your application with a bundler such as Webpack is the recommended approach to building a browser bundle. For details on how to do this, please refer to our bundling documentation.