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.
- package/dist/src/aberdeen.js +14 -4
- package/dist/src/aberdeen.js.map +3 -3
- package/dist/tests/fakedom.js +12 -2
- package/dist/tests/fakedom.js.map +3 -3
- package/dist/tests/helpers.js +12 -2
- package/dist/tests/helpers.js.map +3 -3
- package/dist-docs/Tutorial/index.html +4 -4
- package/dist-docs/aberdeen/A/index.html +2 -2
- package/dist-docs/aberdeen/CUSTOM_DUMP/index.html +2 -2
- package/dist-docs/aberdeen/NO_COPY/index.html +2 -2
- package/dist-docs/aberdeen/OPAQUE/index.html +2 -2
- package/dist-docs/aberdeen/PromiseProxy/index.html +5 -5
- package/dist-docs/aberdeen/clean/index.html +2 -2
- package/dist-docs/aberdeen/clone/index.html +2 -2
- package/dist-docs/aberdeen/copy/index.html +3 -3
- package/dist-docs/aberdeen/count/index.html +2 -2
- package/dist-docs/aberdeen/cssVars/index.html +2 -2
- package/dist-docs/aberdeen/darkMode/index.html +2 -2
- package/dist-docs/aberdeen/default/index.html +2 -2
- package/dist-docs/aberdeen/derive/index.html +2 -2
- package/dist-docs/aberdeen/disableCreateDestroy/index.html +2 -2
- package/dist-docs/aberdeen/dump/index.html +2 -2
- package/dist-docs/aberdeen/index.html +2 -2
- package/dist-docs/aberdeen/insertCss/index.html +2 -2
- package/dist-docs/aberdeen/insertGlobalCss/index.html +2 -2
- package/dist-docs/aberdeen/invertString/index.html +2 -2
- package/dist-docs/aberdeen/isEmpty/index.html +2 -2
- package/dist-docs/aberdeen/map/index.html +4 -4
- package/dist-docs/aberdeen/merge/index.html +3 -3
- package/dist-docs/aberdeen/mount/index.html +2 -2
- package/dist-docs/aberdeen/multiMap/index.html +4 -4
- package/dist-docs/aberdeen/onEach/index.html +2 -2
- package/dist-docs/aberdeen/partition/index.html +4 -4
- package/dist-docs/aberdeen/peek/index.html +5 -5
- package/dist-docs/aberdeen/proxy/index.html +2 -2
- package/dist-docs/aberdeen/ref/index.html +2 -2
- package/dist-docs/aberdeen/runQueue/index.html +2 -2
- package/dist-docs/aberdeen/setErrorHandler/index.html +2 -2
- package/dist-docs/aberdeen/setSpacingCssVars/index.html +2 -2
- package/dist-docs/aberdeen/unmountAll/index.html +2 -2
- package/dist-docs/aberdeen/unproxy/index.html +2 -2
- package/dist-docs/assets/aberdeen/aberdeen.js +14 -4
- package/dist-docs/assets/aberdeen/aberdeen.js.map +3 -3
- package/dist-docs/assets/search.js +1 -1
- package/dist-docs/dispatcher/Dispatcher/index.html +4 -4
- package/dist-docs/dispatcher/MATCH_FAILED/index.html +2 -2
- package/dist-docs/dispatcher/MATCH_REST/index.html +2 -2
- package/dist-docs/dispatcher/index.html +2 -2
- package/dist-docs/hierarchy.html +1 -1
- package/dist-docs/index.html +2 -2
- package/dist-docs/media/CHANGELOG.md +10 -0
- package/dist-docs/modules.html +1 -1
- package/dist-docs/prediction/applyCanon/index.html +2 -2
- package/dist-docs/prediction/applyPrediction/index.html +2 -2
- package/dist-docs/prediction/index.html +2 -2
- package/dist-docs/route/Route/index.html +9 -9
- package/dist-docs/route/back/index.html +2 -2
- package/dist-docs/route/current/index.html +2 -2
- package/dist-docs/route/go/index.html +2 -2
- package/dist-docs/route/index.html +2 -2
- package/dist-docs/route/interceptLinks/index.html +2 -2
- package/dist-docs/route/matchCurrent/index.html +2 -2
- package/dist-docs/route/persistScroll/index.html +2 -2
- package/dist-docs/route/push/index.html +2 -2
- package/dist-docs/route/setLog/index.html +2 -2
- package/dist-docs/route/up/index.html +2 -2
- package/dist-docs/sitemap.xml +59 -59
- package/dist-docs/transitions/grow/index.html +2 -2
- package/dist-docs/transitions/index.html +2 -2
- package/dist-docs/transitions/shrink/index.html +2 -2
- package/package.json +1 -1
- package/skill/SKILL.md +5 -2
- package/skill/aberdeen.md +54 -54
- package/skill/dispatcher.md +6 -6
- package/skill/prediction.md +3 -3
- package/skill/route.md +18 -18
- package/skill/transitions.md +3 -3
- package/src/aberdeen.ts +18 -8
package/dist/src/aberdeen.js
CHANGED
|
@@ -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
|
-
|
|
708
|
-
|
|
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" ||
|
|
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=
|
|
1988
|
+
//# debugId=FD73580ACB58CF9D64756E2164756E21
|
|
1979
1989
|
//# sourceMappingURL=aberdeen.js.map
|