@mmstack/primitives 20.16.0 → 20.16.1

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.
@@ -5964,6 +5964,17 @@ function createConvergingApply(opt) {
5964
5964
  const reg = registers.get(keyOf$1(path));
5965
5965
  return reg ? liveOf(reg) : [];
5966
5966
  },
5967
+ liveUnder: (path) => {
5968
+ const key = keyOf$1(path);
5969
+ const out = [];
5970
+ const at = registers.get(key);
5971
+ for (const reg of at ? [at, ...descendantsOf(key)] : descendantsOf(key)) {
5972
+ const siblings = liveOf(reg);
5973
+ if (siblings.length)
5974
+ out.push({ path: reg.path, siblings });
5975
+ }
5976
+ return out;
5977
+ },
5967
5978
  materialize: () => {
5968
5979
  const root = registers.get('');
5969
5980
  const res = root?.result;
@@ -6275,6 +6286,7 @@ function opSync(source, opt) {
6275
6286
  log.flush(); // fold pending base writes in first, so they count as observed
6276
6287
  return conv.captureFrontier();
6277
6288
  },
6289
+ liveUnder: (path) => conv.liveUnder(path),
6278
6290
  commitScope: (frontier, fn) => {
6279
6291
  log.flush(); // earlier pending writes emit against the live frontier, not this one
6280
6292
  scopeFrontier = frontier;