goldstein 5.3.0 → 5.5.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 +10 -0
- package/README.md +0 -16
- package/package.json +3 -5
- package/packages/goldstein/index.js +0 -2
- package/packages/goldstein/parser.js +0 -2
- package/build/parser.cjs +0 -6171
- package/packages/keyword-no-async/index.js +0 -36
package/ChangeLog
CHANGED
package/README.md
CHANGED
|
@@ -407,22 +407,6 @@ That absolutely fine, it will be converted to:
|
|
|
407
407
|
function hello() {}
|
|
408
408
|
```
|
|
409
409
|
|
|
410
|
-
### `asyn`-less `Function` with `await`
|
|
411
|
-
|
|
412
|
-
```gs
|
|
413
|
-
function hello() {
|
|
414
|
-
await world();
|
|
415
|
-
}
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
In js:
|
|
419
|
-
|
|
420
|
-
```js
|
|
421
|
-
async function hello() {
|
|
422
|
-
await world();
|
|
423
|
-
}
|
|
424
|
-
```
|
|
425
|
-
|
|
426
410
|
## How to contribute?
|
|
427
411
|
|
|
428
412
|
Clone the registry, create a new keyword with a prefix `keyword-`, then create directory `fixture` and put there two files with extensions `.js` and `.gs`. Half way done 🥳!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "goldstein",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "JavaScript with no limits",
|
|
@@ -25,14 +25,12 @@
|
|
|
25
25
|
"coverage": "madrun coverage",
|
|
26
26
|
"lint": "madrun lint",
|
|
27
27
|
"fix:lint": "madrun fix:lint",
|
|
28
|
-
"build": "madrun build",
|
|
29
28
|
"wisdom": "madrun wisdom"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
31
|
"@putout/plugin-declare": "^4.0.0",
|
|
33
32
|
"@putout/plugin-logical-expressions": "^5.0.0",
|
|
34
33
|
"@putout/plugin-try-catch": "^3.0.0",
|
|
35
|
-
"@putout/plugin-promises": "^14.1.0",
|
|
36
34
|
"@putout/printer": "^8.0.1",
|
|
37
35
|
"acorn": "^8.7.1",
|
|
38
36
|
"esbuild": "^0.20.1",
|
|
@@ -46,7 +44,6 @@
|
|
|
46
44
|
"devDependencies": {
|
|
47
45
|
"@babel/core": "^8.0.0-alpha.5",
|
|
48
46
|
"@cloudcmd/stub": "^4.0.1",
|
|
49
|
-
"@putout/plugin-goldstein": "./rules/goldstein",
|
|
50
47
|
"@putout/test": "^9.0.1",
|
|
51
48
|
"c8": "^9.1.0",
|
|
52
49
|
"check-dts": "^0.7.1",
|
|
@@ -60,7 +57,8 @@
|
|
|
60
57
|
"redlint": "^3.14.1",
|
|
61
58
|
"runsome": "^1.0.0",
|
|
62
59
|
"supertape": "^10.1.0",
|
|
63
|
-
"typescript": "^5.0.3"
|
|
60
|
+
"typescript": "^5.0.3",
|
|
61
|
+
"@putout/plugin-goldstein": "./rules/goldstein"
|
|
64
62
|
},
|
|
65
63
|
"engines": {
|
|
66
64
|
"node": ">=18"
|
|
@@ -3,7 +3,6 @@ import {print} from '@putout/printer';
|
|
|
3
3
|
import tryCatchPlugin from '@putout/plugin-try-catch';
|
|
4
4
|
import declarePlugin from '@putout/plugin-declare';
|
|
5
5
|
import logicalExpressionsPlugin from '@putout/plugin-logical-expressions';
|
|
6
|
-
import promisesPlugin from '@putout/plugin-promises';
|
|
7
6
|
import {parse} from './parser.js';
|
|
8
7
|
|
|
9
8
|
export * from './parser.js';
|
|
@@ -20,7 +19,6 @@ export const compile = (source, options = {}) => {
|
|
|
20
19
|
['try-catch', tryCatchPlugin],
|
|
21
20
|
['declare', declarePlugin],
|
|
22
21
|
['logical-expressions', logicalExpressionsPlugin],
|
|
23
|
-
['promises', promisesPlugin],
|
|
24
22
|
],
|
|
25
23
|
});
|
|
26
24
|
|
|
@@ -12,7 +12,6 @@ import keywordIf from '../keyword-if/index.js';
|
|
|
12
12
|
import keywordImport from '../keyword-import/index.js';
|
|
13
13
|
import keywordArrow from '../keyword-arrow/index.js';
|
|
14
14
|
import keywordAddArray from '../keyword-add-array/index.js';
|
|
15
|
-
import keywordNoAsync from '../keyword-no-async/index.js';
|
|
16
15
|
|
|
17
16
|
const defaultKeywords = {
|
|
18
17
|
keywordFn,
|
|
@@ -27,7 +26,6 @@ const defaultKeywords = {
|
|
|
27
26
|
keywordArrow,
|
|
28
27
|
keywordAddArray,
|
|
29
28
|
stringInterpolation,
|
|
30
|
-
keywordNoAsync,
|
|
31
29
|
};
|
|
32
30
|
|
|
33
31
|
export const keywords = defaultKeywords;
|