@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.d.cts CHANGED
@@ -385,6 +385,7 @@ declare class OPFSFileSystem {
385
385
  */
386
386
  linkSync(existingPath: string, newPath: string): void;
387
387
  private parseFlags;
388
+ private static readonly ASYNC_ONLY_OPS;
388
389
  private fastCall;
389
390
  promises: FileSystemPromises;
390
391
  /**
package/dist/index.d.ts CHANGED
@@ -385,6 +385,7 @@ declare class OPFSFileSystem {
385
385
  */
386
386
  linkSync(existingPath: string, newPath: string): void;
387
387
  private parseFlags;
388
+ private static readonly ASYNC_ONLY_OPS;
388
389
  private fastCall;
389
390
  promises: FileSystemPromises;
390
391
  /**
package/dist/index.js CHANGED
@@ -1923,9 +1923,14 @@ var OPFSFileSystem = class _OPFSFileSystem {
1923
1923
  // --- Async Promises API ---
1924
1924
  // When Tier 1 sync kernel is available, use it for better performance (wrapped in Promise)
1925
1925
  // Otherwise fall back to async worker
1926
+ // Operations NOT implemented in the sync kernel - must use async worker
1927
+ static ASYNC_ONLY_OPS = /* @__PURE__ */ new Set([
1928
+ "releaseAllHandles",
1929
+ "releaseHandle"
1930
+ ]);
1926
1931
  // Helper: Use sync kernel if available (in worker context), otherwise async worker
1927
1932
  async fastCall(type, filePath, payload) {
1928
- if (this.syncKernelReady) {
1933
+ if (this.syncKernelReady && !_OPFSFileSystem.ASYNC_ONLY_OPS.has(type)) {
1929
1934
  if (isWorkerContext) {
1930
1935
  return Promise.resolve(this.syncCallTier1(type, filePath, payload));
1931
1936
  } else {