toilscript 0.1.39 → 0.1.42

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/web.js CHANGED
@@ -1,8 +1,8 @@
1
- var ASSEMBLYSCRIPT_VERSION = "0.1.39";
1
+ var ASSEMBLYSCRIPT_VERSION = "0.1.42";
2
2
  var ASSEMBLYSCRIPT_IMPORTMAP = {
3
3
  "imports": {
4
- "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.39/dist/toilscript.js",
5
- "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.39/dist/cli.js",
4
+ "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.42/dist/toilscript.js",
5
+ "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.42/dist/cli.js",
6
6
  "binaryen": "https://cdn.jsdelivr.net/npm/binaryen@130.0.0-nightly.20260609/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.39",
11
+ "version": "0.1.42",
12
12
  "author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>",
13
13
  "license": "Apache-2.0",
14
14
  "homepage": "https://github.com/dacely-cloud/toilscript",
@@ -115,8 +115,13 @@ interface StreamOptions {
115
115
  /** Marks a class as a stream protocol handler (runs on L2/L3 nodes). Its
116
116
  * `@connect`/`@message`/`@close`/`@disconnect`/`@channel` methods are the
117
117
  * lifecycle hooks. A project that uses `@stream` may NOT declare any `@service`
118
- * or `@remote` anywhere (compiler-enforced). Hot/stream artifact only. */
118
+ * or `@remote` anywhere (compiler-enforced). Hot/stream artifact only.
119
+ *
120
+ * Three forms (mirroring `@rest`): bare `@stream` (the routing name is the class
121
+ * name), `@stream("name")` (an explicit mount name / routing key, e.g. `/name`),
122
+ * or `@stream({ scope, message, ... })` for the full config object. */
119
123
  declare function stream(target: Function): void;
124
+ declare function stream(name?: string): (target: Function) => void;
120
125
  declare function stream(options: StreamOptions): (target: Function) => void;
121
126
 
122
127
  /** Stream lifecycle-hook method decorators on a `@stream` class. `@connect` runs