toilscript 0.1.31 → 0.1.33

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,9 +1,9 @@
1
- var ASSEMBLYSCRIPT_VERSION = "0.1.31";
1
+ var ASSEMBLYSCRIPT_VERSION = "0.1.33";
2
2
  var ASSEMBLYSCRIPT_IMPORTMAP = {
3
3
  "imports": {
4
- "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.31/dist/toilscript.js",
5
- "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.31/dist/cli.js",
6
- "binaryen": "https://cdn.jsdelivr.net/npm/binaryen@129.0.0-nightly.20260428/index.js",
4
+ "toilscript": "https://cdn.jsdelivr.net/npm/toilscript@0.1.33/dist/toilscript.js",
5
+ "toilscript/cli": "https://cdn.jsdelivr.net/npm/toilscript@0.1.33/dist/cli.js",
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
  }
9
9
  };
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "toilscript",
9
9
  "wasm"
10
10
  ],
11
- "version": "0.1.31",
11
+ "version": "0.1.33",
12
12
  "author": "Daniel Wirtz <dcode+assemblyscript@dcode.io>",
13
13
  "license": "Apache-2.0",
14
14
  "homepage": "https://github.com/dacely-cloud/toilscript",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "engineStrict": true,
27
27
  "dependencies": {
28
- "binaryen": "129.0.0-nightly.20260428",
28
+ "binaryen": "130.0.0-nightly.20260609",
29
29
  "long": "^5.2.4"
30
30
  },
31
31
  "devDependencies": {
@@ -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",
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:dbstatic",
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",
@@ -91,6 +91,7 @@
91
91
  "test:cli": "node tests/cli/options.js",
92
92
  "test:json": "node tests/json/run.mjs",
93
93
  "test:data": "node tests/data/run.mjs",
94
+ "test:dbstatic": "node tests/dbstatic/run.mjs",
94
95
  "asbuild": "npm run asbuild:debug && npm run asbuild:release",
95
96
  "asbuild:debug": "node bin/toilscript --config src/toilconfig.json --target debug",
96
97
  "asbuild:release": "node bin/toilscript --config src/toilconfig.json --target release",
@@ -93,7 +93,11 @@ declare function user(target: Function): void;
93
93
  declare function database(target: Function): void;
94
94
 
95
95
  /** Declares a `@database` field as a collection - a `Documents`/`View`/`Unique`/
96
- * `Counter`/`Events`/`Membership`/`Capacity` handle. */
96
+ * `Counter`/`Events`/`Membership`/`Capacity` handle. Prefer the `static` form,
97
+ * `@collection static users!: Documents<UserId, User>`, so `App.users` type-checks
98
+ * in any editor with no language-service plugin; the instance form
99
+ * (`@collection users!: ...`) still works but needs the toilscript TS plugin to
100
+ * type the static `App.users` access. */
97
101
  declare function collection(target: Object, propertyKey: string | symbol): void;
98
102
 
99
103
  /** ToilDB function kinds (spec 6) - the data ops a function may issue. `@query`