@gjsify/utils 0.40.0 → 0.41.0

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.
@@ -12,9 +12,12 @@ import type GLib from '@girs/glib-2.0';
12
12
  * a bare `imports.system.exit()` DEADLOCKS — it only sets GJS's internal exit
13
13
  * flag, never calls `loop.quit()`, so the parked `loop.run()` never returns.
14
14
  * Microtask draining is unaffected; only the exit hangs
15
- * (`docs/poc/tla-microtask-draining.md`). Exit through `process.exit()` (which
16
- * idle-schedules `quitMainLoop()` + `system.exit()`) or call {@link quitMainLoop}
17
- * yourself first.
15
+ * (`docs/poc/tla-microtask-draining.md`). Calling {@link quitMainLoop} first
16
+ * does NOT lift it — measured, the bare exit still hangs afterwards. Exit
17
+ * through `process.exit()`, which schedules the syscall on an idle source and
18
+ * then drives the default main context until it fires, so the exit happens
19
+ * from inside a dispatch where it works and the call never returns
20
+ * (`tests/e2e/process-exit-terminates`).
18
21
  */
19
22
  export declare function ensureMainLoop(): GLib.MainLoop | undefined;
20
23
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/utils",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "Utils module for gjsify",
5
5
  "module": "lib/esm/index.js",
6
6
  "types": "lib/types/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "fs"
41
41
  ],
42
42
  "devDependencies": {
43
- "@gjsify/cli": "^0.40.0",
43
+ "@gjsify/cli": "^0.41.0",
44
44
  "typescript": "^6.0.3"
45
45
  },
46
46
  "dependencies": {