aberdeen 1.17.1 → 1.18.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 (78) hide show
  1. package/dist/src/aberdeen.js +14 -4
  2. package/dist/src/aberdeen.js.map +3 -3
  3. package/dist/tests/fakedom.js +12 -2
  4. package/dist/tests/fakedom.js.map +3 -3
  5. package/dist/tests/helpers.js +12 -2
  6. package/dist/tests/helpers.js.map +3 -3
  7. package/dist-docs/Tutorial/index.html +4 -4
  8. package/dist-docs/aberdeen/A/index.html +2 -2
  9. package/dist-docs/aberdeen/CUSTOM_DUMP/index.html +2 -2
  10. package/dist-docs/aberdeen/NO_COPY/index.html +2 -2
  11. package/dist-docs/aberdeen/OPAQUE/index.html +2 -2
  12. package/dist-docs/aberdeen/PromiseProxy/index.html +5 -5
  13. package/dist-docs/aberdeen/clean/index.html +2 -2
  14. package/dist-docs/aberdeen/clone/index.html +2 -2
  15. package/dist-docs/aberdeen/copy/index.html +3 -3
  16. package/dist-docs/aberdeen/count/index.html +2 -2
  17. package/dist-docs/aberdeen/cssVars/index.html +2 -2
  18. package/dist-docs/aberdeen/darkMode/index.html +2 -2
  19. package/dist-docs/aberdeen/default/index.html +2 -2
  20. package/dist-docs/aberdeen/derive/index.html +2 -2
  21. package/dist-docs/aberdeen/disableCreateDestroy/index.html +2 -2
  22. package/dist-docs/aberdeen/dump/index.html +2 -2
  23. package/dist-docs/aberdeen/index.html +2 -2
  24. package/dist-docs/aberdeen/insertCss/index.html +2 -2
  25. package/dist-docs/aberdeen/insertGlobalCss/index.html +2 -2
  26. package/dist-docs/aberdeen/invertString/index.html +2 -2
  27. package/dist-docs/aberdeen/isEmpty/index.html +2 -2
  28. package/dist-docs/aberdeen/map/index.html +4 -4
  29. package/dist-docs/aberdeen/merge/index.html +3 -3
  30. package/dist-docs/aberdeen/mount/index.html +2 -2
  31. package/dist-docs/aberdeen/multiMap/index.html +4 -4
  32. package/dist-docs/aberdeen/onEach/index.html +2 -2
  33. package/dist-docs/aberdeen/partition/index.html +4 -4
  34. package/dist-docs/aberdeen/peek/index.html +5 -5
  35. package/dist-docs/aberdeen/proxy/index.html +2 -2
  36. package/dist-docs/aberdeen/ref/index.html +2 -2
  37. package/dist-docs/aberdeen/runQueue/index.html +2 -2
  38. package/dist-docs/aberdeen/setErrorHandler/index.html +2 -2
  39. package/dist-docs/aberdeen/setSpacingCssVars/index.html +2 -2
  40. package/dist-docs/aberdeen/unmountAll/index.html +2 -2
  41. package/dist-docs/aberdeen/unproxy/index.html +2 -2
  42. package/dist-docs/assets/aberdeen/aberdeen.js +14 -4
  43. package/dist-docs/assets/aberdeen/aberdeen.js.map +3 -3
  44. package/dist-docs/assets/search.js +1 -1
  45. package/dist-docs/dispatcher/Dispatcher/index.html +4 -4
  46. package/dist-docs/dispatcher/MATCH_FAILED/index.html +2 -2
  47. package/dist-docs/dispatcher/MATCH_REST/index.html +2 -2
  48. package/dist-docs/dispatcher/index.html +2 -2
  49. package/dist-docs/hierarchy.html +1 -1
  50. package/dist-docs/index.html +2 -2
  51. package/dist-docs/media/CHANGELOG.md +10 -0
  52. package/dist-docs/modules.html +1 -1
  53. package/dist-docs/prediction/applyCanon/index.html +2 -2
  54. package/dist-docs/prediction/applyPrediction/index.html +2 -2
  55. package/dist-docs/prediction/index.html +2 -2
  56. package/dist-docs/route/Route/index.html +9 -9
  57. package/dist-docs/route/back/index.html +2 -2
  58. package/dist-docs/route/current/index.html +2 -2
  59. package/dist-docs/route/go/index.html +2 -2
  60. package/dist-docs/route/index.html +2 -2
  61. package/dist-docs/route/interceptLinks/index.html +2 -2
  62. package/dist-docs/route/matchCurrent/index.html +2 -2
  63. package/dist-docs/route/persistScroll/index.html +2 -2
  64. package/dist-docs/route/push/index.html +2 -2
  65. package/dist-docs/route/setLog/index.html +2 -2
  66. package/dist-docs/route/up/index.html +2 -2
  67. package/dist-docs/sitemap.xml +59 -59
  68. package/dist-docs/transitions/grow/index.html +2 -2
  69. package/dist-docs/transitions/index.html +2 -2
  70. package/dist-docs/transitions/shrink/index.html +2 -2
  71. package/package.json +1 -1
  72. package/skill/SKILL.md +5 -2
  73. package/skill/aberdeen.md +54 -54
  74. package/skill/dispatcher.md +6 -6
  75. package/skill/prediction.md +3 -3
  76. package/skill/route.md +18 -18
  77. package/skill/transitions.md +3 -3
  78. package/src/aberdeen.ts +18 -8
