@cmodjs/core 8.10.1 → 8.10.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/package.json +1 -1
- package/records.d.ts +1 -1
- package/records.js +1 -1
- package/runtime/lifecycle.js +2 -0
- package/src/records.ts +1 -1
- package/src/runtime/lifecycle.ts +1 -0
package/package.json
CHANGED
package/records.d.ts
CHANGED
|
@@ -203,7 +203,7 @@ export declare function newestLog(entries: readonly LogEntry[]): LogEntry[];
|
|
|
203
203
|
export declare function versionsLine({ mod, core, cmod, program, claudeCode }: LogVersions): string;
|
|
204
204
|
export declare function logReport(entry: LogEntry): string;
|
|
205
205
|
export declare function parseConsent(value: unknown, path: string): Record<string, string[]>;
|
|
206
|
-
export declare const coreVersion = "8.10.
|
|
206
|
+
export declare const coreVersion = "8.10.2";
|
|
207
207
|
export declare const oldestCmodVersion = "8.0.0";
|
|
208
208
|
export declare function hotkeyCommand(mod: string, hotkey: string): string;
|
|
209
209
|
export declare function hotkeyBindings(mod: string, hotkeys: Hotkeys | undefined): Record<string, string>;
|
package/records.js
CHANGED
|
@@ -412,7 +412,7 @@ function readHotkeys(hotkeys) {
|
|
|
412
412
|
throw new Error(`package.json "cmod.hotkeys" is not a map of hotkeys to their title and optional default combo. ${fix}`);
|
|
413
413
|
return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys) };
|
|
414
414
|
}
|
|
415
|
-
export const coreVersion = '8.10.
|
|
415
|
+
export const coreVersion = '8.10.2';
|
|
416
416
|
export const oldestCmodVersion = '8.0.0';
|
|
417
417
|
export function hotkeyCommand(mod, hotkey) {
|
|
418
418
|
return `${mod}--${hotkey}`;
|
package/runtime/lifecycle.js
CHANGED
|
@@ -818,6 +818,8 @@ async function createMod(definition, runtime) {
|
|
|
818
818
|
const settingsListeners = new Set();
|
|
819
819
|
const loadingSettings = [];
|
|
820
820
|
const settingsLoaded = async () => {
|
|
821
|
+
if (loadingSettings.length === 0)
|
|
822
|
+
return;
|
|
821
823
|
bind(imports);
|
|
822
824
|
await Promise.all(loadingSettings.splice(0).flatMap((change) => [...settingsListeners].map(async (listener) => {
|
|
823
825
|
try {
|
package/src/records.ts
CHANGED
|
@@ -511,7 +511,7 @@ function readHotkeys(hotkeys: unknown): Steps {
|
|
|
511
511
|
return { hotkeys: checkHotkeys('package.json "cmod"', hotkeys as Record<string, HotkeyInit>) }
|
|
512
512
|
}
|
|
513
513
|
|
|
514
|
-
export const coreVersion = '8.10.
|
|
514
|
+
export const coreVersion = '8.10.2'
|
|
515
515
|
|
|
516
516
|
export const oldestCmodVersion = '8.0.0'
|
|
517
517
|
|
package/src/runtime/lifecycle.ts
CHANGED
|
@@ -912,6 +912,7 @@ async function createMod<State extends object, Declared extends Options>(definit
|
|
|
912
912
|
const settingsListeners = new Set<SettingsListener>()
|
|
913
913
|
const loadingSettings: SettingsFileChange[] = []
|
|
914
914
|
const settingsLoaded = async () => {
|
|
915
|
+
if (loadingSettings.length === 0) return
|
|
915
916
|
bind(imports)
|
|
916
917
|
await Promise.all(
|
|
917
918
|
loadingSettings.splice(0).flatMap((change) =>
|