jiren 3.4.0 → 3.6.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.
- package/README.md +10 -27
- package/components/client-node-fetch.ts +953 -0
- package/components/client-node.ts +9 -0
- package/components/native-node.ts +126 -138
- package/components/native.ts +3 -44
- package/dist/components/client-node-fetch.d.ts +56 -0
- package/dist/components/client-node-fetch.d.ts.map +1 -0
- package/dist/components/client-node-fetch.js +652 -0
- package/dist/components/client-node-fetch.js.map +1 -0
- package/dist/components/client-node.d.ts +3 -0
- package/dist/components/client-node.d.ts.map +1 -0
- package/dist/components/client-node.js +6 -0
- package/dist/components/client-node.js.map +1 -0
- package/dist/components/native-node.d.ts +155 -153
- package/dist/components/native-node.d.ts.map +1 -1
- package/dist/components/native-node.js +119 -126
- package/dist/components/native-node.js.map +1 -1
- package/dist/index-node-native.d.ts +3 -0
- package/dist/index-node-native.d.ts.map +1 -0
- package/dist/index-node-native.js +5 -0
- package/dist/index-node-native.js.map +1 -0
- package/dist/index-node.d.ts +1 -1
- package/dist/index-node.d.ts.map +1 -1
- package/dist/index-node.js +2 -2
- package/dist/index-node.js.map +1 -1
- package/index-node-native.ts +5 -0
- package/index-node.ts +2 -2
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -57,31 +57,6 @@ Jiren outperforms top clients in every metric—throughput, latency, and stabili
|
|
|
57
57
|
bun add jiren
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
### Windows native deps (curl-impersonate)
|
|
61
|
-
|
|
62
|
-
To keep Windows performance on par with macOS, provide curl-impersonate binaries:
|
|
63
|
-
|
|
64
|
-
```bash
|
|
65
|
-
# Option A: build from source in MSYS2 (MINGW64 shell)
|
|
66
|
-
JIREN_IMPERSONATE_BUILD=1 bun run install-deps
|
|
67
|
-
|
|
68
|
-
# Option B: download a prebuilt zip or tar.gz containing curl-impersonate.dll + import lib
|
|
69
|
-
JIREN_IMPERSONATE_URL=https://example.com/curl-impersonate-win64.zip bun run install-deps
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
MSYS2 packages usually required: `git`, `mingw-w64-x86_64-toolchain`, `mingw-w64-x86_64-cmake`, `mingw-w64-x86_64-ninja`.
|
|
73
|
-
|
|
74
|
-
Expected files after install:
|
|
75
|
-
|
|
76
|
-
- `jiren/lib/windows/curl-impersonate.dll`
|
|
77
|
-
- `jiren/lib/windows/curl-impersonate.lib` (or `jiren/lib/windows/libcurl-impersonate.dll.a`)
|
|
78
|
-
|
|
79
|
-
Then build with impersonation enabled:
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
zig build -Dimpersonate=true
|
|
83
|
-
```
|
|
84
|
-
|
|
85
60
|
---
|
|
86
61
|
|
|
87
62
|
## 🚀 Quick Start
|
|
@@ -763,8 +738,16 @@ export async function GET() {
|
|
|
763
738
|
|
|
764
739
|
- **Runtime**:
|
|
765
740
|
- **Bun** v1.0.0+
|
|
766
|
-
- **Node.js** v18.0.0+ (macOS/Linux)
|
|
767
|
-
- **OS**:
|
|
741
|
+
- **Node.js** v18.0.0+ (macOS/Linux/Windows)
|
|
742
|
+
- **OS**:
|
|
743
|
+
- Native mode: macOS (ARM64/x64) or Linux (x64)
|
|
744
|
+
- Compatibility mode: Windows (fetch fallback, reduced performance/features)
|
|
745
|
+
- **Optional**: set `JIREN_FORCE_FETCH_FALLBACK=1` to force compatibility mode.
|
|
746
|
+
|
|
747
|
+
### Node Entrypoints
|
|
748
|
+
|
|
749
|
+
- `import { JirenClient } from "jiren"`: compatibility mode (safe default)
|
|
750
|
+
- `import { JirenClient } from "jiren/native"`: native mode (max performance, supported CPUs only)
|
|
768
751
|
|
|
769
752
|
---
|
|
770
753
|
|