@openfairygui/backend 0.3.0 → 0.4.0

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 CHANGED
@@ -10,7 +10,7 @@ It owns:
10
10
 
11
11
  - project/session lifecycle
12
12
  - revisioned request handling
13
- - coordinated but non-atomic save semantics
13
+ - coordinated save semantics, with atomic staged directory swaps on the Node adapter
14
14
  - browser-safe project sessions
15
15
  - browser-safe async project storage adapter
16
16
  - adapter-backed file sessions and backend-local session locking
@@ -39,7 +39,9 @@ and browser editors can inject an async storage adapter for OPFS, IndexedDB, ZIP
39
39
  or File System Access API bridges. Storage adapters must implement `unlink()` so resource rename/move/remove
40
40
  can clean up stale source files. Existing browser projects use a session-lifetime Web Lock: a live peer tab
41
41
  receives `lock_conflict`, while reload or abrupt document termination releases ownership without leaving a
42
- persistent `.openfairygui.backend.lock` marker. When Web Locks are unavailable, the storage adapter must
42
+ persistent `.openfairygui.backend.lock` marker. The Node adapter instead keeps a token-protected lock beside
43
+ the project directory, recovers only valid same-host stale ownership, and rejects project-directory symbolic
44
+ links. When Web Locks are unavailable, the storage adapter must
43
45
  provide `acquireSessionLock()` with the same atomic cross-context and owner-termination semantics. The default
44
46
  Node filesystem/runtime lives under `@openfairygui/backend/node` and retains its advisory lock file behavior.
45
47
  Adapter-backed `openSession` hydrates primary resource bytes so browser-safe transactions can rename/move