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

@thi.ng/wasm-api-bindgen

Package Overview
Dependencies
Maintainers
1
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.4.69 to 0.5.0

6

api.d.ts

@@ -232,2 +232,8 @@ import type { BigType, FloatType, Fn, Fn2, IObjectOf, NumOrString } from "@thi.ng/api";

}
/**
* @remarks
* For Zig v0.12.0 compatibility, the Zig codegen emits all function pointers
* with the `callconv(.C)` attribute. Any function assigned to such a pointer
* will also have to specify the same calling convention.
*/
export interface FuncPointer extends TopLevelType {

@@ -234,0 +240,0 @@ type: "funcptr";

11

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,11 @@

## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-bindgen@0.5.0) (2024-04-22)
#### 🚀 Features
- update Zig funcptr codegen to include `callconv(.C)` ([ac3da9e](https://github.com/thi-ng/umbrella/commit/ac3da9e))
- `callconv` explicitly required for function pointers in `extern struct`s in Zig v0.12
- update docs
- update test snapshots
### [0.4.69](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-bindgen@0.4.69) (2024-04-20)

@@ -14,0 +23,0 @@

6

package.json
{
"name": "@thi.ng/wasm-api-bindgen",
"version": "0.4.69",
"version": "0.5.0",
"description": "Polyglot bindings code generators for hybrid JS & WebAssembly projects",

@@ -53,3 +53,3 @@ "type": "module",

"@thi.ng/strings": "^3.7.31",
"@thi.ng/wasm-api": "^1.4.69"
"@thi.ng/wasm-api": "^1.5.0"
},

@@ -125,3 +125,3 @@ "devDependencies": {

},
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
"gitHead": "4e2bf6b12e35192e678b525fa699429370e357d3\n"
}

@@ -748,3 +748,3 @@ <!-- This file is generated - DO NOT EDIT! -->

Package sizes (brotli'd, pre-treeshake): ESM: 5.96 KB
Package sizes (brotli'd, pre-treeshake): ESM: 5.97 KB

@@ -751,0 +751,0 @@ ## Dependencies

@@ -103,3 +103,3 @@ import { isNumber } from "@thi.ng/checks";

acc.push(
`pub const ${ptr.name} = *const fn (${args}) ${rtype};`,
`pub const ${ptr.name} = *const fn (${args}) callconv(.C) ${rtype};`,
""

@@ -106,0 +106,0 @@ );

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