Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 19 Oct 09:31
· 39 commits to main since this release

Added

  • Desktop app: sync with Google Drive. In the sync panel choose Google Drive next to the folder option, connect in your
    browser, set the passphrase and sync. It keeps working without asking again every hour. Needs the one-time Google Cloud
    setup in docs/GOOGLE-DRIVE-SETUP.md (a second, "Desktop app" client); until then the panel says it is not set up.

Fixed

  • macOS desktop app: a crash when closing or quitting ("A JavaScript error occurred in the main process: Object has been
    destroyed"). The code that adapts the page to the unified title bar touched a window that had already been closed, and the error
    left the app half quit (window still open, notes server already stopped, "OpenNote is not running" banner). Every window access now
    checks that the window is still alive, uncaught errors are logged instead of interrupting the app, and the smoke test closes
    windows at several moments of their load.
  • Web sync panel: the Sync automatically checkbox could not be changed (it saved the value it already had); it now works.
  • Web sync panel: it closes by itself, with a confirmation message, when Sync now finishes well; if the sync fails it stays open
    showing the problem.
  • Web version: the sync panel could stop opening until the page was reloaded (after the browser put the service worker to sleep it
    forgot which tab holds the notes database). The service worker now finds it again, the panel shows an error with a Retry button
    instead of staying blank, and when the tab that holds the database is closed another open tab takes over.

Added

  • Web version: after the first successful sync to Google Drive, automatic sync turns itself on; it also syncs when you come
    back to the tab or the connection returns.
  • Web version: when Google's hourly access renewal is blocked by the browser, OpenNote says so and renews with your next click
    anywhere in the page, then resumes syncing.

Fixed

  • Web version: on the very first visit the app could start before its service worker was in control and show an empty library; it now waits longer and reloads itself once if needed.
  • Web version: a new release now shows up on the next visit instead of up to ten minutes later (the page is revalidated).

Added

  • Sync with Google Drive (web version), built but not switched on yet. Connect your Google account, choose a passphrase, and
    your notes sync between every browser where you do the same. Notes are encrypted on your device first; Google only stores
    unreadable files in a hidden app folder of your Drive that no other app can see. It needs a one-time Google Cloud setup by the
    project owner: see docs/GOOGLE-DRIVE-SETUP.md.
  • Web version at https://rldona.github.io/OpenNote/ (GitHub Pages): the whole app in your browser, with no server and no
    account. Your notes are stored in that browser, on that device. Installable as an app from the browser menu. It does not sync
    yet; that is the next step.
  • OpenNote can run entirely in a browser, with no server (npm run build:standalone, static files in
    web/dist-standalone). Same interface and same code: the database (SQLite compiled to WebAssembly) and the notes live in the
    browser's own storage. Not published anywhere yet; this is the groundwork for opening your notes on a phone or tablet.

Fixed

  • Markdown export of a note works the same everywhere (the Markdown converter now receives a parsed document instead of text).

Changed

  • Sync internals: the merge engine now talks to a storage transport instead of the file system, so more destinations
    (Google Drive, WebDAV…) can be added without touching the merge rules. Folder sync behaves exactly as before.
    See docs/SYNC-BACKENDS.md for the plan.
  • The note store now sits on two small interfaces (SQL database, attachment storage) instead of Node's SQLite and file system
    directly. Nothing changes for users; it is the groundwork for running OpenNote in the browser. The test suite runs on both
    Node's SQLite and sqlite-wasm.