koffi 2.9.0 → 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 CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  ### Koffi 2.9
6
6
 
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
+
7
13
  #### Koffi 2.9.0 (2024-07-22)
8
14
 
9
15
  - Add support for char32_t and wchar_t (wide) strings
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.0",
367
- stable: "2.9.0",
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.0",
367
- stable: "2.9.0",
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koffi",
3
- "version": "2.9.0",
4
- "stable": "2.9.0",
3
+ "version": "2.9.1",
4
+ "stable": "2.9.1",
5
5
  "description": "Fast and simple C FFI (foreign function interface) for Node.js",
6
6
  "keywords": [
7
7
  "foreign",