goldstein 3.3.2 → 4.0.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/ChangeLog CHANGED
@@ -1,3 +1,18 @@
1
+ 2023.08.29, v4.0.1
2
+
3
+ fix:
4
+ - 999445f goldstein: get back sync
5
+
6
+ 2023.08.28, v4.0.0
7
+
8
+ feature:
9
+ - 37f9e82 goldstein: async
10
+ - 901a4fa rules: convert-t-raise-to-raise
11
+ - cb5d441 rules: add convert-t-raise-to-raise
12
+ - 86c5230 rules: add
13
+ - 8a8dd67 package: esbuild v0.19.2
14
+ - 8501a14 package: @putout/printer v3.6.0
15
+
1
16
  2023.08.09, v3.3.2
2
17
 
3
18
  fix:
package/bin/gs.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  readFileSync,
6
6
  writeFileSync,
7
7
  unlinkSync,
8
- } from 'fs';
8
+ } from 'node:fs';
9
9
  import {compile} from '../packages/goldstein/index.js';
10
10
 
11
11
  const [arg] = process.argv.slice(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goldstein",
3
- "version": "3.3.2",
3
+ "version": "4.0.1",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "JavaScript with no limits",
@@ -29,9 +29,12 @@
29
29
  "wisdom": "madrun wisdom"
30
30
  },
31
31
  "dependencies": {
32
- "@putout/printer": "^2.61.0",
32
+ "@putout/plugin-declare": "^2.0.1",
33
+ "@putout/plugin-logical-expressions": "^4.0.0",
34
+ "@putout/plugin-try-catch": "^3.0.0",
35
+ "@putout/printer": "^3.6.0",
33
36
  "acorn": "^8.7.1",
34
- "esbuild": "^0.18.11",
37
+ "esbuild": "^0.19.2",
35
38
  "esbuild-node-builtins": "^0.1.0",
36
39
  "estree-to-babel": "^6.0.0",
37
40
  "putout": "^31.0.3",
@@ -2,6 +2,9 @@ import {transform} from 'putout';
2
2
  import {print} from '@putout/printer';
3
3
  import {parse} from './parser.js';
4
4
  import estreeToBabel from 'estree-to-babel';
5
+ import tryCatchPlugin from '@putout/plugin-try-catch';
6
+ import declarePlugin from '@putout/plugin-declare';
7
+ import logicalExpressionsPlugin from '@putout/plugin-logical-expressions';
5
8
 
6
9
  export * from './parser.js';
7
10
  export const compile = (source, options = {}) => {
@@ -12,9 +15,9 @@ export const compile = (source, options = {}) => {
12
15
  ...options.rules,
13
16
  },
14
17
  plugins: [
15
- 'try-catch',
16
- 'declare',
17
- 'logical-expressions',
18
+ ['try-catch', tryCatchPlugin],
19
+ ['declare', declarePlugin],
20
+ ['logical-expressions', logicalExpressionsPlugin],
18
21
  ],
19
22
  });
20
23