update docs and add 6.0.18 changelog
This commit is contained in:
parent
85dd7ec40e
commit
7955548ad1
11
CHANGELOG.md
11
CHANGELOG.md
@ -13,6 +13,15 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
|
|||||||
|
|
||||||
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
||||||
|
|
||||||
|
## 6.0.18
|
||||||
|
|
||||||
|
* **Polish**
|
||||||
|
* Add error when calling builder methods with too many arguments than it can take.
|
||||||
|
* Rename `RegexLiteral` node to `RegExpLiteral`.
|
||||||
|
* Rename `NumberLiteral` node to `NumericLiteral`.
|
||||||
|
* **Bug Fix**
|
||||||
|
* Make all fields of a `ForStatement` optional.
|
||||||
|
|
||||||
## 6.0.17
|
## 6.0.17
|
||||||
|
|
||||||
* **Polish**
|
* **Polish**
|
||||||
@ -78,7 +87,7 @@ See [CHANGELOG - 6to5](CHANGELOG-6to5.md) for the pre-4.0.0 version changelog.
|
|||||||
* The `MethodDefinition` node type has been renamed to `ClassMethod` and it's `FunctionExpression` `value` property has been coerced into the main method node.
|
* The `MethodDefinition` node type has been renamed to `ClassMethod` and it's `FunctionExpression` `value` property has been coerced into the main method node.
|
||||||
* The `Property` node type has been renamed to `ObjectProperty`.
|
* The `Property` node type has been renamed to `ObjectProperty`.
|
||||||
* The `Property` node type with the boolean flag `method` has been renamed to `ObjectMethod` and it's `FunctionExpression` `value` property has been coerced into the main method node.
|
* The `Property` node type with the boolean flag `method` has been renamed to `ObjectMethod` and it's `FunctionExpression` `value` property has been coerced into the main method node.
|
||||||
* The `Literal` node type has been unoverloaded and split into `BooleanLiteral`, `RegexLiteral`, `NumberLiteral`, `StringLiteral` and `NullLiteral`.
|
* The `Literal` node type has been unoverloaded and split into `BooleanLiteral`, `RegExpLiteral`, `NumericLiteral`, `StringLiteral` and `NullLiteral`.
|
||||||
* The `SpreadProperty` (from `object-rest-spread`) node type has been split into `RestProperty` (for `ObjectPattern`) and `SpreadProperty` (for `ObjectExpression`)
|
* The `SpreadProperty` (from `object-rest-spread`) node type has been split into `RestProperty` (for `ObjectPattern`) and `SpreadProperty` (for `ObjectExpression`)
|
||||||
* Remove `module.exports` export interop for CommonJS module formatter.
|
* Remove `module.exports` export interop for CommonJS module formatter.
|
||||||
* `externalHelpers` option has been moved into the plugin `babel-plugin-external-helper-2`.
|
* `externalHelpers` option has been moved into the plugin `babel-plugin-external-helper-2`.
|
||||||
|
|||||||
@ -9,7 +9,7 @@ This document specifies the core ESTree AST node types that support the ES5 gram
|
|||||||
- [NullLiteral](#nullliteral)
|
- [NullLiteral](#nullliteral)
|
||||||
- [StringLiteral](#stringliteral)
|
- [StringLiteral](#stringliteral)
|
||||||
- [BooleanLiteral](#booleanliteral)
|
- [BooleanLiteral](#booleanliteral)
|
||||||
- [NumberLiteral](#numberliteral)
|
- [NumericLiteral](#NumericLiteral)
|
||||||
- [Programs](#programs)
|
- [Programs](#programs)
|
||||||
- [Functions](#functions)
|
- [Functions](#functions)
|
||||||
- [Statements](#statements)
|
- [Statements](#statements)
|
||||||
@ -153,11 +153,11 @@ An identifier. Note that an identifier may be an expression or a destructuring p
|
|||||||
|
|
||||||
# Literals
|
# Literals
|
||||||
|
|
||||||
## RegexpLiteral
|
## RegExpLiteral
|
||||||
|
|
||||||
```js
|
```js
|
||||||
interface RegExpLiteral <: Literal {
|
interface RegExpLiteral <: Literal {
|
||||||
type: "RegexLiteral";
|
type: "RegExpLiteral";
|
||||||
pattern: string;
|
pattern: string;
|
||||||
flags: string;
|
flags: string;
|
||||||
}
|
}
|
||||||
@ -189,11 +189,11 @@ interface BooleanLiteral <: Literal {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## NumberLiteral
|
## NumericLiteral
|
||||||
|
|
||||||
```js
|
```js
|
||||||
interface NumberLiteral <: Literal {
|
interface NumericLiteral <: Literal {
|
||||||
type: "NumberLiteral";
|
type: "NumericLiteral";
|
||||||
value: number;
|
value: number;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user