Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storage] Moving Azure/azure-storage-js repo #1316

Merged
merged 145 commits into from
Mar 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
145 commits
Select commit Hold shift + click to select a range
026c1a4
Initial commit
msftgits Aug 4, 2018
591eb2d
Initial commit
microsoftopensource Aug 4, 2018
982eaed
Initial commit
microsoftopensource Aug 4, 2018
08806bc
Updated README.md
XiaoningLiu Aug 16, 2018
3d36dbb
Updated README.md and removed blob specific description in title
XiaoningLiu Aug 17, 2018
408b685
Initial checkin source code
XiaoningLiu Aug 28, 2018
8a0dd4c
Updated setTier with leaseid options
XiaoningLiu Aug 30, 2018
4dbdca4
Applied response flatting; Added transactional MD5; setBlobTier lease
XiaoningLiu Aug 31, 2018
5095090
Make response headers optional, fixed IE11 XML parsing error
XiaoningLiu Sep 3, 2018
d838afc
Resolved CR comments
XiaoningLiu Sep 3, 2018
abc412f
Error -> RangeError for parameter checking errors; Documents and comm…
XiaoningLiu Sep 4, 2018
653e215
Droped os from browser js bundle dependency
XiaoningLiu Sep 4, 2018
af35829
Fixed readme markdown style
XiaoningLiu Sep 4, 2018
2401f02
added license into blob npm package
XiaoningLiu Sep 4, 2018
bc8f2d3
Update readme document with aka.ms js bundle downloading link
XiaoningLiu Sep 5, 2018
6a14168
Applied ms-rest-js fix for IE undefined xhr body
XiaoningLiu Sep 5, 2018
d19ccf1
Updated readme, aborter samples and first char case of highlevel methods
XiaoningLiu Sep 5, 2018
79b7e00
Updated changelog
XiaoningLiu Sep 5, 2018
58edd0f
Removed useage of padStart to support Node.jsV6; Added least Node.js …
XiaoningLiu Sep 5, 2018
8edfe64
Fixed Node.jsV6 compatibility issue by removing Object.values in ms-r…
XiaoningLiu Sep 6, 2018
17bfdd9
Added ThridPartyNotice.txt
XiaoningLiu Sep 6, 2018
9c79880
Renamed ThridPartyNotice.txt to ThirdPartyNotices.txt
XiaoningLiu Sep 7, 2018
2b09584
Rollup, tsconfig fixes, externalize ms-rest-js, tslib (#11)
bterlson Sep 26, 2018
8c4d356
Fix typo in highlevel test (#12)
bterlson Sep 26, 2018
c63e7ed
Remove deep import of ms-rest-js types (#15)
bterlson Sep 26, 2018
1747676
Add prettier config file
bterlson Sep 19, 2018
a44f8c6
Fixed #14, escape blob name during shared key authentication
XiaoningLiu Sep 18, 2018
e5f398e
Followup items after merging rollup related PRs
XiaoningLiu Sep 28, 2018
01f1d4c
Removed built-in polyfills for IE11
XiaoningLiu Sep 29, 2018
ee5e4af
Renamed Aborter.None to Aborter.none
XiaoningLiu Sep 29, 2018
e3be14a
Improved contribution/readme about SAS and CORS
XiaoningLiu Sep 29, 2018
ca6add8
Optimized samples for easliy copy/past execution
XiaoningLiu Sep 29, 2018
8f9b21a
Prepare 10.1.0-preview, changelog and ThridPartyNotice.txt changes
XiaoningLiu Sep 29, 2018
f9deab4
Merge pull request #20 from XiaoningLiu/10.1.0
vinjiang Sep 30, 2018
ec41d7b
Adding API Reference link
Oct 4, 2018
13f8296
Update README.md
Oct 8, 2018
e3b6013
Update README.md
Oct 18, 2018
902d21d
Added stream retry when `BlobURL.download` response stream unexcepted…
XiaoningLiu Nov 14, 2018
8c50b3e
Added fault injection into retriableReadableStream implmentation
XiaoningLiu Nov 26, 2018
4680053
Fixed a bug when generating account/blob sas
XiaoningLiu Oct 29, 2018
41d943f
Added SAS fix testing cases
XiaoningLiu Nov 8, 2018
d0c7aa4
Export RequestPolicyFactory, RequestPolicy and RequestPolicyOptions
XiaoningLiu Nov 6, 2018
a7c26a8
Fixed typos in samples; Updated gulp version;
XiaoningLiu Nov 8, 2018
040d0d1
Updated names of exported interfaces `IHTTPPipelineLogger` & `IHTTPCl…
XiaoningLiu Nov 8, 2018
dad10fd
Removed `File` from `uploadBrowserDataToBlockBlob` parameter type lis…
XiaoningLiu Nov 8, 2018
1ffa38e
Updated TS version to 3.1.6; Convert CanonicalizedResource to lowerca…
XiaoningLiu Nov 8, 2018
5207ccb
Fixed typos in `IRange` comments
XiaoningLiu Nov 8, 2018
26d5753
Removed useless `marker` filed from option of `ServiceURL.listContain…
XiaoningLiu Nov 8, 2018
9029b5c
Remove build from npm publish hook, because it takes much time
XiaoningLiu Nov 8, 2018
d387100
Fixed a bug that `timeout` parameter should use second as unit instea…
XiaoningLiu Nov 14, 2018
9d443fc
Resolved codeflow comments
XiaoningLiu Nov 23, 2018
ed0fdf1
Removed swagger from repo
XiaoningLiu Nov 23, 2018
af2ad99
For `setMetadata()` and `setHTTPHeaders()`, `metadata` and `blobHTTPH…
XiaoningLiu Nov 26, 2018
98f1d7a
Updated package lock
XiaoningLiu Nov 26, 2018
9dd1693
Fixed typos mentioned in PR review
XiaoningLiu Nov 27, 2018
d84fd99
Fixed a typo in containerURL
XiaoningLiu Nov 27, 2018
09f6a7f
Merge pull request #27 from XiaoningLiu/10.2.0-preview-release
vinjiang Nov 28, 2018
ab737b7
File finished top level configs and StorageURL, ServiceURL and ShareURL
XiaoningLiu Nov 8, 2018
30814c2
Finish directoryurl and fileurl; Fixed bugs when generation account SAS
XiaoningLiu Nov 12, 2018
1aecd5d
Finished File Account & Service SAS
XiaoningLiu Nov 14, 2018
363fad2
Finished highlevel APIs
XiaoningLiu Nov 14, 2018
70582e5
Updated retry policy max retry timeout to ms from seconds
XiaoningLiu Nov 14, 2018
8858145
Finished adding testcases and tests
XiaoningLiu Nov 22, 2018
57476ae
Updated samples and documents
XiaoningLiu Nov 22, 2018
a32ffd6
Removed file swagger from repo
XiaoningLiu Nov 22, 2018
ad92446
Applied latest swagger changes
XiaoningLiu Nov 22, 2018
16ea71e
Resolved codeflow comments
XiaoningLiu Nov 23, 2018
90f8959
Resolve CR comments; Added fault injection into download stream retry…
XiaoningLiu Nov 28, 2018
7b1f1ce
Added ThridPartyNotices.txt; Updated package-lock.json; Improvded pip…
XiaoningLiu Nov 30, 2018
8f9d654
Fixed wrong constant value during sanity test
XiaoningLiu Nov 30, 2018
ab08505
Remove the default content-type in generated code of StorageClientCon…
XiaoningLiu Nov 30, 2018
5274bd4
Updated changelog data from 2018.11 to 2018.12
XiaoningLiu Dec 3, 2018
01e1b54
Refactoring pipeline creation preserving order
devconcept Nov 29, 2018
a230b44
Initial commit for Js v10 Queue SDK.
jiacfan Nov 26, 2018
47a0e33
Update service version to 2018-03-28 and update README.md.
jiacfan Nov 27, 2018
f3fb592
Optimize setMetadata API and messageID naming.
jiacfan Nov 27, 2018
e766338
Optimize sample and the comment for truncatedISO8061Date.
jiacfan Nov 30, 2018
4045550
Optimize policy initializing, naming and add ThirdPartyNotices.txt
jiacfan Dec 3, 2018
27ceed2
Optimize format with Prettier.
jiacfan Dec 4, 2018
73c96d7
Optimize samples.
jiacfan Dec 5, 2018
3eba6f5
Update package.json and package-lock.json.
jiacfan Dec 6, 2018
6e9dce7
Update the version to 10.0.0-preview.
jiacfan Dec 10, 2018
e05d73d
Merge pull request #39 from jiacfan/queue_v10_preview_release
vinjiang Dec 11, 2018
749eb9c
Fixed #34, compatible with special characters in namings
XiaoningLiu Dec 7, 2018
cf1110d
Added Node.js test coverage support
XiaoningLiu Dec 5, 2018
3910b3d
Added support for browser coverage calculation
XiaoningLiu Dec 7, 2018
d4dbdc6
Added Azure Pipeline configurations
XiaoningLiu Dec 5, 2018
ff6a979
Added browser CI regression
XiaoningLiu Dec 5, 2018
0254d9f
Added Mac, Linux, Windows CI support
XiaoningLiu Dec 5, 2018
c43e845
Fixed a compile compatibility issue with typescript 3.2.x
XiaoningLiu Dec 18, 2018
9c74011
Resolved rollup warnings during bundle build
XiaoningLiu Dec 18, 2018
459475a
Updated dev tools configuration
XiaoningLiu Dec 18, 2018
1b2e18a
Fixed special naming issues for browsers tests
XiaoningLiu Dec 18, 2018
9b5fb61
Updated azure-pipeline config to get browser testing results
XiaoningLiu Dec 19, 2018
473affd
Comment visualizer from rollup to pass Node.jsv6 build
XiaoningLiu Dec 19, 2018
7981009
Updated description for URI encoding strategies
XiaoningLiu Dec 19, 2018
77dc1eb
Updated Aborter timeout description from million-seconds to milliseconds
XiaoningLiu Dec 19, 2018
8fce3b2
Updated ms-rest-js to @azure/ms-rest-js; Updated changelog;
XiaoningLiu Dec 19, 2018
6e7ec21
Remove browser related files from Node.js coverage
XiaoningLiu Dec 19, 2018
7756ab5
Added extra test cases covering more
XiaoningLiu Dec 19, 2018
253fce7
Added option `parallelismThreshold` to customize concurrency upload t…
XiaoningLiu Dec 20, 2018
afdeae0
Removed default 60s server timeout value for retry options `tryTimeou…
XiaoningLiu Dec 20, 2018
5bf3126
Updated karma config to avoid browser timeout
XiaoningLiu Dec 20, 2018
839119b
Resolved CR comments
XiaoningLiu Dec 21, 2018
fe846c0
Fixed a issue that when body is string with special characters, `Bloc…
XiaoningLiu Dec 23, 2018
7455bb1
Sleep to avoid startCopyIncremental test failure because of sever lat…
XiaoningLiu Dec 24, 2018
0495de5
Added test cases covering retry policy including fault injection
XiaoningLiu Dec 24, 2018
8999c8e
Updated singleBlobUploadThresholdInBytes to maxSingleShotSize, align …
XiaoningLiu Dec 24, 2018
6908853
Moved a test case to Node.js folder
XiaoningLiu Dec 24, 2018
58f3196
`SASQueryParameters` is not going to be exported in browser bundle wh…
XiaoningLiu Dec 24, 2018
131d8c9
`SASQueryParameters` exported in Node.js runtime.
XiaoningLiu Dec 24, 2018
b9683cc
Updated azure pipeline credential name to align with Azure KeyVault
XiaoningLiu Dec 24, 2018
4c03f77
Improved Azure Pipeline build job about results & coverage reporting
XiaoningLiu Dec 25, 2018
e6a0f22
Improved incremental copy test case robust
XiaoningLiu Dec 25, 2018
e67835a
Use @babel/polyfill for IE11 testing, drop polyfill.io
XiaoningLiu Dec 25, 2018
6dcbd48
Fixed a changelog typo
XiaoningLiu Dec 26, 2018
ef6cf96
IE11 needs `Array.prototype.includes` polyfill loaded.
XiaoningLiu Dec 26, 2018
bc9e962
Updated `Object.keys` polyfill for IE11
XiaoningLiu Dec 26, 2018
a1b7084
Fixed typos in tests and Error messages
XiaoningLiu Dec 27, 2018
0572a86
Updated dependency `ms-rest-js` to `@azure/ms-rest-js`; Updated conve…
XiaoningLiu Jan 2, 2019
433eb9f
Supported Azure Pipeline CI
XiaoningLiu Jan 2, 2019
5bebf52
Fixed an issue that when body is string with special characters, `Fil…
XiaoningLiu Jan 2, 2019
9886961
Added fault injection test cases for retry policy
XiaoningLiu Jan 2, 2019
4db652c
Removed default 60s server timeout value for retry options `tryTimeou…
XiaoningLiu Jan 2, 2019
d1cdc5e
Fixed `Aborter.timeout()` misleading scale description.
XiaoningLiu Jan 2, 2019
5e2741f
`SASQueryParameters` is not going to be exported in browser bundle, a…
XiaoningLiu Jan 2, 2019
5e9065c
* Exported `HttpRequestBody` type for who wants to implement a custom…
XiaoningLiu Jan 2, 2019
d9a5207
Updated URL encoding strategy for `url` parameters of `new XXXURL(url…
XiaoningLiu Jan 3, 2019
7ef0dbe
Improved test coverage for both node.js and browsers
XiaoningLiu Jan 3, 2019
e6fe50e
Resolved CR comments for document changes
XiaoningLiu Jan 8, 2019
0dcd4b3
Add CI, add test coverage, upgrade ms-rest-js and fix encoding issue.
jiacfan Dec 23, 2018
2970c08
Fix the naming of MessageIdURL.ts.
jiacfan Dec 23, 2018
b8738de
Update package-lock.json and use ChromeHeadless.
jiacfan Dec 23, 2018
48453b9
Update tests, CI and expose SASQueryParameters only in node platform.
jiacfan Dec 28, 2018
62022bd
Optimize documents for enqueue and update methods.
jiacfan Dec 28, 2018
31e4a25
Update queue's document and test links.
jiacfan Dec 28, 2018
efade1a
Update test cases.
jiacfan Dec 28, 2018
6a59cb2
Update ChangeLog.md.
jiacfan Dec 29, 2018
e084d30
Export HttpRequestBody type for who wants to implement a customized H…
jiacfan Jan 7, 2019
ea1d772
Move into packages/@azure/storage
HarshaNalluru Feb 21, 2019
f12946e
thirdparty files got deleted
HarshaNalluru Feb 21, 2019
e48db28
Merge remote-tracking branch 'origin/MoveToCentral' into MoveToCentral
HarshaNalluru Feb 21, 2019
b643722
Merge branch 'MoveToCentral' of https://github.com/HarshaNalluru/azur…
HarshaNalluru Feb 21, 2019
508a74f
disable automatic publishing for storage package
HarshaNalluru Feb 22, 2019
0b49c34
Merge branch 'master' into MovingStorage
HarshaNalluru Mar 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .scripts/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ function isPackageFolderPath(folderPath: string, packagesToIgnore: string[]): bo
}

export const packagesToIgnore: string[] = [
"@azure/storage-blob",
"@azure/storage-file",
"@azure/storage-queue",
"@azure/event-hubs",
"@azure/event-processor-host",
"@azure/keyvault",
Expand Down
67 changes: 67 additions & 0 deletions packages/@azure/storage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Coverage directory used by tools like istanbul
coverage
coverage-browser

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

# Typescript output
/blob/dist/
/blob/typings/
/blob/browser/
/blob/dist-*/
/blob/temp

test*.xml

# Visual Studio Code
.vscode/

statistics.html
3 changes: 3 additions & 0 deletions packages/@azure/storage/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"singleQuote": false
}
99 changes: 99 additions & 0 deletions packages/@azure/storage/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Contribution Guideline

Hello! Thank you for being interested in contributing to our project!

Please make sure you've followed the instructions provided in the [Azure Projects Contribution Guidelines](http://azure.github.io/guidelines/).

## Project Setup

The Azure Storage development team uses Visual Studio Code. However, any preferred IDE or other toolset should be usable.

### Install

* Node.js valid LTS versions (>=6.5.0)
* Browsers like Chrome, Edge or Firefox
* Clone the source code from GitHub

## Tests

### Configuration

The only step to configure testing is to set the appropriate environment variables. Create environment variables named "ACCOUNT_NAME", "ACCOUNT_KEY" or "ACCOUNT_SAS". The first two will be used for most requests. The "ACCOUNT_SAS" will only be used for tests in browsers.

You can generate a valid account SAS from Azure portal or tools like Azure Storage Explorer. A SAS starts with "?". And if you are using Windows CMD, you may need quotes to escape special characters like following:

```bash
set "ACCOUNT_SAS=<YOUR_SAS>"
```

#### CORS

You need to set up CORS rules for your storage account if you need to develop for browsers. Go to Azure portal and Azure Storage Explorer, find your storage account, create new CORS rules for blob/queue/file/table service(s).

For example, you can create following CORS settings for debugging. But please customize the settings carefully according to your requirements in production environment.

* Allowed origins: *
* Allowed verbs: DELETE,GET,HEAD,MERGE,POST,OPTIONS,PUT
* Allowed headers: *
* Exposed headers: *
* Maximum age (seconds): 86400

### Building

This project is based on TypeScript. Build with:

```bash
npm install
npm run build
```

### Running

To actually run tests in Node.js:

```bash
npm install
npm run build
npm run test:node
```

Run tests in Browsers. After installed Chrome, the default testing browser:

```bash
npm install
npm run build
npm test:browser
```

Browser testing is based on Karma, you can change default testing browser by modifying karma.conf.js file.

### Testing Features

As you develop a feature, you'll need to write tests to ensure quality. You should also run existing tests related to your change to address any unexpected breaks in both Node.js and Browsers.

## Pull Requests

### Guidelines

The following are the minimum requirements for any pull request that must be met before contributions can be accepted.

* Make sure you've signed the CLA before you start working on any change.
* Discuss any proposed contribution with the team via a GitHub issue **before** starting development.
* Code must be professional quality
* No style issues
* You should strive to mimic the style with which we have written the library
* Clean, well-commented, well-designed code
* Try to limit the number of commits for a feature to 1-2. If you end up having too many we may ask you to squash your changes into fewer commits.

* ChangeLog.md needs to be updated describing the new change
* Thoroughly test your feature

### Branching Policy

Changes should be based on the **dev** branch. Do not submit pull requests against master as master is considered publicly released code. Each breaking change should be recorded in BreakingChanges.md.

### Review Process

We expect all guidelines to be met before accepting a pull request. As such, we will work with you to address issues we find by leaving comments in your code. Please understand that it may take a few iterations before the code is accepted as we maintain high standards on code quality. Once we feel comfortable with a contribution, we will validate the change and accept the pull request.

Thank you for any contributions! Please let the team know if you have any questions or concerns about our contribution policy.
11 changes: 11 additions & 0 deletions packages/@azure/storage/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Which service(blob, file, queue, table) does this issue concern?

### Which version of the SDK was used?

### What's the Node.js/Browser version?

### What problem was encountered?

### Steps to reproduce the issue?

### Have you found a mitigation/solution?
21 changes: 21 additions & 0 deletions packages/@azure/storage/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