@mapequation/infomap 2.0.2 → 2.1.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/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [2.1.0](https://github.com/mapequation/infomap/compare/v2.0.2...v2.1.0) (2022-02-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * **js:** Add progress event callback ([0fab95b](https://github.com/mapequation/infomap/commit/0fab95bd59717aaf2f36792f2be5a54223e38fab))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **js:** Change Typescript types to use mec instead of modularCentrality ([298eed3](https://github.com/mapequation/infomap/commit/298eed32d977758b07af058327775c234340b7b5))
16
+ * **js:** Parse node path as string instead of array of number ([51feb73](https://github.com/mapequation/infomap/commit/51feb73254b17857e4feb27197d4bb8c8157db05))
17
+ * **js:** Validate parsed results and throw instead of returning null on failure ([5f56b94](https://github.com/mapequation/infomap/commit/5f56b94fe0f956483f61a03ef07e94d8def2205e))
18
+
5
19
  ### [2.0.2](https://github.com/mapequation/infomap/compare/v2.0.1...v2.0.2) (2022-01-31)
6
20
 
7
21
 
package/index.d.ts CHANGED
@@ -82,6 +82,7 @@ export interface Result {
82
82
  }
83
83
  interface EventCallbacks {
84
84
  data?: (output: string, id: number) => void;
85
+ progress?: (progress: number, id: number) => void;
85
86
  error?: (message: string, id: number) => void;
86
87
  finished?: (result: Result, id: number) => void;
87
88
  }