@componentor/fs 2.0.5 → 2.0.6
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/README.md +5 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/kernel.js +1 -1
- package/dist/kernel.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -446,6 +446,11 @@ Another tab or operation has the file open. The library uses `navigator.locks` t
|
|
|
446
446
|
|
|
447
447
|
## Changelog
|
|
448
448
|
|
|
449
|
+
### v2.0.5 (2025)
|
|
450
|
+
|
|
451
|
+
**Bug Fixes:**
|
|
452
|
+
- Fixed idle timeout condition (`>` to `>=`) - handles now release at exactly 2s instead of ~4s
|
|
453
|
+
|
|
449
454
|
### v2.0.4 (2025)
|
|
450
455
|
|
|
451
456
|
**Bug Fixes:**
|
package/dist/index.cjs
CHANGED
|
@@ -444,7 +444,7 @@ function scheduleIdleCleanup() {
|
|
|
444
444
|
idleCleanupTimer = null;
|
|
445
445
|
const now = Date.now();
|
|
446
446
|
for (const [p, lastAccess] of syncHandleLastAccess) {
|
|
447
|
-
if (now - lastAccess
|
|
447
|
+
if (now - lastAccess >= HANDLE_IDLE_TIMEOUT) {
|
|
448
448
|
const h = syncHandleCache.get(p);
|
|
449
449
|
if (h) { try { h.flush(); h.close(); } catch {} syncHandleCache.delete(p); }
|
|
450
450
|
syncHandleLastAccess.delete(p);
|