Skip to content

v0.3.1

Latest

Choose a tag to compare

@Z-M-Huang Z-M-Huang released this 09 Apr 02:15

Session date validation & merge fixes

Changes

  • Validate session timestamps before usebuildRecentSessionsForRemote now checks that timestamps are parseable dates. Sessions with no valid timestamp are dropped instead of silently using new Date(), which could produce incorrect dates.
  • Refresh dates on remote merge — when a session already exists in the remote store, its date field is now updated if the local timestamp yields a different (corrected) value.
  • Extracted buildRecentSessionsForRemote — factored out of mergeAndPush for clarity and testability.

Tests

  • Added tests for buildRecentSessionsForRemote (valid, invalid, and missing timestamps).
  • Added tests for date-refresh behavior in mergeIntoRemote.

Full Changelog: v0.3.0...v0.3.1