atom.io 0.8.3 → 0.9.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.
Files changed (41) hide show
  1. package/README.md +33 -28
  2. package/data/dist/index.d.mts +31 -0
  3. package/data/dist/index.d.ts +31 -0
  4. package/data/dist/index.js +77 -0
  5. package/data/dist/index.js.map +1 -0
  6. package/data/dist/index.mjs +73 -0
  7. package/data/dist/index.mjs.map +1 -0
  8. package/data/package.json +15 -0
  9. package/data/src/dict.ts +31 -0
  10. package/data/src/index.ts +3 -0
  11. package/data/src/struct-family.ts +45 -0
  12. package/data/src/struct.ts +58 -0
  13. package/dist/index.js +2 -2
  14. package/dist/index.js.map +1 -1
  15. package/dist/index.mjs +2 -2
  16. package/dist/index.mjs.map +1 -1
  17. package/internal/dist/index.js +20 -18
  18. package/internal/dist/index.js.map +1 -1
  19. package/internal/dist/index.mjs +20 -18
  20. package/internal/dist/index.mjs.map +1 -1
  21. package/internal/src/store/store.ts +15 -16
  22. package/package.json +37 -19
  23. package/react-devtools/dist/index.d.mts +4 -4
  24. package/react-devtools/dist/index.d.ts +4 -4
  25. package/react-devtools/dist/index.js +12 -8
  26. package/react-devtools/dist/index.js.map +1 -1
  27. package/react-devtools/dist/index.mjs +12 -8
  28. package/react-devtools/dist/index.mjs.map +1 -1
  29. package/react-devtools/src/StateIndex.tsx +3 -2
  30. package/realtime-server/dist/index.js +30 -18
  31. package/realtime-server/dist/index.js.map +1 -1
  32. package/realtime-server/dist/index.mjs +30 -18
  33. package/realtime-server/dist/index.mjs.map +1 -1
  34. package/realtime-server/src/hook-composition/expose-family.ts +11 -5
  35. package/realtime-server/src/hook-composition/expose-mutable-family.ts +11 -5
  36. package/realtime-testing/dist/index.js +11 -4
  37. package/realtime-testing/dist/index.js.map +1 -1
  38. package/realtime-testing/dist/index.mjs +11 -4
  39. package/realtime-testing/dist/index.mjs.map +1 -1
  40. package/realtime-testing/src/setup-realtime-test.tsx +11 -5
  41. package/src/logger.ts +2 -2
@@ -266,15 +266,17 @@ var Junction = class {
266
266
  if (a === void 0 && typeof b === `string`) {
267
267
  const bRelations = this.getRelatedKeys(b);
268
268
  if (bRelations) {
269
- bRelations.forEach((a2) => this.delete(a2, b));
269
+ for (const a2 of bRelations) {
270
+ this.delete(a2, b);
271
+ }
270
272
  }
271
273
  }
272
274
  if (typeof a === `string` && b === void 0) {
273
275
  const aRelations = this.getRelatedKeys(a);
274
276
  if (aRelations) {
275
- aRelations.forEach((b2) => {
277
+ for (const b2 of aRelations) {
276
278
  this.delete(a, b2);
277
- });
279
+ }
278
280
  }
279
281
  }
280
282
  if (typeof a === `string` && typeof b === `string`) {
@@ -509,22 +511,22 @@ var Store = class {
509
511
  }), (_a = store == null ? void 0 : store.config) == null ? void 0 : _a.logger),
510
512
  name
511
513
  });
514
+ for (const [, atom] of store.atoms) {
515
+ atom.install(this);
516
+ }
517
+ for (const [, selector] of store.readonlySelectors) {
518
+ selector.install(this);
519
+ }
520
+ for (const [, selector] of store.selectors) {
521
+ selector.install(this);
522
+ }
523
+ for (const [, tx] of store.transactions) {
524
+ tx.install(this);
525
+ }
526
+ for (const [, timeline] of store.timelines) {
527
+ timeline.install(this);
528
+ }
512
529
  }
513
- store == null ? void 0 : store.atoms.forEach((atom) => {
514
- atom.install(this);
515
- });
516
- store == null ? void 0 : store.readonlySelectors.forEach((selector) => {
517
- selector.install(this);
518
- });
519
- store == null ? void 0 : store.selectors.forEach((selector) => {
520
- selector.install(this);
521
- });
522
- store == null ? void 0 : store.transactions.forEach((tx) => {
523
- tx.install(this);
524
- });
525
- store == null ? void 0 : store.timelines.forEach((timeline) => {
526
- timeline.install(this);
527
- });
528
530
  }
529
531
  };
530
532
  var IMPLICIT = {