Skip to content

Releases: SiglumProject/siglum-filesystem

v0.2.1 - Add writeBinaryBatch method for batch file writes

Choose a tag to compare

@adam-weber adam-weber released this 29 Jan 00:17

What's New

Features

  • New writeBinaryBatch method added to FileSystemService, OPFSBackend, and IndexedDBBackend
    • Supports progress tracking, concurrency control, and automatic parent directory creation
  • Types and documentation added
  • Added MIT LICENSE file
  • Added npm keywords to package.json
  • Fixed ESM import paths (added .js extensions)

v0.2.0 - Worker support, batch reads, and performance improvements

Choose a tag to compare

@adam-weber adam-weber released this 28 Jan 05:19
f9ac7ad

What's New

Features

  • Web Worker support - New @siglum/filesystem/worker module for accessing the filesystem
    from classic workers
  • Storage constants - New @siglum/filesystem/constants for direct IndexedDB/OPFS access
  • Batch reads - readBinaryBatch() for efficient multi-file reads in a single transaction
  • Backend detection - getBackendType() to check which backend is mounted at a path

Bug Fixes

  • Fixed readdir() incorrectly blocking directory entries when nested files exist

Performance

  • exists() and stat() now use a single IndexedDB transaction (was 2)
  • mkdir() batches all operations (2 transactions instead of 2n)
  • readdir() uses IDBKeyRange prefix filtering instead of full table scan
  • Write operations skip exists() check when no event handlers are subscribed

Infrastructure

  • Added test suite with 55 tests
  • Added prepublishOnly script for clean builds
  • Full API documentation in README