Comparing version 2.7.0 to 2.8.0
2.8.0 / 2015-09-29 | ||
================== | ||
* test: cluster store to two different bucket | ||
* feat: support signatureUrl | ||
* feat: add clusterClient | ||
2.7.0 / 2015-09-22 | ||
@@ -3,0 +10,0 @@ ================== |
@@ -89,2 +89,6 @@ /**! | ||
Client.ImageClient = require('./image')(Client); | ||
/** | ||
* Cluster Client class | ||
*/ | ||
Client.ClusterClient = require('./cluster')(Client); | ||
@@ -91,0 +95,0 @@ proto.setRegion = function (region) { |
{ | ||
"name": "ali-oss", | ||
"version": "2.7.0", | ||
"version": "2.8.0", | ||
"description": "aliyun oss(open storage service) node client", | ||
"main": "index.js", | ||
"main": "lib/client.js", | ||
"files": [ | ||
"index.js", | ||
"lib/" | ||
"lib" | ||
], | ||
"scripts": { | ||
"test": "mocha --harmony --check-leaks -R dot -t 30000 -r co-mocha test/*.test.js", | ||
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot --check-leaks -t 60000 -r co-mocha test/*.test.js", | ||
"test": "mocha --harmony --check-leaks -t 30000 -r co-mocha -r should test/*.test.js", | ||
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot --check-leaks -t 60000 -r co-mocha -r should test/*.test.js", | ||
"jshint": "jshint .", | ||
"autod": "autod -w --prefix '~'", | ||
"autod": "autod -w --prefix '~' -D mocha,autod,should,co-mocha,istanbul-harmony", | ||
"cnpm": "npm install --registry=https://registry.npm.taobao.org", | ||
@@ -35,9 +34,10 @@ "contributors": "contributors -f plain -o AUTHORS" | ||
"devDependencies": { | ||
"autod": "*", | ||
"autod": "~2.1.3", | ||
"co": "*", | ||
"co-fs": "1", | ||
"co-mocha": "*", | ||
"istanbul-harmony": "*", | ||
"mocha": "*", | ||
"should": "*" | ||
"co-fs": "~1.2.0", | ||
"co-mocha": "~1.1.2", | ||
"istanbul-harmony": "~0.3.16", | ||
"mm": "~1.3.4", | ||
"mocha": "~2.3.3", | ||
"should": "~7.1.0" | ||
}, | ||
@@ -54,6 +54,7 @@ "dependencies": { | ||
"mime": "~1.3.4", | ||
"urllib": "~2.3.9", | ||
"sdk-base": "~1.0.1", | ||
"urllib": "~2.4.0", | ||
"utility": "~1.4.0", | ||
"xml2js": "~0.4.9" | ||
"xml2js": "~0.4.12" | ||
} | ||
} |
@@ -1665,2 +1665,46 @@ ali-oss | ||
## Cluster Mode | ||
Cluster mode now only support object operations. | ||
```js | ||
var Cluster = require('ali-oss').ClusterClient; | ||
var client = Cluster({ | ||
cluster: [{ | ||
host: 'host1', | ||
accessKeyId: 'id1', | ||
accessKeySecret: 'secret1' | ||
}, { | ||
host: 'host2', | ||
accessKeyId: 'id2', | ||
accessKeySecret: 'secret2' | ||
}], | ||
schedule: 'masterSlave', //default is `roundRobin` | ||
}); | ||
``` | ||
### Get Methods | ||
Will choose an alive client by schedule(`masterSlave` or `roundRobin`). | ||
- `client.get()` | ||
- `client.head()` | ||
- `client.getStream()` | ||
- `client.list()` | ||
- `client.signatureUrl()` | ||
___Notice: client.signatureUrl now is a generatorFunction.___ | ||
### Put Methods | ||
Will put to all clients. | ||
- `client.put()` | ||
- `client.putStream()` | ||
- `client.delete()` | ||
- `client.deleteMulti()` | ||
- `client.copy()` | ||
- `client.putMeta()` | ||
## Known Errors | ||
@@ -1667,0 +1711,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95893
1252
1765
13
8
+ Addedsdk-base@~1.0.1
+ Addedsdk-base@1.0.1(transitive)
+ Addedurllib@2.4.0(transitive)
- Removedurllib@2.3.11(transitive)
Updatedurllib@~2.4.0
Updatedxml2js@~0.4.12