toilscript 0.1.43 → 0.1.45

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.43";
1
+ var ASSEMBLYSCRIPT_VERSION = "0.1.45";
2
2
  var ASSEMBLYSCRIPT_IMPORTMAP = {
3
3
  "imports": {
4
- "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.43/dist/toilscript.js",
5
- "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.43/dist/cli.js",
4
+ "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.45/dist/toilscript.js",
5
+ "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.45/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.43",
11
+ "version": "0.1.45",
12
12
  "author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>",
13
13
  "license": "Apache-2.0",
14
14
  "homepage": "https://github.com/dacely-cloud/toilscript",
@@ -113,8 +113,8 @@ interface StreamOptions {
113
113
  }
114
114
 
115
115
  /** Marks a class as a stream protocol handler (runs on L2/L3 nodes). Its
116
- * `@connect`/`@message`/`@close`/`@disconnect`/`@channel` methods are the
117
- * lifecycle hooks. A project that uses `@stream` may NOT declare any `@service`
116
+ * `@connect`/`@message`/`@close`/`@disconnect` methods are the live lifecycle
117
+ * hooks. A project that uses `@stream` may NOT declare any `@service`
118
118
  * or `@remote` anywhere (compiler-enforced). Hot/stream artifact only.
119
119
  *
120
120
  * Three forms (mirroring `@rest`): bare `@stream` (the routing name is the class
@@ -126,13 +126,11 @@ declare function stream(options: StreamOptions): (target: Function) => void;
126
126
 
127
127
  /** Stream lifecycle-hook method decorators on a `@stream` class. `@connect` runs
128
128
  * on open (returns `StreamOutbound`); `@message` handles an inbound packet;
129
- * `@close` is a graceful close; `@disconnect` is an abrupt transport loss;
130
- * `@channel` receives an opt-in fanned-out channel message. */
129
+ * `@close` is a graceful close; `@disconnect` is an abrupt transport loss. */
131
130
  declare function connect(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
132
131
  declare function message(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
133
132
  declare function close(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
134
133
  declare function disconnect(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
135
- declare function channel(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>): void;
136
134
 
137
135
  // Stream handler argument/return types. Ambient (like the bignum natives below):
138
136
  // the compiler/runtime provides the real classes; declared here so `@stream`
@@ -175,17 +173,6 @@ declare class StreamPacket {
175
173
  at(i: i32): u8;
176
174
  }
177
175
 
178
- /** The fanned-out channel message passed to `@channel`: the channel name plus
179
- * the raw published bytes (no decode). */
180
- declare class StreamChannelMessage {
181
- get connectionId(): u64;
182
- get channelHash(): u32;
183
- get channelName(): string;
184
- get length(): i32;
185
- bytes(): Uint8Array;
186
- at(i: i32): u8;
187
- }
188
-
189
176
  // --- ToilDB (@database / @collection + the @query/@action/... function kinds),
190
177
  // handled natively by the compiler; typed here so editors accept the bare forms ---
191
178