jiren 3.5.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 CHANGED
@@ -744,6 +744,11 @@ export async function GET() {
744
744
  - Compatibility mode: Windows (fetch fallback, reduced performance/features)
745
745
  - **Optional**: set `JIREN_FORCE_FETCH_FALLBACK=1` to force compatibility mode.
746
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)
751
+
747
752
  ---
748
753
 
749
754
  ## 📄 License
@@ -0,0 +1,3 @@
1
+ export { JirenClient } from "./components/client-node-native.js";
2
+ export * from "./components/types.js";
3
+ //# sourceMappingURL=index-node-native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-node-native.d.ts","sourceRoot":"","sources":["../index-node-native.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAGjE,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Native-only Node entrypoint
2
+ export { JirenClient } from "./components/client-node-native.js";
3
+ // Types
4
+ export * from "./components/types.js";
5
+ //# sourceMappingURL=index-node-native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-node-native.js","sourceRoot":"","sources":["../index-node-native.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEjE,QAAQ;AACR,cAAc,uBAAuB,CAAC"}
@@ -1,3 +1,3 @@
1
- export { JirenClient } from "./components/client-node.js";
1
+ export { JirenClient } from "./components/client-node-fetch.js";
2
2
  export * from "./components/types.js";
3
3
  //# sourceMappingURL=index-node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../index-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAI1D,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index-node.d.ts","sourceRoot":"","sources":["../index-node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAIhE,cAAc,uBAAuB,CAAC"}
@@ -1,5 +1,5 @@
1
- // Main client (Node.js native + fallback selector)
2
- export { JirenClient } from "./components/client-node.js";
1
+ // Main client (Node.js compatibility path, no native crash on unsupported CPUs)
2
+ export { JirenClient } from "./components/client-node-fetch.js";
3
3
  // Types
4
4
  export * from "./components/types.js";
5
5
  //# sourceMappingURL=index-node.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-node.js","sourceRoot":"","sources":["../index-node.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,QAAQ;AAER,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index-node.js","sourceRoot":"","sources":["../index-node.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,QAAQ;AAER,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,5 @@
1
+ // Native-only Node entrypoint
2
+ export { JirenClient } from "./components/client-node-native.js";
3
+
4
+ // Types
5
+ export * from "./components/types.js";
package/index-node.ts CHANGED
@@ -1,5 +1,5 @@
1
- // Main client (Node.js native + fallback selector)
2
- export { JirenClient } from "./components/client-node.js";
1
+ // Main client (Node.js compatibility path, no native crash on unsupported CPUs)
2
+ export { JirenClient } from "./components/client-node-fetch.js";
3
3
 
4
4
  // Types
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jiren",
3
- "version": "3.5.0",
3
+ "version": "3.6.0",
4
4
  "author": "",
5
5
  "main": "index.ts",
6
6
  "module": "index.ts",
@@ -17,6 +17,7 @@
17
17
  "files": [
18
18
  "index.ts",
19
19
  "index-node.ts",
20
+ "index-node-native.ts",
20
21
  "types",
21
22
  "lib",
22
23
  "components",
@@ -55,6 +56,10 @@
55
56
  "import": "./dist/index-node.js",
56
57
  "types": "./dist/index-node.d.ts"
57
58
  },
59
+ "./native": {
60
+ "import": "./dist/index-node-native.js",
61
+ "types": "./dist/index-node-native.d.ts"
62
+ },
58
63
  "./package.json": "./package.json"
59
64
  },
60
65
  "dependencies": {