Comparing version 6.14.1 to 6.15.0
@@ -18,2 +18,94 @@ # Changelog | ||
## 6.15.0 (2017-01-10) | ||
### :eyeglasses: Spec Compliancy | ||
Add support for Flow shorthand import type ([#267](https://github.com/babel/babylon/pull/267)) (Jeff Morrison) | ||
This change implements flows new shorthand import syntax | ||
and where previously you had to write this code: | ||
```js | ||
import {someValue} from "blah"; | ||
import type {someType} from "blah"; | ||
import typeof {someOtherValue} from "blah"; | ||
``` | ||
you can now write it like this: | ||
```js | ||
import { | ||
someValue, | ||
type someType, | ||
typeof someOtherValue, | ||
} from "blah"; | ||
``` | ||
For more information look at [this](https://github.com/facebook/flow/pull/2890) pull request. | ||
flow: allow leading pipes in all positions ([#256](https://github.com/babel/babylon/pull/256)) (Vladimir Kurchatkin) | ||
This change now allows a leading pipe everywhere types can be used: | ||
```js | ||
var f = (x): | 1 | 2 => 1; | ||
``` | ||
Throw error when exporting non-declaration ([#241](https://github.com/babel/babylon/pull/241)) (Kai Cataldo) | ||
Previously babylon parsed the following exports, although they are not valid: | ||
```js | ||
export typeof foo; | ||
export new Foo(); | ||
export function() {}; | ||
export for (;;); | ||
export while(foo); | ||
``` | ||
### :bug: Bug Fix | ||
Don't set inType flag when parsing property names ([#266](https://github.com/babel/babylon/pull/266)) (Vladimir Kurchatkin) | ||
This fixes parsing of this case: | ||
```js | ||
const map = { | ||
[age <= 17] : 'Too young' | ||
}; | ||
``` | ||
Fix source location for JSXEmptyExpression nodes (fixes #248) ([#249](https://github.com/babel/babylon/pull/249)) (James Long) | ||
The following case produced an invalid AST | ||
```js | ||
<div>{/* foo */}</div> | ||
``` | ||
Use fromCodePoint to convert high value unicode entities ([#243](https://github.com/babel/babylon/pull/243)) (Ryan Duffy) | ||
When high value unicode entities (e.g. 💩) were used in the input source code they are now correctly encoded in the resulting AST. | ||
Rename folder to avoid Windows-illegal characters ([#281](https://github.com/babel/babylon/pull/281)) (Ryan Plant) | ||
Allow this.state.clone() when parsing decorators ([#262](https://github.com/babel/babylon/pull/262)) (Alex Rattray) | ||
### :house: Internal | ||
User external-helpers ([#254](https://github.com/babel/babylon/pull/254)) (Daniel Tschinder) | ||
Add watch script for dev ([#234](https://github.com/babel/babylon/pull/234)) (Kai Cataldo) | ||
Freeze current plugins list for "*" option, and remove from README.md ([#245](https://github.com/babel/babylon/pull/245)) (Andrew Levine) | ||
Prepare tests for multiple fixture runners. ([#240](https://github.com/babel/babylon/pull/240)) (Daniel Tschinder) | ||
Add some test coverage for decorators stage-0 plugin ([#250](https://github.com/babel/babylon/pull/250)) (Andrew Levine) | ||
Refactor tokenizer types file ([#263](https://github.com/babel/babylon/pull/263)) (Sven SAULEAU) | ||
Update eslint-config-babel to the latest version 🚀 ([#273](https://github.com/babel/babylon/pull/273)) (greenkeeper[bot]) | ||
chore(package): update rollup to version 0.41.0 ([#272](https://github.com/babel/babylon/pull/272)) (greenkeeper[bot]) | ||
chore(package): update flow-bin to version 0.37.0 ([#255](https://github.com/babel/babylon/pull/255)) (greenkeeper[bot]) | ||
## 6.14.1 (2016-11-17) | ||
@@ -20,0 +112,0 @@ |
{ | ||
"name": "babylon", | ||
"version": "6.14.1", | ||
"version": "6.15.0", | ||
"description": "A JavaScript parser", | ||
@@ -15,7 +15,8 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"devDependencies": { | ||
"ava": "^0.16.0", | ||
"ava": "^0.17.0", | ||
"babel-cli": "^6.14.0", | ||
"babel-eslint": "^7.0.0", | ||
"babel-helper-fixtures": "^6.9.0", | ||
"babel-plugin-istanbul": "^2.0.1", | ||
"babel-plugin-external-helpers": "^6.18.0", | ||
"babel-plugin-istanbul": "^3.0.0", | ||
"babel-plugin-transform-flow-strip-types": "^6.14.0", | ||
@@ -26,12 +27,11 @@ "babel-preset-es2015": "^6.14.0", | ||
"codecov": "^1.0.1", | ||
"cross-env": "^2.0.1", | ||
"cross-env": "^2.0.0", | ||
"eslint": "^3.7.1", | ||
"eslint-config-babel": "^2.0.1", | ||
"eslint-plugin-babel": "^3.3.0", | ||
"eslint-config-babel": "^4.0.1", | ||
"eslint-plugin-babel": "^4.0.0", | ||
"eslint-plugin-flowtype": "^2.20.0", | ||
"flow-bin": "^0.34.0", | ||
"lodash": "^4.15.0", | ||
"nyc": "^8.1.0", | ||
"flow-bin": "^0.37.0", | ||
"nyc": "^10.0.0", | ||
"rimraf": "^2.5.4", | ||
"rollup": "^0.36.3", | ||
"rollup": "^0.41.0", | ||
"rollup-plugin-babel": "^2.6.1", | ||
@@ -45,3 +45,3 @@ "rollup-plugin-node-resolve": "^2.0.0", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"build": "npm run clean && rollup -c", | ||
"coverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json", | ||
@@ -51,8 +51,9 @@ "lint": "eslint src bin", | ||
"flow": "flow", | ||
"prepublish": "npm run clean && cross-env BABEL_ENV=production npm run build", | ||
"prepublish": "cross-env BABEL_ENV=production npm run build", | ||
"preversion": "npm run test && npm run changelog", | ||
"test": "npm run lint && npm run flow && npm run build -- -m && npm run test-only", | ||
"test-only": "ava test", | ||
"test-only": "ava", | ||
"test-ci": "nyc npm run test-only", | ||
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'" | ||
"changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'", | ||
"watch": "npm run clean && cross-env BABEL_ENV=watch babel src --out-dir lib --watch" | ||
}, | ||
@@ -66,3 +67,17 @@ "nyc": { | ||
"instrument": false | ||
}, | ||
"ava": { | ||
"files": [ | ||
"test/*.js" | ||
], | ||
"source": [ | ||
"src/**/*.js", | ||
"bin/**/*.js" | ||
] | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
"cross-env" | ||
] | ||
} | ||
} |
@@ -110,4 +110,2 @@ <p align="center"> | ||
> You can use `"*"` to include everything (may be useful in certain cases) | ||
- `jsx` | ||
@@ -117,3 +115,3 @@ - `flow` | ||
- `objectRestSpread` | ||
- `decorators` | ||
- `decorators` (Based on an outdated version of the Decorators proposal. Will be removed in a future version of `Babylon`) | ||
- `classProperties` | ||
@@ -120,0 +118,0 @@ - `exportExtensions` |
Sorry, the diff of this file is too big to display
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
249520
5662
121