@thi.ng/trie 1.1.9 → 1.1.11

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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-04T21:07:38Z
3
+ - **Last updated**: 2025-01-21T15:46:53Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [1.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/trie@1.1.10) (2025-01-14)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
17
+
12
18
  ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/trie@1.1.0) (2024-07-22)
13
19
 
14
20
  #### 🚀 Features
package/multi-trie.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import type { Fn0, IObjectOf, Maybe, Nullable, Pair } from "@thi.ng/api";
2
2
  export interface MultiTrieOpts<V> {
3
3
  /**
4
- * Custom value set factory (e.g. for using `Set` implementations from this
5
- * package). Uses native ES6 Set by default.
4
+ * Custom value set factory (e.g. for using `Set` implementations from the
5
+ * [thi.ng/associative](https://thi.ng/associative) package). Uses native
6
+ * ES6 Set by default.
6
7
  */
7
8
  vals: Fn0<Set<V>>;
8
9
  }
package/multi-trie.js CHANGED
@@ -126,7 +126,7 @@ class MultiTrie {
126
126
  }
127
127
  if (val !== void 0) {
128
128
  const vals = node.vals;
129
- if (vals && vals.has(val)) {
129
+ if (vals?.has(val)) {
130
130
  vals.delete(val);
131
131
  if (vals.size > 0) return true;
132
132
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/trie",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "Trie-based map data structure with prefix search/query support",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,7 +40,7 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.11.16"
43
+ "@thi.ng/api": "^8.11.17"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@microsoft/api-extractor": "^7.48.1",
@@ -90,5 +90,5 @@
90
90
  ],
91
91
  "year": 2020
92
92
  },
93
- "gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
93
+ "gitHead": "22f6d518aed5951bb37b406c8ae85a6c3e6be517\n"
94
94
  }