Skip to content

Commit

Permalink
Merge pull request #39 from jiacfan/queue_v10_preview_release
Browse files Browse the repository at this point in the history
Queue v10 preview release
  • Loading branch information
vinjiang authored Dec 11, 2018
2 parents 5274bd4 + 6e9dce7 commit e05d73d
Show file tree
Hide file tree
Showing 80 changed files with 16,520 additions and 8 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* @azure/storage-blob [![npm version](https://badge.fury.io/js/%40azure%2Fstorage-blob.svg)](https://badge.fury.io/js/%40azure%2Fstorage-blob)
* @azure/storage-file [![npm version](https://badge.fury.io/js/%40azure%2Fstorage-file.svg)](https://badge.fury.io/js/%40azure%2Fstorage-file)
* @azure/storage-queue [![npm version](https://badge.fury.io/js/%40azure%2Fstorage-queue.svg)](https://badge.fury.io/js/%40azure%2Fstorage-queue)
* [API Reference documentation](https://docs.microsoft.com/en-us/javascript/api/overview/azure/storage/client?view=azure-node-preview)

## Introduction
Expand All @@ -23,6 +24,10 @@ Please note that this version of the SDK is a compete overhaul of the current [A
* Create/List/Delete File Shares
* Create/List/Delete File Directories
* Create/Read/List/Update/Delete Files
* Queue Storage
* Get/Set Queue Service Properties
* Create/List/Delete Queues
* Enqueue/Dequeue/Peek/Clear/Update/Delete Queue Messages
* Features new
* Asynchronous I/O for all operations using the async methods
* HttpPipeline which enables a high degree of per-request configurability
Expand Down Expand Up @@ -56,6 +61,7 @@ There are differences between Node.js and browsers runtime. When getting start w
* `generateAccountSASQueryParameters()`
* `generateBlobSASQueryParameters()`
* `generateFileSASQueryParameters()`
* `generateQueueSASQueryParameters()`
* Parallel uploading and downloading
* `uploadFileToBlockBlob()`
* `uploadStreamToBlockBlob()`
Expand Down Expand Up @@ -101,19 +107,22 @@ To use the SDK with JS bundle in the browsers, simply add a script tag to your H
```html
<script src="https://mydomain/azure-storage.blob.min.js"></script>
<script src="https://mydomain/azure-storage.file.min.js"></script>
<script src="https://mydomain/azure-storage.queue.min.js"></script>
```

The JS bundled file is compatible with [UMD](https://github.com/umdjs/umd) standard, if no module system found, following global variable(s) will be exported:

* `azblob`
* `azfile`
* `azqueue`

#### Download

Download latest released JS bundles from links in the [GitHub release page](https://github.com/Azure/azure-storage-js/releases). Or from following links directly:

* Blob [https://aka.ms/downloadazurestoragejsblob](https://aka.ms/downloadazurestoragejsblob)
* File [https://aka.ms/downloadazurestoragejsfile](https://aka.ms/downloadazurestoragejsfile)
* Queue [https://aka.ms/downloadazurestoragejsqueue](https://aka.ms/downloadazurestoragejsqueue)

### CORS

Expand Down Expand Up @@ -272,6 +281,8 @@ main()
* [Blob Storage Examples - Test Cases](https://github.com/azure/azure-storage-js/tree/master/blob/test/)
* [File Storage Examples](https://github.com/azure/azure-storage-js/tree/master/file/samples)
* [File Storage Examples - Test Cases](https://github.com/azure/azure-storage-js/tree/master/file/test/)
* [Queue Storage Examples](https://github.com/azure/azure-storage-js/tree/master/queue/samples)
* [Queue Storage Examples - Test Cases](https://github.com/azure/azure-storage-js/tree/master/queue/test/)

## License

Expand Down
17 changes: 9 additions & 8 deletions blob/lib/StorageURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,15 @@ export abstract class StorageURL {
// Order is important. Closer to the API at the top & closer to the network at the bottom.
// The credential's policy factory must appear close to the wire so it can sign any
// changes made by other factories (like UniqueRequestIDPolicyFactory)
const factories: RequestPolicyFactory[] = [];
factories.push(new TelemetryPolicyFactory(pipelineOptions.telemetry));
factories.push(new UniqueRequestIDPolicyFactory());
factories.push(new BrowserPolicyFactory());
factories.push(deserializationPolicy()); // Default deserializationPolicy is provided by protocol layer
factories.push(new RetryPolicyFactory(pipelineOptions.retryOptions));
factories.push(new LoggingPolicyFactory());
factories.push(credential);
const factories: RequestPolicyFactory[] = [
new TelemetryPolicyFactory(pipelineOptions.telemetry),
new UniqueRequestIDPolicyFactory(),
new BrowserPolicyFactory(),
deserializationPolicy(), // Default deserializationPolicy is provided by protocol layer
new RetryPolicyFactory(pipelineOptions.retryOptions),
new LoggingPolicyFactory(),
credential
];

return new Pipeline(factories, {
HTTPClient: pipelineOptions.httpClient,
Expand Down
50 changes: 50 additions & 0 deletions queue/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# browser #
browser/azure-storage.queue.js

# dist-esm #
!dist-esm/lib/**/*.js
dist-esm/test
dist-esm/samples

# dist-test #
dist-test/

# Node #
node_modules/

# Samples #
samples/

# Swagger #
swagger/

# typings #
!typings/lib/**/*.d.ts
typings/test
typings/samples

# git #
.git*

# Test #
test/

# Others #
.vscode/
.idea/
.travis.yml
.gitignore
gulpfile.js
.git
.DS_Store
tsconfig.json
tslint.json
*.js.map
*.zip
package-lock.json
karma.conf.js
temp
gulpfile.js
rollup.config.js
rollup.test.config.js
*.html
1 change: 1 addition & 0 deletions queue/BreakingChanges.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Breaking Changes
5 changes: 5 additions & 0 deletions queue/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

2018.12 Version 10.0.0-preview

* Initial Release. API version 2018-03-28 supported. Please see the README for information on the new design.
21 changes: 21 additions & 0 deletions queue/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
Loading

0 comments on commit e05d73d

Please sign in to comment.