Skip to content

Move to SDK 0.1.0-beta.188 and its new API - #69

Merged
callumalpass merged 3 commits into
mainfrom
feat/sdk-polish-migration
Nov 12, 2026
Merged

callumalpass merged 3 commits into
mainfrom
feat/sdk-polish-migration

Conversation

@callumalpass

Copy link
Copy Markdown
Collaborator

What

Moves the plugin to @mdbase-dev/sdk@0.1.0-beta.188, whose API changed (mdbase-connect #1486). The first commit is the automation's repin and version bump from #68, unchanged; the rest moves the code. #68 cannot pass by itself.

Changes

  • API move, behaviour unchanged: reads take one options object; submit resolves one Write; record values are plain JSON; status comes from the SDK's one MdbaseSync object.
  • Status wording kept: "Offline" shows for no network or a service that does not answer, as before, not for every reconnect. "Downloading the collection." still shows during a first download; the SDK no longer has a separate status for it, so the page reads client.status.installing.

A user could notice

Some detail lines under the status can read differently when two conditions hold at once, because the SDK now orders the states.

Checks

npm run lint, npm test (148 and 117 pass), npm run test:release (14 pass), npm run check:mobile (mobile safe, 3.8 MB raw).

Not checked

The live Obsidian UX suite was not run. Only the production SDK is pinned in this repository; LAB and staging builds are made by hand with --native-sdk.

- Loopback page: reads take one options object (`get(ref, { include })`,
  `queryPages(query, { include, onReset })`), `watchChanges(onChanges,
  { cursor })`, `submit` resolves one Write, and the write ledger is
  `snapshot.sync.writes`.
- The page now forwards `MdbaseSync` (`state`, `connection`, `health`, ...)
  instead of the removed StatusSummary `kind`/`text`. The plugin keys its
  offline wording and notice on `connection`, keeping a busy, rate-limited
  or signed-out service out of "Offline" as before, and uses its own
  `readyText` where it held the SDK's ready text.
- Desktop link: conflict values are plain JSON, so `toPlain` goes.
Offline is no network or an unreachable service, as before; a replica that is
still connecting is not offline. A first download still reads "Downloading
the collection.": the page passes the replica's installing flag.
@callumalpass
callumalpass merged commit 093999a into main Nov 12, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant