@makoai/app-sdk 2.14.1 → 2.14.2
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/index.js +6 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
* in a page (or this export) says which SDK a deployed app actually runs.
|
|
37
37
|
* Kept in step with package.json by snapshot.test.mjs.
|
|
38
38
|
*/
|
|
39
|
-
export const SDK_VERSION = "2.14.
|
|
39
|
+
export const SDK_VERSION = "2.14.2";
|
|
40
40
|
if (typeof window !== "undefined") {
|
|
41
41
|
try {
|
|
42
42
|
window.__MAKO_APP_SDK__ = SDK_VERSION;
|
|
@@ -902,6 +902,11 @@ function startPressure() {
|
|
|
902
902
|
|
|
903
903
|
/** Pinned views come back on their own: a mounted panel may not read again soon. */
|
|
904
904
|
async function endPressure() {
|
|
905
|
+
// The timer, not the clock, ends pressure: a timer can fire a millisecond
|
|
906
|
+
// before Date.now() reaches pressureUntil, and roomForTable would then still
|
|
907
|
+
// see pressure and refuse every promotion, with nothing left to retry it.
|
|
908
|
+
pressureUntil = 0;
|
|
909
|
+
pressureTimer = null;
|
|
905
910
|
const waiting = [...entries]
|
|
906
911
|
.filter(([name, entry]) => entry.demoted && isPinned(name) && !loading.has(name))
|
|
907
912
|
.sort(([a], [b]) => (lastUse.get(b) ?? 0) - (lastUse.get(a) ?? 0));
|