ziex 0.1.0-dev.1103 → 0.1.0-dev.1143

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/README.md CHANGED
@@ -169,10 +169,10 @@ You can view our current progress and planned features here:
169
169
  **[Check out the Ziex Issue Tracker →](https://github.com/ziex-dev/ziex/issues)**
170
170
 
171
171
  ## Versions
172
- | Zig | Ziex | Branch | Status |
173
- |-------------|-------------------|-------------------|----------------|
174
- | `0.16.0` | `0.1.0-dev.1050+` | `main` | Unstable (dev) |
175
- | `0.15.2` | `0.1.0-dev-1050` | `zig-0.15` | Stable (dev) |
172
+ | Zig | Ziex | Branch | Status |
173
+ |-------------|---------------------|-------------------|----------------|
174
+ | `0.16.0` | `0.1.0-dev.1068`-* | `main` | Stable (dev) |
175
+ | `0.15.2` | `0.1.0-dev-1050` | `zig-0.15` | Stable (dev) |
176
176
 
177
177
 
178
178
  ## Editor Support
package/build.zig.zon CHANGED
@@ -1,7 +1,7 @@
1
1
  .{
2
2
  .name = .ziex_js,
3
3
  .fingerprint = 0x3428b4e119b455bf,
4
- .version = "0.1.0-dev.804",
4
+ .version = "0.1.0-dev",
5
5
  .minimum_zig_version = "0.16.0",
6
6
  .paths = .{""},
7
7
  }
@@ -153,6 +153,11 @@ class ZigJS {
153
153
  view.setUint32(out + 4, NAN_PREFIX, true);
154
154
  return;
155
155
  }
156
+ if (typeof val === "boolean") {
157
+ view.setUint32(out, val ? predefined.true : predefined.false, true);
158
+ view.setUint32(out + 4, NAN_PREFIX, true);
159
+ return;
160
+ }
156
161
  let id = this.idPool.pop();
157
162
  if (id === undefined) {
158
163
  id = this.values.length;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziex",
3
- "version": "0.1.0-dev.1103",
3
+ "version": "0.1.0-dev.1143",
4
4
  "description": "ZX is a framework for building web applications with Zig.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "license": "MIT",
38
38
  "scripts": {},
39
39
  "dependencies": {
40
- "@ziex/cli": "0.1.0-dev.1103"
40
+ "@ziex/cli": "0.1.0-dev.1143"
41
41
  },
42
42
  "peerDependenciesMeta": {
43
43
  "react": {
package/runtime.d.ts CHANGED
@@ -40,7 +40,7 @@ export declare function attachWebSocket(ws: WsState): {
40
40
  * Run a WASM module for a single request using JSPI.
41
41
  *
42
42
  * Pass `kv` as a map of binding names → KV namespaces. The Zig side selects
43
- * a binding via `zx.kv.scope("name")`; the top-level `zx.kv.*` functions use
43
+ * a binding via `zx.kv.scoped("name")`; the top-level `zx.kv.*` functions use
44
44
  * `"default"`.
45
45
  *
46
46
  * @example
package/wasm/index.js CHANGED
@@ -153,6 +153,11 @@ class ZigJS {
153
153
  view.setUint32(out + 4, NAN_PREFIX, true);
154
154
  return;
155
155
  }
156
+ if (typeof val === "boolean") {
157
+ view.setUint32(out, val ? predefined.true : predefined.false, true);
158
+ view.setUint32(out + 4, NAN_PREFIX, true);
159
+ return;
160
+ }
156
161
  let id = this.idPool.pop();
157
162
  if (id === undefined) {
158
163
  id = this.values.length;
package/wasm/init.js CHANGED
@@ -138,6 +138,11 @@ class ZigJS {
138
138
  view.setUint32(out + 4, NAN_PREFIX, true);
139
139
  return;
140
140
  }
141
+ if (typeof val === "boolean") {
142
+ view.setUint32(out, val ? predefined.true : predefined.false, true);
143
+ view.setUint32(out + 4, NAN_PREFIX, true);
144
+ return;
145
+ }
141
146
  let id = this.idPool.pop();
142
147
  if (id === undefined) {
143
148
  id = this.values.length;