@alizarin/napi 2.0.0-alpha.108 → 2.0.0-alpha.110

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/Cargo.toml CHANGED
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
11
11
  [dependencies]
12
12
  alizarin-core = { path = "../alizarin-core", features = ["multi-threaded"] }
13
13
  alizarin-clm-core = { path = "../alizarin-clm-core" }
14
- alizarin-filelist-core = { path = "../alizarin-filelist-core" }
14
+ alizarin-filelist-core = { path = "../../ext/filelist/core" }
15
15
  napi = { version = "2", features = ["napi6", "serde-json"] }
16
16
  napi-derive = "2"
17
17
  serde = { version = "1.0", features = ["derive"] }
Binary file
Binary file
Binary file
Binary file
package/index.d.ts CHANGED
@@ -17,7 +17,7 @@ export declare function buildGraphFromCsvs(graphCsv: string, nodesCsv: string, c
17
17
  * Returns the resources wrapped in the `{ business_data: { resources: [...] } }`
18
18
  * format expected by PrebuildLoader.
19
19
  */
20
- export declare function buildBusinessDataFromCsv(csvData: string, graphJson: string, collectionsJson: string, defaultLanguage?: string | undefined | null, strictConcepts?: boolean | undefined | null): any
20
+ export declare function buildBusinessDataFromCsv(csvData: string, graphJson: string, collectionsJson: string, defaultLanguage?: string | undefined | null, strictConcepts?: boolean | undefined | null, uuidNamespace?: string | undefined | null): any
21
21
  /**
22
22
  * Coerce a value using the registered extension handler for the given datatype.
23
23
  *
@@ -374,6 +374,8 @@ export declare class NapiStaticGraph {
374
374
  /** Parse a graph from a JSON string (the file content, not a file path). */
375
375
  static fromJsonString(jsonStr: string): NapiStaticGraph
376
376
  get graphId(): string
377
+ /** Alias matching the WASM `graphid` property for backend consistency. */
378
+ get graphid(): string
377
379
  get name(): any
378
380
  /** Register this graph in the global registry so NapiResourceInstanceWrapper can use it. */
379
381
  register(): void
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alizarin/napi",
3
- "version": "2.0.0-alpha.108",
3
+ "version": "2.0.0-alpha.110",
4
4
  "license": "AGPL-3.0-or-later",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,8 +30,8 @@
30
30
  "@napi-rs/cli": "^2.18.0"
31
31
  },
32
32
  "optionalDependencies": {
33
- "@alizarin/napi-win32-x64-msvc": "2.0.0-alpha.108",
34
- "@alizarin/napi-darwin-x64": "2.0.0-alpha.108",
35
- "@alizarin/napi-linux-x64-gnu": "2.0.0-alpha.108"
33
+ "@alizarin/napi-win32-x64-msvc": "2.0.0-alpha.110",
34
+ "@alizarin/napi-darwin-x64": "2.0.0-alpha.110",
35
+ "@alizarin/napi-linux-x64-gnu": "2.0.0-alpha.110"
36
36
  }
37
37
  }
package/src/lib.rs CHANGED
@@ -527,6 +527,7 @@ pub fn build_business_data_from_csv(
527
527
  collections_json: String,
528
528
  default_language: Option<String>,
529
529
  strict_concepts: Option<bool>,
530
+ uuid_namespace: Option<String>,
530
531
  ) -> Result<serde_json::Value> {
531
532
  let graph: StaticGraph = serde_json::from_str(&graph_json)
532
533
  .map_err(|e| napi::Error::from_reason(format!("Invalid graph JSON: {e}")))?;
@@ -536,6 +537,7 @@ pub fn build_business_data_from_csv(
536
537
  let options = alizarin_core::csv_business_data_loader::BusinessDataCsvOptions {
537
538
  default_language: default_language.unwrap_or_else(|| "en".to_string()),
538
539
  strict_concepts: strict_concepts.unwrap_or(true),
540
+ uuid_namespace,
539
541
  };
540
542
 
541
543
  let resources = build_resources_from_business_csv(&csv_data, &graph, &collections, options)