@packvium/engine 0.1.2 → 1.0.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 +9 -1
- package/SECURITY.md +2 -2
- package/contact-graph.js +143 -29
- package/examples/shapes.mjs +155 -0
- package/fallback.js +766 -20
- package/index.js +1 -1
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -29,7 +29,7 @@ export function rebalanceWeight(request,result,{maxMoves=64}={}){
|
|
|
29
29
|
}
|
|
30
30
|
return rebalanceFallback(request,result,{maxMoves});
|
|
31
31
|
}
|
|
32
|
-
export const version=()=>native?.version?.()??'0.
|
|
32
|
+
export const version=()=>native?.version?.()??'1.0.0-js-fallback';
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* The exported commercial and control-plane API: a quote, a policy decision and catalog
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name":"@packvium/engine",
|
|
3
|
-
"version":"0.
|
|
3
|
+
"version":"1.0.0",
|
|
4
4
|
"description":"Native-first 3D cartonization with deterministic JS fallback",
|
|
5
5
|
"keywords":["3d-bin-packing","bin-packing","cartonization","packing","container-loading","logistics","shipping","deterministic"],
|
|
6
|
-
"homepage":"https://
|
|
6
|
+
"homepage":"https://packvium.com",
|
|
7
7
|
"repository":{"type":"git","url":"git+https://github.com/toxakara/packvium-node.git"},
|
|
8
8
|
"bugs":{"url":"https://github.com/toxakara/packvium-node/issues"},
|
|
9
9
|
"type":"module",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"exports":{".":{"types":"./index.d.ts","import":"./index.js"}},
|
|
13
13
|
"files":["index.js","fallback.js","contact-graph.js","policy.js","commerce.js","commerce-model.js","examples","index.d.ts","README.md","SECURITY.md"],
|
|
14
14
|
"engines":{"node":">=16"},
|
|
15
|
-
"optionalDependencies":{"@packvium/native":"0.
|
|
15
|
+
"optionalDependencies":{"@packvium/native":"1.0.0"},
|
|
16
16
|
"scripts":{
|
|
17
|
-
"test":"node
|
|
18
|
-
"test:legacy":"node test/legacy-
|
|
17
|
+
"test":"node test/run-tests.mjs",
|
|
18
|
+
"test:legacy":"node test/legacy-smoke.mjs"
|
|
19
19
|
},
|
|
20
20
|
"license":"MIT"
|
|
21
21
|
}
|