pkhex 25.12.21 → 26.1.22
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/PKHeX.Core.dll +0 -0
- package/PKHeX.deps.json +70 -56
- package/PKHeX.dll +0 -0
- package/System.Collections.Concurrent.dll +0 -0
- package/System.Collections.dll +0 -0
- package/System.ComponentModel.Annotations.dll +0 -0
- package/System.ComponentModel.Primitives.dll +0 -0
- package/System.ComponentModel.TypeConverter.dll +0 -0
- package/System.Diagnostics.TraceSource.dll +0 -0
- package/System.IO.Compression.dll +0 -0
- package/System.IO.Pipelines.dll +0 -0
- package/System.Linq.dll +0 -0
- package/System.Memory.dll +0 -0
- package/System.ObjectModel.dll +0 -0
- package/System.Private.CoreLib.dll +0 -0
- package/System.Runtime.InteropServices.JavaScript.dll +0 -0
- package/System.Runtime.Numerics.dll +0 -0
- package/System.Runtime.dll +0 -0
- package/System.Security.Cryptography.dll +0 -0
- package/System.Text.Encodings.Web.dll +0 -0
- package/System.Text.Json.dll +0 -0
- package/System.Text.RegularExpressions.dll +0 -0
- package/System.Threading.Tasks.Parallel.dll +0 -0
- package/System.Threading.dll +0 -0
- package/blazor.boot.json +3 -1
- package/corebindings.c +3 -20
- package/dotnet.d.ts +144 -57
- package/dotnet.diagnostics.js +4 -0
- package/dotnet.diagnostics.js.map +1 -0
- package/dotnet.es6.lib.js +24 -30
- package/dotnet.js +2 -2
- package/dotnet.js.map +1 -1
- package/dotnet.native.js +1 -1
- package/dotnet.native.js.symbols +8669 -8656
- package/dotnet.native.wasm +0 -0
- package/dotnet.runtime.js +1 -1
- package/dotnet.runtime.js.map +1 -1
- package/driver.c +50 -36
- package/emcc-link.rsp +1 -1
- package/package.json +1 -1
- package/pinvoke.c +47 -15
- package/pinvoke.h +14 -2
- package/runtime.c +73 -26
- package/runtime.h +1 -3
- package/wasm-props.json +6 -2
- package/PKHeX.runtimeconfig.json +0 -41
- package/dotnet.globalization.js +0 -1015
- package/segmentation-rules.json +0 -83
package/PKHeX.Core.dll
CHANGED
|
Binary file
|
package/PKHeX.deps.json
CHANGED
|
@@ -1,105 +1,116 @@
|
|
|
1
1
|
{
|
|
2
2
|
"runtimeTarget": {
|
|
3
|
-
"name": ".NETCoreApp,Version=
|
|
3
|
+
"name": ".NETCoreApp,Version=v10.0/browser-wasm",
|
|
4
4
|
"signature": ""
|
|
5
5
|
},
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
|
-
".NETCoreApp,Version=
|
|
9
|
-
".NETCoreApp,Version=
|
|
8
|
+
".NETCoreApp,Version=v10.0": {},
|
|
9
|
+
".NETCoreApp,Version=v10.0/browser-wasm": {
|
|
10
10
|
"PKHeX/1.0.0": {
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"PKHeX.Core": "
|
|
13
|
-
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm": "
|
|
12
|
+
"PKHeX.Core": "26.1.22",
|
|
13
|
+
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm": "10.0.3"
|
|
14
14
|
},
|
|
15
15
|
"runtime": {
|
|
16
16
|
"PKHeX.dll": {}
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm/
|
|
19
|
+
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm/10.0.3": {
|
|
20
20
|
"runtime": {
|
|
21
21
|
"System.Collections.Concurrent.dll": {
|
|
22
|
-
"assemblyVersion": "
|
|
23
|
-
"fileVersion": "
|
|
22
|
+
"assemblyVersion": "10.0.0.0",
|
|
23
|
+
"fileVersion": "10.0.326.7603"
|
|
24
24
|
},
|
|
25
25
|
"System.Collections.dll": {
|
|
26
|
-
"assemblyVersion": "
|
|
27
|
-
"fileVersion": "
|
|
26
|
+
"assemblyVersion": "10.0.0.0",
|
|
27
|
+
"fileVersion": "10.0.326.7603"
|
|
28
28
|
},
|
|
29
29
|
"System.ComponentModel.Annotations.dll": {
|
|
30
|
-
"assemblyVersion": "
|
|
31
|
-
"fileVersion": "
|
|
30
|
+
"assemblyVersion": "10.0.0.0",
|
|
31
|
+
"fileVersion": "10.0.326.7603"
|
|
32
32
|
},
|
|
33
33
|
"System.ComponentModel.Primitives.dll": {
|
|
34
|
-
"assemblyVersion": "
|
|
35
|
-
"fileVersion": "
|
|
34
|
+
"assemblyVersion": "10.0.0.0",
|
|
35
|
+
"fileVersion": "10.0.326.7603"
|
|
36
36
|
},
|
|
37
37
|
"System.ComponentModel.TypeConverter.dll": {
|
|
38
|
-
"assemblyVersion": "
|
|
39
|
-
"fileVersion": "
|
|
38
|
+
"assemblyVersion": "10.0.0.0",
|
|
39
|
+
"fileVersion": "10.0.326.7603"
|
|
40
40
|
},
|
|
41
41
|
"System.Diagnostics.TraceSource.dll": {
|
|
42
|
-
"assemblyVersion": "
|
|
43
|
-
"fileVersion": "
|
|
42
|
+
"assemblyVersion": "10.0.0.0",
|
|
43
|
+
"fileVersion": "10.0.326.7603"
|
|
44
44
|
},
|
|
45
45
|
"System.IO.Compression.dll": {
|
|
46
|
-
"assemblyVersion": "
|
|
47
|
-
"fileVersion": "
|
|
46
|
+
"assemblyVersion": "10.0.0.0",
|
|
47
|
+
"fileVersion": "10.0.326.7603"
|
|
48
48
|
},
|
|
49
49
|
"System.IO.Pipelines.dll": {
|
|
50
|
-
"assemblyVersion": "
|
|
51
|
-
"fileVersion": "
|
|
50
|
+
"assemblyVersion": "10.0.0.0",
|
|
51
|
+
"fileVersion": "10.0.326.7603"
|
|
52
52
|
},
|
|
53
53
|
"System.Linq.dll": {
|
|
54
|
-
"assemblyVersion": "
|
|
55
|
-
"fileVersion": "
|
|
54
|
+
"assemblyVersion": "10.0.0.0",
|
|
55
|
+
"fileVersion": "10.0.326.7603"
|
|
56
56
|
},
|
|
57
57
|
"System.Memory.dll": {
|
|
58
|
-
"assemblyVersion": "
|
|
59
|
-
"fileVersion": "
|
|
58
|
+
"assemblyVersion": "10.0.0.0",
|
|
59
|
+
"fileVersion": "10.0.326.7603"
|
|
60
60
|
},
|
|
61
61
|
"System.ObjectModel.dll": {
|
|
62
|
-
"assemblyVersion": "
|
|
63
|
-
"fileVersion": "
|
|
62
|
+
"assemblyVersion": "10.0.0.0",
|
|
63
|
+
"fileVersion": "10.0.326.7603"
|
|
64
64
|
},
|
|
65
65
|
"System.Runtime.InteropServices.JavaScript.dll": {
|
|
66
|
-
"assemblyVersion": "
|
|
67
|
-
"fileVersion": "
|
|
66
|
+
"assemblyVersion": "10.0.0.0",
|
|
67
|
+
"fileVersion": "10.0.326.7603"
|
|
68
68
|
},
|
|
69
69
|
"System.Runtime.Numerics.dll": {
|
|
70
|
-
"assemblyVersion": "
|
|
71
|
-
"fileVersion": "
|
|
70
|
+
"assemblyVersion": "10.0.0.0",
|
|
71
|
+
"fileVersion": "10.0.326.7603"
|
|
72
|
+
},
|
|
73
|
+
"System.Runtime.dll": {
|
|
74
|
+
"assemblyVersion": "10.0.0.0",
|
|
75
|
+
"fileVersion": "10.0.326.7603"
|
|
72
76
|
},
|
|
73
77
|
"System.Security.Cryptography.dll": {
|
|
74
|
-
"assemblyVersion": "
|
|
75
|
-
"fileVersion": "
|
|
78
|
+
"assemblyVersion": "10.0.0.0",
|
|
79
|
+
"fileVersion": "10.0.326.7603"
|
|
76
80
|
},
|
|
77
81
|
"System.Text.Encodings.Web.dll": {
|
|
78
|
-
"assemblyVersion": "
|
|
79
|
-
"fileVersion": "
|
|
82
|
+
"assemblyVersion": "10.0.0.0",
|
|
83
|
+
"fileVersion": "10.0.326.7603"
|
|
80
84
|
},
|
|
81
85
|
"System.Text.Json.dll": {
|
|
82
|
-
"assemblyVersion": "
|
|
83
|
-
"fileVersion": "
|
|
86
|
+
"assemblyVersion": "10.0.0.0",
|
|
87
|
+
"fileVersion": "10.0.326.7603"
|
|
84
88
|
},
|
|
85
89
|
"System.Text.RegularExpressions.dll": {
|
|
86
|
-
"assemblyVersion": "
|
|
87
|
-
"fileVersion": "
|
|
90
|
+
"assemblyVersion": "10.0.0.0",
|
|
91
|
+
"fileVersion": "10.0.326.7603"
|
|
88
92
|
},
|
|
89
93
|
"System.Threading.Tasks.Parallel.dll": {
|
|
90
|
-
"assemblyVersion": "
|
|
91
|
-
"fileVersion": "
|
|
94
|
+
"assemblyVersion": "10.0.0.0",
|
|
95
|
+
"fileVersion": "10.0.326.7603"
|
|
96
|
+
},
|
|
97
|
+
"System.Threading.dll": {
|
|
98
|
+
"assemblyVersion": "10.0.0.0",
|
|
99
|
+
"fileVersion": "10.0.326.7603"
|
|
92
100
|
}
|
|
93
101
|
},
|
|
94
102
|
"native": {
|
|
95
103
|
"System.Private.CoreLib.dll": {
|
|
96
|
-
"assemblyVersion": "
|
|
97
|
-
"fileVersion": "
|
|
104
|
+
"assemblyVersion": "10.0.0.0",
|
|
105
|
+
"fileVersion": "10.0.326.7603"
|
|
98
106
|
},
|
|
99
107
|
"dotnet.d.ts": {
|
|
100
108
|
"fileVersion": "0.0.0.0"
|
|
101
109
|
},
|
|
102
|
-
"dotnet.
|
|
110
|
+
"dotnet.diagnostics.js": {
|
|
111
|
+
"fileVersion": "0.0.0.0"
|
|
112
|
+
},
|
|
113
|
+
"dotnet.diagnostics.js.map": {
|
|
103
114
|
"fileVersion": "0.0.0.0"
|
|
104
115
|
},
|
|
105
116
|
"dotnet.js": {
|
|
@@ -132,9 +143,6 @@
|
|
|
132
143
|
"icudt_EFIGS.dat": {
|
|
133
144
|
"fileVersion": "0.0.0.0"
|
|
134
145
|
},
|
|
135
|
-
"icudt_hybrid.dat": {
|
|
136
|
-
"fileVersion": "0.0.0.0"
|
|
137
|
-
},
|
|
138
146
|
"icudt_no_CJK.dat": {
|
|
139
147
|
"fileVersion": "0.0.0.0"
|
|
140
148
|
},
|
|
@@ -147,6 +155,15 @@
|
|
|
147
155
|
"libSystem.Native.a": {
|
|
148
156
|
"fileVersion": "0.0.0.0"
|
|
149
157
|
},
|
|
158
|
+
"libbrotlicommon.a": {
|
|
159
|
+
"fileVersion": "0.0.0.0"
|
|
160
|
+
},
|
|
161
|
+
"libbrotlidec.a": {
|
|
162
|
+
"fileVersion": "0.0.0.0"
|
|
163
|
+
},
|
|
164
|
+
"libbrotlienc.a": {
|
|
165
|
+
"fileVersion": "0.0.0.0"
|
|
166
|
+
},
|
|
150
167
|
"libicudata.a": {
|
|
151
168
|
"fileVersion": "0.0.0.0"
|
|
152
169
|
},
|
|
@@ -216,9 +233,6 @@
|
|
|
216
233
|
"package.json": {
|
|
217
234
|
"fileVersion": "0.0.0.0"
|
|
218
235
|
},
|
|
219
|
-
"segmentation-rules.json": {
|
|
220
|
-
"fileVersion": "0.0.0.0"
|
|
221
|
-
},
|
|
222
236
|
"wasm-bundled-timezones.a": {
|
|
223
237
|
"fileVersion": "0.0.0.0"
|
|
224
238
|
},
|
|
@@ -266,11 +280,11 @@
|
|
|
266
280
|
}
|
|
267
281
|
}
|
|
268
282
|
},
|
|
269
|
-
"PKHeX.Core/
|
|
283
|
+
"PKHeX.Core/26.1.22": {
|
|
270
284
|
"runtime": {
|
|
271
285
|
"PKHeX.Core.dll": {
|
|
272
|
-
"assemblyVersion": "
|
|
273
|
-
"fileVersion": "
|
|
286
|
+
"assemblyVersion": "26.1.22.0",
|
|
287
|
+
"fileVersion": "26.1.22.0"
|
|
274
288
|
}
|
|
275
289
|
}
|
|
276
290
|
}
|
|
@@ -282,12 +296,12 @@
|
|
|
282
296
|
"serviceable": false,
|
|
283
297
|
"sha512": ""
|
|
284
298
|
},
|
|
285
|
-
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm/
|
|
299
|
+
"runtimepack.Microsoft.NETCore.App.Runtime.Mono.browser-wasm/10.0.3": {
|
|
286
300
|
"type": "runtimepack",
|
|
287
301
|
"serviceable": false,
|
|
288
302
|
"sha512": ""
|
|
289
303
|
},
|
|
290
|
-
"PKHeX.Core/
|
|
304
|
+
"PKHeX.Core/26.1.22": {
|
|
291
305
|
"type": "project",
|
|
292
306
|
"serviceable": false,
|
|
293
307
|
"sha512": ""
|
package/PKHeX.dll
CHANGED
|
Binary file
|
|
Binary file
|
package/System.Collections.dll
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/System.IO.Pipelines.dll
CHANGED
|
Binary file
|
package/System.Linq.dll
CHANGED
|
Binary file
|
package/System.Memory.dll
CHANGED
|
Binary file
|
package/System.ObjectModel.dll
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/System.Text.Json.dll
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/blazor.boot.json
CHANGED
|
@@ -18,11 +18,13 @@
|
|
|
18
18
|
"System.Private.CoreLib.dll": "",
|
|
19
19
|
"System.Runtime.InteropServices.JavaScript.dll": "",
|
|
20
20
|
"System.Runtime.Numerics.dll": "",
|
|
21
|
+
"System.Runtime.dll": "",
|
|
21
22
|
"System.Security.Cryptography.dll": "",
|
|
22
23
|
"System.Text.Encodings.Web.dll": "",
|
|
23
24
|
"System.Text.Json.dll": "",
|
|
24
25
|
"System.Text.RegularExpressions.dll": "",
|
|
25
|
-
"System.Threading.Tasks.Parallel.dll": ""
|
|
26
|
+
"System.Threading.Tasks.Parallel.dll": "",
|
|
27
|
+
"System.Threading.dll": ""
|
|
26
28
|
},
|
|
27
29
|
"wasmNative": {
|
|
28
30
|
"dotnet.native.wasm": ""
|
package/corebindings.c
CHANGED
|
@@ -32,6 +32,7 @@ extern void mono_wasm_invoke_js_function (int function_js_handle, void *args);
|
|
|
32
32
|
extern int mono_runtime_run_module_cctor (MonoImage *image, MonoError *error);
|
|
33
33
|
|
|
34
34
|
typedef void (*background_job_cb)(void);
|
|
35
|
+
typedef int (*ds_job_cb)(void* data);
|
|
35
36
|
|
|
36
37
|
void mono_wasm_bind_assembly_exports (char *assembly_name);
|
|
37
38
|
void mono_wasm_assembly_get_entry_point (char *assembly_name, int auto_insert_breakpoint, MonoMethod **method_out);
|
|
@@ -58,17 +59,8 @@ extern void* mono_wasm_bind_js_import_ST (void *signature);
|
|
|
58
59
|
extern void mono_wasm_invoke_jsimport_ST (int function_handle, void *args);
|
|
59
60
|
#endif /* DISABLE_THREADS */
|
|
60
61
|
|
|
61
|
-
//
|
|
62
|
-
extern char16_t* mono_wasm_change_case (const uint16_t* culture, int32_t cultureLength, const uint16_t* src, int32_t srcLength, uint16_t* dst, int32_t dstLength, mono_bool bToUpper);
|
|
63
|
-
extern char16_t* mono_wasm_compare_string (const uint16_t* culture, int32_t cultureLength, const uint16_t* str1, int32_t str1Length, const uint16_t* str2, int32_t str2Length, int32_t options, int *resultPtr);
|
|
64
|
-
extern char16_t* mono_wasm_starts_with (const uint16_t* culture, int32_t cultureLength, const uint16_t* str1, int32_t str1Length, const uint16_t* str2, int32_t str2Length, int32_t options, mono_bool *resultPtr);
|
|
65
|
-
extern char16_t* mono_wasm_ends_with (const uint16_t* culture, int32_t cultureLength, const uint16_t* str1, int32_t str1Length, const uint16_t* str2, int32_t str2Length, int32_t options, mono_bool *resultPtr);
|
|
66
|
-
extern char16_t* mono_wasm_index_of (const uint16_t* culture, int32_t cultureLength, const uint16_t* str1, int32_t str1Length, const uint16_t* str2, int32_t str2Length, int32_t options, mono_bool fromBeginning, int *resultPtr);
|
|
67
|
-
extern char16_t* mono_wasm_get_calendar_info (const uint16_t* culture, int32_t cultureLength, int32_t calendarId, const uint16_t* result, int32_t resultMaxLength, int *resultLength);
|
|
68
|
-
extern char16_t* mono_wasm_get_culture_info (const uint16_t* culture, int32_t cultureLength, const uint16_t* result, int32_t resultMaxLength, int *resultLength);
|
|
62
|
+
// JS-based globalization
|
|
69
63
|
extern char16_t* mono_wasm_get_locale_info (const uint16_t* locale, int32_t localeLength, const uint16_t* culture, int32_t cultureLength, const uint16_t* result, int32_t resultMaxLength, int *resultLength);
|
|
70
|
-
extern char16_t* mono_wasm_get_first_day_of_week (const uint16_t* culture, int32_t cultureLength, int *resultPtr);
|
|
71
|
-
extern char16_t* mono_wasm_get_first_week_of_year (const uint16_t* culture, int32_t cultureLength, int *resultPtr);
|
|
72
64
|
|
|
73
65
|
void bindings_initialize_internals (void)
|
|
74
66
|
{
|
|
@@ -102,17 +94,8 @@ void bindings_initialize_internals (void)
|
|
|
102
94
|
mono_add_internal_call ("Interop/Runtime::GetAssemblyExport", mono_wasm_get_assembly_export);
|
|
103
95
|
mono_add_internal_call ("System.ConsolePal::Clear", mono_wasm_console_clear);
|
|
104
96
|
|
|
105
|
-
//
|
|
106
|
-
mono_add_internal_call ("Interop/JsGlobalization::ChangeCase", mono_wasm_change_case);
|
|
107
|
-
mono_add_internal_call ("Interop/JsGlobalization::CompareString", mono_wasm_compare_string);
|
|
108
|
-
mono_add_internal_call ("Interop/JsGlobalization::StartsWith", mono_wasm_starts_with);
|
|
109
|
-
mono_add_internal_call ("Interop/JsGlobalization::EndsWith", mono_wasm_ends_with);
|
|
110
|
-
mono_add_internal_call ("Interop/JsGlobalization::IndexOf", mono_wasm_index_of);
|
|
111
|
-
mono_add_internal_call ("Interop/JsGlobalization::GetCalendarInfo", mono_wasm_get_calendar_info);
|
|
97
|
+
// JS-based globalization
|
|
112
98
|
mono_add_internal_call ("Interop/JsGlobalization::GetLocaleInfo", mono_wasm_get_locale_info);
|
|
113
|
-
mono_add_internal_call ("Interop/JsGlobalization::GetCultureInfo", mono_wasm_get_culture_info);
|
|
114
|
-
mono_add_internal_call ("Interop/JsGlobalization::GetFirstDayOfWeek", mono_wasm_get_first_day_of_week);
|
|
115
|
-
mono_add_internal_call ("Interop/JsGlobalization::GetFirstWeekOfYear", mono_wasm_get_first_week_of_year);
|
|
116
99
|
}
|
|
117
100
|
|
|
118
101
|
static MonoAssembly* _mono_wasm_assembly_load (char *assembly_name)
|
package/dotnet.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//! Licensed to the .NET Foundation under one or more agreements.
|
|
2
2
|
//! The .NET Foundation licenses this file to you under the MIT license.
|
|
3
3
|
//!
|
|
4
|
-
//! This is generated file, see src/mono/
|
|
4
|
+
//! This is generated file, see src/mono/browser/runtime/rollup.config.js
|
|
5
5
|
|
|
6
6
|
//! This is not considered public API with backward compatibility guarantees.
|
|
7
7
|
|
|
@@ -58,11 +58,11 @@ declare type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Arra
|
|
|
58
58
|
interface DotnetHostBuilder {
|
|
59
59
|
/**
|
|
60
60
|
* @param config default values for the runtime configuration. It will be merged with the default values.
|
|
61
|
-
* Note that if you provide resources and don't provide custom configSrc URL, the
|
|
61
|
+
* Note that if you provide resources and don't provide custom configSrc URL, the dotnet.boot.js will be downloaded and applied by default.
|
|
62
62
|
*/
|
|
63
63
|
withConfig(config: MonoConfig): DotnetHostBuilder;
|
|
64
64
|
/**
|
|
65
|
-
* @param configSrc URL to the configuration file. ./
|
|
65
|
+
* @param configSrc URL to the configuration file. ./dotnet.boot.js is a default config file location.
|
|
66
66
|
*/
|
|
67
67
|
withConfigSrc(configSrc: string): DotnetHostBuilder;
|
|
68
68
|
/**
|
|
@@ -166,14 +166,6 @@ type MonoConfig = {
|
|
|
166
166
|
* debugLevel < 0 enables debugging and disables debug logging.
|
|
167
167
|
*/
|
|
168
168
|
debugLevel?: number;
|
|
169
|
-
/**
|
|
170
|
-
* Gets a value that determines whether to enable caching of the 'resources' inside a CacheStorage instance within the browser.
|
|
171
|
-
*/
|
|
172
|
-
cacheBootResources?: boolean;
|
|
173
|
-
/**
|
|
174
|
-
* Delay of the purge of the cached resources in milliseconds. Default is 10000 (10 seconds).
|
|
175
|
-
*/
|
|
176
|
-
cachedResourcesPurgeDelay?: number;
|
|
177
169
|
/**
|
|
178
170
|
* Configures use of the `integrity` directive for fetching assets
|
|
179
171
|
*/
|
|
@@ -192,6 +184,16 @@ type MonoConfig = {
|
|
|
192
184
|
environmentVariables?: {
|
|
193
185
|
[i: string]: string;
|
|
194
186
|
};
|
|
187
|
+
/**
|
|
188
|
+
* Subset of runtimeconfig.json
|
|
189
|
+
*/
|
|
190
|
+
runtimeConfig?: {
|
|
191
|
+
runtimeOptions?: {
|
|
192
|
+
configProperties?: {
|
|
193
|
+
[i: string]: string | number | boolean;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
195
197
|
/**
|
|
196
198
|
* initial number of workers to add to the emscripten pthread pool
|
|
197
199
|
*/
|
|
@@ -218,10 +220,7 @@ type MonoConfig = {
|
|
|
218
220
|
* Gets the application culture. This is a name specified in the BCP 47 format. See https://tools.ietf.org/html/bcp47
|
|
219
221
|
*/
|
|
220
222
|
applicationCulture?: string;
|
|
221
|
-
|
|
222
|
-
* definition of assets to load along with the runtime.
|
|
223
|
-
*/
|
|
224
|
-
resources?: ResourceGroups;
|
|
223
|
+
resources?: Assets;
|
|
225
224
|
/**
|
|
226
225
|
* appsettings files to load to VFS
|
|
227
226
|
*/
|
|
@@ -245,36 +244,90 @@ type MonoConfig = {
|
|
|
245
244
|
type ResourceExtensions = {
|
|
246
245
|
[extensionName: string]: ResourceList;
|
|
247
246
|
};
|
|
248
|
-
interface
|
|
247
|
+
interface Assets {
|
|
249
248
|
hash?: string;
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
wasmSymbols?: ResourceList;
|
|
263
|
-
wasmNative: ResourceList;
|
|
264
|
-
icu?: ResourceList;
|
|
249
|
+
coreAssembly?: AssemblyAsset[];
|
|
250
|
+
assembly?: AssemblyAsset[];
|
|
251
|
+
lazyAssembly?: AssemblyAsset[];
|
|
252
|
+
corePdb?: PdbAsset[];
|
|
253
|
+
pdb?: PdbAsset[];
|
|
254
|
+
jsModuleWorker?: JsAsset[];
|
|
255
|
+
jsModuleDiagnostics?: JsAsset[];
|
|
256
|
+
jsModuleNative: JsAsset[];
|
|
257
|
+
jsModuleRuntime: JsAsset[];
|
|
258
|
+
wasmSymbols?: SymbolsAsset[];
|
|
259
|
+
wasmNative: WasmAsset[];
|
|
260
|
+
icu?: IcuAsset[];
|
|
265
261
|
satelliteResources?: {
|
|
266
|
-
[cultureName: string]:
|
|
262
|
+
[cultureName: string]: AssemblyAsset[];
|
|
267
263
|
};
|
|
268
|
-
modulesAfterConfigLoaded?:
|
|
269
|
-
modulesAfterRuntimeReady?:
|
|
264
|
+
modulesAfterConfigLoaded?: JsAsset[];
|
|
265
|
+
modulesAfterRuntimeReady?: JsAsset[];
|
|
270
266
|
extensions?: ResourceExtensions;
|
|
271
|
-
coreVfs?:
|
|
272
|
-
|
|
273
|
-
};
|
|
274
|
-
vfs?: {
|
|
275
|
-
[virtualPath: string]: ResourceList;
|
|
276
|
-
};
|
|
267
|
+
coreVfs?: VfsAsset[];
|
|
268
|
+
vfs?: VfsAsset[];
|
|
277
269
|
}
|
|
270
|
+
type Asset = {
|
|
271
|
+
/**
|
|
272
|
+
* this should be absolute url to the asset
|
|
273
|
+
*/
|
|
274
|
+
resolvedUrl?: string;
|
|
275
|
+
/**
|
|
276
|
+
* If true, the runtime startup would not fail if the asset download was not successful.
|
|
277
|
+
*/
|
|
278
|
+
isOptional?: boolean;
|
|
279
|
+
/**
|
|
280
|
+
* If provided, runtime doesn't have to fetch the data.
|
|
281
|
+
* Runtime would set the buffer to null after instantiation to free the memory.
|
|
282
|
+
*/
|
|
283
|
+
buffer?: ArrayBuffer | Promise<ArrayBuffer>;
|
|
284
|
+
/**
|
|
285
|
+
* It's metadata + fetch-like Promise<Response>
|
|
286
|
+
* If provided, the runtime doesn't have to initiate the download. It would just await the response.
|
|
287
|
+
*/
|
|
288
|
+
pendingDownload?: LoadingResource;
|
|
289
|
+
};
|
|
290
|
+
type WasmAsset = Asset & {
|
|
291
|
+
name: string;
|
|
292
|
+
hash?: string | null | "";
|
|
293
|
+
cache?: RequestCache;
|
|
294
|
+
};
|
|
295
|
+
type AssemblyAsset = Asset & {
|
|
296
|
+
virtualPath: string;
|
|
297
|
+
name: string;
|
|
298
|
+
hash?: string | null | "";
|
|
299
|
+
cache?: RequestCache;
|
|
300
|
+
};
|
|
301
|
+
type PdbAsset = Asset & {
|
|
302
|
+
virtualPath: string;
|
|
303
|
+
name: string;
|
|
304
|
+
hash?: string | null | "";
|
|
305
|
+
cache?: RequestCache;
|
|
306
|
+
};
|
|
307
|
+
type JsAsset = Asset & {
|
|
308
|
+
/**
|
|
309
|
+
* If provided, runtime doesn't have to import it's JavaScript modules.
|
|
310
|
+
* This will not work for multi-threaded runtime.
|
|
311
|
+
*/
|
|
312
|
+
moduleExports?: any | Promise<any>;
|
|
313
|
+
name?: string;
|
|
314
|
+
};
|
|
315
|
+
type SymbolsAsset = Asset & {
|
|
316
|
+
name: string;
|
|
317
|
+
cache?: RequestCache;
|
|
318
|
+
};
|
|
319
|
+
type VfsAsset = Asset & {
|
|
320
|
+
virtualPath: string;
|
|
321
|
+
name: string;
|
|
322
|
+
hash?: string | null | "";
|
|
323
|
+
cache?: RequestCache;
|
|
324
|
+
};
|
|
325
|
+
type IcuAsset = Asset & {
|
|
326
|
+
virtualPath: string;
|
|
327
|
+
name: string;
|
|
328
|
+
hash?: string | null | "";
|
|
329
|
+
cache?: RequestCache;
|
|
330
|
+
};
|
|
278
331
|
/**
|
|
279
332
|
* A "key" is name of the file, a "value" is optional hash for integrity check.
|
|
280
333
|
*/
|
|
@@ -292,7 +345,10 @@ type ResourceList = {
|
|
|
292
345
|
* @returns A URI string or a Response promise to override the loading process, or null/undefined to allow the default loading behavior.
|
|
293
346
|
* When returned string is not qualified with `./` or absolute URL, it will be resolved against the application base URI.
|
|
294
347
|
*/
|
|
295
|
-
type LoadBootResourceCallback = (type: WebAssemblyBootResourceType, name: string, defaultUri: string, integrity: string, behavior: AssetBehaviors) => string | Promise<Response> | null | undefined;
|
|
348
|
+
type LoadBootResourceCallback = (type: WebAssemblyBootResourceType, name: string, defaultUri: string, integrity: string, behavior: AssetBehaviors) => string | Promise<Response> | Promise<BootModule> | null | undefined;
|
|
349
|
+
type BootModule = {
|
|
350
|
+
config: MonoConfig;
|
|
351
|
+
};
|
|
296
352
|
interface LoadingResource {
|
|
297
353
|
name: string;
|
|
298
354
|
url: string;
|
|
@@ -360,6 +416,10 @@ type SingleAssetBehaviors =
|
|
|
360
416
|
* The javascript module for threads.
|
|
361
417
|
*/
|
|
362
418
|
| "js-module-threads"
|
|
419
|
+
/**
|
|
420
|
+
* The javascript module for diagnostic server and client.
|
|
421
|
+
*/
|
|
422
|
+
| "js-module-diagnostics"
|
|
363
423
|
/**
|
|
364
424
|
* The javascript module for runtime.
|
|
365
425
|
*/
|
|
@@ -369,21 +429,13 @@ type SingleAssetBehaviors =
|
|
|
369
429
|
*/
|
|
370
430
|
| "js-module-native"
|
|
371
431
|
/**
|
|
372
|
-
*
|
|
373
|
-
*/
|
|
374
|
-
| "js-module-globalization"
|
|
375
|
-
/**
|
|
376
|
-
* Typically blazor.boot.json
|
|
432
|
+
* Typically dotnet.boot.js
|
|
377
433
|
*/
|
|
378
434
|
| "manifest"
|
|
379
435
|
/**
|
|
380
436
|
* The debugging symbols
|
|
381
437
|
*/
|
|
382
|
-
| "symbols"
|
|
383
|
-
/**
|
|
384
|
-
* Load segmentation rules file for Hybrid Globalization.
|
|
385
|
-
*/
|
|
386
|
-
| "segmentation-rules";
|
|
438
|
+
| "symbols";
|
|
387
439
|
type AssetBehaviors = SingleAssetBehaviors |
|
|
388
440
|
/**
|
|
389
441
|
* Load asset as a managed resource assembly.
|
|
@@ -429,11 +481,7 @@ declare const enum GlobalizationMode {
|
|
|
429
481
|
/**
|
|
430
482
|
* Use user defined icu file.
|
|
431
483
|
*/
|
|
432
|
-
Custom = "custom"
|
|
433
|
-
/**
|
|
434
|
-
* Operate in hybrid globalization mode with small ICU files, using native platform functions.
|
|
435
|
-
*/
|
|
436
|
-
Hybrid = "hybrid"
|
|
484
|
+
Custom = "custom"
|
|
437
485
|
}
|
|
438
486
|
type DotnetModuleConfig = {
|
|
439
487
|
config?: MonoConfig;
|
|
@@ -444,7 +492,7 @@ type DotnetModuleConfig = {
|
|
|
444
492
|
imports?: any;
|
|
445
493
|
exports?: string[];
|
|
446
494
|
} & Partial<EmscriptenModule>;
|
|
447
|
-
type
|
|
495
|
+
type RunAPIType = {
|
|
448
496
|
/**
|
|
449
497
|
* Runs the Main() method of the application.
|
|
450
498
|
* Note: this will keep the .NET runtime alive and the APIs will be available for further calls.
|
|
@@ -494,6 +542,8 @@ type APIType = {
|
|
|
494
542
|
* You can register the scripts using MonoConfig.resources.modulesAfterConfigLoaded and MonoConfig.resources.modulesAfterRuntimeReady.
|
|
495
543
|
*/
|
|
496
544
|
invokeLibraryInitializers: (functionName: string, args: any[]) => Promise<void>;
|
|
545
|
+
};
|
|
546
|
+
type MemoryAPIType = {
|
|
497
547
|
/**
|
|
498
548
|
* Writes to the WASM linear memory
|
|
499
549
|
*/
|
|
@@ -635,6 +685,43 @@ type APIType = {
|
|
|
635
685
|
*/
|
|
636
686
|
localHeapViewF64: () => Float64Array;
|
|
637
687
|
};
|
|
688
|
+
type DiagnosticsAPIType = {
|
|
689
|
+
/**
|
|
690
|
+
* creates diagnostic trace file. Default is 60 seconds.
|
|
691
|
+
* It could be opened in PerfView or Visual Studio as is.
|
|
692
|
+
*/
|
|
693
|
+
collectCpuSamples: (options?: DiagnosticCommandOptions) => Promise<Uint8Array[]>;
|
|
694
|
+
/**
|
|
695
|
+
* creates diagnostic trace file. Default is 60 seconds.
|
|
696
|
+
* It could be opened in PerfView or Visual Studio as is.
|
|
697
|
+
* It could be summarized by `dotnet-trace report xxx.nettrace topN -n 10`
|
|
698
|
+
*/
|
|
699
|
+
collectMetrics: (options?: DiagnosticCommandOptions) => Promise<Uint8Array[]>;
|
|
700
|
+
/**
|
|
701
|
+
* creates diagnostic trace file.
|
|
702
|
+
* It could be opened in PerfView as is.
|
|
703
|
+
* It could be converted for Visual Studio using `dotnet-gcdump convert`.
|
|
704
|
+
*/
|
|
705
|
+
collectGcDump: (options?: DiagnosticCommandOptions) => Promise<Uint8Array[]>;
|
|
706
|
+
/**
|
|
707
|
+
* changes DOTNET_DiagnosticPorts and makes a new connection to WebSocket on that URL.
|
|
708
|
+
*/
|
|
709
|
+
connectDSRouter(url: string): void;
|
|
710
|
+
};
|
|
711
|
+
type DiagnosticCommandProviderV2 = {
|
|
712
|
+
keywords: [number, number];
|
|
713
|
+
logLevel: number;
|
|
714
|
+
provider_name: string;
|
|
715
|
+
arguments: string | null;
|
|
716
|
+
};
|
|
717
|
+
type DiagnosticCommandOptions = {
|
|
718
|
+
durationSeconds?: number;
|
|
719
|
+
intervalSeconds?: number;
|
|
720
|
+
skipDownload?: boolean;
|
|
721
|
+
circularBufferMB?: number;
|
|
722
|
+
extraProviders?: DiagnosticCommandProviderV2[];
|
|
723
|
+
};
|
|
724
|
+
type APIType = RunAPIType & MemoryAPIType & DiagnosticsAPIType;
|
|
638
725
|
type RuntimeAPI = {
|
|
639
726
|
INTERNAL: any;
|
|
640
727
|
Module: EmscriptenModule;
|