atom.io 0.9.8 → 0.9.9

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.
@@ -1380,6 +1380,7 @@ var setState__INTERNAL = (state, value, store = IMPLICIT.STORE) => {
1380
1380
 
1381
1381
  // src/selector/trace-selector-atoms.ts
1382
1382
  var traceSelectorAtoms = (selectorKey, dependency, store) => {
1383
+ var _a;
1383
1384
  const roots = [];
1384
1385
  const sources = lookupSelectorSources(dependency.key, store);
1385
1386
  let depth = 0;
@@ -1387,6 +1388,11 @@ var traceSelectorAtoms = (selectorKey, dependency, store) => {
1387
1388
  const source = sources.shift();
1388
1389
  ++depth;
1389
1390
  if (depth > 999) {
1391
+ (_a = store.config.logger) == null ? void 0 : _a.warn(
1392
+ `Maximum selector dependency depth exceeded 999 in selector "${selectorKey}".`
1393
+ );
1394
+ }
1395
+ if (depth > 99999) {
1390
1396
  throw new Error(
1391
1397
  `Maximum selector dependency depth exceeded in selector "${selectorKey}".`
1392
1398
  );