Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/wasm-api-dom

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/wasm-api-dom - npm Package Compare versions

Comparing version 0.11.88 to 0.11.89

8

CHANGELOG.md
# 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 @@

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc