hermes-parser 0.27.0 → 0.28.1

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/dist/index.js CHANGED
@@ -120,6 +120,10 @@ function getOptions(options = { ...DEFAULTS
120
120
  options.enableExperimentalComponentSyntax = true; // Enable by default
121
121
  }
122
122
 
123
+ if (options.enableExperimentalFlowMatchSyntax == null) {
124
+ options.enableExperimentalFlowMatchSyntax = true; // Enable by default
125
+ }
126
+
123
127
  options.tokens = options.tokens === true;
124
128
  options.allowReturnOutsideFunction = options.allowReturnOutsideFunction === true;
125
129
  return options;
@@ -53,6 +53,10 @@ function getOptions(options?: ParserOptions = {...DEFAULTS}) {
53
53
  options.enableExperimentalComponentSyntax = true; // Enable by default
54
54
  }
55
55
 
56
+ if (options.enableExperimentalFlowMatchSyntax == null) {
57
+ options.enableExperimentalFlowMatchSyntax = true; // Enable by default
58
+ }
59
+
56
60
  options.tokens = options.tokens === true;
57
61
  options.allowReturnOutsideFunction =
58
62
  options.allowReturnOutsideFunction === true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-parser",
3
- "version": "0.27.0",
3
+ "version": "0.28.1",
4
4
  "description": "A JavaScript parser built from the Hermes engine",
5
5
  "main": "dist/index.js",
6
6
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "url": "git@github.com:facebook/hermes.git"
10
10
  },
11
11
  "dependencies": {
12
- "hermes-estree": "0.27.0"
12
+ "hermes-estree": "0.28.1"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@babel/parser": "7.7.4",