@@ -704,8 +704,10 @@ function isEmpty(proxied) {
704
704
  subscribe(target, ANY_SYMBOL, (index, newData, oldData) => {
705
705
  if (newData === EMPTY !== (oldData === EMPTY)) {
706
706
  const newEmpty = isObjEmpty(target);
707
- scope.onChange(target, EMPTY, newEmpty, oldEmpty);
708
- oldEmpty = newEmpty;
707
+ if (newEmpty !== oldEmpty) {
708
+ scope.onChange(target, EMPTY, newEmpty, oldEmpty);
709
+ oldEmpty = newEmpty;
710
+ }
709
711
  }
710
712
  });
711
713
  return oldEmpty;
@@ -1032,7 +1034,7 @@ var setHandler = {
1032
1034
  };
1033
1035
  var proxyMap = new WeakMap;
1034
1036
  function optProxy(value) {
1035
- if (typeof value !== "object" || !value || value[TARGET_SYMBOL] !== undefined || value[OPAQUE] || value instanceof Date) {
1037
+ if (typeof value !== "object" || value === null || value[TARGET_SYMBOL] !== undefined || value[OPAQUE]) {
1036
1038
  return value;
1037
1039
  }
1038
1040
  let proxied = proxyMap.get(value);
@@ -1233,7 +1235,15 @@ var COPY_EMIT = 64;
1233
1235
  var OPAQUE = Symbol("OPAQUE");
1234
1236
  var NO_COPY = OPAQUE;
1235
1237
  Promise.prototype[OPAQUE] = true;
1238
+ Date.prototype[OPAQUE] = true;
1236
1239
  Node.prototype[OPAQUE] = true;
1240
+ if (typeof Temporal !== "undefined") {
1241
+ for (const name of "Duration Instant PlainDate PlainDateTime PlainMonthDay PlainTime PlainYearMonth ZonedDateTime".split(" ")) {
1242
+ const cls = Temporal[name];
1243
+ if (cls)
1244
+ cls.prototype[OPAQUE] = true;
1245
+ }
1246
+ }
1237
1247
  var cssVars = optProxy({});
1238
1248
  function setSpacingCssVars(base = 1, unit = "rem") {
1239
1249
  for (let i = 0;i <= 12; i++) {
@@ -1975,5 +1985,5 @@ export {
1975
1985
  A
1976
1986
  };
1977
1987
 
1978
- //# debugId=9CF256EC3117093364756E2164756E21
1988
+ //# debugId=FD73580ACB58CF9D64756E2164756E21
1979
1989
  //# sourceMappingURL=aberdeen.js.map