2019.07 Version 12.0.0-preview.1
- [Breaking] Client types are renamed from *URL to *Client.
BlobURL, BlockBlobURL, ContainerURL, ServiceURL, StorageURL to BlobClient, BlockBlobClient, ContainerClient, BlobServiceClient, StorageClient respectively. - [Breaking] Aborter parameters are now moved into option bags.
abortSignal
attrubute(optional) in the option-bag of respective module has to be utitlized for theAborter.timeout(<milliseconds>)
functionality.Aborter.none
is the default value.
- [Breaking] I- prefixes are removed from interface names
- Example-
IBlobDownloadOptions
is updated toBlobDownloadOptions
, the new names must to be used.
- Example-
- [Breaking] The static methods to create client types are removed. The functionality is moved into new instance methods added to the parent clients.
- [Breaking] The telemetry strings have been updated.
Azure-Storage/${SDK_VERSION}
is updated toazsdk-js-storagefile/${SDK_VERSION}
.
- [Breaking] withPipeline method is removed.
- Async iterators with pagination support are added for listing methods
listContainers()
,listBlobsFlat()
andlistBlobsByHierarchy()
- Please refer to the samples for async iterators in the
samples
folder.
- [Breaking] Methods that list segments(
listBlobFlatSegment()
andlistContainersSegment()
) are no longer exposed in public api. - [Breaking] High level convenience functions are moved into clients as their instance member function.
uploadFileToBlockBlob()
,uploadStreamToBlockBlob()
anduploadBrowserDataToBlockBlob()
->BlockBlobClient.uploadFile()
,BlockBlobClient.uploadStream()
andBlockBlobClient.uploadBrowserData()
respectivelydownloadBlobToBuffer()
->BlobClient.downloadToBuffer()
- [Breaking]
StorageClient
is no longer exposed.StorageClient.newPipeline()
static method is moved to the top level exported functionnewPipeline()
. - [Breaking]
TokenCredential
has been renamed toRawTokenCredential
to make way for the new@azure/identity
library'sTokenCredential
interface. - [Breaking] Blob/Container member methods that manage leases are removed. A new type
LeaseClient
is added to manage leases. - Updated dependency
@azure/ms-rest-js
to@azure/core-http
. - Constructor overloads added into client types so they can be constructed from a url and a pipeline/credential and connection string.
- Constructors with overloads -
AppendBlobClient
,BlobClient
,BlobServiceClient
,BlockBlobClient
,ContainerClient
andPageBlocbClient
- Connection string method is supported only in Node.js (not browsers).
- Constructors with overloads -
- Creation/Deletion of child resources are duplicated to parent client type.
- HTTP proxy support is added (Node.js only).
- Please refer to the
proxyAuth.ts
sample in thesamples/typescript
folder.
- Please refer to the
- Request and response headers are now logged at INFO level, with sensitive data redacted.
downloadToFile()
is added toBlobClient
.- Exported
HttpRequestBody
type to allow implementation of a customized HTTP client.
For release notes and more information please visit https://aka.ms/azure-sdk-preview1-js