void icon indicating copy to clipboard operation
void copied to clipboard

JSON Storage Migration

Open metaory opened this issue 11 months ago • 0 comments

Transitions void from protobuf to JSON storage format

KEY CHANGES

  • Replaces protobuf with JSON storage
  • Removes protobuf dependency
  • Adds migration tool for existing databases
  • Maintains data compatibility
  • Reduces codebase complexity

BENEFITS

  • Human Readable: Data inspectable/editable with any text editor
  • Debuggable: Easy examination of corrupted files
  • Portable: Universal format support across tools/languages
  • Versionable: Clean diffs in version control
  • Minimal: Only essential data stored

MIGRATION

Existing users can migrate their databases using the provided script:

scripts/migrate.sh path/to/old/database path/to/new.json

NOTES

  • Auto-generated data excluded from storage:
    • Node coordinates (auto-arranged)
    • Colors (randomly generated)
    • Selection state
    • Ephemeral UI state

RESOLVES

  • #47
  • #48

metaory avatar Jan 02 '25 22:01 metaory