koffi 2.10.0 → 2.10.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
@@ -7,6 +7,11 @@
7
7
 
8
8
  ### Koffi 2.10
9
9
 
10
+ #### Koffi 2.10.1 (2025-01-24)
11
+
12
+ - Fix detection of ARM32 in build script in some cases
13
+ - Fix wrong path for ARM32 prebuild
14
+
10
15
  #### Koffi 2.10.0 (2024-12-22)
11
16
 
12
17
  - Allow [redefinition of opaque types](misc#circular-references) to concrete struct or union
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/doc/assets.ini CHANGED
@@ -11,7 +11,11 @@ Ignore = favicon.png *.js *.css
11
11
 
12
12
  [static/site.min.js]
13
13
  Type = Bundle
14
- Source = static/koffi.js
14
+ Source = flaat/flaat.js
15
+
16
+ [static/highlight.min.js]
17
+ Type = Bundle
18
+ Source = static/highlight.js
15
19
 
16
20
  [static/site.min.css]
17
21
  Type = Bundle
package/doc/pages.ini CHANGED
@@ -15,71 +15,71 @@ Template = templates/page.html
15
15
  Title = Get started | Koffi
16
16
  Menu = Documentation / Get started
17
17
  Description = Install and start using Koffi in your Node.js project
18
- Template = templates/page.html
18
+ Template = templates/code.html
19
19
 
20
20
  [pages/functions.md]
21
21
  Title = Function calls | Koffi
22
22
  Menu = Documentation / Function calls
23
23
  Description = Call native functions
24
- Template = templates/page.html
24
+ Template = templates/code.html
25
25
 
26
26
  [pages/input.md]
27
27
  Title = Input parameters | Koffi
28
28
  Menu = Documentation / Input parameters
29
- Template = templates/page.html
29
+ Template = templates/code.html
30
30
 
31
31
  [pages/pointers.md]
32
32
  Title = Data pointers | Koffi
33
33
  Menu = Documentation / Data pointers
34
- Template = templates/page.html
34
+ Template = templates/code.html
35
35
 
36
36
  [pages/output.md]
37
37
  Title = Output parameters | Koffi
38
38
  Menu = Documentation / Output parameters
39
- Template = templates/page.html
39
+ Template = templates/code.html
40
40
 
41
41
  [pages/unions.md]
42
42
  Title = Union values | Koffi
43
43
  Menu = Documentation / Union values
44
- Template = templates/page.html
44
+ Template = templates/code.html
45
45
 
46
46
  [pages/variables.md]
47
47
  Title = Exported variables | Koffi
48
48
  Menu = Documentation / Exported variables
49
- Template = templates/page.html
49
+ Template = templates/code.html
50
50
 
51
51
  [pages/callbacks.md]
52
52
  Title = Callbacks | Koffi
53
53
  Menu = Documentation / Javascript callbacks
54
- Template = templates/page.html
54
+ Template = templates/code.html
55
55
 
56
56
  [pages/misc.md]
57
57
  Title = Miscellaneous | Koffi
58
58
  Menu = Documentation / Miscellaneous
59
- Template = templates/page.html
59
+ Template = templates/code.html
60
60
 
61
61
  [pages/packaging.md]
62
62
  Title = Packaging | Koffi
63
63
  Menu = Documentation / Bundlers and Koffi
64
- Template = templates/page.html
64
+ Template = templates/code.html
65
65
 
66
66
  [pages/migration.md]
67
67
  Title = Migration | Koffi
68
68
  Menu = Documentation / Migration guide
69
69
  Description = Migration between major Koffi versions
70
- Template = templates/page.html
70
+ Template = templates/code.html
71
71
 
72
72
  [pages/benchmarks.md]
73
73
  Title = Benchmarks | Koffi
74
74
  Menu = Benchmarks
75
75
  Description = Performance of Koffi compared to NAPI and node-ffi
76
- Template = templates/page.html
76
+ Template = templates/code.html
77
77
 
78
78
  [pages/contribute.md]
79
79
  Title = Contribute | Koffi
80
80
  Menu = Contribute
81
81
  Description = How to get, build and test Koffi code
82
- Template = templates/page.html
82
+ Template = templates/code.html
83
83
 
84
84
  [changelog]
85
85
  SourceFile = ../../src/koffi/CHANGELOG.md
@@ -13,7 +13,6 @@
13
13
  // You should have received a copy of the GNU General Public License
14
14
  // along with this program. If not, see <https://www.gnu.org/licenses/>.
15
15
 
16
- import '../flaat/flaat.js';
17
16
  import * as hljs from '../../../vendor/highlight.js/highlight.js';
18
17
 
19
18
  window.addEventListener('load', e => {
Binary file
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" class="nojs">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+
7
+ <title>{{ TITLE }}</title>
8
+ <meta name="author" content="Niels Martignène">
9
+ <meta name="description" content="{{ DESCRIPTION }}">
10
+ <link rel="icon" href="{{ ASSET favicon.png }}">
11
+
12
+ <meta name="theme-color" content="#6aa051">
13
+ <link rel="stylesheet" href="{{ ASSET static/site.min.css }}">
14
+
15
+ <script type="text/javascript" src="{{ ASSET static/site.min.js }}" async></script>
16
+ <script type="text/javascript" src="{{ ASSET static/highlight.min.js }}" async></script>
17
+ </head>
18
+
19
+ <body>
20
+ <div id="deploy"></div>
21
+
22
+ <nav id="top">
23
+ <menu>
24
+ <a id="logo" href="/"><img src="{{ ASSET static/logo.webp }}" alt="Logo Koffi" /></a>
25
+
26
+ {{ LINKS }}
27
+
28
+ <div style="flex: 1;"></div>
29
+
30
+ <li><a href="https://www.npmjs.com/package/koffi" style="border-bottom-color: transparent; margin-top: 8px;"><img src="https://img.shields.io/npm/v/koffi?color=brightgreen&cacheSeconds=7200" alt="NPM"/></a></li>
31
+ <li><a href="https://github.com/Koromix/koffi" style="border-bottom-color: transparent; margin-top: 8px;"><img src="https://img.shields.io/badge/GitHub-Koffi-ff6600" alt="GitHub"/></a></li>
32
+ </menu>
33
+ </nav>
34
+
35
+ {{ TOC }}
36
+
37
+ <main>
38
+ {{ CONTENT }}
39
+ </main>
40
+
41
+ <footer>
42
+ <div>Koffi © 2024</div>
43
+ <div style="font-size: 0.8em;">
44
+ Niels Martignène (<a href="https://github.com/Koromix/" target="_blank">Koromix</a>)<br>
45
+ <a href="mailto:niels.martignene@protonmail.com" style="font-weight: bold; color: inherit;">niels.martignene@protonmail.com</a>
46
+ </div>
47
+ </footer>
48
+ </body>
49
+ </html>
@@ -26,7 +26,7 @@
26
26
 
27
27
  <div style="flex: 1;"></div>
28
28
 
29
- <li><a href="https://www.npmjs.com/package/koffi" style="border-bottom-color: transparent; margin-top: 8px;"><img src="https://img.shields.io/badge/NPM-2.9.2-brightgreen" alt="NPM"/></a></li>
29
+ <li><a href="https://www.npmjs.com/package/koffi" style="border-bottom-color: transparent; margin-top: 8px;"><img src="https://img.shields.io/npm/v/koffi?color=brightgreen&cacheSeconds=7200" alt="NPM"/></a></li>
30
30
  <li><a href="https://github.com/Koromix/koffi" style="border-bottom-color: transparent; margin-top: 8px;"><img src="https://img.shields.io/badge/GitHub-Koffi-ff6600" alt="GitHub"/></a></li>
31
31
  </menu>
32
32
  </nav>
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.10.0",
367
- stable: "2.10.0",
366
+ version: "2.10.1",
367
+ stable: "2.10.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.10.0",
367
- stable: "2.10.0",
366
+ version: "2.10.1",
367
+ stable: "2.10.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.10.0",
4
- "stable": "2.10.0",
3
+ "version": "2.10.1",
4
+ "stable": "2.10.1",
5
5
  "description": "Fast and simple C FFI (foreign function interface) for Node.js",
6
6
  "keywords": [
7
7
  "foreign",
@@ -118,7 +118,7 @@ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
118
118
  endif()
119
119
  endif()
120
120
  elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
121
- if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
121
+ if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch|arm")
122
122
  list(APPEND KOFFI_SRC src/abi_arm32.cc src/abi_arm32_asm.S)
123
123
  else()
124
124
  if(WIN32)