@vortex-rdf/vortex-rdf-store 0.2.0 → 0.3.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
@@ -165,14 +165,14 @@ The default `{ builder: 'Unsorted', layout: 'Dictionary' }` already gives compac
165
165
  For one-shot conversions without holding a store:
166
166
 
167
167
  ```javascript
168
- import { rdf_to_vortex, vortex_to_rdf, nquads_to_vortex, vortex_to_nquads } from '@vortex-rdf/vortex-rdf-store';
168
+ import { rdf_to_vortex, vortex_to_rdf } from '@vortex-rdf/vortex-rdf-store';
169
169
 
170
170
  const bytes = await rdf_to_vortex(turtleText, 'turtle', { builder: 'Sorted' });
171
171
  const text = await vortex_to_rdf(bytes, 'nquads');
172
172
 
173
- // N-Quads shorthands
174
- const bytes2 = await nquads_to_vortex(nquadsText);
175
- const text2 = await vortex_to_nquads(bytes2);
173
+ // N-Quads is just another format
174
+ const bytes2 = await rdf_to_vortex(nquadsText, 'nquads');
175
+ const text2 = await vortex_to_rdf(bytes2, 'nquads');
176
176
  ```
177
177
 
178
178
  ### TypeScript support
@@ -4,8 +4,6 @@ export {
4
4
  VortexRdfStore,
5
5
  rdf_to_vortex,
6
6
  vortex_to_rdf,
7
- nquads_to_vortex,
8
- vortex_to_nquads,
9
7
  } from '../pkg/web/vortex_rdf.js';
10
8
  export type {
11
9
  BuildOptions,
package/entry/browser.js CHANGED
@@ -12,6 +12,4 @@ export {
12
12
  VortexRdfStore,
13
13
  rdf_to_vortex,
14
14
  vortex_to_rdf,
15
- nquads_to_vortex,
16
- vortex_to_nquads,
17
15
  } from '../pkg/web/vortex_rdf.js';
package/entry/node.d.ts CHANGED
@@ -5,8 +5,6 @@ export {
5
5
  VortexRdfStore,
6
6
  rdf_to_vortex,
7
7
  vortex_to_rdf,
8
- nquads_to_vortex,
9
- vortex_to_nquads,
10
8
  } from '../pkg/web/vortex_rdf.js';
11
9
  export type {
12
10
  BuildOptions,
package/entry/node.js CHANGED
@@ -14,6 +14,4 @@ export {
14
14
  VortexRdfStore,
15
15
  rdf_to_vortex,
16
16
  vortex_to_rdf,
17
- nquads_to_vortex,
18
- vortex_to_nquads,
19
17
  } from '../pkg/web/vortex_rdf.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vortex-rdf/vortex-rdf-store",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "High-performance, zero-copy columnar RDF serialization format",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -29,12 +29,15 @@
29
29
  ],
30
30
  "scripts": {
31
31
  "build:wasm": "wasm-pack build --target web --out-dir pkg/web --no-pack",
32
+ "build:wasm:fast": "wasm-pack build --target web --out-dir pkg/web --no-pack --no-opt",
32
33
  "build:clean-manifest": "node -e \"require('fs').rmSync('pkg/web/package.json',{force:true})\"",
33
34
  "build": "npm run build:wasm && npm run build:clean-manifest",
35
+ "build:fast": "npm run build:wasm:fast && npm run build:clean-manifest",
34
36
  "prepublishOnly": "npm run build",
35
37
  "test": "vitest run",
36
38
  "bench": "tsx --expose-gc --max-old-space-size=8192 bench/compare.bench.ts",
37
- "bench:build": "npm run build && npm run bench"
39
+ "bench:build": "npm run build && npm run bench",
40
+ "bench:codspeed": "tsx --expose-gc bench/codspeed.bench.ts"
38
41
  },
39
42
  "keywords": [
40
43
  "rdf",