goldstein 3.2.3 → 3.3.0
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/ChangeLog +19 -0
- package/README.md +6 -4
- package/bin/gs.js +1 -0
- package/build/parser.cjs +486 -160
- package/package.json +10 -10
- package/packages/goldstein/index.js +4 -8
- package/packages/goldstein/parser.js +6 -2
- package/packages/keyword-arrow/index.js +1 -4
- package/packages/keyword-curry/index.js +1 -0
- package/packages/keyword-fn/index.js +2 -0
- package/packages/keyword-freeze/index.js +3 -4
- package/packages/keyword-guard/index.js +2 -0
- package/packages/keyword-should/index.js +2 -2
- package/packages/keyword-try/index.js +1 -2
- package/packages/operator/index.js +1 -1
- package/packages/operator/scopeflags.js +2 -4
- package/packages/parser/index.js +2 -3
- package/packages/string-interpolation/index.js +3 -5
package/ChangeLog
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
2023.07.09, v3.3.0
|
|
2
|
+
|
|
3
|
+
feature:
|
|
4
|
+
- bbe6942 goldstein: update fixtures
|
|
5
|
+
- 34e8be9 package: @putout/printer v2.61.0
|
|
6
|
+
- 483a094 package: esbuild v0.18.11
|
|
7
|
+
- 2ccfc8b package: escover v3.4.0
|
|
8
|
+
- c49f5b6 package: eslint-plugin-putout v18.0.0
|
|
9
|
+
- 86e8467 package: estree-to-babel v6.0.0
|
|
10
|
+
- eee1ae4 package: c8 v8.0.0
|
|
11
|
+
- 92dce62 package: putout v30.2.0
|
|
12
|
+
- d7f423b package: eslint-plugin-n v16.0.1
|
|
13
|
+
- 430bceb package: nodemon v3.0.1
|
|
14
|
+
|
|
15
|
+
2023.04.19, v3.2.4
|
|
16
|
+
|
|
17
|
+
fix:
|
|
18
|
+
- dc9866d parser: comment
|
|
19
|
+
|
|
1
20
|
2023.04.19, v3.2.3
|
|
2
21
|
|
|
3
22
|
fix:
|
package/README.md
CHANGED
|
@@ -87,6 +87,7 @@ compile(`
|
|
|
87
87
|
return "Hello " + text
|
|
88
88
|
}
|
|
89
89
|
`);
|
|
90
|
+
|
|
90
91
|
// returns
|
|
91
92
|
`
|
|
92
93
|
function hello() {
|
|
@@ -121,8 +122,8 @@ compile(source, {
|
|
|
121
122
|
keywordFn,
|
|
122
123
|
function id(Parser) {
|
|
123
124
|
const {keywordTypes} = Parser.acorn;
|
|
124
|
-
|
|
125
|
-
};
|
|
125
|
+
|
|
126
|
+
return class extends Parser {};
|
|
126
127
|
},
|
|
127
128
|
],
|
|
128
129
|
rules: {
|
|
@@ -229,6 +230,7 @@ Is the same as:
|
|
|
229
230
|
|
|
230
231
|
```js
|
|
231
232
|
import tryCatch from 'try-catch';
|
|
233
|
+
|
|
232
234
|
const [error, result] = tryCatch(hello, 'world');
|
|
233
235
|
```
|
|
234
236
|
|
|
@@ -242,6 +244,7 @@ Is the same as:
|
|
|
242
244
|
|
|
243
245
|
```js
|
|
244
246
|
import tryToCatch from 'try-catch';
|
|
247
|
+
|
|
245
248
|
const [error, result] = await tryToCatch(1, 2, 3);
|
|
246
249
|
```
|
|
247
250
|
|
|
@@ -342,8 +345,7 @@ function hello() => {
|
|
|
342
345
|
That absolutely fine, it will be converted to:
|
|
343
346
|
|
|
344
347
|
```js
|
|
345
|
-
function hello() {
|
|
346
|
-
}
|
|
348
|
+
function hello() {}
|
|
347
349
|
```
|
|
348
350
|
|
|
349
351
|
## How to contribute?
|