toilscript 0.1.9 → 0.1.10

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "imports": {
3
- "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.9/dist/toilscript.js",
4
- "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.9/dist/cli.js",
3
+ "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.10/dist/toilscript.js",
4
+ "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.10/dist/cli.js",
5
5
  "binaryen": "https://cdn.jsdelivr.net/npm/binaryen@129.0.0-nightly.20260428/index.js",
6
6
  "long": "https://cdn.jsdelivr.net/npm/long@5.3.2/index.js"
7
7
  }
package/dist/web.js CHANGED
@@ -1,8 +1,8 @@
1
- var ASSEMBLYSCRIPT_VERSION = "0.1.9";
1
+ var ASSEMBLYSCRIPT_VERSION = "0.1.10";
2
2
  var ASSEMBLYSCRIPT_IMPORTMAP = {
3
3
  "imports": {
4
- "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.9/dist/toilscript.js",
5
- "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.9/dist/cli.js",
4
+ "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.10/dist/toilscript.js",
5
+ "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.10/dist/cli.js",
6
6
  "binaryen": "https://cdn.jsdelivr.net/npm/binaryen@129.0.0-nightly.20260428/index.js",
7
7
  "long": "https://cdn.jsdelivr.net/npm/long@5.3.2/index.js"
8
8
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "toilscript",
9
9
  "wasm"
10
10
  ],
11
- "version": "0.1.9",
11
+ "version": "0.1.10",
12
12
  "author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>",
13
13
  "license": "Apache-2.0",
14
14
  "homepage": "https://github.com/dacely-cloud/toilscript",
@@ -15,6 +15,29 @@
15
15
  */
16
16
  declare function main(): void;
17
17
 
18
+ // Typed as their decorator targets (class decorators take the constructor; the method
19
+ // decorator takes target/key/descriptor) so editors accept the bare forms. The compiler
20
+ // handles them natively and ignores these declarations.
21
+
22
+ /**
23
+ * Marks a class as a serializable data type: the compiler generates a compact,
24
+ * self-identifying binary codec (`encode`/`decode`) plus a `toJSON`/`fromJSON`
25
+ * view, and (with `--rpcModule`) a matching typed client class.
26
+ */
27
+ declare function data(target: Function): void;
28
+
29
+ /**
30
+ * Marks a function (free, or a method of an `@service` class) as a client-callable
31
+ * RPC endpoint. The server build emits it onto the typed client `Server` surface.
32
+ */
33
+ declare function remote<T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>): void;
34
+
35
+ /**
36
+ * Marks a class as an RPC service: its `@remote` methods are namespaced under the
37
+ * client `Server` (e.g. `Server.<service>.<method>()`).
38
+ */
39
+ declare function service(target: Function): void;
40
+
18
41
  // Big integers, native globals implemented in std/assembly/bignum. The
19
42
  // arithmetic/bitwise/comparison operators
20
43
  // (+ - * / % & | ^ << >> == != < > <= >=) are operator overloads resolved by