koffi 2.9.0-beta.2 → 2.9.1
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/CHANGELOG.md +7 -1
- package/build/koffi/darwin_arm64/koffi.node +0 -0
- package/build/koffi/darwin_x64/koffi.node +0 -0
- package/build/koffi/freebsd_arm64/koffi.node +0 -0
- package/build/koffi/{freebsd_i386 → freebsd_ia32}/koffi.node +0 -0
- package/build/koffi/freebsd_x64/koffi.node +0 -0
- package/build/koffi/linux_arm32/koffi.node +0 -0
- package/build/koffi/linux_arm64/koffi.node +0 -0
- package/build/koffi/{linux_i386 → linux_ia32}/koffi.node +0 -0
- package/build/koffi/linux_riscv64/koffi.node +0 -0
- package/build/koffi/linux_x64/koffi.node +0 -0
- package/build/koffi/musl_x64/koffi.node +0 -0
- package/build/koffi/{openbsd_i386 → openbsd_ia32}/koffi.node +0 -0
- package/build/koffi/openbsd_x64/koffi.node +0 -0
- package/build/koffi/win32_arm64/koffi.node +0 -0
- package/build/koffi/{win32_i386 → win32_ia32}/koffi.node +0 -0
- package/build/koffi/win32_x64/koffi.node +0 -0
- package/index.d.ts +2 -1
- package/index.js +2 -2
- package/indirect.js +2 -2
- package/package.json +2 -2
- /package/build/koffi/{win32_i386 → win32_ia32}/koffi.exp +0 -0
- /package/build/koffi/{win32_i386 → win32_ia32}/koffi.lib +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
### Koffi 2.9
|
|
6
6
|
|
|
7
|
-
#### Koffi 2.9.
|
|
7
|
+
#### Koffi 2.9.1 (2024-09-23)
|
|
8
|
+
|
|
9
|
+
- Fix x86 32-bit support regression in 2.9.0
|
|
10
|
+
- Add missing TS definition for `koffi.alloc()`
|
|
11
|
+
- Support `koffi.load(null)` in TS definition file
|
|
12
|
+
|
|
13
|
+
#### Koffi 2.9.0 (2024-07-22)
|
|
8
14
|
|
|
9
15
|
- Add support for char32_t and wchar_t (wide) strings
|
|
10
16
|
- Include Linux/musl x64 prebuild (based on Alpine)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
// OTHER DEALINGS IN THE SOFTWARE.
|
|
21
21
|
|
|
22
22
|
declare module 'koffi' {
|
|
23
|
-
export function load(path: string): IKoffiLib;
|
|
23
|
+
export function load(path: string | null): IKoffiLib;
|
|
24
24
|
|
|
25
25
|
interface IKoffiCType { __brand: 'IKoffiCType' }
|
|
26
26
|
interface IKoffiPointerCast { __brand: 'IKoffiPointerCast' }
|
|
@@ -150,6 +150,7 @@ declare module 'koffi' {
|
|
|
150
150
|
export function config(cfg: Record<string, unknown>): Record<string, unknown>;
|
|
151
151
|
export function stats(): Record<string, unknown>;
|
|
152
152
|
|
|
153
|
+
export function alloc(type: TypeSpec, length: number): any;
|
|
153
154
|
export function free(value: any): void;
|
|
154
155
|
|
|
155
156
|
export function errno(): number;
|
package/index.js
CHANGED
|
@@ -363,8 +363,8 @@ var require_package = __commonJS({
|
|
|
363
363
|
"../../bin/Koffi/package/src/koffi/package.json"(exports2, module2) {
|
|
364
364
|
module2.exports = {
|
|
365
365
|
name: "koffi",
|
|
366
|
-
version: "2.9.
|
|
367
|
-
stable: "2.
|
|
366
|
+
version: "2.9.1",
|
|
367
|
+
stable: "2.9.1",
|
|
368
368
|
description: "Fast and simple C FFI (foreign function interface) for Node.js",
|
|
369
369
|
keywords: [
|
|
370
370
|
"foreign",
|
package/indirect.js
CHANGED
|
@@ -363,8 +363,8 @@ var require_package = __commonJS({
|
|
|
363
363
|
"../../bin/Koffi/package/src/koffi/package.json"(exports2, module2) {
|
|
364
364
|
module2.exports = {
|
|
365
365
|
name: "koffi",
|
|
366
|
-
version: "2.9.
|
|
367
|
-
stable: "2.
|
|
366
|
+
version: "2.9.1",
|
|
367
|
+
stable: "2.9.1",
|
|
368
368
|
description: "Fast and simple C FFI (foreign function interface) for Node.js",
|
|
369
369
|
keywords: [
|
|
370
370
|
"foreign",
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|