yuku-parser 0.4.2 → 0.4.3

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +12 -12
package/README.md CHANGED
@@ -75,7 +75,7 @@ All options are optional.
75
75
  const result = parse(source, {
76
76
  sourceType: "module",
77
77
  lang: "jsx",
78
- preserveParens: false,
78
+ preserveParens: true,
79
79
  semanticErrors: false,
80
80
  });
81
81
  ```
@@ -84,7 +84,7 @@ const result = parse(source, {
84
84
  |--------|--------|---------|-------------|
85
85
  | `sourceType` | `"module"`, `"script"` | `"module"` | Module mode enables `import`/`export`, `import.meta`, top-level `await`, and strict mode. |
86
86
  | `lang` | `"js"`, `"ts"`, `"jsx"`, `"tsx"`, `"dts"` | `"js"` | Language variant controls which syntax extensions are enabled. |
87
- | `preserveParens` | `true`, `false` | `false` | Keep `ParenthesizedExpression` nodes in the AST. When false, parentheses are stripped and only the inner expression is kept. |
87
+ | `preserveParens` | `true`, `false` | `true` | Keep `ParenthesizedExpression` nodes in the AST. When false, parentheses are stripped and only the inner expression is kept. |
88
88
  | `semanticErrors` | `true`, `false` | `false` | Run semantic analysis and report semantic errors alongside syntax errors. |
89
89
 
90
90
  ## Result
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuku-parser",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "High-performance JavaScript/TypeScript parser",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,16 +17,16 @@
17
17
  "decode.js"
18
18
  ],
19
19
  "optionalDependencies": {
20
- "@yuku-parser/binding-linux-x64-gnu": "0.4.2",
21
- "@yuku-parser/binding-linux-arm64-gnu": "0.4.2",
22
- "@yuku-parser/binding-linux-arm-gnu": "0.4.2",
23
- "@yuku-parser/binding-linux-x64-musl": "0.4.2",
24
- "@yuku-parser/binding-linux-arm64-musl": "0.4.2",
25
- "@yuku-parser/binding-linux-arm-musl": "0.4.2",
26
- "@yuku-parser/binding-darwin-x64": "0.4.2",
27
- "@yuku-parser/binding-darwin-arm64": "0.4.2",
28
- "@yuku-parser/binding-win32-x64": "0.4.2",
29
- "@yuku-parser/binding-win32-arm64": "0.4.2",
30
- "@yuku-parser/binding-freebsd-x64": "0.4.2"
20
+ "@yuku-parser/binding-linux-x64-gnu": "0.4.3",
21
+ "@yuku-parser/binding-linux-arm64-gnu": "0.4.3",
22
+ "@yuku-parser/binding-linux-arm-gnu": "0.4.3",
23
+ "@yuku-parser/binding-linux-x64-musl": "0.4.3",
24
+ "@yuku-parser/binding-linux-arm64-musl": "0.4.3",
25
+ "@yuku-parser/binding-linux-arm-musl": "0.4.3",
26
+ "@yuku-parser/binding-darwin-x64": "0.4.3",
27
+ "@yuku-parser/binding-darwin-arm64": "0.4.3",
28
+ "@yuku-parser/binding-win32-x64": "0.4.3",
29
+ "@yuku-parser/binding-win32-arm64": "0.4.3",
30
+ "@yuku-parser/binding-freebsd-x64": "0.4.3"
31
31
  }
32
32
  }