toilscript 0.1.41 → 0.1.43

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.41";
1
+ var ASSEMBLYSCRIPT_VERSION = "0.1.43";
2
2
  var ASSEMBLYSCRIPT_IMPORTMAP = {
3
3
  "imports": {
4
- "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.41/dist/toilscript.js",
5
- "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.41/dist/cli.js",
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",
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.41",
11
+ "version": "0.1.43",
12
12
  "author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>",
13
13
  "license": "Apache-2.0",
14
14
  "homepage": "https://github.com/dacely-cloud/toilscript",
@@ -80,7 +80,7 @@
80
80
  "prepublishOnly": "node scripts/build",
81
81
  "watch": "node scripts/build --watch",
82
82
  "coverage": "npx c8 -- npm test",
83
- "test": "npm run test:parser && npm run test:compiler -- --parallel && npm run test:browser && npm run test:toilconfig && npm run test:transform && npm run test:cli && npm run test:json && npm run test:data && npm run test:dbresolve && npm run test:dbstatic && npm run test:routekinds && npm run test:streams",
83
+ "test": "npm run test:parser && npm run test:compiler -- --parallel && npm run test:browser && npm run test:toilconfig && npm run test:transform && npm run test:cli && npm run test:json && npm run test:data && npm run test:dbresolve && npm run test:dbstatic && npm run test:routekinds && npm run test:derive && npm run test:streams",
84
84
  "test:parser": "node --enable-source-maps tests/parser",
85
85
  "test:compiler": "node --enable-source-maps --no-warnings tests/compiler",
86
86
  "test:browser": "node --enable-source-maps tests/browser",
@@ -94,6 +94,7 @@
94
94
  "test:dbresolve": "node tests/dbresolve/run.mjs",
95
95
  "test:dbstatic": "node tests/dbstatic/run.mjs",
96
96
  "test:routekinds": "node tests/routekinds/run.mjs",
97
+ "test:derive": "node tests/derive/run.mjs",
97
98
  "test:streams": "node tests/streams/run.mjs && node tests/streams/catalog.mjs && node tests/streams/codegen.mjs",
98
99
  "asbuild": "npm run asbuild:debug && npm run asbuild:release",
99
100
  "asbuild:debug": "node bin/toilscript --config src/toilconfig.json --target debug",
@@ -138,13 +138,14 @@ declare function channel(target: Object, propertyKey: string | symbol, descripto
138
138
  // the compiler/runtime provides the real classes; declared here so `@stream`
139
139
  // handler signatures type-check in any editor.
140
140
 
141
- /** The connection-open context passed to `@connect`. Read-only. */
141
+ /** The connection-open context passed to `@connect`. Read-only; the host writes it (stream id +
142
+ * transport + the upgrade authority/path) into the box before the hook fires. Mirrors the real
143
+ * injected `@global class StreamInbound` exactly: `authority()` and `path()` are METHODS. */
142
144
  declare class StreamInbound {
143
- get connectionId(): u64;
144
- get streamName(): string;
145
- get remoteIp(): string;
146
- get path(): string;
147
- header(name: string): string;
145
+ get streamId(): u64;
146
+ get transport(): i32;
147
+ authority(): string;
148
+ path(): string;
148
149
  }
149
150
 
150
151
  /** The accept/reject + optional first-frame decision returned by