@componentor/fs 2.0.10 → 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/README.md +53 -19
- package/dist/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
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 {
|