@oh-my-pi/pi-utils 15.11.0 → 15.11.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,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-utils",
4
- "version": "15.11.0",
4
+ "version": "15.11.2",
5
5
  "description": "Shared utilities for pi packages",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -31,7 +31,7 @@
31
31
  "fmt": "biome format --write ."
32
32
  },
33
33
  "dependencies": {
34
- "@oh-my-pi/pi-natives": "15.11.0",
34
+ "@oh-my-pi/pi-natives": "15.11.2",
35
35
  "beautiful-mermaid": "^1.1.3",
36
36
  "handlebars": "^4.7.9",
37
37
  "winston": "^3.19.0",
package/src/postmortem.ts CHANGED
@@ -38,7 +38,6 @@ function runCleanup(reason: Reason): Promise<void> {
38
38
  cleanupStage = "running";
39
39
  break;
40
40
  case "running":
41
- logger.error("Cleanup invoked recursively", { stack: new Error().stack });
42
41
  return Promise.resolve();
43
42
  case "complete":
44
43
  return Promise.resolve();
@@ -150,8 +149,9 @@ export function register(id: string, callback: (reason: Reason) => void | Promis
150
149
  };
151
150
 
152
151
  if (cleanupStage !== "idle") {
153
- // If cleanup is already running/completed, warn and run on microtask.
154
- logger.warn("Cleanup invoked recursively", { id });
152
+ // Cleanup is already in progress or complete; run late registrations once
153
+ // without re-entering the global cleanup pass.
154
+ logger.debug("Cleanup already started; running late callback once", { id });
155
155
  try {
156
156
  callback(Reason.MANUAL);
157
157
  } catch (e) {