Compare commits

...

3 commits
v0.1.0 ... main

Author SHA256 Message Date
698d87ce31 Follow bytes->string returning a Result
- A backup file that is not UTF-8 is an error that says so, through
  BackupRead, instead of an exception.
- bjomarks is at least 0.2.1, which follows the same change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:09:09 +01:00
e1ed969d30 0.1.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:02:39 +01:00
e490850449 bjomarks 0.2.0, with bjosodium 0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:02:39 +01:00
3 changed files with 9 additions and 7 deletions

View file

@ -3,9 +3,9 @@
(package (name (bjogui)) (version "0.1.0")
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjogui")))
(commit "c8a121030e666044766e523aec8cf42f02343f0d645e1b42316f6607374cef23"))
(package (name (bjomarks)) (version "0.1.0")
(package (name (bjomarks)) (version "0.2.1")
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks")))
(commit "a4b2aaf94e73f933be1a3d96ad7c6351060dc065999af937e3692925b3578ea3"))
(package (name (bjosodium)) (version "0.1.0")
(commit "fd4c0f8bb019761ea7ac58644fe43d32134f46ef0aa4a85bf50915183709d779"))
(package (name (bjosodium)) (version "0.2.0")
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjosodium")))
(commit "911f4bcc4676ca6393f8eb43286fdddd69cf6b5665aca0770ceaf869fb73767b"))))
(commit "2be75d9b22691b44d571ef4fa8516390ca9a47a4d64a3d92b39d6f9878627b13"))))

View file

@ -1,6 +1,6 @@
(package
(name (bjomarks-android))
(version "0.1.0")
(version "0.1.1")
(description "Bookmarks on an Android phone: a bjomarks vault in a folder that a file syncer shares, and the Share menu.")
(license "MPL-2.0")
@ -17,7 +17,7 @@
(depends
(package (name (bjomarks))
(version (version-at-least "0.1.0"))
(version (version-at-least "0.2.1"))
(source (git (url "https://rikspucko.koketteriet.se/bjoli/bjomarks"))))
(package (name (bjogui))
(version (version-at-least "0.1.0"))

View file

@ -690,7 +690,9 @@
((Some f)
(def name (stored-file-name f))
(next (record-set m (note (str "Reading " name "…")))
(wrap (blocking (fun () (read-firefox-backup (bytes->string (stored-file-bytes f)))))
(wrap (blocking (fun () (match (bytes->string (stored-file-bytes f))
((Ok text) (read-firefox-backup text))
((Err e) (Err (str "the file is not UTF-8: " (decode-error-message e)))))))
(fun (r) (BackupRead name r)))))
(None (next m))))