@thi.ng/wasm-api-dom
Advanced tools
Comparing version 0.11.88 to 0.11.89
# Change Log | ||
- **Last updated**: 2024-04-20T14:42:45Z | ||
- **Last updated**: 2024-04-22T09:56:21Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,8 @@ | ||
### [0.11.89](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-dom@0.11.89) (2024-04-22) | ||
#### ♻️ Refactoring | ||
- minor zig v0.12.0 updates ([ee4f117](https://github.com/thi-ng/umbrella/commit/ee4f117)) | ||
### [0.11.88](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-dom@0.11.88) (2024-04-20) | ||
@@ -14,0 +20,0 @@ |
{ | ||
"name": "@thi.ng/wasm-api-dom", | ||
"version": "0.11.88", | ||
"version": "0.11.89", | ||
"description": "Browser DOM bridge API for hybrid TypeScript & WASM (Zig) applications", | ||
@@ -47,7 +47,7 @@ "type": "module", | ||
"@thi.ng/prefixes": "^2.3.17", | ||
"@thi.ng/wasm-api": "^1.4.69" | ||
"@thi.ng/wasm-api": "^1.5.0" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.43.0", | ||
"@thi.ng/wasm-api-bindgen": "^0.4.69", | ||
"@thi.ng/wasm-api-bindgen": "^0.5.0", | ||
"esbuild": "^0.20.2", | ||
@@ -106,3 +106,3 @@ "rimraf": "^5.0.5", | ||
}, | ||
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n" | ||
"gitHead": "4e2bf6b12e35192e678b525fa699429370e357d3\n" | ||
} |
@@ -128,2 +128,3 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
```zig | ||
const wasm = @import("wasm-api"); | ||
const dom = @import("wasm-api-dom"); | ||
@@ -167,2 +168,6 @@ | ||
}); | ||
fn onInput(e: *const dom.Event, _: ?*anyopaque) callconv(.C) void { | ||
wasm.printStr(e.body.input.getValue()); | ||
} | ||
``` | ||
@@ -231,2 +236,6 @@ | ||
**IMPORTANT: In Zig v0.12+ all event handlers must explicitly specify | ||
`callconv(.C)`** [See docs for more | ||
reference](https://docs.thi.ng/umbrella/wasm-api-bindgen/interfaces/FuncPointer.html). | ||
```zig | ||
@@ -271,3 +280,3 @@ const wasm = @import("wasm-api"); | ||
/// event listener & state update | ||
fn onClick(_: *const dom.Event, raw: ?*anyopaque) void { | ||
fn onClick(_: *const dom.Event, raw: ?*anyopaque) callconv(.C) void { | ||
// safely cast raw pointer | ||
@@ -274,0 +283,0 @@ if (wasm.ptrCast(*Self, raw)) |self| { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117825
367
Updated@thi.ng/wasm-api@^1.5.0