2019.10 12.0.0-preview.5
- [Breaking] Major API changes for the
@azure/storage-queue
package.- Flattened Client Hierarchy -
QueueClient
is flattened intoQueueServiceClient
,MesagesClient
is renamed toQueueClient
,MessageIdClient
is flattened into the newQueueClient
. PR #5579enqueueMessage
is renamed assendMessage
,dequeueMessages
is renamed toreceiveMessages
- The new
QueueServiceClient
hascreateQueue
anddeleteQueue
helper methods. - Names of
Options
andResponses
as per the new hierarchy of clients. PR #5617- Example -
MessagesClearOptions
is renamed toQueueClearMessagesOptions
,MessagesEnqueueResponse
is renamed toQueueSendMessageResponse
.
- Example -
DequeuedMessageItem
is renamed toReceivedMessageItem
PR #5661
- Flattened Client Hierarchy -
- Created new interface
CommonOptions
. This interface is for standard options that apply to all methods that invoke remote operations. This interface currently contains options that enable client-side tracing of the SDK. PR #5550 - [Breaking]
IPRange
is renamed toSasIPRange
. PR #5551 - [Breaking]
Models
is no longer exported in public API surface. Instead generated model types required by the public API are explicitly re-exported and aliased withModel
suffix.
For example, after this change,Models.QueueItem
becomesQueueItemModel
. PR #5534 - [Breaking] Cancelling an operation now throws a standardized error with the name
AbortError
. PR #5633 - [Breaking]
queueName
onQueueClient
is renamed toname
. PR #5613 - [Breaking]
body
field fromRestError
Object in core-http Library is removed, theresponse
property on the error will now have theparsedBody
&headers
along with raw body & headers that are already present. PRs #5670, #5437- Errors from the storage service can be seen in an extra field
details
with the expected error code. #5688
- Errors from the storage service can be seen in an extra field
- [Breaking] Type of the
permissions
attribute in the options bagFileSASSignatureValues
to be passed intogenerateQueueSASQueryParameters
is changed toQueueSASPermissions
from typestring
. PR #5626- Similarly,
AccountSASPermissions
forgenerateAccountSASQueryParameters
instead of typestring
. - Example - permissions attribute in
generateQueueSASQueryParameters
permissions: QueueSASPermissions.parse("racwd").toString()
changes toQueueSASPermissions.parse("racwd")
- Similarly,
- [Breaking] Appropriate attribute renames in all the interfaces PR #5629
- Example -
nextMarker
->continuationToken
,HTTPClient
->HttpClient
,permission
->permissions
- Example -
- Bug fix - Name properties on clients now support the Emulator. PR #5557
- emulator url when the queueEndpoint is
http://127.0.0.1:10001/devstoreaccount1
supported - emulator connection string shorthands are supported
UseDevelopmentStorage=true
- (with proxyURI)
UseDevelopmentStorage=true;DevelopmentStorageProxyUri=proxyURI
- emulator url when the queueEndpoint is
- [Breaking] IE11 needs
Object.assign
polyfill loaded. PR #5727