request-promise
Advanced tools
Comparing version 1.0.2 to 2.0.0
{ | ||
"name": "request-promise", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "The world-famous HTTP client 'Request' now Promises/A+ compliant. Powered by Bluebird.", | ||
@@ -33,3 +33,2 @@ "keywords": [ | ||
"bluebird": "^2.3", | ||
"cls-bluebird": "^1.0.1", | ||
"lodash": "^3.10.0", | ||
@@ -39,17 +38,19 @@ "request": "^2.34" | ||
"devDependencies": { | ||
"body-parser": "1.12.x", | ||
"chai": "2.2.x", | ||
"chai-as-promised": "4.3.x", | ||
"body-parser": "1.14.x", | ||
"chai": "3.4.x", | ||
"chai-as-promised": "5.1.x", | ||
"chalk": "^1.1.1", | ||
"cheerio": "^0.19.0", | ||
"cls-bluebird": "^1.0.1", | ||
"continuation-local-storage": "^3.1.4", | ||
"event-stream": "3.3.x", | ||
"gulp": "3.8.x", | ||
"gulp": "3.9.x", | ||
"gulp-coveralls": "0.1.x", | ||
"gulp-istanbul": "0.8.x", | ||
"gulp-jshint": "1.10.x", | ||
"gulp-mocha": "2.0.x", | ||
"jshint-stylish": "1.0.x", | ||
"rimraf": "2.3.x", | ||
"run-sequence": "1.0.x" | ||
"gulp-istanbul": "0.10.x", | ||
"gulp-jshint": "1.12.x", | ||
"gulp-mocha": "2.2.x", | ||
"jshint": "2.8.0", | ||
"jshint-stylish": "2.1.x", | ||
"rimraf": "2.4.x", | ||
"run-sequence": "1.1.x" | ||
}, | ||
@@ -56,0 +57,0 @@ "engines": { |
@@ -189,3 +189,3 @@ <a href="http://promisesaplus.com/"> | ||
The objects returned by request calls like `rp(...)` or e.g. `rp.post(...)` are regular Promises/A+ compliant promises and can be assimilated by any compatible promise library. | ||
The objects returned by request calls like `rp(...)` or e.g. `rp.post(...)` are regular Promises/A+ compliant promises and can be assimilated by any compatible promise library. | ||
@@ -431,3 +431,3 @@ The methods `.then(...)`, `.catch(...)`, and `.finally(...)` - which you can call on the request call objects - return a full-fledged Bluebird promise. That means you have the full [Bluebird API](https://github.com/petkaantonov/bluebird/blob/master/API.md) available for further chaining. E.g.: `rp(...).then(...).spread(...)` If, however, you need a method other than `.then(...)`, `.catch(...)`, or `.finally(...)` to be **FIRST** in the chain, use `.promise()`: `rp(...).promise().bind(...).then(...)` | ||
Continuation Local Storage (CLS) is a great mechanism for backpacking data along asynchronous call chains that is best explained in [these slides](http://fredkschott.com/post/2014/02/conquering-asynchronous-context-with-cls/). If you want to use CLS you need to install the [continuation-local-storage package](https://www.npmjs.com/package/continuation-local-storage). Request-Promise internally uses the [cls-bluebird package](https://www.npmjs.com/package/cls-bluebird) to enable CLS also within the Bluebird promises. | ||
Continuation Local Storage (CLS) is a great mechanism for backpacking data along asynchronous call chains that is best explained in [these slides](http://fredkschott.com/post/2014/02/conquering-asynchronous-context-with-cls/). If you want to use CLS you need to install the [continuation-local-storage package](https://www.npmjs.com/package/continuation-local-storage) and the [cls-bluebird package](https://www.npmjs.com/package/cls-bluebird). | ||
@@ -519,7 +519,12 @@ Just call `rp.bindCLS(ns)` **ONCE** before your first request to activate CLS: | ||
- v2.0.0 (2016-01-12) | ||
- **Breaking Change**: Removed explicit `cls-bluebird` dependency which has to be installed by the user now | ||
*(Thanks to @hildjj for his [pull request #75](https://github.com/request/request-promise/pull/75))* | ||
- `npm shrinkwrap` now works for `npm@3` users who don't use `continuation-local-storage` | ||
*(Thanks to @toboid and @rstacruz for reporting the issue in [issue #70](https://github.com/request/request-promise/issues/70) and [issue #82](https://github.com/request/request-promise/issues/82))* | ||
- v1.0.2 (2015-10-22) | ||
- Removed continuation-local-storage from peer dependencies as it was unnecessary | ||
- Removed `continuation-local-storage` from peer dependencies as it was unnecessary | ||
*(Thanks to @mrhyde for working on a better solution discussed in [issue #70](https://github.com/request/request-promise/issues/70))* | ||
- v1.0.1 (2015-10-14) | ||
- Fixed a npm warning by marking continuation-local-storage as a peer dependency | ||
- Fixed a npm warning by marking `continuation-local-storage` as a peer dependency | ||
- v1.0.0 (2015-10-11) | ||
@@ -526,0 +531,0 @@ - **Breaking Change**: Some errors that were previously thrown synchronously - e.g. for wrong input parameters - are now passed to the rejected promise instead |
Sorry, the diff of this file is not supported yet
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
29411
3
568
17
- Removedcls-bluebird@^1.0.1
- Removedcls-bluebird@1.1.3(transitive)
- Removedis-bluebird@1.0.2(transitive)
- Removedshimmer@1.2.1(transitive)