@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmodjs/core",
3
- "version": "8.10.1",
3
+ "version": "8.10.2",
4
4
  "description": "Build Claude Code mods: hooks, panes, checks, and an install that just works.",
5
5
  "license": "MIT",
6
6
  "type": "module",
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.1";
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.1';
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}`;
@@ -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.1'
514
+ export const coreVersion = '8.10.2'
515
515
 
516
516
  export const oldestCmodVersion = '8.0.0'
517
517
 
@@ -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) =>