Socket
Socket
Sign inDemoInstall

es6-promise

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-promise - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

.release.json

44

CHANGELOG.md

@@ -1,43 +0,9 @@

# master
# Master
# 2.0.4
# 2.0.0
* Fix npm package
* re-sync with RSVP. Many large performance improvements and bugfixes.
# 2.0.3
# 1.0.0
* Fix useSetTimeout bug
# 2.0.2
* Adding RSVP#rethrow
* add pre-built AMD link to README
* adding promise#fail
# 2.0.1
* misc IE fixes, including IE array detection
* upload passing builds to s3
* async: use three args for addEventListener
* satisfy both 1.0 and 1.1 specs
* Run reduce tests only in node
* RSVP.resolve now simply uses the internal resolution procedure
* prevent multiple promise resolutions
* simplify thenable handling
* pre-allocate the deferred's shape
* Moved from Rake-based builds to Grunt
* Fix Promise subclassing bug
* Add RSVP.configure('onerror')
* Throw exception when RSVP.all is called without an array
* refactor RSVP.all to just use a promise directly
* Make `RSVP.denodeify` pass along `thisArg`
* add RSVP.reject
* Reject promise if resolver function throws an exception
* add travis build-status
* correctly test and fix self fulfillment
* remove promise coercion.
* Fix infinite recursion with deep self fulfilling promises
* doc fixes
# 2.0.0
* No changelog beyond this point. Here be dragons.
* first subset of RSVP
{
"name": "es6-promise",
"namespace": "Promise",
"version": "1.0.0",
"description": "A polyfill for ES6-style Promises, tracking rsvp",
"main": "dist/commonjs/main.js",
"namespace": "es6-promise",
"version": "2.0.0",
"description": "A lightweight library that provides tools for organizing asynchronous code",
"main": "dist/es6-promise.js",
"directories": {

@@ -11,28 +11,34 @@ "lib": "lib"

"devDependencies": {
"bower": "^1.3.9",
"brfs": "0.0.8",
"grunt": "~0.4.2",
"grunt-browserify": "~1.2.11",
"grunt-cli": "~0.1.11",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-connect": "~0.5.0",
"grunt-contrib-jshint": "~0.7.0",
"grunt-contrib-uglify": "~0.2.4",
"grunt-contrib-watch": "~0.5.3",
"grunt-es6-module-transpiler": "~0.6.0",
"grunt-mocha-phantomjs": "~0.3.1",
"grunt-mocha-test": "~0.5.0",
"grunt-s3": "~0.2.0-alpha.2",
"jshint": "~0.9",
"load-grunt-config": "~0.5.0",
"load-grunt-tasks": "~0.2.0",
"mocha-phantomjs": "~3.1.6",
"broccoli-closure-compiler": "^0.2.0",
"broccoli-compile-modules": "eventualbuddha/broccoli-compile-modules",
"broccoli-concat": "0.0.7",
"broccoli-es3-safe-recast": "0.0.8",
"broccoli-file-mover": "^0.4.0",
"broccoli-jshint": "^0.5.1",
"broccoli-merge-trees": "^0.1.4",
"broccoli-static-compiler": "^0.1.4",
"broccoli-string-replace": "0.0.1",
"browserify": "^4.2.0",
"ember-cli": "0.0.40",
"ember-publisher": "0.0.7",
"es6-module-transpiler-amd-formatter": "0.0.1",
"express": "^4.5.0",
"jshint": "~0.9.1",
"mkdirp": "^0.5.0",
"mocha": "^1.20.1",
"promises-aplus-tests": "git://github.com/stefanpenner/promises-tests.git",
"connect-redirection": "0.0.1",
"grunt-contrib-yuidoc": "~0.5.0"
"release-it": "0.0.10",
"testem": "^0.6.17",
"json3": "^3.3.2"
},
"scripts": {
"test": "grunt test",
"test": "testem ci -R dot",
"test-server": "testem",
"lint": "jshint lib",
"prepublish": "grunt build"
"prepublish": "ember build --environment production",
"aplus": "browserify test/main.js",
"build-all": "ember build --environment production && browserify ./test/main.js -o tmp/test-bundle.js",
"dry-run-release": "ember build --environment production && release-it --dry-run --non-interactive"
},

@@ -48,7 +54,6 @@ "repository": {

"promises",
"futures",
"events"
"futures"
],
"author": "Tilde, Inc. (Conversion to ES6 API by Jake Archibald)",
"author": "Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)",
"license": "MIT"
}

@@ -1,4 +0,4 @@

# ES6-Promises (subset of [rsvp.js](https://github.com/tildeio/rsvp.js))
# ES6-Promise (subset of [rsvp.js](https://github.com/tildeio/rsvp.js))
This is a polyfill of [ES6 Promises](https://github.com/domenic/promises-unwrapping). The implementation is a subset of [rsvp.js](https://github.com/tildeio/rsvp.js), if you're wanting extra features and more debugging options, check out the [full library](https://github.com/tildeio/rsvp.js).
This is a polyfill of the [ES6 Promise](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-constructor). The implementation is a subset of [rsvp.js](https://github.com/tildeio/rsvp.js), if you're wanting extra features and more debugging options, check out the [full library](https://github.com/tildeio/rsvp.js).

@@ -9,4 +9,4 @@ For API details and how to use promises, see the <a href="http://www.html5rocks.com/en/tutorials/es6/promises/">JavaScript Promises HTML5Rocks article</a>.

* [promise](http://s3.amazonaws.com/es6-promises/promise-1.0.0.js)
* [promise-min](http://s3.amazonaws.com/es6-promises/promise-1.0.0.min.js) (~2k gzipped)
* [es6-promise](https://es6-promises.s3.amazonaws.com/es6-promise-2.0.0.js)
* [es6-promise-min](https://es6-promises.s3.amazonaws.com/es6-promise-2.0.0.min.js) (~2.2k gzipped)

@@ -27,5 +27,5 @@ ## Node.js

## Usage in IE<10
## Usage in IE<9
`catch` is a reserved word in IE<10, meaning `promise.catch(func)` throws a syntax error. To work around this, to a string to access the property:
`catch` is a reserved word in IE<9, meaning `promise.catch(func)` throws a syntax error. To work around this, use a string to access the property:

@@ -46,10 +46,14 @@ ```js

## Building & Testing
## Auto-polyfill
This package uses the [grunt-microlib](https://github.com/thomasboyt/grunt-microlib) package for building.
To polyfill the global environment (either in Node or in the browser via CommonJS) use the following code snippet:
Custom tasks:
```js
require('es6-promise').polyfill();
```
* `grunt test` - Run Mocha tests through Node and PhantomJS.
* `grunt test:phantom` - Run Mocha tests through PhantomJS (browser build).
* `grunt test:node` - Run Mocha tests through Node (CommonJS build).
Notice that we don't assign the result of `polyfill()` to any variable. The `polyfill()` method will patch the global environment (in this case to the `Promise` name) when called.
## Building & Testing
* `npm run build-all && npm test` - Run Mocha tests through Node and PhantomJS.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc