nirguna 1.0.9 → 1.1.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
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
2026.02.22, v1.1.0
|
|
2
|
+
|
|
3
|
+
fix:
|
|
4
|
+
- 9ba62ae nemesis: readSector: ah -> 1
|
|
5
|
+
- 9a8f54b @nirguna/plugin-nemesis: convert-find-first-to-int-0xff: readSector -> findFirst
|
|
6
|
+
|
|
7
|
+
feature:
|
|
8
|
+
- ac56b4e @nirguna/transformer-fasm: move out from nirguna
|
|
9
|
+
- facd68f @putout/cli-args: validate-args: add targets: linux, boot, kernel, nemesis
|
|
10
|
+
- bf84e1d @putout/plugin-fasm: insert-target: add
|
|
11
|
+
- 725e9c5 nemesis: screen size
|
|
12
|
+
- 9ec8005 nemesis: find-first: loop -> do while
|
|
13
|
+
|
|
1
14
|
2026.02.21, v1.0.9
|
|
2
15
|
|
|
3
16
|
feature:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nirguna",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
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",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@nirguna/plugin-optimizer-fasm": "^1.0.0",
|
|
40
40
|
"@nirguna/plugin-optimizer-wasm": "^1.0.0",
|
|
41
41
|
"@nirguna/plugin-wasm": "^1.0.0",
|
|
42
|
+
"@nirguna/transformer-fasm": "^1.0.0",
|
|
42
43
|
"@putout/babel": "^5.2.12",
|
|
43
44
|
"@putout/plugin-assignment": "^2.0.0",
|
|
44
45
|
"@putout/plugin-esm": "^10.0.1",
|
|
@@ -92,7 +93,6 @@
|
|
|
92
93
|
"#test-wasm": "./packages/test-wasm/test.js",
|
|
93
94
|
"#translator-fasm": "./packages/translator-fasm/translator.js",
|
|
94
95
|
"#transformer-wasm": "./packages/transformer-wasm/transformer.js",
|
|
95
|
-
"#transformer-fasm": "./packages/transformer-fasm/transformer.js",
|
|
96
96
|
"#operator-wasm": "./packages/operator-wasm/index.js",
|
|
97
97
|
"#nirguna": "./lib/nirguna.js"
|
|
98
98
|
},
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import {readFileSync as _readFileSync} from 'node:fs';
|
|
2
|
-
import putout from 'putout';
|
|
3
|
-
import * as removeUselessOperand from '@putout/plugin-remove-useless-operand';
|
|
4
|
-
import * as removeNestedBlocks from '@putout/plugin-remove-nested-blocks';
|
|
5
|
-
import * as fasm from '@nirguna/plugin-fasm';
|
|
6
|
-
import * as nirguna from '@nirguna/plugin-nirguna';
|
|
7
|
-
import * as bundler from '@nirguna/plugin-bundler-fasm';
|
|
8
|
-
|
|
9
|
-
const defaultConfig = {
|
|
10
|
-
rules: {},
|
|
11
|
-
plugins: [],
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const parseConfig = (config) => ({
|
|
15
|
-
...defaultConfig,
|
|
16
|
-
...config,
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export const transform = (source, config) => {
|
|
20
|
-
const {
|
|
21
|
-
debug,
|
|
22
|
-
plugins,
|
|
23
|
-
rules,
|
|
24
|
-
readFileSync = _readFileSync,
|
|
25
|
-
} = parseConfig(config);
|
|
26
|
-
|
|
27
|
-
const variables = [];
|
|
28
|
-
const functions = [];
|
|
29
|
-
|
|
30
|
-
const {code: bundled} = putout(source, {
|
|
31
|
-
isTS: true,
|
|
32
|
-
rules: {
|
|
33
|
-
'nirguna/bundler-fasm/apply-debug': ['on', {
|
|
34
|
-
debug,
|
|
35
|
-
count: 0,
|
|
36
|
-
variables,
|
|
37
|
-
functions,
|
|
38
|
-
}],
|
|
39
|
-
'nirguna/bundler-fasm/replace-section-data-with-let': ['on', {
|
|
40
|
-
variables,
|
|
41
|
-
}],
|
|
42
|
-
'nirguna/bundler-fasm/replace-section-code-with-functions': ['on', {
|
|
43
|
-
functions,
|
|
44
|
-
}],
|
|
45
|
-
},
|
|
46
|
-
plugins: [
|
|
47
|
-
['nirguna/bundler-fasm', bundler],
|
|
48
|
-
],
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
const {code, places} = putout(bundled, {
|
|
52
|
-
fixCount: 5,
|
|
53
|
-
isTS: true,
|
|
54
|
-
rules: {
|
|
55
|
-
...rules,
|
|
56
|
-
'nirguna/fasm/apply-include': ['on', {
|
|
57
|
-
readFileSync,
|
|
58
|
-
}],
|
|
59
|
-
},
|
|
60
|
-
plugins: [
|
|
61
|
-
...plugins,
|
|
62
|
-
['remove-useless-operand', removeUselessOperand],
|
|
63
|
-
['remove-nested-blocks', removeNestedBlocks],
|
|
64
|
-
['nirguna/nirguna', nirguna],
|
|
65
|
-
['nirguna/fasm', fasm],
|
|
66
|
-
],
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
return [code, places];
|
|
70
|
-
};
|