@oh-my-pi/pi-utils 16.1.7 → 16.1.9

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [16.1.8] - 2026-06-20
6
+
7
+ ### Added
8
+
9
+ - Exported `removeSyncWithRetries()` as a standalone function so tests that manage their own temp dirs can use the same retry-on-EBUSY cleanup logic as `TempDir.removeSync()`.
10
+
5
11
  ## [16.1.3] - 2026-06-19
6
12
 
7
13
  ### Changed
@@ -12,3 +12,4 @@ export declare class TempDir {
12
12
  [Symbol.asyncDispose](): Promise<void>;
13
13
  [Symbol.dispose](): void;
14
14
  }
15
+ export declare function removeSyncWithRetries(target: string): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-utils",
4
- "version": "16.1.7",
4
+ "version": "16.1.9",
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": "16.1.7",
34
+ "@oh-my-pi/pi-natives": "16.1.9",
35
35
  "handlebars": "^4.7.9",
36
36
  "winston": "^3.19.0",
37
37
  "winston-daily-rotate-file": "^5.0.0"
package/src/temp.ts CHANGED
@@ -95,7 +95,7 @@ async function removeWithRetries(target: string): Promise<void> {
95
95
  }
96
96
  }
97
97
 
98
- function removeSyncWithRetries(target: string): void {
98
+ export function removeSyncWithRetries(target: string): void {
99
99
  for (let attempt = 0; ; attempt++) {
100
100
  try {
101
101
  fs.rmSync(target, kRemoveOptions);