@componentor/fs 2.0.11 → 2.0.12

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/dist/index.cjs CHANGED
@@ -1927,9 +1927,14 @@ var OPFSFileSystem = class _OPFSFileSystem {
1927
1927
  // --- Async Promises API ---
1928
1928
  // When Tier 1 sync kernel is available, use it for better performance (wrapped in Promise)
1929
1929
  // Otherwise fall back to async worker
1930
+ // Operations NOT implemented in the sync kernel - must use async worker
1931
+ static ASYNC_ONLY_OPS = /* @__PURE__ */ new Set([
1932
+ "releaseAllHandles",
1933
+ "releaseHandle"
1934
+ ]);
1930
1935
  // Helper: Use sync kernel if available (in worker context), otherwise async worker
1931
1936
  async fastCall(type, filePath, payload) {
1932
- if (this.syncKernelReady) {
1937
+ if (this.syncKernelReady && !_OPFSFileSystem.ASYNC_ONLY_OPS.has(type)) {
1933
1938
  if (isWorkerContext) {
1934
1939
  return Promise.resolve(this.syncCallTier1(type, filePath, payload));
1935
1940
  } else {