z-core
Advanced tools
Comparing version 0.5.5 to 0.5.6
@@ -12,4 +12,4 @@ { | ||
], | ||
"version": "0.5.5", | ||
"author": "Jakob Mattsson <jakob.mattsson@gmail.com> (jakobmattsson.se)", | ||
"version": "0.5.6", | ||
"author": "Jakob Mattsson <jakob.mattsson@gmail.com> (jakobm.com)", | ||
"license": "MIT", | ||
@@ -27,4 +27,4 @@ "main": "./lib/index.js", | ||
"bucketful": { | ||
"bucket": "z-test.jdevab.com", | ||
"source": "browsertest", | ||
"bucket": "z-core.jdevab.com", | ||
"source": "tmp/browsertest", | ||
"region": "eu-west-1" | ||
@@ -34,4 +34,4 @@ }, | ||
"timeout": 60000, | ||
"domain": "z-test.jdevab.com.s3-website-eu-west-1.amazonaws.com", | ||
"path": "/index.html?wait", | ||
"domain": "z-core.jdevab.com.s3-website-eu-west-1.amazonaws.com", | ||
"path": "/default/index.html", | ||
"environments": [ | ||
@@ -44,15 +44,30 @@ { | ||
{ | ||
"browserName": "chrome", | ||
"platform": "Windows 8.1", | ||
"browserName": "firefox", | ||
"platform": "Windows 8", | ||
"version": "26" | ||
}, | ||
{ | ||
"browserName": "firefox", | ||
"platform": "Windows 8", | ||
"browserName": "chrome", | ||
"platform": "Linux", | ||
"version": "26" | ||
}, | ||
{ | ||
"browserName": "chrome", | ||
"platform": "Windows 8.1", | ||
"version": "beta" | ||
}, | ||
{ | ||
"browserName": "chrome", | ||
"platform": "OS X 10.8", | ||
"version": "beta" | ||
}, | ||
{ | ||
"browserName": "safari", | ||
"platform": "OS X 10.8", | ||
"version": "6" | ||
}, | ||
{ | ||
"browserName": "safari", | ||
"platform": "Windows 7", | ||
"version": "5" | ||
} | ||
@@ -63,3 +78,3 @@ ] | ||
"npm": ">= 1.3 < 2", | ||
"node": ">= 0.10 < 0.11" | ||
"node": ">= 0.10 <= 0.11" | ||
}, | ||
@@ -69,12 +84,8 @@ "devDependencies": { | ||
"commonjs-everywhere": "^0.9.7", | ||
"es5-shim": "^2.3.0", | ||
"browserify": "^3.30.2", | ||
"bucketful": "^0.15.1", | ||
"coffeeify": "^0.6.0", | ||
"chalcogen": "^0.4.0", | ||
"jscov": "^0.5.7", | ||
"mocha": "^1.12.1", | ||
"mocha": "^1.18.0", | ||
"mocha-term-cov-reporter": "^0.2.0", | ||
"chai-as-promised": "^3.3.1", | ||
"mocha-as-promised": "^2.0.0", | ||
"coffee-script": "^1.7.1" | ||
@@ -81,0 +92,0 @@ }, |
@@ -1,26 +0,26 @@ | ||
# Z [![Build Status](https://secure.travis-ci.org/jakobmattsson/z-core.png)](http://travis-ci.org/jakobmattsson/z-core) | ||
[![Build Status](https://secure.travis-ci.org/jakobmattsson/z-core.png)](http://travis-ci.org/jakobmattsson/z-core) | ||
Utility library for JavaScript promises | ||
[![Selenium Test Status](https://saucelabs.com/browser-matrix/jakobmattsson-zcore.svg)](https://saucelabs.com/u/jakobmattsson-zcore) | ||
### Test status | ||
# Z | ||
[![Selenium Test Status](https://saucelabs.com/browser-matrix/jakobmattsson-zcore.svg)](https://saucelabs.com/u/jakobmattsson-zcore) | ||
Utility library for JavaScript promises | ||
It's also been tested in Node.js 0.10 and 0.11. | ||
### Installation | ||
Use npm: `npm install z-core` and then `var Z = require('z-core');` | ||
Option 1, npm: `npm install z-core` and then `var Z = require('z-core');` | ||
Or bower: (not uploaded yet) | ||
Option 2, bower: `bower install z-core` | ||
Or download it manually from the `dist` folder of this repo. | ||
Option 3, download it manually from the `dist` folder of this repo. | ||
If you care about shaving off some bytes and you only target ES6-compatible environments, then you can use `z-core-es6.js`. It assumes that there is a native promise-implementation, as provided by ES6. The standard Z implementation comes with a small polyfill though. | ||
Minimified (not gziped) the code is about 10k for the standard version, compatibile with all environments, and about 4k for the ES6-version. | ||
### Wrapping functions to accept promises as parameters and return promises | ||
### Functions can now accept promises as arguments | ||
@@ -88,3 +88,3 @@ Use `bindSync` to create promise-friendly functions from sync functions. | ||
### Use a prepackaged version of Z | ||
### Using a prepackaged version of Z | ||
@@ -91,0 +91,0 @@ There are several mixin packages available for your convenience: |
13242
9