@ifc-lite/cache 3.8.0 → 3.8.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/README.md +4 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -96,6 +96,10 @@ const rawKey = xxhash64(buffer); // same hash as a bigint
|
|
|
96
96
|
|
|
97
97
|
The cache keys models by the xxHash64 of the source IFC, and `reader.validate(cacheBuffer, sourceBuffer)` uses the same hash to detect when the source has changed.
|
|
98
98
|
|
|
99
|
+
## Building a cache outside the browser
|
|
100
|
+
|
|
101
|
+
`ifc-build-cache` is a native CLI that writes this format from an IFC file without a browser or the WASM heap, so a server, a build step or a function can prepare the cache that `BinaryCacheReader` then reads. It installs through cargo from the repository. See the [Native Cache Builder guide](https://ifclite.dev/docs/guide/native-cache/) for installation, which format version a build writes, and what a native cache leaves out.
|
|
102
|
+
|
|
99
103
|
## Format versioning
|
|
100
104
|
|
|
101
105
|
The byte-level layout, the reader's compatibility rules and the conformance criterion for another writer are specified in [`SPEC.md`](./SPEC.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ifc-lite/cache",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "Binary cache format for IFC-Lite - fast model loading",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@ifc-lite/data": "^7.0.0",
|
|
22
|
-
"@ifc-lite/geometry": "^8.
|
|
22
|
+
"@ifc-lite/geometry": "^8.4.0",
|
|
23
23
|
"@ifc-lite/load-trace": "^0.4.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@mergifyio/vitest": "^2026.
|
|
26
|
+
"@mergifyio/vitest": "^2026.11.8",
|
|
27
27
|
"typescript": "^6.0.3",
|
|
28
|
-
"vitest": "^5.0
|
|
29
|
-
"@ifc-lite/parser": "^
|
|
28
|
+
"vitest": "^5.1.0",
|
|
29
|
+
"@ifc-lite/parser": "^11.0.1"
|
|
30
30
|
},
|
|
31
31
|
"license": "MPL-2.0",
|
|
32
32
|
"author": "Louis True",
|