Comparing version 6.13.1 to 6.14.0
@@ -18,6 +18,63 @@ # Changelog | ||
## 6.14.0 (2016-11-13) | ||
### :eyeglasses: Spec Compliancy | ||
Throw error for reserved words `enum` and `await` ([#195](https://github.com/babel/babylon/pull/195)) (Kai Cataldo) | ||
[11.6.2.2 Future Reserved Words](http://www.ecma-international.org/ecma-262/6.0/#sec-future-reserved-words) | ||
Babylon will throw for more reserved words such as `enum` or `await` (in strict mode). | ||
``` | ||
class enum {} // throws | ||
class await {} // throws in strict mode (module) | ||
``` | ||
Optional names for function types and object type indexers ([#197](https://github.com/babel/babylon/pull/197)) (Gabe Levi) | ||
So where you used to have to write | ||
```js | ||
type A = (x: string, y: boolean) => number; | ||
type B = (z: string) => number; | ||
type C = { [key: string]: number }; | ||
``` | ||
you can now write (with flow 0.34.0) | ||
```js | ||
type A = (string, boolean) => number; | ||
type B = string => number; | ||
type C = { [string]: number }; | ||
``` | ||
Parse flow nested array type annotations like `number[][]` ([#219](https://github.com/babel/babylon/pull/219)) (Bernhard Häussner) | ||
Supports these form now of specifying array types: | ||
```js | ||
var a: number[][][][]; | ||
var b: string[][]; | ||
``` | ||
### :bug: Bug Fix | ||
Correctly eat semicolon at the end of `DelcareModuleExports` ([#223](https://github.com/babel/babylon/pull/223)) (Daniel Tschinder) | ||
``` | ||
declare module "foo" { declare module.exports: number } | ||
declare module "foo" { declare module.exports: number; } // also allowed now | ||
``` | ||
### :house: Internal | ||
* Count Babel tests towards Babylon code coverage ([#182](https://github.com/babel/babylon/pull/182)) (Moti Zilberman) | ||
* Fix strange line endings ([#214](https://github.com/babel/babylon/pull/214)) (Thomas Grainger) | ||
* Add node 7 (Daniel Tschinder) | ||
* chore(package): update flow-bin to version 0.34.0 ([#204](https://github.com/babel/babylon/pull/204)) (Greenkeeper) | ||
## v6.13.1 (2016-10-26) | ||
### 💅 Polish | ||
### :nail_care: Polish | ||
@@ -44,3 +101,3 @@ - Use rollup for bundling to speed up startup time ([#190](https://github.com/babel/babylon/pull/190)) ([@drewml](https://github.com/DrewML)) | ||
### 👓 Spec Compliancy | ||
### :eyeglasses: Spec Compliancy | ||
@@ -103,3 +160,3 @@ Property variance type annotations for Flow plugin ([#161](https://github.com/babel/babylon/pull/161)) (Sam Goldman) | ||
### 👓 Spec Compliancy | ||
### :eyeglasses: Spec Compliancy | ||
@@ -106,0 +163,0 @@ Implement import() syntax ([#163](https://github.com/babel/babylon/pull/163)) (Jordan Gensler) |
{ | ||
"name": "babylon", | ||
"version": "6.13.1", | ||
"version": "6.14.0", | ||
"description": "A JavaScript parser", | ||
@@ -23,2 +23,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"chalk": "^1.1.3", | ||
"codecov": "^1.0.1", | ||
@@ -30,3 +31,3 @@ "cross-env": "^2.0.1", | ||
"eslint-plugin-flowtype": "^2.20.0", | ||
"flow-bin": "^0.33.0", | ||
"flow-bin": "^0.34.0", | ||
"lodash": "^4.15.0", | ||
@@ -51,3 +52,3 @@ "nyc": "^8.1.0", | ||
"preversion": "npm run test && npm run changelog", | ||
"test": "npm run lint && npm run flow && npm run build && npm run test-only", | ||
"test": "npm run lint && npm run flow && npm run build -- -m && npm run test-only", | ||
"test-only": "ava test", | ||
@@ -54,0 +55,0 @@ "test-ci": "nyc npm run test-only", |
@@ -17,3 +17,3 @@ <p align="center"> | ||
- Support for JSX and Flow. | ||
- Support for experimental language proposals (accepting PRs for anything at least [stage-0](https://github.com/tc39/proposals/blob/master/stage-0-proposals.md). | ||
- Support for experimental language proposals (accepting PRs for anything at least [stage-0](https://github.com/tc39/proposals/blob/master/stage-0-proposals.md)). | ||
@@ -20,0 +20,0 @@ ## Credits |
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
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
238622
5504
0
23