Comparing version 1.3.1 to 1.3.2
@@ -0,3 +1,7 @@ | ||
/* @flow */ | ||
/* eslint no-console:0 */ | ||
'use strict'; | ||
// Imports | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -9,7 +13,2 @@ | ||
/* @flow */ | ||
/* eslint no-console:0 */ | ||
// Editions Loader | ||
// Imports | ||
var pathUtil = require('path'); | ||
@@ -39,3 +38,5 @@ | ||
var EARLIST_NODE_VERSION_THAT_SUPPORTS_ESNEXT = 0.12; | ||
var EARLIEST_ESNEXT_NODE_VERSION = ['0', '12']; | ||
var NODE_VERSION = process && process.versions && process.versions.node && process.versions.node.split('.'); | ||
var ESNEXT_UNSUPPORTED = NODE_VERSION[0] < EARLIEST_ESNEXT_NODE_VERSION[0] || NODE_VERSION[0] === EARLIEST_ESNEXT_NODE_VERSION[0] && NODE_VERSION[1] < EARLIEST_ESNEXT_NODE_VERSION[1]; | ||
@@ -51,3 +52,3 @@ // Environment fetching | ||
syntaxBlacklist.typescript = new Error('The typescript syntax is skipped as we want to use a precompiled edition rather than compiling at runtime'); | ||
if (process && process.versions && process.versions.node && Number(process.versions.node.split('.').slice(0, 2).join('.')) < EARLIST_NODE_VERSION_THAT_SUPPORTS_ESNEXT) { | ||
if (ESNEXT_UNSUPPORTED) { | ||
syntaxBlacklist.esnext = new Error('The esnext syntax is skipped on early node versions as attempting to use esnext features will output debugging information on these node versions'); | ||
@@ -200,7 +201,6 @@ } | ||
var _require = require(packagePath); | ||
var _require = require(packagePath), | ||
name = _require.name, | ||
editions = _require.editions; | ||
var name = _require.name; | ||
var editions = _require.editions; | ||
var opts /* :options */ = { cwd: cwd, require: require }; | ||
@@ -207,0 +207,0 @@ if (name) opts.package = name; |
# History | ||
## v1.3.2 2016 November 4 | ||
- Added node 0.8 support | ||
## v1.3.1 2016 October 11 | ||
@@ -4,0 +7,0 @@ - Fixed failure to load editions that had the edition directory within the edition entry |
{ | ||
"name": "editions", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Publish multiple editions for your JavaScript packages consistently and easily (e.g. source edition, esnext edition, es2015 edition)", | ||
@@ -57,3 +57,3 @@ "homepage": "https://github.com/bevry/editions", | ||
"engines": { | ||
"node": ">=0.10" | ||
"node": ">=0.8" | ||
}, | ||
@@ -87,17 +87,19 @@ "editions": [ | ||
"scripts": { | ||
"clean": "rm -Rf ./docs ./es2015", | ||
"compile": "npm run compile:es2015", | ||
"compile:es2015": "babel ./source --out-dir ./es2015 --presets es2015", | ||
"meta": "npm run meta:docs && npm run meta:projectz", | ||
"meta:docs": "documentation build -f html -g source/**.js -o docs", | ||
"meta:projectz": "projectz compile", | ||
"prepare": "npm run compile && npm run test && npm run meta", | ||
"release": "npm run prepare && npm run release:publish && npm run release:tag && npm run release:push", | ||
"release:publish": "npm publish", | ||
"release:tag": "git tag v$npm_package_version -a", | ||
"release:push": "git push origin master && git push origin --tags", | ||
"pretest": "npm run test:eslint && npm run test:flow", | ||
"test:eslint": "eslint ./source", | ||
"test:flow": "flow check", | ||
"test": "node --harmony ./es2015/test.js" | ||
"our:setup": "npm install", | ||
"our:clean": "rm -Rf ./docs ./es2015", | ||
"our:compile": "npm run our:compile:es2015", | ||
"our:compile:es2015": "babel ./source --out-dir ./es2015 --presets es2015", | ||
"our:meta": "npm run our:meta:docs && npm run our:meta:projectz", | ||
"our:meta:docs": "documentation build -f html -o ./docs -g --shallow ./source/**.js", | ||
"our:meta:projectz": "projectz compile", | ||
"our:verify": "npm run our:verify:eslint && npm run our:verify:flow", | ||
"our:verify:eslint": "eslint --fix ./source", | ||
"our:verify:flow": "flow check", | ||
"our:test": "npm run our:verify && npm test", | ||
"our:release": "npm run our:release:prepare && npm run our:release:publish && npm run our:release:tag && npm run our:release:push", | ||
"our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta", | ||
"our:release:publish": "npm publish", | ||
"our:release:tag": "git tag v$npm_package_version -a", | ||
"our:release:push": "git push origin master && git push origin --tags", | ||
"test": "node --harmony ./es2015/test.js --joe-reporter=console" | ||
}, | ||
@@ -107,12 +109,11 @@ "dependencies": {}, | ||
"assert-helpers": "^4.4.0", | ||
"babel-cli": "^6.10.1", | ||
"babel-polyfill": "^6.9.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
"documentation": "^4.0.0-beta10", | ||
"eslint": "^2.12.0", | ||
"flow-bin": "^0.33.0", | ||
"joe": "^1.8.0", | ||
"joe-reporter-console": "^1.2.1", | ||
"projectz": "^1.1.6" | ||
"babel-cli": "^6.18.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"documentation": "^4.0.0-beta11", | ||
"eslint": "^3.9.1", | ||
"flow-bin": "^0.34.0", | ||
"joe": "^2.0.2", | ||
"joe-reporter-console": "^2.0.1", | ||
"projectz": "^1.3.2" | ||
} | ||
} |
/* @flow */ | ||
/* eslint no-console:0 */ | ||
// Editions Loader | ||
'use strict' | ||
@@ -21,3 +21,9 @@ // Imports | ||
// Always the same | ||
const EARLIST_NODE_VERSION_THAT_SUPPORTS_ESNEXT = 0.12 | ||
const EARLIEST_ESNEXT_NODE_VERSION = ['0', '12'] | ||
const NODE_VERSION = process && process.versions && process.versions.node && process.versions.node.split('.') | ||
const ESNEXT_UNSUPPORTED = | ||
NODE_VERSION[0] < EARLIEST_ESNEXT_NODE_VERSION[0] || ( | ||
NODE_VERSION[0] === EARLIEST_ESNEXT_NODE_VERSION[0] && | ||
NODE_VERSION[1] < EARLIEST_ESNEXT_NODE_VERSION[1] | ||
) | ||
@@ -33,3 +39,3 @@ // Environment fetching | ||
syntaxBlacklist.typescript = new Error('The typescript syntax is skipped as we want to use a precompiled edition rather than compiling at runtime') | ||
if ( process && process.versions && process.versions.node && Number(process.versions.node.split('.').slice(0, 2).join('.')) < EARLIST_NODE_VERSION_THAT_SUPPORTS_ESNEXT ) { | ||
if ( ESNEXT_UNSUPPORTED ) { | ||
syntaxBlacklist.esnext = new Error('The esnext syntax is skipped on early node versions as attempting to use esnext features will output debugging information on these node versions') | ||
@@ -36,0 +42,0 @@ } |
Sorry, the diff of this file is not supported yet
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
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
31834
9
348
0