koffi-cream 2.14.0 → 2.14.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.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +14 -14
package/README.md CHANGED
@@ -14,6 +14,9 @@ const some_func = lib.func('int some_func(int a, int b)')
14
14
  > [!IMPORTANT]
15
15
  > **This package is neither a fork nor a patch. It *is* the original Koffi**, only packaged differently to avoid downloading a megalithic[^1] package bloated with files unnecessary to the average user[^2].
16
16
 
17
+ [^1]: As of 2.14.0, Koffi weights 16.9 MB compressed and 86 MB uncompressed.
18
+ [^2]: Koffi's package includes 18 natives binaries (of which 17 are not compatible with your platform), the build tools and the full source code.
19
+
17
20
 
18
21
  ## The why and the how
19
22
  The discussion at https://github.com/Koromix/koffi/issues/201 explains why I decided to create `koffi-cream`.
@@ -24,14 +27,11 @@ This way, when you install `koffi-cream`, your package manager will only downloa
24
27
  - `koffi-cream` (this package): 5.1 kB compressed / 19.8 kB uncompressed
25
28
  - `@septh/koffi-win32-x64`: 536.2 kB compressed / 2.4 MB uncompressed
26
29
 
27
- **That's 97.2% off compared to the original Koffi package!**
30
+ **That's 74.2% off compared to the original Koffi package!**
28
31
 
29
32
  > [!NOTE]
30
33
  > The `os` and `cpu` are standard properties, supported by all package managers. But the `libc` property, used to distinguish Linux distros between gnu and musl, is newer and only supported by `npm 10.4.0` and later, `pnpm 7.1.0` and later, and `yarn 3.2.0` and later.
31
34
 
32
- [^1]: As of 2.14.0, Koffi weights 16.9 MB compressed and 86 MB uncompressed.
33
- [^2]: Koffi's package includes 18 natives binaries (of which 17 are not compatible with your platform), the build tools and the full source code.
34
-
35
35
 
36
36
  ## Available packages
37
37
  `koffi-cream` only offers a subset of Koffi's 18 native builds:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koffi-cream",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "description": "A lighter packaging for Koffi, the fast and simple C FFI (foreign function interface) for Node.js",
5
5
  "author": {
6
6
  "name": "Stephan 'Septh' Schreiber",
@@ -41,18 +41,18 @@
41
41
  "main": "index.js",
42
42
  "types": "index.d.ts",
43
43
  "optionalDependencies": {
44
- "@septh/koffi-darwin-arm64": "2.14.0",
45
- "@septh/koffi-darwin-x64": "2.14.0",
46
- "@septh/koffi-freebsd-arm64": "2.14.0",
47
- "@septh/koffi-freebsd-x64": "2.14.0",
48
- "@septh/koffi-linux-arm64-glibc": "2.14.0",
49
- "@septh/koffi-linux-loong64": "2.14.0",
50
- "@septh/koffi-linux-riscv64": "2.14.0",
51
- "@septh/koffi-linux-x64-glibc": "2.14.0",
52
- "@septh/koffi-linux-arm64-musl": "2.14.0",
53
- "@septh/koffi-linux-x64-musl": "2.14.0",
54
- "@septh/koffi-openbsd-x64": "2.14.0",
55
- "@septh/koffi-win32-arm64": "2.14.0",
56
- "@septh/koffi-win32-x64": "2.14.0"
44
+ "@septh/koffi-darwin-arm64": "2.14.1",
45
+ "@septh/koffi-darwin-x64": "2.14.1",
46
+ "@septh/koffi-freebsd-arm64": "2.14.1",
47
+ "@septh/koffi-freebsd-x64": "2.14.1",
48
+ "@septh/koffi-linux-arm64-glibc": "2.14.1",
49
+ "@septh/koffi-linux-loong64": "2.14.1",
50
+ "@septh/koffi-linux-riscv64": "2.14.1",
51
+ "@septh/koffi-linux-x64-glibc": "2.14.1",
52
+ "@septh/koffi-linux-arm64-musl": "2.14.1",
53
+ "@septh/koffi-linux-x64-musl": "2.14.1",
54
+ "@septh/koffi-openbsd-x64": "2.14.1",
55
+ "@septh/koffi-win32-arm64": "2.14.1",
56
+ "@septh/koffi-win32-x64": "2.14.1"
57
57
  }
58
58
  }