functionalscript 0.35.2 → 0.37.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/fs/asn.1/module.f.js +1 -1
- package/fs/asserts/proof.f.js +1 -1
- package/fs/base_n/module.f.js +3 -3
- package/fs/base_n/proof.f.js +3 -3
- package/fs/{base128 → basen/base128}/module.f.d.ts +1 -1
- package/fs/{base128 → basen/base128}/module.f.js +1 -1
- package/fs/{base128 → basen/base128}/proof.f.js +3 -3
- package/fs/{base64 → basen/base64}/module.f.d.ts +2 -2
- package/fs/basen/base64/module.f.js +71 -0
- package/fs/{base64 → basen/base64}/proof.f.d.ts +2 -0
- package/fs/{base64 → basen/base64}/proof.f.js +17 -2
- package/fs/{cbase32 → basen/cbase32}/module.f.d.ts +2 -2
- package/fs/{cbase32 → basen/cbase32}/module.f.js +2 -2
- package/fs/{cbase32 → basen/cbase32}/proof.f.js +1 -1
- package/fs/bnf/data/module.f.js +4 -4
- package/fs/bnf/data/proof.f.js +6 -6
- package/fs/bnf/descent/module.f.js +6 -6
- package/fs/bnf/descent/proof.f.js +6 -6
- package/fs/bnf/ll1/module.f.js +9 -9
- package/fs/bnf/ll1/proof.f.js +6 -6
- package/fs/bnf/module.f.js +4 -4
- package/fs/bnf/proof.f.js +2 -2
- package/fs/bnf/testlib.f.js +1 -1
- package/fs/cas/cli/module.f.js +7 -7
- package/fs/cas/cli/proof.f.js +8 -8
- package/fs/cas/mcp/module.f.d.ts +8 -4
- package/fs/cas/mcp/module.f.js +124 -72
- package/fs/cas/mcp/proof.f.d.ts +3 -8
- package/fs/cas/mcp/proof.f.js +122 -186
- package/fs/cas/module.f.js +12 -19
- package/fs/cas/proof.f.d.ts +4 -2
- package/fs/cas/proof.f.js +10 -10
- package/fs/ci/bun/module.f.js +2 -2
- package/fs/ci/common/module.f.d.ts +2 -2
- package/fs/ci/common/module.f.js +4 -4
- package/fs/ci/config/module.f.d.ts +20 -21
- package/fs/ci/config/module.f.js +8 -10
- package/fs/ci/deno/module.f.js +8 -4
- package/fs/ci/module.f.js +9 -9
- package/fs/ci/node/module.f.d.ts +1 -1
- package/fs/ci/node/module.f.js +3 -5
- package/fs/ci/playwright/module.f.js +3 -3
- package/fs/ci/proof.f.js +14 -14
- package/fs/ci/rust/module.f.js +2 -2
- package/fs/cli/module.f.js +3 -3
- package/fs/cli/proof.f.js +3 -3
- package/fs/{types → common}/monoid/module.f.d.ts +1 -1
- package/fs/crypto/hmac/module.f.js +2 -2
- package/fs/crypto/hmac/proof.f.js +5 -5
- package/fs/crypto/pow/module.f.js +3 -3
- package/fs/crypto/pow/proof.f.js +4 -4
- package/fs/crypto/secp/module.f.js +2 -2
- package/fs/crypto/secp/proof.f.js +3 -3
- package/fs/crypto/sha2/module.f.js +2 -2
- package/fs/crypto/sha2/proof.f.js +6 -6
- package/fs/crypto/sign/module.f.js +4 -4
- package/fs/crypto/vdf/module.f.js +1 -1
- package/fs/crypto/vdf/proof.f.js +1 -1
- package/fs/dev/module.f.js +6 -6
- package/fs/dev/package_json/module.f.js +6 -6
- package/fs/dev/package_json/proof.f.js +3 -3
- package/fs/dev/proof.f.js +2 -2
- package/fs/djs/ast/module.f.js +2 -2
- package/fs/djs/ast/proof.f.js +4 -4
- package/fs/djs/examples/m.f.d.ts +1 -1
- package/fs/djs/module.f.d.ts +1 -1
- package/fs/djs/module.f.js +5 -5
- package/fs/djs/parser/module.f.js +4 -4
- package/fs/djs/parser/proof.f.js +19 -7
- package/fs/djs/proof.f.js +3 -3
- package/fs/djs/serializer/module.f.js +6 -6
- package/fs/djs/serializer/proof.f.js +4 -4
- package/fs/djs/tokenizer/module.f.js +3 -3
- package/fs/djs/tokenizer/proof.f.js +5 -5
- package/fs/djs/tokenizer-new/proof.f.js +6 -6
- package/fs/djs/transpiler/module.f.d.ts +5 -0
- package/fs/djs/transpiler/module.f.js +21 -11
- package/fs/djs/transpiler/proof.f.js +5 -5
- package/fs/effects/memory/module.f.js +4 -4
- package/fs/effects/memory/proof.f.js +3 -3
- package/fs/effects/module.f.d.ts +15 -0
- package/fs/effects/module.f.js +15 -1
- package/fs/effects/node/memory/module.js +2 -2
- package/fs/effects/node/memory/proof.js +3 -3
- package/fs/effects/node/module.f.js +10 -20
- package/fs/effects/node/module.js +13 -11
- package/fs/effects/node/proof.f.d.ts +3 -0
- package/fs/effects/node/proof.f.js +19 -1
- package/fs/effects/node/virtual/module.f.js +7 -8
- package/fs/effects/node/virtual/proof.f.d.ts +1 -0
- package/fs/effects/node/virtual/proof.f.js +11 -4
- package/fs/effects/proof.f.d.ts +5 -0
- package/fs/effects/proof.f.js +22 -1
- package/fs/emergent_testing/all.test.js +2 -2
- package/fs/emergent_testing/example.f.d.ts +1 -1
- package/fs/emergent_testing/module.f.js +6 -6
- package/fs/emergent_testing/proof.f.d.ts +19 -17
- package/fs/emergent_testing/proof.f.js +7 -7
- package/fs/emergent_testing/scenarios/all.js +1 -1
- package/fs/fsc/bnf.f.js +2 -2
- package/fs/fsc/json.f.js +1 -1
- package/fs/fsc/module.f.d.ts +1 -0
- package/fs/fsc/module.f.js +11 -7
- package/fs/fsc/proof.f.js +4 -4
- package/fs/fsm/module.f.js +9 -9
- package/fs/fsm/proof.f.js +7 -7
- package/fs/js/tokenizer/module.f.d.ts +1 -1
- package/fs/js/tokenizer/module.f.js +14 -8
- package/fs/js/tokenizer/proof.f.js +64 -5
- package/fs/mcp/module.f.d.ts +13 -13
- package/fs/mcp/module.f.js +8 -8
- package/fs/mcp/proof.f.js +5 -5
- package/fs/mcp/stdio/module.f.d.ts +2 -2
- package/fs/mcp/stdio/module.f.js +10 -10
- package/fs/mcp/stdio/proof.f.js +10 -10
- package/fs/{html → media/html}/module.f.d.ts +3 -3
- package/fs/{html → media/html}/module.f.js +9 -9
- package/fs/media/json/module.f.d.ts +50 -0
- package/fs/{json → media/json}/module.f.js +7 -7
- package/fs/{json → media/json}/parser/module.f.d.ts +2 -2
- package/fs/{json → media/json}/parser/module.f.js +7 -7
- package/fs/{json → media/json}/parser/proof.f.js +24 -6
- package/fs/{json → media/json}/proof.f.js +4 -4
- package/fs/media/json/rpc/module.f.d.ts +114 -0
- package/fs/{json → media/json}/rpc/module.f.js +3 -3
- package/fs/{json → media/json}/rpc/proof.f.js +4 -4
- package/fs/media/json/schema/module.f.d.ts +78 -0
- package/fs/{json → media/json}/schema/module.f.js +2 -2
- package/fs/{json → media/json}/schema/proof.f.js +3 -3
- package/fs/{json → media/json}/serializer/module.f.d.ts +1 -1
- package/fs/{json → media/json}/serializer/module.f.js +2 -2
- package/fs/{json → media/json}/serializer/proof.f.js +2 -2
- package/fs/{json → media/json}/tokenizer/module.f.d.ts +2 -2
- package/fs/{json → media/json}/tokenizer/module.f.js +4 -4
- package/fs/{json → media/json}/tokenizer/proof.f.js +5 -5
- package/fs/media/module.f.d.ts +37 -0
- package/fs/media/module.f.js +24 -0
- package/fs/media/proof.f.d.ts +9 -0
- package/fs/media/proof.f.js +57 -0
- package/fs/media/revision/module.f.d.ts +51 -0
- package/fs/media/revision/module.f.js +110 -0
- package/fs/media/revision/proof.f.d.ts +29 -0
- package/fs/media/revision/proof.f.js +119 -0
- package/fs/{mime → media/type}/module.f.d.ts +6 -6
- package/fs/{mime → media/type}/module.f.js +6 -6
- package/fs/{mime → media/type}/proof.f.js +6 -6
- package/fs/module.f.d.ts +2 -0
- package/fs/{fjs/module.f.js → module.f.js} +8 -8
- package/fs/module.js +4 -0
- package/fs/path/module.f.d.ts +6 -0
- package/fs/path/module.f.js +8 -2
- package/fs/path/proof.f.d.ts +1 -0
- package/fs/path/proof.f.js +40 -2
- package/fs/{fjs/proof.f.d.ts → proof.f.d.ts} +1 -0
- package/fs/{fjs/proof.f.js → proof.f.js} +10 -4
- package/fs/sul/id/module.f.js +9 -9
- package/fs/sul/id/proof.f.js +5 -5
- package/fs/sul/level/hash/module.f.js +3 -3
- package/fs/sul/level/hash/proof.f.js +3 -3
- package/fs/sul/level/literal/module.f.js +5 -5
- package/fs/sul/level/literal/proof.f.js +3 -3
- package/fs/sul/module.f.js +3 -3
- package/fs/sul/proof.f.js +3 -3
- package/fs/text/ascii/proof.f.js +3 -3
- package/fs/text/code_point/module.f.js +2 -2
- package/fs/text/code_point/proof.f.js +1 -1
- package/fs/text/module.f.js +5 -5
- package/fs/text/proof.f.js +4 -4
- package/fs/text/sgr/module.f.js +2 -2
- package/fs/text/sgr/proof.f.js +2 -2
- package/fs/text/utf16/module.f.js +5 -5
- package/fs/text/utf16/proof.f.js +4 -4
- package/fs/text/utf8/module.f.d.ts +6 -0
- package/fs/text/utf8/module.f.js +37 -19
- package/fs/text/utf8/proof.f.js +58 -5
- package/fs/types/array/module.f.js +1 -1
- package/fs/types/array/proof.f.js +3 -3
- package/fs/types/bigfloat/module.f.js +1 -1
- package/fs/types/bigfloat/proof.f.js +1 -1
- package/fs/types/bigint/module.f.js +2 -2
- package/fs/types/bigint/proof.f.js +3 -3
- package/fs/types/bit_vec/module.f.js +8 -8
- package/fs/types/bit_vec/proof.f.js +5 -5
- package/fs/types/btree/find/module.f.js +1 -1
- package/fs/types/btree/find/proof.f.d.ts +3 -1
- package/fs/types/btree/find/proof.f.js +7 -7
- package/fs/types/btree/module.f.js +2 -2
- package/fs/types/btree/proof.f.d.ts +11 -5
- package/fs/types/btree/proof.f.js +7 -7
- package/fs/types/btree/remove/module.f.js +4 -4
- package/fs/types/btree/remove/proof.f.d.ts +5 -2
- package/fs/types/btree/remove/proof.f.js +5 -5
- package/fs/types/btree/set/module.f.js +3 -3
- package/fs/types/btree/set/proof.f.js +4 -4
- package/fs/types/byte_set/module.f.js +2 -2
- package/fs/types/byte_set/proof.f.js +4 -4
- package/fs/types/function/compare/proof.f.js +1 -1
- package/fs/types/function/operator/proof.f.d.ts +21 -10
- package/fs/types/function/operator/proof.f.js +1 -1
- package/fs/types/function/proof.f.js +1 -1
- package/fs/types/list/module.f.js +2 -2
- package/fs/types/list/proof.f.d.ts +15 -7
- package/fs/types/list/proof.f.js +4 -4
- package/fs/types/map/proof.f.js +2 -2
- package/fs/types/nibble_set/proof.f.js +2 -2
- package/fs/types/nullable/module.f.js +2 -2
- package/fs/types/nullable/proof.f.js +1 -1
- package/fs/types/number/module.f.js +5 -5
- package/fs/types/number/proof.f.js +1 -1
- package/fs/types/object/module.f.js +4 -4
- package/fs/types/object/proof.f.js +1 -1
- package/fs/types/ordered_map/module.f.js +6 -6
- package/fs/types/ordered_map/proof.f.js +3 -3
- package/fs/types/patricia_trie/proof.f.d.ts +11 -5
- package/fs/types/patricia_trie/proof.f.js +2 -2
- package/fs/types/prime_field/module.f.js +2 -2
- package/fs/types/prime_field/proof.f.js +2 -2
- package/fs/types/range/proof.f.js +1 -1
- package/fs/types/range_map/module.f.js +4 -4
- package/fs/types/range_map/proof.f.js +7 -7
- package/fs/types/result/module.f.d.ts +4 -0
- package/fs/types/result/module.f.js +4 -0
- package/fs/types/result/module.js +1 -1
- package/fs/types/result/proof.f.d.ts +9 -3
- package/fs/types/result/proof.f.js +12 -2
- package/fs/types/rtti/common/module.f.js +4 -4
- package/fs/types/rtti/module.f.d.ts +2 -2
- package/fs/types/rtti/module.f.js +1 -1
- package/fs/types/rtti/parse/module.f.js +5 -5
- package/fs/types/rtti/parse/proof.f.js +2 -2
- package/fs/types/rtti/ts/module.f.js +1 -1
- package/fs/types/rtti/ts/proof.f.js +2 -2
- package/fs/types/rtti/validate/module.f.js +4 -4
- package/fs/types/rtti/validate/proof.f.js +2 -2
- package/fs/types/sorted_list/module.f.js +3 -3
- package/fs/types/sorted_list/proof.f.js +6 -6
- package/fs/types/sorted_set/module.f.js +1 -1
- package/fs/types/sorted_set/proof.f.js +6 -6
- package/fs/types/string/module.f.js +4 -4
- package/fs/types/string/proof.f.js +2 -2
- package/fs/types/string_set/module.f.js +6 -6
- package/fs/types/string_set/proof.f.js +1 -1
- package/fs/types/ts/proof.f.d.ts +18 -18
- package/fs/types/ts/proof.f.js +1 -1
- package/fs/types/uint8array/module.f.js +4 -4
- package/fs/types/uint8array/proof.f.js +4 -4
- package/fs/website/module.f.js +3 -3
- package/fs/website/proof.f.js +3 -3
- package/package.json +8 -8
- package/fs/base64/module.f.js +0 -60
- package/fs/fjs/module.f.d.ts +0 -2
- package/fs/fjs/module.js +0 -4
- package/fs/json/module.f.d.ts +0 -50
- package/fs/json/rpc/module.f.d.ts +0 -114
- package/fs/json/schema/module.f.d.ts +0 -77
- /package/fs/{base128 → basen/base128}/proof.f.d.ts +0 -0
- /package/fs/{cbase32 → basen/cbase32}/proof.f.d.ts +0 -0
- /package/fs/{types → common}/monoid/module.f.js +0 -0
- /package/fs/{types → common}/monoid/proof.f.d.ts +0 -0
- /package/fs/{types → common}/monoid/proof.f.js +0 -0
- /package/fs/{html → media/html}/proof.f.d.ts +0 -0
- /package/fs/{html → media/html}/proof.f.js +0 -0
- /package/fs/{json → media/json}/parser/proof.f.d.ts +0 -0
- /package/fs/{json → media/json}/proof.f.d.ts +0 -0
- /package/fs/{json → media/json}/rpc/proof.f.d.ts +0 -0
- /package/fs/{json → media/json}/schema/proof.f.d.ts +0 -0
- /package/fs/{json → media/json}/serializer/proof.f.d.ts +0 -0
- /package/fs/{json → media/json}/tokenizer/proof.f.d.ts +0 -0
- /package/fs/{mime → media/type}/proof.f.d.ts +0 -0
- /package/fs/{fjs/module.d.ts → module.d.ts} +0 -0
package/fs/ci/common/module.f.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
8
|
-
import { actions, images } from
|
|
9
|
-
import { option, array, record, string } from
|
|
10
|
-
import {} from
|
|
11
|
-
import { parse as rttiParse } from
|
|
8
|
+
import { actions, images } from '../config/module.f.js';
|
|
9
|
+
import { option, array, record, string } from '../../types/rtti/module.f.js';
|
|
10
|
+
import {} from '../../types/rtti/ts/module.f.js';
|
|
11
|
+
import { parse as rttiParse } from '../../types/rtti/parse/module.f.js';
|
|
12
12
|
export const os = ['ubuntu', 'macos', 'windows'];
|
|
13
13
|
export const architecture = ['intel', 'arm'];
|
|
14
14
|
export const stepSchema = {
|
|
@@ -7,37 +7,36 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const images: {
|
|
9
9
|
readonly ubuntu: {
|
|
10
|
-
readonly intel:
|
|
11
|
-
readonly arm:
|
|
10
|
+
readonly intel: 'ubuntu-26.04';
|
|
11
|
+
readonly arm: 'ubuntu-26.04-arm';
|
|
12
12
|
};
|
|
13
13
|
readonly macos: {
|
|
14
|
-
readonly intel:
|
|
15
|
-
readonly arm:
|
|
14
|
+
readonly intel: 'macos-26-intel';
|
|
15
|
+
readonly arm: 'macos-26';
|
|
16
16
|
};
|
|
17
17
|
readonly windows: {
|
|
18
|
-
readonly intel:
|
|
19
|
-
readonly arm:
|
|
18
|
+
readonly intel: 'windows-2025';
|
|
19
|
+
readonly arm: 'windows-11-arm';
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export declare const functionalscript:
|
|
22
|
+
export declare const functionalscript: '0.36.0';
|
|
23
23
|
export declare const bun = "1.3.14";
|
|
24
|
-
export declare const deno = "2.9.
|
|
24
|
+
export declare const deno = "2.9.2";
|
|
25
25
|
export declare const playwright = "1.61.1";
|
|
26
26
|
export declare const node: {
|
|
27
|
-
readonly default:
|
|
28
|
-
readonly node22:
|
|
29
|
-
readonly node24:
|
|
27
|
+
readonly default: '26.5.0';
|
|
28
|
+
readonly node22: '22.23.1';
|
|
29
|
+
readonly node24: '24.18.0';
|
|
30
30
|
};
|
|
31
31
|
export declare const wasmtime = "46.0.1";
|
|
32
|
-
export declare const wasmer = "7.
|
|
33
|
-
export declare const tsgo = "7.0.0-dev.20260627.2";
|
|
32
|
+
export declare const wasmer = "7.2.0";
|
|
34
33
|
export declare const actions: {
|
|
35
|
-
readonly 'actions/checkout':
|
|
36
|
-
readonly 'actions/setup-node':
|
|
37
|
-
readonly 'actions/cache':
|
|
38
|
-
readonly 'denoland/setup-deno':
|
|
39
|
-
readonly 'oven-sh/setup-bun':
|
|
40
|
-
readonly 'bytecodealliance/actions/wasmtime/setup':
|
|
41
|
-
readonly 'wasmerio/setup-wasmer':
|
|
42
|
-
readonly 'dtolnay/rust-toolchain':
|
|
34
|
+
readonly 'actions/checkout': 'v7';
|
|
35
|
+
readonly 'actions/setup-node': 'v6.4.0';
|
|
36
|
+
readonly 'actions/cache': 'v6.1.0';
|
|
37
|
+
readonly 'denoland/setup-deno': 'v2.0.5';
|
|
38
|
+
readonly 'oven-sh/setup-bun': 'v2.2.0';
|
|
39
|
+
readonly 'bytecodealliance/actions/wasmtime/setup': 'v1.1.3';
|
|
40
|
+
readonly 'wasmerio/setup-wasmer': 'v3.1';
|
|
41
|
+
readonly 'dtolnay/rust-toolchain': '1.96.1';
|
|
43
42
|
};
|
package/fs/ci/config/module.f.js
CHANGED
|
@@ -22,27 +22,25 @@ export const images = {
|
|
|
22
22
|
};
|
|
23
23
|
// Bootstrap package version used by generated smoke tests. Keep this on a
|
|
24
24
|
// published FunctionalScript release; do not tie it to package.json's current
|
|
25
|
-
// in-repo version.
|
|
25
|
+
// in-repo version.
|
|
26
26
|
// https://www.npmjs.com/package/functionalscript
|
|
27
|
-
export const functionalscript = '0.
|
|
27
|
+
export const functionalscript = '0.36.0';
|
|
28
28
|
// https://bun.sh/
|
|
29
29
|
export const bun = '1.3.14';
|
|
30
30
|
// https://deno.com/
|
|
31
|
-
export const deno = '2.9.
|
|
31
|
+
export const deno = '2.9.2';
|
|
32
32
|
// https://www.npmjs.com/package/playwright
|
|
33
33
|
export const playwright = '1.61.1';
|
|
34
34
|
// https://nodejs.org/en/download
|
|
35
35
|
export const node = {
|
|
36
|
-
default: '26.
|
|
36
|
+
default: '26.5.0',
|
|
37
37
|
node22: '22.23.1',
|
|
38
38
|
node24: '24.18.0',
|
|
39
39
|
};
|
|
40
40
|
// https://github.com/bytecodealliance/wasmtime/releases
|
|
41
41
|
export const wasmtime = '46.0.1';
|
|
42
42
|
// https://github.com/wasmerio/wasmer/releases
|
|
43
|
-
export const wasmer = '7.
|
|
44
|
-
// https://www.npmjs.com/package/@typescript/native-preview?activeTab=versions
|
|
45
|
-
export const tsgo = '7.0.0-dev.20260627.2';
|
|
43
|
+
export const wasmer = '7.2.0';
|
|
46
44
|
// GitHub Action versions used by CI step builders. The key is the action
|
|
47
45
|
// `owner/name`; call sites compose the full ref as
|
|
48
46
|
// `` `${name}@${actions[name]}` ``.
|
|
@@ -55,13 +53,13 @@ export const actions = {
|
|
|
55
53
|
// https://github.com/marketplace/actions/cache
|
|
56
54
|
'actions/cache': 'v6.1.0',
|
|
57
55
|
// https://github.com/marketplace/actions/setup-deno
|
|
58
|
-
'denoland/setup-deno': 'v2.0.
|
|
56
|
+
'denoland/setup-deno': 'v2.0.5',
|
|
59
57
|
// https://github.com/marketplace/actions/setup-bun
|
|
60
58
|
'oven-sh/setup-bun': 'v2.2.0',
|
|
61
59
|
// https://github.com/bytecodealliance/actions
|
|
62
|
-
'bytecodealliance/actions/wasmtime/setup': 'v1',
|
|
60
|
+
'bytecodealliance/actions/wasmtime/setup': 'v1.1.3',
|
|
63
61
|
// https://github.com/wasmerio/setup-wasmer
|
|
64
62
|
'wasmerio/setup-wasmer': 'v3.1',
|
|
65
63
|
// https://rust-lang.org/ - value is Rust version, not action version
|
|
66
|
-
'dtolnay/rust-toolchain': '1.96.
|
|
64
|
+
'dtolnay/rust-toolchain': '1.96.1',
|
|
67
65
|
};
|
package/fs/ci/deno/module.f.js
CHANGED
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { deno } from
|
|
8
|
-
import { clean, install, test, uses } from
|
|
7
|
+
import { deno } from '../config/module.f.js';
|
|
8
|
+
import { clean, install, test, uses } from '../common/module.f.js';
|
|
9
9
|
const denoTest = 'deno test --allow-read --allow-env --allow-sys';
|
|
10
10
|
export const denoSteps = (version) => clean([
|
|
11
11
|
install(uses('denoland/setup-deno', { 'deno-version': deno })),
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// We need --minimum-dependency-age=0 for functionalscript because we would like to use
|
|
13
|
+
// the latest version of the package even if it is not yet 24 hours old,
|
|
14
|
+
// which is the default minimum dependency age for Deno installs.
|
|
15
|
+
// This way we can test the latest version of the package in CI without waiting for 24 hours.
|
|
16
|
+
install({ run: `deno install -g -A --minimum-dependency-age=0 npm:functionalscript@${version}` }),
|
|
17
|
+
test({ run: `deno run -A --minimum-dependency-age=0 npm:functionalscript@${version} t` }),
|
|
14
18
|
test({ run: 'deno install --frozen' }),
|
|
15
19
|
test({ run: `${denoTest} --coverage && deno coverage --include='.*module\\.f\\.ts'` }),
|
|
16
20
|
]);
|
package/fs/ci/module.f.js
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { pure } from
|
|
7
|
-
import { access, writeUtf8File } from
|
|
8
|
-
import { functionalscript, images } from
|
|
9
|
-
import { architecture, os, toSteps, ubuntuArm } from
|
|
10
|
-
import { rustPlatformSteps, rustWasmSteps } from
|
|
11
|
-
import { nodeMainSteps, nodeVersionJobs } from
|
|
12
|
-
import { playwrightJob } from
|
|
13
|
-
import { bunSteps } from
|
|
14
|
-
import { denoSteps } from
|
|
6
|
+
import { pure } from '../effects/module.f.js';
|
|
7
|
+
import { access, writeUtf8File } from '../effects/node/module.f.js';
|
|
8
|
+
import { functionalscript, images } from './config/module.f.js';
|
|
9
|
+
import { architecture, os, toSteps, ubuntuArm } from './common/module.f.js';
|
|
10
|
+
import { rustPlatformSteps, rustWasmSteps } from './rust/module.f.js';
|
|
11
|
+
import { nodeMainSteps, nodeVersionJobs } from './node/module.f.js';
|
|
12
|
+
import { playwrightJob } from './playwright/module.f.js';
|
|
13
|
+
import { bunSteps } from './bun/module.f.js';
|
|
14
|
+
import { denoSteps } from './deno/module.f.js';
|
|
15
15
|
const job = (rust, nodeExtra) => (o) => (a) => {
|
|
16
16
|
const id = `${o}-${a}`;
|
|
17
17
|
const image = images[o][a];
|
package/fs/ci/node/module.f.d.ts
CHANGED
|
@@ -3,4 +3,4 @@ export declare const major: (v: string) => string;
|
|
|
3
3
|
export declare const basicNode: (version: string) => (extra: readonly MetaStep[]) => readonly MetaStep[];
|
|
4
4
|
export declare const platformNodeSteps: (version: string) => readonly MetaStep[];
|
|
5
5
|
export declare const nodeVersionJobs: (version: string) => Jobs;
|
|
6
|
-
export declare const nodeMainSteps:
|
|
6
|
+
export declare const nodeMainSteps: typeof platformNodeSteps;
|
package/fs/ci/node/module.f.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CI step builders for Node.js: setup-node installation, platform smoke tests,
|
|
3
|
-
* per-version canonical jobs
|
|
3
|
+
* per-version canonical jobs.
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { node
|
|
8
|
-
import { clean, install, test, ubuntuArm, uses } from
|
|
7
|
+
import { node } from '../config/module.f.js';
|
|
8
|
+
import { clean, install, test, ubuntuArm, uses } from '../common/module.f.js';
|
|
9
9
|
export const major = (v) => v.split('.')[0];
|
|
10
10
|
const installNode = (version) => uses('actions/setup-node', { 'node-version': version });
|
|
11
11
|
const nodeInstall = (v) => [
|
|
@@ -33,9 +33,7 @@ const node24Steps = clean([
|
|
|
33
33
|
]);
|
|
34
34
|
const node26Steps = clean([
|
|
35
35
|
...nodeInstall(node.default),
|
|
36
|
-
install({ run: `npm install -g @typescript/native-preview@${tsgo}` }),
|
|
37
36
|
test({ run: 'npx tsc' }),
|
|
38
|
-
test({ run: 'tsgo' }),
|
|
39
37
|
test({ run: 'npm run cov' }),
|
|
40
38
|
test({ run: 'npm pack' }),
|
|
41
39
|
]);
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { images, node, playwright } from
|
|
8
|
-
import { install, test, toSteps, uses } from
|
|
9
|
-
import { basicNode } from
|
|
7
|
+
import { images, node, playwright } from '../config/module.f.js';
|
|
8
|
+
import { install, test, toSteps, uses } from '../common/module.f.js';
|
|
9
|
+
import { basicNode } from '../node/module.f.js';
|
|
10
10
|
const playwrightImage = images.ubuntu.arm;
|
|
11
11
|
export const playwrightJob = {
|
|
12
12
|
'runs-on': playwrightImage,
|
package/fs/ci/proof.f.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ci, main } from
|
|
2
|
-
import { functionalscript } from
|
|
3
|
-
import { utf8, utf8ToString } from
|
|
4
|
-
import { empty as emptyVec, isVec } from
|
|
5
|
-
import { test, ubuntu, parseGitHubAction } from
|
|
6
|
-
import { assert } from
|
|
7
|
-
import { emptyState, virtual } from
|
|
8
|
-
import { parse as jsonParse } from
|
|
9
|
-
import { unwrap } from
|
|
10
|
-
import { definedValues } from
|
|
1
|
+
import { ci, main } from './module.f.js';
|
|
2
|
+
import { functionalscript } from './config/module.f.js';
|
|
3
|
+
import { utf8, utf8ToString } from '../text/module.f.js';
|
|
4
|
+
import { empty as emptyVec, isVec } from '../types/bit_vec/module.f.js';
|
|
5
|
+
import { test, ubuntu, parseGitHubAction } from './common/module.f.js';
|
|
6
|
+
import { assert } from '../asserts/module.f.js';
|
|
7
|
+
import { emptyState, virtual } from '../effects/node/virtual/module.f.js';
|
|
8
|
+
import { parse as jsonParse } from '../media/json/module.f.js';
|
|
9
|
+
import { unwrap } from '../types/result/module.f.js';
|
|
10
|
+
import { definedValues } from '../types/object/module.f.js';
|
|
11
11
|
const hasRun = (cmd) => (gha) => definedValues(gha.jobs).some(job => job.steps.some(step => step.run?.includes(cmd)));
|
|
12
12
|
const hasRunInJob = (jobId, cmd) => (gha) => gha.jobs[jobId]?.steps.some(step => step.run?.includes(cmd)) ?? false;
|
|
13
13
|
const makeState = (rust, packageJson) => ({
|
|
@@ -104,20 +104,20 @@ export const proof = {
|
|
|
104
104
|
functionalscriptPackage: () => {
|
|
105
105
|
const gha = runDefault('{"name":"functionalscript"}');
|
|
106
106
|
assert(hasRun('fjs t')(gha), 'expected fjs self-test');
|
|
107
|
-
assert(hasRun(`deno run -A npm:functionalscript@${functionalscript} t`)(gha), 'expected deno self-test');
|
|
107
|
+
assert(hasRun(`deno run -A --minimum-dependency-age=0 npm:functionalscript@${functionalscript} t`)(gha), 'expected deno self-test');
|
|
108
108
|
assert(hasRun(`bunx functionalscript@${functionalscript} t`)(gha), 'expected bun self-test');
|
|
109
109
|
},
|
|
110
110
|
otherPackage: () => {
|
|
111
111
|
const gha = runDefault('{"name":"other-package"}');
|
|
112
|
-
assert(hasRun(`deno run -A npm:functionalscript@${functionalscript} t`)(gha), 'expected canonical deno self-test');
|
|
112
|
+
assert(hasRun(`deno run -A --minimum-dependency-age=0 npm:functionalscript@${functionalscript} t`)(gha), 'expected canonical deno self-test');
|
|
113
113
|
assert(hasRun(`bunx functionalscript@${functionalscript} t`)(gha), 'expected canonical bun self-test');
|
|
114
114
|
},
|
|
115
115
|
configuredPackageVersion: () => {
|
|
116
116
|
const gha = runDefault('{"name":"other-package","version":"1.2.3"}');
|
|
117
117
|
assert(hasRun(`npm install -g functionalscript@${functionalscript}`)(gha), 'expected configured-version platform install');
|
|
118
|
-
assert(hasRun(`deno install -g -A npm:functionalscript@${functionalscript}`)(gha), 'expected configured-version deno install cache');
|
|
118
|
+
assert(hasRun(`deno install -g -A --minimum-dependency-age=0 npm:functionalscript@${functionalscript}`)(gha), 'expected configured-version deno install cache');
|
|
119
119
|
assert(hasRun('deno install --frozen')(gha), 'expected deno lock install');
|
|
120
|
-
assert(hasRun(`deno run -A npm:functionalscript@${functionalscript} t`)(gha), 'expected configured-version deno install');
|
|
120
|
+
assert(hasRun(`deno run -A --minimum-dependency-age=0 npm:functionalscript@${functionalscript} t`)(gha), 'expected configured-version deno install');
|
|
121
121
|
assert(hasRun("deno test --allow-read --allow-env --allow-sys --coverage && deno coverage --include='.*module\\.f\\.ts'")(gha), 'expected limited-permission deno coverage');
|
|
122
122
|
assert(hasRun(`bun install -g functionalscript@${functionalscript}`)(gha), 'expected configured-version bun cache');
|
|
123
123
|
assert(hasRun('bun install --frozen-lockfile')(gha), 'expected bun lock install');
|
package/fs/ci/rust/module.f.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module
|
|
8
8
|
*/
|
|
9
|
-
import { wasmer, wasmtime } from
|
|
10
|
-
import { install, test, uses } from
|
|
9
|
+
import { wasmer, wasmtime } from '../config/module.f.js';
|
|
10
|
+
import { install, test, uses } from '../common/module.f.js';
|
|
11
11
|
const cargoCommand = (tool, target, config) => {
|
|
12
12
|
const to = target ? ` --target ${target}` : '';
|
|
13
13
|
const co = config ? ` --config ${config}` : '';
|
package/fs/cli/module.f.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { errorExit, log } from
|
|
2
|
-
import { pure } from
|
|
3
|
-
import { at, fromEntries } from
|
|
1
|
+
import { errorExit, log } from '../effects/node/module.f.js';
|
|
2
|
+
import { pure } from '../effects/module.f.js';
|
|
3
|
+
import { at, fromEntries } from '../types/object/module.f.js';
|
|
4
4
|
const helpMeta = { names: ['help', 'h', '?'], description: 'Print this help message' };
|
|
5
5
|
export const dispatch = (commands) => (options) => {
|
|
6
6
|
const [cmd, ...rest] = options.args;
|
package/fs/cli/proof.f.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { pure } from
|
|
2
|
-
import { defaultNodeProgramOptions, emptyState, virtual } from
|
|
3
|
-
import { dispatch } from
|
|
1
|
+
import { pure } from '../effects/module.f.js';
|
|
2
|
+
import { defaultNodeProgramOptions, emptyState, virtual } from '../effects/node/virtual/module.f.js';
|
|
3
|
+
import { dispatch } from './module.f.js';
|
|
4
4
|
const makeOptions = (args) => ({ ...defaultNodeProgramOptions, args });
|
|
5
5
|
const echoCommands = [
|
|
6
6
|
{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
8
|
-
import type { Fold, Reduce } from '
|
|
8
|
+
import type { Fold, Reduce } from '../../types/function/operator/module.f.ts';
|
|
9
9
|
/**
|
|
10
10
|
* Represents a monoid, an algebraic structure with a binary operation
|
|
11
11
|
* and an identity (neutral) element.
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
* if (r !== vec(256n)(0xf7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8n)) { throw r }
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
|
-
import { length, msb, vec, vec8, repeat } from
|
|
21
|
-
import { computeSync } from
|
|
20
|
+
import { length, msb, vec, vec8, repeat } from '../../types/bit_vec/module.f.js';
|
|
21
|
+
import { computeSync } from '../sha2/module.f.js';
|
|
22
22
|
const { concat, xor } = msb;
|
|
23
23
|
/**
|
|
24
24
|
* Outer padding.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { assertEq } from
|
|
2
|
-
import { utf8 } from
|
|
3
|
-
import { uint, vec } from
|
|
4
|
-
import { sha256, sha384, sha512 } from
|
|
5
|
-
import { hmac } from
|
|
1
|
+
import { assertEq } from '../../asserts/module.f.js';
|
|
2
|
+
import { utf8 } from '../../text/module.f.js';
|
|
3
|
+
import { uint, vec } from '../../types/bit_vec/module.f.js';
|
|
4
|
+
import { sha256, sha384, sha512 } from '../sha2/module.f.js';
|
|
5
|
+
import { hmac } from './module.f.js';
|
|
6
6
|
export const proof = {
|
|
7
7
|
example: () => {
|
|
8
8
|
const r = hmac(sha256)(utf8('key'))(utf8('The quick brown fox jumps over the lazy dog'));
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module
|
|
6
6
|
*/
|
|
7
|
-
import { mask } from
|
|
8
|
-
import { uint } from
|
|
9
|
-
import { computeSync, sha256 } from
|
|
7
|
+
import { mask } from '../../types/bigint/module.f.js';
|
|
8
|
+
import { uint } from '../../types/bit_vec/module.f.js';
|
|
9
|
+
import { computeSync, sha256 } from '../sha2/module.f.js';
|
|
10
10
|
const nBitsMantissa = mask(24n);
|
|
11
11
|
const mantissaSign = 0x00800000n;
|
|
12
12
|
const mantissaBody = 0x007fffffn;
|
package/fs/crypto/pow/proof.f.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { utf8 } from
|
|
2
|
-
import { empty, uint } from
|
|
3
|
-
import { computeSync, sha224, sha256 } from
|
|
4
|
-
import { bitcoinPow, genesisNBits, genesisTarget, pow, sha256Pow, targetFromNBits } from
|
|
1
|
+
import { utf8 } from '../../text/module.f.js';
|
|
2
|
+
import { empty, uint } from '../../types/bit_vec/module.f.js';
|
|
3
|
+
import { computeSync, sha224, sha256 } from '../sha2/module.f.js';
|
|
4
|
+
import { bitcoinPow, genesisNBits, genesisTarget, pow, sha256Pow, targetFromNBits } from './module.f.js';
|
|
5
5
|
const p256 = sha256Pow;
|
|
6
6
|
const p224 = pow(sha224);
|
|
7
7
|
const sample = utf8('functionalscript pow proof');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { prime_field, sqrt } from
|
|
2
|
-
import { repeat } from
|
|
1
|
+
import { prime_field, sqrt } from '../../types/prime_field/module.f.js';
|
|
2
|
+
import { repeat } from '../../common/monoid/module.f.js';
|
|
3
3
|
/**
|
|
4
4
|
* Constructs an elliptic curve with the given initialization parameters.
|
|
5
5
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { assert } from
|
|
2
|
-
import { prime_field } from
|
|
3
|
-
import { curve, secp256k1, secp192r1, secp256r1, eq, secp384r1, secp521r1 } from
|
|
1
|
+
import { assert } from '../../asserts/module.f.js';
|
|
2
|
+
import { prime_field } from '../../types/prime_field/module.f.js';
|
|
3
|
+
import { curve, secp256k1, secp192r1, secp256r1, eq, secp384r1, secp521r1 } from './module.f.js';
|
|
4
4
|
const poker = (param) => () => {
|
|
5
5
|
// (c ^ x) ^ y = c ^ (x * y)
|
|
6
6
|
// c ^ ((x * y) * (1/x * 1/y)) = c
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mask } from "../../types/bigint/module.f.js";
|
|
2
|
-
import { vec, length, empty, msb, chunkList, uint } from
|
|
3
|
-
import { fold } from
|
|
2
|
+
import { vec, length, empty, msb, chunkList, uint } from '../../types/bit_vec/module.f.js';
|
|
3
|
+
import { fold } from '../../types/list/module.f.js';
|
|
4
4
|
const { concat, front } = msb;
|
|
5
5
|
// `chunkList(msb)` depends on neither `chunkLength` nor `v`/`state` — shared
|
|
6
6
|
// across every `base(...)` config (32-bit and 64-bit SHA-2 variants).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { utf8 } from
|
|
2
|
-
import { repeat, uint, vec } from
|
|
3
|
-
import { flip } from
|
|
4
|
-
import { map } from
|
|
5
|
-
import { base32, base64, computeSync, sha224, sha256, sha384, sha512, sha512x224, sha512x256, } from
|
|
1
|
+
import { utf8 } from '../../text/module.f.js';
|
|
2
|
+
import { repeat, uint, vec } from '../../types/bit_vec/module.f.js';
|
|
3
|
+
import { flip } from '../../types/function/module.f.js';
|
|
4
|
+
import { map } from '../../types/list/module.f.js';
|
|
5
|
+
import { base32, base64, computeSync, sha224, sha256, sha384, sha512, sha512x224, sha512x256, } from './module.f.js';
|
|
6
6
|
const checkEmpty = ({ init, end, hashLength }) => (x) => {
|
|
7
7
|
const result = end(init);
|
|
8
8
|
if (result !== vec(hashLength)(x)) {
|
|
@@ -155,7 +155,7 @@ export const proof = {
|
|
|
155
155
|
// O(n²); now near-linear (~40-60ms on Node, well under `bun test`'s 5s
|
|
156
156
|
// per-test limit on Bun). No timing assertion (duration varies by
|
|
157
157
|
// engine/machine); relies on the test runner's own per-test timing to
|
|
158
|
-
// catch a regression, same convention as `fs/base64/proof.f.ts`
|
|
158
|
+
// catch a regression, same convention as `fs/basen/base64/proof.f.ts`
|
|
159
159
|
// `encodeLargeVecIsSlow`.
|
|
160
160
|
appendLargeVecIsFast: () => {
|
|
161
161
|
const big = repeat(100000n)(vec(8n)(0xffn));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bitLength, divUp8, roundUp8 } from
|
|
2
|
-
import { empty, length, msb, repeat, unpack, vec, vec8 } from
|
|
3
|
-
import { hmac } from
|
|
4
|
-
import { computeSync } from
|
|
1
|
+
import { bitLength, divUp8, roundUp8 } from '../../types/bigint/module.f.js';
|
|
2
|
+
import { empty, length, msb, repeat, unpack, vec, vec8 } from '../../types/bit_vec/module.f.js';
|
|
3
|
+
import { hmac } from '../hmac/module.f.js';
|
|
4
|
+
import { computeSync } from '../sha2/module.f.js';
|
|
5
5
|
/**
|
|
6
6
|
* Builds RFC6979 helper conversions for a subgroup order.
|
|
7
7
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* if (y === null || !sloth.verify(steps)(x)(y)) { throw y }
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
import { modSqrt, prime_field } from
|
|
17
|
+
import { modSqrt, prime_field } from '../../types/prime_field/module.f.js';
|
|
18
18
|
/** Sloth VDF modulus (3072-bit safe prime, same as reference implementations). */
|
|
19
19
|
export const p = 0xf2346eae06a233882814ff16f6a076d3b8f2161c5c92171c0b7b84eed4e9475bcce0c13bde34512afdf90f41ab9b86dcf834f85e04b27fadee712eed23a1d4e58cd1b09d9bfb10696d614f119179a40c49dc8762edc29e8115263913237e14718cbcd4dc6b35bace13f8cdb1b5156c50c47b4aaee0820c874e2864cb854367c3n;
|
|
20
20
|
const repeatSeq = (steps) => (f) => (value) => {
|
package/fs/crypto/vdf/proof.f.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { sloth, p } from
|
|
1
|
+
import { sloth, p } from './module.f.js';
|
|
2
2
|
const { eval: evalVdf, verify, modSqrt, quadRes } = sloth;
|
|
3
3
|
// `eval(steps)(x)` expected values for {@link p}; same Sloth algorithm as
|
|
4
4
|
// https://github.com/hyperhyperspace/pulsar/blob/main/src/model/SlothVDF.ts and
|
package/fs/dev/module.f.js
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { all, import_, readdir } from
|
|
7
|
-
import { cmp as strCmp } from
|
|
8
|
-
import { unwrap } from
|
|
9
|
-
import { pure } from
|
|
10
|
-
import { join, relativize, toPosix } from
|
|
11
|
-
import { assert } from
|
|
6
|
+
import { all, import_, readdir } from '../effects/node/module.f.js';
|
|
7
|
+
import { cmp as strCmp } from '../types/string/module.f.js';
|
|
8
|
+
import { unwrap } from '../types/result/module.f.js';
|
|
9
|
+
import { pure } from '../effects/module.f.js';
|
|
10
|
+
import { join, relativize, toPosix } from '../path/module.f.js';
|
|
11
|
+
import { assert } from '../asserts/module.f.js';
|
|
12
12
|
/**
|
|
13
13
|
* Returns `true` if the file should be loaded for proof discovery.
|
|
14
14
|
*
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { parse as jsonParse } from
|
|
2
|
-
import { tokenize as jsonTokenize } from
|
|
3
|
-
import { stringToList } from
|
|
4
|
-
import { option, record, string } from
|
|
5
|
-
import { validate as rttiValidate } from
|
|
6
|
-
import { error, ok } from
|
|
1
|
+
import { parse as jsonParse } from '../../media/json/parser/module.f.js';
|
|
2
|
+
import { tokenize as jsonTokenize } from '../../media/json/tokenizer/module.f.js';
|
|
3
|
+
import { stringToList } from '../../text/utf16/module.f.js';
|
|
4
|
+
import { option, record, string } from '../../types/rtti/module.f.js';
|
|
5
|
+
import { validate as rttiValidate } from '../../types/rtti/validate/module.f.js';
|
|
6
|
+
import { error, ok } from '../../types/result/module.f.js';
|
|
7
7
|
export const packageJsonSchema = {
|
|
8
8
|
name: option(string),
|
|
9
9
|
version: option(string),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { assert } from
|
|
2
|
-
import { unwrap } from
|
|
3
|
-
import { validatePackageJson, validatePackageJsonText, } from
|
|
1
|
+
import { assert } from '../../asserts/module.f.js';
|
|
2
|
+
import { unwrap } from '../../types/result/module.f.js';
|
|
3
|
+
import { validatePackageJson, validatePackageJsonText, } from './module.f.js';
|
|
4
4
|
export const proof = {
|
|
5
5
|
parseMetadata: () => {
|
|
6
6
|
const result = unwrap(validatePackageJsonText('{"name":"x","version":"1.0.0","scripts":{"test":"node test.js"}}'));
|
package/fs/dev/proof.f.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { assert, todo } from
|
|
2
|
-
import { shouldLoad } from
|
|
1
|
+
import { assert, todo } from '../asserts/module.f.js';
|
|
2
|
+
import { shouldLoad } from './module.f.js';
|
|
3
3
|
export const proof = {
|
|
4
4
|
shouldLoad: () => {
|
|
5
5
|
assert(shouldLoad('foo.f.ts'));
|
package/fs/djs/ast/module.f.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { concat, fold, last, map, take, toArray } from
|
|
2
|
-
import { fromEntries } from
|
|
1
|
+
import { concat, fold, last, map, take, toArray } from '../../types/list/module.f.js';
|
|
2
|
+
import { fromEntries } from '../../types/object/module.f.js';
|
|
3
3
|
const { entries } = Object;
|
|
4
4
|
const foldOp = ast => state => {
|
|
5
5
|
const djs = toDjs(state)(ast);
|
package/fs/djs/ast/proof.f.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { sort } from
|
|
2
|
-
import { run } from
|
|
3
|
-
import { stringifyAsTree } from
|
|
4
|
-
import { assertEq } from
|
|
1
|
+
import { sort } from '../../types/object/module.f.js';
|
|
2
|
+
import { run } from './module.f.js';
|
|
3
|
+
import { stringifyAsTree } from '../serializer/module.f.js';
|
|
4
|
+
import { assertEq } from '../../asserts/module.f.js';
|
|
5
5
|
export const proof = {
|
|
6
6
|
test: () => {
|
|
7
7
|
const djs = run([1])([]);
|
package/fs/djs/examples/m.f.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default
|
|
1
|
+
declare const _default = "text";
|
|
2
2
|
export default _default;
|
package/fs/djs/module.f.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import type { Primitive as JsonPrimitive } from '../json/module.f.ts';
|
|
6
|
+
import type { Primitive as JsonPrimitive } from '../media/json/module.f.ts';
|
|
7
7
|
import { type Effect } from '../effects/module.f.ts';
|
|
8
8
|
import { type WriteFile, type ReadFile, type Write } from '../effects/node/module.f.ts';
|
|
9
9
|
export type Object = {
|
package/fs/djs/module.f.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { transpile } from
|
|
2
|
-
import { stringify, stringifyAsTree } from
|
|
3
|
-
import { sort } from
|
|
4
|
-
import { pure } from
|
|
5
|
-
import { writeUtf8File, error, } from
|
|
1
|
+
import { transpile } from './transpiler/module.f.js';
|
|
2
|
+
import { stringify, stringifyAsTree } from './serializer/module.f.js';
|
|
3
|
+
import { sort } from '../types/object/module.f.js';
|
|
4
|
+
import { pure } from '../effects/module.f.js';
|
|
5
|
+
import { writeUtf8File, error, } from '../effects/node/module.f.js';
|
|
6
6
|
export const compile = args => {
|
|
7
7
|
if (args.length < 2) {
|
|
8
8
|
return error('Error: Requires 2 or more arguments')
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @module
|
|
5
5
|
*/
|
|
6
|
-
import { error, ok } from
|
|
7
|
-
import { fold, first, drop, toArray, length, concat } from
|
|
8
|
-
import { setReplace, at } from
|
|
9
|
-
import { fromMap } from
|
|
6
|
+
import { error, ok } from '../../types/result/module.f.js';
|
|
7
|
+
import { fold, first, drop, toArray, length, concat } from '../../types/list/module.f.js';
|
|
8
|
+
import { setReplace, at } from '../../types/ordered_map/module.f.js';
|
|
9
|
+
import { fromMap } from '../../types/object/module.f.js';
|
|
10
10
|
const parseInitialOp = ({ token, metadata }) => state => {
|
|
11
11
|
switch (token.kind) {
|
|
12
12
|
case 'ws':
|