nirguna 1.1.0 → 1.1.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
|
+
2026.02.24, v1.1.1
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 5ba529b @putout/plugin-fasm: add-label-prefix: exclude CallExpression callee
|
|
5
|
+
- a6c2c3d @putout/plugin-fasm: insert-target: filter
|
|
6
|
+
|
|
7
|
+
feature:
|
|
8
|
+
- dde51ae @nirguna/transformer-wasm: publish
|
|
9
|
+
- c44bb5c @putout/plugin-wasm: convert-binary-to-call
|
|
10
|
+
- 4c250e1 @putout/plugin-wasm: convert-binary-to-function
|
|
11
|
+
- 448d50a @putout/plugin-wasm: apply-types: async
|
|
12
|
+
- 9f30e51 @putout/plugin-fasm: convert-args-to-regs: insert-target: improve support
|
|
13
|
+
- 8d44159 nemesis: target: boot, kernel, nemesis
|
|
14
|
+
- 0ab6c1f @putout/transform-fasm: insert-target
|
|
15
|
+
|
|
1
16
|
2026.02.22, v1.1.0
|
|
2
17
|
|
|
3
18
|
fix:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirguna",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "Compile JavaScript to WASM and FASM",
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"@nirguna/plugin-optimizer-wasm": "^1.0.0",
|
|
41
41
|
"@nirguna/plugin-wasm": "^1.0.0",
|
|
42
42
|
"@nirguna/transformer-fasm": "^1.0.0",
|
|
43
|
+
"@nirguna/transformer-wasm": "^1.0.0",
|
|
43
44
|
"@putout/babel": "^5.2.12",
|
|
44
45
|
"@putout/plugin-assignment": "^2.0.0",
|
|
45
46
|
"@putout/plugin-esm": "^10.0.1",
|
|
@@ -92,7 +93,6 @@
|
|
|
92
93
|
"#translator-wasm": "./packages/translator-wasm/translator.js",
|
|
93
94
|
"#test-wasm": "./packages/test-wasm/test.js",
|
|
94
95
|
"#translator-fasm": "./packages/translator-fasm/translator.js",
|
|
95
|
-
"#transformer-wasm": "./packages/transformer-wasm/transformer.js",
|
|
96
96
|
"#operator-wasm": "./packages/operator-wasm/index.js",
|
|
97
97
|
"#nirguna": "./lib/nirguna.js"
|
|
98
98
|
},
|
|
@@ -25,7 +25,10 @@ export const compile = async (source, options = {}) => {
|
|
|
25
25
|
places,
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
-
const [code, compilePlaces] = transform(source,
|
|
28
|
+
const [code, compilePlaces] = transform(source, {
|
|
29
|
+
...config,
|
|
30
|
+
target,
|
|
31
|
+
});
|
|
29
32
|
|
|
30
33
|
if (compilePlaces.length) {
|
|
31
34
|
emitLastStateChange('transform', compilePlaces);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import {transform} from '@nirguna/transformer-wasm';
|
|
1
2
|
import {translate} from '#translator-wasm';
|
|
2
|
-
import {transform} from '#transformer-wasm';
|
|
3
3
|
import {print} from '#printer-wasm';
|
|
4
4
|
import {optimize} from '#optimizer-wasm';
|
|
5
5
|
|
|
@@ -60,3 +60,4 @@ export const compile = async (source, options = {}) => {
|
|
|
60
60
|
emitLastStateChange('translate', places);
|
|
61
61
|
return [binary, places];
|
|
62
62
|
};
|
|
63
|
+
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import putout from 'putout';
|
|
2
|
-
import * as removeNestedBlocks from '@putout/plugin-remove-nested-blocks';
|
|
3
|
-
import * as esm from '@putout/plugin-esm';
|
|
4
|
-
import * as nirguna from '@nirguna/plugin-nirguna';
|
|
5
|
-
import * as wasm from '@nirguna/plugin-wasm';
|
|
6
|
-
|
|
7
|
-
export const transform = (source) => {
|
|
8
|
-
const {code, places} = putout(source, {
|
|
9
|
-
fix: true,
|
|
10
|
-
isTS: true,
|
|
11
|
-
plugins: [
|
|
12
|
-
['nirguna/wasm', wasm],
|
|
13
|
-
['nirguna/nirguna', nirguna],
|
|
14
|
-
['esm', esm],
|
|
15
|
-
['remove-nested-blocks', removeNestedBlocks],
|
|
16
|
-
],
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
return [code, places];
|
|
20
|
-
};
|