Note: This changelog is deprecated starting with version 1.0.0, please refer to the ChangeLog.md in each package for future change logs.
2018.01 - version 1.0.0
All
- Split azure-storage composer package into azure-storage-blob, azure-storage-table, azure-storage-queue, azure-storage-file and azure-storage-common packages.
- Removed
ServiceBuilder.php, moved static builder methods intoBlobRestProxy,TableRestProxy,QueueRestProxyandFileRestProxy. - Moved method
SharedAccessSignatureHelper::generateBlobServiceSharedAccessSignatureToken()intoBlobSharedAccessSignatureHelper. - Moved method
SharedAccessSignatureHelper::generateTableServiceSharedAccessSignatureToken()intoTableSharedAccessSignatureHelper. - Moved method
SharedAccessSignatureHelper::generateQueueServiceSharedAccessSignatureToken()intoQueueSharedAccessSignatureHelper. - Moved method
SharedAccessSignatureHelper::generateFileServiceSharedAccessSignatureToken()intoFileSharedAccessSignatureHelper. CommonMiddleWareconstructor requires storage service version as parameter now.AccessPolicyclass is now an abstract class, added children classesBlobAccessPolicy,ContainerAccessPolicy,TableAccessPolicy,QueueAccessPolicy,FileAccessPolicyandShareAccessPolicy.- Fixed a bug that
Utilities::allZero()will return true for non-zero data chunks. - Deprecated PHP 5.5 support.
Blob
- Created
BlobSharedAccessSignatureHelperand moved methodSharedAccessSignatureHelper::generateBlobServiceSharedAccessSignatureToken()intoBlobSharedAccessSignatureHelper. - Added static builder methods
createBlobServiceandcreateContainerAnonymousAccessintoBlobRestProxy. - Added
setUseTransactionalMD5method for options ofBlobRestProxy::CreateBlockBlobandBlobRestProxy::CreatePageBlobFromContent. Default false, enabling transactional MD5 validation will take more cpu and memory resources. - Removed
dataSerializerparameter fromBlobRextProxyconstructor. - Fixed a bug that CopyBlobFromURLOptions not found.
Table
- Created
TableSharedAccessSignatureHelperand moved methodSharedAccessSignatureHelper::generateTableServiceSharedAccessSignatureToken()intoTableSharedAccessSignatureHelper. - Added static builder methods
createTableServiceintoTableRestProxy. - Removed
dataSerializerparameter fromTableRextProxyconstructor. - Will change variable type according to EdmType specified when serializing table entity values.
Queue
- Created
QueueSharedAccessSignatureHelperand moved methodSharedAccessSignatureHelper::generateQueueServiceSharedAccessSignatureToken()intoQueueSharedAccessSignatureHelper. - Added static builder methods
createQueueServiceintoQueueRestProxy. - Removed
dataSerializerparameter fromQueueRextProxyconstructor.
File
- Created
FileSharedAccessSignatureHelperand moved methodSharedAccessSignatureHelper::generateFileServiceSharedAccessSignatureToken()intoFileSharedAccessSignatureHelper. - Added static builder methods
createFileServiceintoFileRestProxy. - Added
setUseTransactionalMD5method for option ofFileRestProxy::CreateFileFromContent. Default false, enabling transactional MD5 validation will take more cpu and memory resources. - Removed
dataSerializerparameter fromFileRextProxyconstructor.
2017.09 - version 0.19.1
All
- Fixed a syntax error for PHP 5.5 and 5.6 in
MicrosoftAzure\Storage\Common\Internal::Utilities:isoDate.
2017.09 - version 0.19.0
All
- Fixed wrong
XmlSerializerin ServiceException.php. - Fixed formatting of non-UTC dates when using instances of
DateTimeto generate shared access signatures. - Fixed class loading errors on case-sensitive file systems when testing.
Blob
- Added
CopyBlobFromURLto support copy blob from a source URL including resources in other storage accounts. - Added support for Incremental Copy Page Blob. This allows efficient copying and backup of page blob snapshots.
- Fixed a bug that
BlobRestProxy::createPageBlobFromContentcannot work. - Populate content MD5 for range gets on Blobs.
MicrosoftAzure\Storage\Blob\Models\BlobProperties::getContentMD5()will always return the value of the whole blob’s MD5 value.- Added
MicrosoftAzure\Storage\Blob\Models\BlobProperties::getRangeContentMD5()to get MD5 of a blob range.
- Renamed 2 methods inside
MicrosoftAzure\Storage\Blob\Models\GetBlobOptions:getComputeRangeMD5()->getRangeGetContentMD5()setComputeRangeMD5()->setRangeGetContentMD5()
- The public access level of a container is now returned from the List Containers and Get Container Properties APIs.
MicrosoftAzure\Storage\Blob\Models\GetBlobOptionsandMicrosoftAzure\Storage\Blob\Models\ListPageBlobRangesOptionsnow providesetRange()andgetRange()to accept aMicrosoftAzure\Storage\Common\Models\Rangeobject. Following methods are removed:setRangeStart()getRangeStart()setRangeEnd()getRangeEnd()
Queue
- The
QueueRestProxy::createMessagenow returns information about the message that was just added, including the pop receipt.
File
- Fixed a bug that setting content MD5 cannot work when creating files.
- Option parameter
ListDirectoriesAndFilesOptionsofFileRestProxy::listDirectoriesAndFilesis now able to set a prefix which limits the listing to a specified prefix. - Populate content MD5 for range gets on Files.
MicrosoftAzure\Storage\File\Models\FileProperties::getContentMD5()will always return the value of the whole file’s MD5 value.- Added
MicrosoftAzure\Storage\File\Models\FileProperties::getRangeContentMD5()to get MD5 of a file range.
2017.08 - version 0.18.0
All
- Updated
SharedAccessSignatureHelperto acceptDatetimetype assignedExpiryorsignedStartparameter when generating SAS tokens. - Added samples under the samples folder to generate account level or service level SAS tokens with
SharedAccessSignatureHelper. - Fixed wrong PHPUnit
@coverstags in unit and functional test. - Removed unused imports declarations.
Blob
- Added
BlobRestProxy::listPageBlobRangesDiffandBlobRestProxy::listPageBlobRangesDiffAsyncfor getting page ranges difference. Refer to https://msdn.microsoft.com/en-us/library/azure/mt736912.aspx for more detailed information. - Following methods of
MicrosoftAzure\Storage\Blob\BlobRestProxynow return the x-ms-request-server-encrypted response header. This header is set to true if the contents of the request have been successfully encrypted.createBlockBlob,createPageBlob,createAppendBlob,createBlobPages,createBlobBlock,appendBlock,commitBlobBlocksandsetBlobMetadata.
- Following methods of
MicrosoftAzure\Storage\Blob\BlobRestProxynow return the x-ms-server-encrypted response header. This header is set to true if the blob data and application metadata are completely encrypted. If the blob is not encrypted, or if only parts of the blob/application metadata are encrypted, this header is set to false.getBlobandgetBlobProperties.
2017.07 - version 0.17.0
All
- REST API version upgraded to 2016-05-31.
- Added support for anonymous read access to containers. User can now call
MicrosoftAzure\Storage\Common\ServiceBuilder::createContainerAnonymousAccessto create service proxy to access containers/blobs without credential. - Refined code logic for continuation token. Now continuation token will be null if there are no more instance to be queried/listed.
Blob
- Removed
MicrosoftAzure\Storage\Tests\unit\Blob\Models\BlobContinuationToken, now useMicrosoftAzure\Storage\Common\MarkerContinuationTokeninstead for better code structure and reuse. - Added
MicrosoftAzure\Storage\Tests\unit\Blob\BlobRestProxy::blockSizefor user to control block size.
Table
- Deprecated ATOM support for Table service.
Queue
- Removed
MicrosoftAzure\Storage\Tests\unit\Queue\Models\QueueContinuationToken, now useMicrosoftAzure\Storage\Common\MarkerContinuationTokeninstead for better code structure and reuse.
File
- Removed
MicrosoftAzure\Storage\Tests\unit\File\Models\FileContinuationToken, now useMicrosoftAzure\Storage\Common\MarkerContinuationTokeninstead for better code structure and reuse.
2017.06 - version 0.16.0
All
- Renamed and moved
MicrosoftAzure\Storage\Blob\Models\PageRangetoMicrosoftAzure\Storage\Common\Models\Range. - Added support for Service Shared Access Signature.
- With File service feature parity to 2015-04-05 and Service Shared Access Signature support in this release, the SDK now have full parity for Blob, Table, Queue and File services to REST API version 2015-04-05.
Table
- Created new types for the following APIs to support specifying accepted content type of response payload. Payload is now by default
application/json;odata=minimalmetadata.MicrosoftAzure\Storage\Table\TableRestProxy::createTable&MicrosoftAzure\Storage\Table\TableRestProxy::createTableAsyncnow usesMicrosoftAzure\Storage\Table\Models\TableServiceCreateOptions.MicrosoftAzure\Storage\Table\TableRestProxy::insertEntity&MicrosoftAzure\Storage\Table\TableRestProxy::insertEntityAsyncnow usesMicrosoftAzure\Storage\Table\Models\TableServiceCreateOptions.MicrosoftAzure\Storage\Table\TableRestProxy::getTable&MicrosoftAzure\Storage\Table\TableRestProxy::getTableAsyncnow usesMicrosoftAzure\Storage\Table\Models\GetTableOptions.MicrosoftAzure\Storage\Table\TableRestProxy::getEntity&MicrosoftAzure\Storage\Table\TableRestProxy::getEntityAsyncnow usesMicrosoftAzure\Storage\Table\Models\GetEntityOptions.
- E-Tag can now be null value since when user specified to return minimal/no metadata, E-Tag will not be returned with response.
- When specifying
NO_METADATAfor querying entities, some Edm type, including Edm.Binary, Edm.DateTime and Edm.Guid, could not be determined through the type detection heuristics. For more information, please see Payload Format for Table Service Operations.
Queue
- Renamed
MicrosoftAzure\Storage\Queue\Models\MicrosoftAzureQueueMessagetoMicrosoftAzure\Storage\Queue\Models\QueueMessage
File
- Added full support for File service, with parity to REST API 2015-04-05.
2017.04 - version 0.15.0
All
- Removed
setRequestOptionsfor service options, instead, addedmiddlewares,middlewareStack,numberOfConcurrency,isStreaming,locationModeanddecodeContentfor user to specify the corresponding options. - Added
MicrosoftAzure\Storage\Common\Middlewares\RetryMiddlewareto support retry from secondary endpoint. Advice to use this instead of Guzzle's retry middleware for secondary endpoint retry support. - By setting
$locationModeinMicrosoftAzure\Storage\Common\Models\ServiceOptions, user can perform read operations from secondary endpoint. - Added support for user to use proxies. If
HTTP_PROXYis set as a system variable, the proxy specified with it will be used for HTTP connections. - Removed
MicrosoftAzure\Storage\Common\Models\ServiceProperties::getMetricsandMicrosoftAzure\Storage\Common\Models\ServiceProperties::setMetrics. Added following methods to access hour metrics and minute metrics.
MicrosoftAzure\Storage\Common\Models\ServiceProperties::getHourMetrics
MicrosoftAzure\Storage\Common\Models\ServiceProperties::setHourMetrics
MicrosoftAzure\Storage\Common\Models\ServiceProperties::getMinuteMetrics
MicrosoftAzure\Storage\Common\Models\ServiceProperties::setMinuteMetrics
Blob
-
Access condition feature parity:
- Single
AccessConditionhas been changed to multipleAccessConditionfor the options which support access conditions. - Added
appendPosition,maxBlobSize,ifSequenceNumberLessThan,ifSequenceNumberEqualandifSequenceNumberLessThanOrEqualtoAccessConditionclass. - Added access conditions support for
getContainerProperties,setContainerProperties,getContainerMetadataandsetContainerMetadata.
- Single
-
Copy blob feature parity:
- Added new API
abortCopy. - Added
setIncludeCopytoListBlobsOptionsto support getting copy state information when listing blobs. - Added properties and getters/setters for
CopyIdandCopyStatustoCopyBlobResultclass.
- Added new API
-
Lease feature parity
- Added lease support for
getContainerProperties,setContainerProperties,getContainerMetadata,setContainerMetadataanddeleteContainer. - Renamed
LeaseBlobResulttoLeaseResultto support container and blob lease. - Added container lease support - passing
nullto$blobparameter of the lease related APIs. - Added new parameters
$proposedLeaseIdand$leaseDurationtoacquireLeaseAPI and changed the$optionsparameter fromAcquireLeaseOptionstoBlobServiceOptions. - Added the API
changeLeaseto support changing lease. - Added new parameter
$breakPeriodtobreakLeaseAPI and removed the$leaseIdparameter. - Added properties and getters/setters for
LeaseStatus,LeaseStateandLeaseDurationtoContainerPropertiesclass.
- Added lease support for
-
Container/Blob properties feature parity:
- Added properties and getters/setters for
ContentDisposition,LeaseState,LeaseDurationandCopyStatetoBlobPropertiesclass.
- Added properties and getters/setters for
-
Refactored Options class:
- Exracted
getLeaseId,setLeaseId,getAccessConditionsandsetAccessConditionsto the base options classBlobServiceOptions. - Refactored the
CreateBlobOptions,CommitBlobBlocksOptionsclass to remove duplicate options and standardize the content settings related properties likeContentType,ContentMD5,ContentEncoding,ContentLanguage,CacheControlandContentDisposition.
- Exracted
-
Blob service properties feature parity:
- Added
getDefaultServiceVersion,setDefaultServiceVersion,getMinuteMetricsandsetMinuteMetricstoServicePropertiesclass.
- Added
-
Changed the return type of API
commitBlobBlocksfromvoidtoPutBlobResult. -
Removed the useless API
ctrCryptfromUtilitiesclass. -
Added
getServiceStatsandgetServiceStatsAsyncfor user to request service statistics from the server's secondary endpoint.
Table
- Removed
MicrosoftAzure\Storage\Table\Models\BatchError. When batch operation fails, exception is thrown immediately instead. - Added
getServiceStatsandgetServiceStatsAsyncfor user to request service statistics from the server's secondary endpoint.
Queue
- Added
getServiceStatsandgetServiceStatsAsyncfor user to request service statistics from the server's secondary endpoint.
2017.04 - version 0.14.0
ALL
- Improved the documentation.
- Restructured the classes based on their intended functionality and visiblity. The changes includes:
MicrosoftAzure\Storage\Common\Internal\InvalidArgumentTypeExceptionwas moved toMicrosoftAzure\Storage\Common\Exceptions\InvalidArgumentTypeExceptionMicrosoftAzure\Storage\Common\ServiceExceptionwas moved toMicrosoftAzure\Storage\Exceptions\ServiceExceptionMicrosoftAzure\Storage\Common\Internal\HttpFormatterwas moved toMicrosoftAzure\Storage\Common\Internal\Http\HttpFormatterMicrosoftAzure\Storage\Common\ServiceOptionsBasewas moved toMicrosoftAzure\Storage\Common\Internal\ServiceOptionsBaseMicrosoftAzure\Storage\Common\Internal\Loggerwas moved toMicrosoftAzure\Storage\Common\LoggerMicrosoftAzure\Storage\Common\Internal\Middlewares\HistoryMiddlewarewas moved toMicrosoftAzure\Storage\Common\Middlewares\HistoryMiddlewareMicrosoftAzure\Storage\Common\Internal\IMiddlewarewas moved toMicrosoftAzure\Storage\Common\Middlewares\IMiddlewareMicrosoftAzure\Storage\Common\Internal\Middlewares\MiddlewareBasewas moved toMicrosoftAzure\Storage\Common\Middlewares\MiddlewareBaseMicrosoftAzure\Storage\Common\Internal\RetryMiddlewareFactorywas moved toMicrosoftAzure\Storage\Common\Middlewares\RetryMiddlewareFactory
- Added Cross-Origin Resource Sharing (CORS) support. Now setting service properties can set CORS rules at the same time.
- Added support for account-level Shared Access Signature generation.
- Resolved an error reported from some IDEs about the phpcs.xml.
- Fixed multiple test issues.
Blob
- Added API
createPageBlobFromContentto support creating page blob directly from contents which includes local file, stream, etc... - Added support for append blob.
- Added support for Container ACL.
Queue
- Added support for Queue ACL.
Table
- Added support for Table ACL.
- Fixed an issue that user could not set entity type to be double and integer as a value for PHP 7
2017.02 - version 0.13.0
ALL
- The
ServiceExceptionnow provides more detailed information about the request ID and date parsed from the error response. - Changed the setters in the following class from public to protected to avoid possible misuse of the data structure.
MicrosoftAzure\Storage\Common\Models\GetServicePropertiesResult - Removed version tags in each of the files.
- Added support for the SDK to access Azure Storage Emulator.
- Introduced full support for middlewares. The usage manual can be found in README.md.
- Turned on the verification of SSL certificate issuer in the client options.
Blob
- Applied a more robust fix for the issue where
createBlockBlobwould fail for some files with size larger than 1MB and smaller than 32MB. - Changed the setters in the following classes from public to protected to avoid possible misuse of the data structure.
MicrosoftAzure\Storage\Blob\Models\BreakLeaseResult MicrosoftAzure\Storage\Blob\Models\CopyBlobResult MicrosoftAzure\Storage\Blob\Models\CreateBlobPagesResult MicrosoftAzure\Storage\Blob\Models\CreateBlobSnapshotResult MicrosoftAzure\Storage\Blob\Models\GetBlobMetadataResult MicrosoftAzure\Storage\Blob\Models\GetBlobPropertiesResult MicrosoftAzure\Storage\Blob\Models\GetBlobResult MicrosoftAzure\Storage\Blob\Models\GetContainerACLResult MicrosoftAzure\Storage\Blob\Models\GetContainerPropertiesResult MicrosoftAzure\Storage\Blob\Models\LeaseBlobResult MicrosoftAzure\Storage\Blob\Models\ListBlobBlocksResult MicrosoftAzure\Storage\Blob\Models\ListBlobsResult MicrosoftAzure\Storage\Blob\Models\ListPageBlobRangesResult MicrosoftAzure\Storage\Blob\Models\PutBlobResult MicrosoftAzure\Storage\Blob\Models\PutBlockResult MicrosoftAzure\Storage\Blob\Models\SetBlobMetadataResult MicrosoftAzure\Storage\Blob\Models\SetBlobPropertiesResult
Table
- Changed the setters in the following classes from public to protected to avoid possible misuse of the data structure.
MicrosoftAzure\Storage\Table\Models\BatchResult MicrosoftAzure\Storage\Table\Models\GetEntityResult MicrosoftAzure\Storage\Table\Models\GetTableResult MicrosoftAzure\Storage\Table\Models\InsertEntityResult MicrosoftAzure\Storage\Table\Models\QueryEntitiesResult MicrosoftAzure\Storage\Table\Models\QueryTablesResult MicrosoftAzure\Storage\Table\Models\UpdateEntityResult
Queue
- Changed the setters in the following classes from public to protected to avoid possible misuse of the data structure.
MicrosoftAzure\Storage\Queue\Models\GetQueueMetadataResult MicrosoftAzure\Storage\Queue\Models\ListMessagesResult MicrosoftAzure\Storage\Queue\Models\ListQueuesResult MicrosoftAzure\Storage\Queue\Models\PeekMessagesResult MicrosoftAzure\Storage\Queue\Models\UpdateMessageResult
2017.01 - version 0.12.1 Blob
- Fixed an issue where
createBlockBlobwould fail for some files with size larger than 1MB and smaller than 32MB.
2017.01 - version 0.12.0
ALL
- Applied type hinting for the project. The rules are listed below:
- For class arguments:
ClassName $arguments - For array arguments:
array $arguments - For nullable arguments:
ClassName $argument = null - Try to avoid
mixedtype. - Use unions for nullable types. e.g.
ClassName|null. - Use
ClassName[]instead of array, if the type of array is determined.
- For class arguments:
- Added support for Guzzle async programming model for all APIs.
- Added support for SAS authentication. Blob
- Changed the return value of following APIs to be more reasonable.
createPageBlob createBlockBlob createBlobBlock renewLease acquireLease - Merged
StorageAuthSchemeintoSharedKeyAuthSchemeandTableSharedKeyLiteAuthSchemenow inheritsSharedKeyAuthScheme. This is because Azure Storage now supports Shared Key authentication and SAS authentication so the nameStorageAuthSchemewas not representative anymore. - Fixed an issue where the newest Guzzle failed to validate the path passed in when
withPath()is called.
2016.11 - version 0.11.0
ALL
- Fix error string when an error occurs while parsing a connection string and is passed to _createException in
MicrosoftAzure\Storage\Common\Internal\ConnectionStringParser. - Added support to create Guzzle's customizable retry middleware to handle the request after the response is received. Also added a default retry policy in case a retry policy is not specified.
- Fixed a bug in unit test where getting properties from service failed to match the expected result due to previous settings have not yet taken effect.
- Fixed some coding style issue. This work will be continued in the following serveral releases, and strictly follows PSR-2 coding style.
- Updated the documentation of
setMetadata, now in the comments of the following methods$metadatais an array instead of a string.
MicrosoftAzure\Storage\Blob\Models\Blob.setMetadata
MicrosoftAzure\Storage\Blob\Models\CommitBlobBlocksOptions.setMetadata
MicrosoftAzure\Storage\Blob\Models\GetContainerPropertiesResult.setMetadata
MicrosoftAzure\Storage\Blob\Models\GetBlobResult.setMetadata
MicrosoftAzure\Storage\Blob\Models\GetBlobPropertiesResult.setMetadata
MicrosoftAzure\Storage\Blob\Models\GetBlobMetadataResult.setMetadata
MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions.setMetadata
MicrosoftAzure\Storage\Blob\Models\CreateBlobSnapshotOptions.setMetadata
MicrosoftAzure\Storage\Blob\Models\CreateBlobOptions.setMetadata
MicrosoftAzure\Storage\Blob\Models\CopyBlobOptions.setMetadata
MicrosoftAzure\Storage\Blob\Models\Container.setMetadata
MicrosoftAzure\Storage\Queue\Models\CreateQueueOptions.setMetadata
MicrosoftAzure\Storage\Queue\Models\GetQueueMetadataResult.setMetadata
MicrosoftAzure\Storage\Queue\Models\Queue.setMetadata
- Removed test code from composer package.
StorageAuthScheme::computeCanonicalizedResourceassumes that the query parameters are already grouped. That is, multi-value query parameters must be assembled usingServiceRestProxy::groupQueryValues. This fixes an issue with other single-value query parameters that might contain the separator character in the value.
Blob
- Added support for user to upload large files with minimum memory usage.
- Added concurrent upload for Block Blob.
- Added
MicrosoftAzure\Storage\Blob.saveBlobToFilefor user to download a blob into a file.
2016.08 - version 0.10.2
ALL
- Allow passing an array of options to a service. Currently only Guzzle options are supported via the
httpparameter.
2016.05 - version 0.10.1
Blob
- Fixed the issue that blobs upload with size multiple of 4194304 bytes and larger than 33554432 bytes.
- Fixed the issue that extra / is appended in blob URL.
2016.04 - version 0.10.0
ALL
- Separated Azure Storage APIs in Azure-SDK-for-PHP to establish an independent release cycle.
- Remove all pear dependencies: HTTP_Request2, Mail_mime, and Mail_mimeDecode. Use Guzzle as underlying http client library.
- Update storage REST API version to 2015-04-05.
- Change root namespace from "WindowsAzure" to "MicrosoftAzure/Storage".
- When set metadata operations contains invalid characters, it throws a ServiceException with 400 bad request error instead of Http_Request2_LogicException.
Blob
- Fixed the issue that upload large block blob fails. (Azure/azure-sdk-for-php#757)
- MicrosoftAzure\Storage\Blob\Models\Blocks.setBlockId now requires a base64 encoded string.
Table
- MicrosoftAzure\Storage\Table\Models\Property.getEdmType now returns EdmType::STRING instead of null if the property data type is not set in server.