koffi 2.5.0-beta.2 → 2.5.0

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.
Files changed (26) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_arm64/koffi.node +0 -0
  3. package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_ia32/koffi.node +0 -0
  4. package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_x64/koffi.node +0 -0
  5. package/doc/functions.md +1 -1
  6. package/doc/unions.md +3 -3
  7. package/package.json +2 -2
  8. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_darwin_arm64/koffi.node +0 -0
  9. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_darwin_x64/koffi.node +0 -0
  10. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_freebsd_arm64/koffi.node +0 -0
  11. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_freebsd_ia32/koffi.node +0 -0
  12. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_freebsd_x64/koffi.node +0 -0
  13. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_arm32hf/koffi.node +0 -0
  14. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_arm64/koffi.node +0 -0
  15. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_ia32/koffi.node +0 -0
  16. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_riscv64hf64/koffi.node +0 -0
  17. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_linux_x64/koffi.node +0 -0
  18. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_openbsd_ia32/koffi.node +0 -0
  19. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_openbsd_x64/koffi.node +0 -0
  20. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_arm64/koffi.exp +0 -0
  21. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_arm64/koffi.lib +0 -0
  22. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_ia32/koffi.exp +0 -0
  23. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_ia32/koffi.lib +0 -0
  24. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_x64/koffi.exp +0 -0
  25. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_x64/koffi.lib +0 -0
  26. /package/build/{2.5.0-beta.2 → 2.5.0}/koffi_win32_x64/koffi.pdb +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## Version history
4
4
 
5
+ ### Koffi 2.5
6
+
7
+ #### Koffi 2.5.0
8
+
9
+ **New features:**
10
+
11
+ - Support [union types](unions.md)
12
+
13
+ **Other fixes:**
14
+
15
+ - Fix ABI for single-float aggregate return on i386 BSD systems
16
+ - Don't mess with Node.js signal handling on POSIX systems
17
+
5
18
  ### Koffi 2.4
6
19
 
7
20
  #### Koffi 2.4.2
package/doc/functions.md CHANGED
@@ -9,7 +9,7 @@ const koffi = require('koffi');
9
9
  const lib = koffi.load('/path/to/shared/library'); // File extension depends on platforms: .so, .dll, .dylib, etc.
10
10
  ````
11
11
 
12
- This library will be automatically unloaded once all references to it (including all the functions that use it, as described below).
12
+ This library will be automatically unloaded once all references to it are gone (including all the functions that use it, as described below).
13
13
 
14
14
  Starting with *Koffi 2.3.20*, you can explicitly unload a library by calling `lib.unload()`. Any attempt to find or call a function from this library after unloading it will crash.
15
15
 
package/doc/unions.md CHANGED
@@ -104,15 +104,15 @@ const INPUT = koffi.struct('INPUT', {
104
104
  })
105
105
  });
106
106
 
107
- const SendInput = user32.func('unsigned int __stdcall SendInput(unsigned int cInputs, INPUT *pInputs, int cbSize');
107
+ const SendInput = user32.func('unsigned int __stdcall SendInput(unsigned int cInputs, INPUT *pInputs, int cbSize)');
108
108
 
109
109
  // Show/hide desktop with Win+D shortcut
110
110
 
111
111
  let events = [
112
- make_keyboard_event(VK_WIN, true),
112
+ make_keyboard_event(VK_LWIN, true),
113
113
  make_keyboard_event(VK_D, true),
114
114
  make_keyboard_event(VK_D, false),
115
- make_keyboard_event(VK_WIN, false)
115
+ make_keyboard_event(VK_LWIN, false)
116
116
  ];
117
117
 
118
118
  SendInput(events.length, events, koffi.sizeof(INPUT));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koffi",
3
- "version": "2.5.0-beta.2",
4
- "stable": "2.4.2",
3
+ "version": "2.5.0",
4
+ "stable": "2.5.0",
5
5
  "description": "Fast and simple C FFI (foreign function interface) for Node.js",
6
6
  "keywords": [
7
7
  "foreign",