Comparing version 2.0.0-beta-1 to 2.0.0-beta-2
{ | ||
"name": "billy", | ||
"version": "2.0.0-beta-1", | ||
"version": "2.0.0-beta-2", | ||
"description": "A minimal application harness that stays out of your way and out of your code.", | ||
@@ -9,4 +9,30 @@ "author": "Brandon Valosek <bvalosek@gmail.com>", | ||
"scripts": { | ||
"test": "tape test/*.js" | ||
"test": "tape test/*.js", | ||
"build-es5": "BABEL_ENV=es5 babel -d ./es5 ./lib", | ||
"build-node6": "BABEL_ENV=node6 babel -d ./node6 ./lib", | ||
"prepublish": "npm run build-es5 && npm run build-node6" | ||
}, | ||
"babel": { | ||
"env": { | ||
"es5": { | ||
"presets": [ | ||
"env" | ||
] | ||
}, | ||
"node6": { | ||
"presets": [ | ||
[ | ||
"env", | ||
{ | ||
"targets": { | ||
"node": [ | ||
6 | ||
] | ||
} | ||
} | ||
] | ||
] | ||
} | ||
} | ||
}, | ||
"dependencies": { | ||
@@ -17,4 +43,6 @@ "babylon": "6.17.0", | ||
"devDependencies": { | ||
"babel-cli": "6.24.1", | ||
"babel-preset-env": "1.4.0", | ||
"tape": "4.6.3" | ||
} | ||
} |
@@ -60,8 +60,31 @@ # billy | ||
Billy is written to run in modern Javascript environments (ES2017) that support | ||
the CommonJS module system (e.g, Node 7). | ||
the CommonJS module system and the latest ES2017 Spec (e.g, Node 7.10+). It | ||
uses `async` / `await` from the ES2017 spec, as well as features introduced in | ||
ES2015 (ES6) such as `Promise`, iterables, and `WeakMap`. | ||
#### Older JS Runtimes | ||
> Examples of requiring the transpiled versions of the lib | ||
If you are not on the absolute cutting edge, you'll want to use a transpiled | ||
version of the library. | ||
```javascript | ||
// Transpiled down to ES5 (pre-ES2015 / pre-ES6) | ||
const Application = require('billy/es5'); | ||
// Targeting Node v6+ | ||
const Application = require('billy/node6'); | ||
``` | ||
Some notes: | ||
* Even when compiling down to ES5, keep in the mind the code still retains the | ||
CommonJS module syntax (i.e `require` calls) | ||
* There are no polyfills for the new global classes like `Promise`, `Map`, | ||
`WeakMap`. If these are not available in your environment, you will need to | ||
include them first before Billy | ||
* The `es5` target is dependent on a globally-available regenerator polyfill. | ||
* For more information on polyfills and regenerator, see [the official Babel | ||
docs](http://babeljs.io/docs/usage/polyfill/) | ||
## API | ||
@@ -68,0 +91,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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
46866
18
1202
201
3