@okforest/okf 0.3.0 → 0.4.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/dist/index.d.mts CHANGED
@@ -53,6 +53,8 @@ export declare function buildInventory(tree: Tree, options?: {
53
53
  * unless one value contains the other.
54
54
  */
55
55
  export declare function findNearDuplicates(counts: readonly Count[], field: NearDuplicates["field"]): NearDuplicates[];
56
+ /** Levenshtein distance, stopping early once it exceeds `limit`. */
57
+ export declare function editDistance(a: string, b: string, limit: number): number;
56
58
  //#endregion
57
59
  //#region src/paths.d.ts
58
60
  /** Convert a glob (relative to the tree root) to a regular expression.
package/dist/index.mjs CHANGED
@@ -137,4 +137,4 @@ function editDistance(a, b, limit) {
137
137
  return previous[b.length];
138
138
  }
139
139
  //#endregion
140
- export { DEFAULT_IGNORED, SETTINGS_PATH, buildInventory, deriveStatus, deriveTrustTier, findNearDuplicates, globToRegExp, isRecord, isStaleAt, isStatus, normalizeSources, normalizeText, normalizeVerified, parseTree, visit };
140
+ export { DEFAULT_IGNORED, SETTINGS_PATH, buildInventory, deriveStatus, deriveTrustTier, editDistance, findNearDuplicates, globToRegExp, isRecord, isStaleAt, isStatus, normalizeSources, normalizeText, normalizeVerified, parseTree, visit };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okforest/okf",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Read an Open Knowledge Format (OKF) v0.2 tree into a model: concepts, frontmatter, links, backlinks, trust tiers, staleness, and a metadata inventory. No SDKs or frameworks; runs in Node, browsers, and Workers.",
5
5
  "keywords": [
6
6
  "okf",