toilscript 0.1.63 → 0.1.64
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/dist/cli.generated.d.ts +6 -5
- package/dist/cli.js +243 -6
- package/dist/cli.js.map +2 -2
- package/dist/importmap.json +2 -2
- package/dist/toilscript.generated.d.ts +6 -5
- package/dist/toilscript.js +37 -37
- package/dist/toilscript.js.map +3 -3
- package/dist/web.js +3 -3
- package/package.json +4 -2
- package/std/assembly/bindings/toildb.ts +40 -0
- package/std/assembly/log.ts +14 -0
- package/std/assembly/toildb.ts +186 -3
- package/std/assembly/toilscript.d.ts +41 -0
package/dist/importmap.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"imports": {
|
|
3
|
-
"toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.
|
|
4
|
-
"toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.
|
|
3
|
+
"toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.64/dist/toilscript.js",
|
|
4
|
+
"toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.64/dist/cli.js",
|
|
5
5
|
"binaryen": "https://cdn.jsdelivr.net/npm/binaryen@130.0.0/index.js",
|
|
6
6
|
"long": "https://cdn.jsdelivr.net/npm/long@5.3.2/index.js"
|
|
7
7
|
}
|
|
@@ -611,7 +611,8 @@ declare module "types:toilscript/src/diagnosticMessages.generated" {
|
|
|
611
611
|
Stream_connect_handler_0_has_an_invalid_signature = 9014,
|
|
612
612
|
Stream_message_handler_0_has_an_invalid_signature = 9015,
|
|
613
613
|
Stream_close_handler_0_has_an_invalid_signature = 9016,
|
|
614
|
-
Stream_disconnect_handler_0_has_an_invalid_signature = 9017
|
|
614
|
+
Stream_disconnect_handler_0_has_an_invalid_signature = 9017,
|
|
615
|
+
Host_import_0_is_not_available_in_a_cold_daemon_artifact_use_the_server_Log_API = 9018
|
|
615
616
|
}
|
|
616
617
|
/** Translates a diagnostic code to its respective string. */
|
|
617
618
|
export function diagnosticCodeToString(code: DiagnosticCode): string;
|
|
@@ -3019,11 +3020,11 @@ declare module "types:toilscript/src/parser" {
|
|
|
3019
3020
|
getDependee(dependent: string): string | null;
|
|
3020
3021
|
/** Finishes parsing. */
|
|
3021
3022
|
finish(): void;
|
|
3022
|
-
/** Synthesize the
|
|
3023
|
+
/** Synthesize the module-level `derive_run(derive_id)` export for
|
|
3023
3024
|
* `@database` classes with `@derive` methods. Runs before element creation
|
|
3024
3025
|
* from `initializeProgram`, so generated members/exports are compiled as
|
|
3025
|
-
* ordinary program symbols. Cold artifacts
|
|
3026
|
-
*
|
|
3026
|
+
* ordinary program symbols. Cold artifacts carry the same materializers so
|
|
3027
|
+
* daemon writes can refresh their views without waiting for a request. */
|
|
3027
3028
|
weaveDeriveHandlers(): void;
|
|
3028
3029
|
weaveDataMigrations(): void;
|
|
3029
3030
|
/** Enforce the migration-file convention (folder AND extension): every `@migrate`
|
|
@@ -4689,7 +4690,7 @@ declare module "types:toilscript/src/dbcatalog" {
|
|
|
4689
4690
|
* u16 format_version = 1
|
|
4690
4691
|
* u16 n_derives
|
|
4691
4692
|
* per derive:
|
|
4692
|
-
* u16 derive_id (global declaration order in the
|
|
4693
|
+
* u16 derive_id (global declaration order in the compiled artifact)
|
|
4693
4694
|
* str db_name (the @database class name; the write -> derive key)
|
|
4694
4695
|
* str method_name (the @derive method, for diagnostics)
|
|
4695
4696
|
*/
|