@vortex-rdf/vortex-rdf-store 0.1.0 → 0.2.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 +1 -0
- package/entry/browser.d.ts +0 -1
- package/entry/browser.js +2 -2
- package/entry/node.d.ts +0 -1
- package/entry/node.js +2 -2
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
# Vortex-RDF for JavaScript
|
|
2
|
+
[](https://www.npmjs.com/package/@vortex-rdf/vortex-rdf-store)
|
|
2
3
|
|
|
3
4
|
JavaScript bindings of [`vortex-rdf-core`](https://crates.io/crates/vortex-rdf-core) compiled via WebAssembly.
|
|
4
5
|
|
package/entry/browser.d.ts
CHANGED
package/entry/browser.js
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
// wasm-bindgen `web`-target path, understood natively by modern bundlers
|
|
4
4
|
// (Vite, webpack 5+, Rollup) via `new URL(..., import.meta.url)` and by a
|
|
5
5
|
// bare `<script type="module">` served from a CDN.
|
|
6
|
-
import init from '../pkg/web/vortex_rdf.js';
|
|
6
|
+
import init, { init_panic_hook } from '../pkg/web/vortex_rdf.js';
|
|
7
7
|
|
|
8
8
|
await init();
|
|
9
|
+
init_panic_hook();
|
|
9
10
|
|
|
10
11
|
export {
|
|
11
12
|
VortexRdfStore,
|
|
12
|
-
init_panic_hook,
|
|
13
13
|
rdf_to_vortex,
|
|
14
14
|
vortex_to_rdf,
|
|
15
15
|
nquads_to_vortex,
|
package/entry/node.d.ts
CHANGED
package/entry/node.js
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
// here even though it works for a real browser or bundler.
|
|
5
5
|
import { readFile } from 'node:fs/promises';
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
|
-
import init from '../pkg/web/vortex_rdf.js';
|
|
7
|
+
import init, { init_panic_hook } from '../pkg/web/vortex_rdf.js';
|
|
8
8
|
|
|
9
9
|
const wasmPath = fileURLToPath(new URL('../pkg/web/vortex_rdf_bg.wasm', import.meta.url));
|
|
10
10
|
await init({ module_or_path: await readFile(wasmPath) });
|
|
11
|
+
init_panic_hook();
|
|
11
12
|
|
|
12
13
|
export {
|
|
13
14
|
VortexRdfStore,
|
|
14
|
-
init_panic_hook,
|
|
15
15
|
rdf_to_vortex,
|
|
16
16
|
vortex_to_rdf,
|
|
17
17
|
nquads_to_vortex,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vortex-rdf/vortex-rdf-store",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "High-performance, zero-copy columnar RDF serialization format",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,7 +32,9 @@
|
|
|
32
32
|
"build:clean-manifest": "node -e \"require('fs').rmSync('pkg/web/package.json',{force:true})\"",
|
|
33
33
|
"build": "npm run build:wasm && npm run build:clean-manifest",
|
|
34
34
|
"prepublishOnly": "npm run build",
|
|
35
|
-
"test": "vitest run"
|
|
35
|
+
"test": "vitest run",
|
|
36
|
+
"bench": "tsx --expose-gc --max-old-space-size=8192 bench/compare.bench.ts",
|
|
37
|
+
"bench:build": "npm run build && npm run bench"
|
|
36
38
|
},
|
|
37
39
|
"keywords": [
|
|
38
40
|
"rdf",
|
|
@@ -45,8 +47,13 @@
|
|
|
45
47
|
"author": "Julián Rojas",
|
|
46
48
|
"license": "MIT",
|
|
47
49
|
"devDependencies": {
|
|
50
|
+
"@codspeed/tinybench-plugin": "^5.7.1",
|
|
48
51
|
"@types/node": "^26.1.1",
|
|
52
|
+
"oxigraph": "^0.5.9",
|
|
49
53
|
"rdf-data-factory": "^2.0.2",
|
|
54
|
+
"rdf-stores": "^2.2.0",
|
|
55
|
+
"tinybench": "^6.1.2",
|
|
56
|
+
"tsx": "^4.23.1",
|
|
50
57
|
"typescript": "^7.0.2",
|
|
51
58
|
"vitest": "^4.1.10",
|
|
52
59
|
"wasm-pack": "^0.15.0"
|