ast-types 0.9.10 → 0.9.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.travis.yml CHANGED
@@ -1,12 +1,9 @@
1
1
  language: node_js
2
2
  node_js:
3
+ - "8"
3
4
  - "7"
4
5
  - "6"
5
6
  - "5"
6
7
  - "4"
7
- - "iojs"
8
- - "0.12"
9
- - "0.11"
10
- - "0.10"
11
8
 
12
9
  sudo: false
package/def/es6.js CHANGED
@@ -44,6 +44,7 @@ module.exports = function (fork) {
44
44
  .field("generator", false, defaults["false"]);
45
45
 
46
46
  def("ForOfStatement")
47
+ .bases("Statement")
47
48
  .build("left", "right", "body")
48
49
  .field("left", or(
49
50
  def("VariableDeclaration"),
package/def/flow.js CHANGED
@@ -116,7 +116,7 @@ module.exports = function (fork) {
116
116
  def("ObjectTypeAnnotation")
117
117
  .bases("Type")
118
118
  .build("properties", "indexers", "callProperties")
119
- .field("properties", [def("ObjectTypeProperty")])
119
+ .field("properties", [or(def("ObjectTypeProperty"), def("ObjectTypeSpreadProperty"))])
120
120
  .field("indexers", [def("ObjectTypeIndexer")], defaults.emptyArray)
121
121
  .field("callProperties",
122
122
  [def("ObjectTypeCallProperty")],
@@ -186,6 +186,11 @@ module.exports = function (fork) {
186
186
  .build("argument")
187
187
  .field("argument", def("Type"));
188
188
 
189
+ def("ObjectTypeSpreadProperty")
190
+ .bases("Node")
191
+ .build("argument")
192
+ .field("argument", def("Type"));
193
+
189
194
  def("Identifier")
190
195
  .field("typeAnnotation", or(def("TypeAnnotation"), null), defaults["null"]);
191
196
 
@@ -262,10 +267,22 @@ module.exports = function (fork) {
262
267
  .field("typeParameters", or(def("TypeParameterDeclaration"), null))
263
268
  .field("right", def("Type"));
264
269
 
270
+ def("OpaqueType")
271
+ .bases("Declaration")
272
+ .build("id", "typeParameters", "impltype", "supertype")
273
+ .field("id", def("Identifier"))
274
+ .field("typeParameters", or(def("TypeParameterDeclaration"), null))
275
+ .field("implType", def("Type"))
276
+ .field("superType", def("Type"));
277
+
265
278
  def("DeclareTypeAlias")
266
279
  .bases("TypeAlias")
267
280
  .build("id", "typeParameters", "right");
268
281
 
282
+ def("DeclareOpaqueType")
283
+ .bases("TypeAlias")
284
+ .build("id", "typeParameters", "supertype");
285
+
269
286
  def("TypeCastExpression")
270
287
  .bases("Expression")
271
288
  .build("expression", "typeAnnotation")
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "transformation",
19
19
  "syntax"
20
20
  ],
21
- "version": "0.9.10",
21
+ "version": "0.9.14",
22
22
  "homepage": "http://github.com/benjamn/ast-types",
23
23
  "repository": {
24
24
  "type": "git",
@@ -31,13 +31,13 @@
31
31
  },
32
32
  "dependencies": {},
33
33
  "devDependencies": {
34
- "babel-types": "^6.23.0",
34
+ "babel-types": "^6.26.0",
35
35
  "babylon": "^6.16.1",
36
36
  "espree": "^3.1.7",
37
- "esprima": "~3.1.3",
37
+ "esprima": "~4.0.0",
38
38
  "esprima-fb": "~14001.1.0-dev-harmony-fb",
39
- "mocha": "~3.2.0",
40
- "reify": "^0.5.4"
39
+ "mocha": "^3.4.2",
40
+ "reify": "^0.12.0"
41
41
  },
42
42
  "engines": {
43
43
  "node": ">= 0.8"
package/.npmignore DELETED
@@ -1,2 +0,0 @@
1
- /node_modules
2
- /test