Skip to content

v0.0.126

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 07:38
0c49290

An owner can let a two-way connector sync their own items, an app keeps its data when it signs in again, and writes that replace or delete something now name what they read, so they never undo someone else's change.

Breaking: Replacing or removing a type (PUT or DELETE /types/{id}) now needs the revision you read, and changing a webhook (PATCH /webhooks/{id}) needs its version; without one, the server answers 400 missing_required_field. A device's queued delete of a table row that someone else changed since is now refused row_changed and the newer row stays, where before it was applied and reported conflicted. An app built on this release's core needs a server of v0.0.126 or later, and an older server is refused server_too_old, so upgrade the server first.

Server

  • Added: An owner can turn on owner_items for a two-way connector's kind, so the connector syncs the owner's own items of the target type, existing ones included, and edits and deletions made at the service reach them. Docs
  • Added: POST /items/trash-named moves only the items you name to the trash, leaving their children, parts and edges where they are. Docs
  • Added: A dry run of a type move answers confirm, and a move that names it changes nothing if the items or settings differ, and rewrites only the settings the dry run showed. Docs
  • Added: GET /config answers enforcement_revision, and a change to enforcement that names an older one is refused 409 version_conflict, so two clients no longer undo each other's access rule. A source allow-list that leaves a type with no writer names it in types_without_writer. Docs
  • Added: Every table row has a version, and a row delete can name it, so it never removes a value its writer did not see. Docs
  • Added: A person's own table can name one of its columns as its order, and its rows read in that order. Docs
  • Added: Every item answers restored_at, so an app can tell whether feed expiry still applies to it. Docs
  • Added: POST /items/bulk honors Idempotency-Key, and DELETE /edges/{id} takes an optional version. Docs
  • Changed: An app keeps its app.<vendor> types and data when it signs in again or from another computer: a vendor belongs to the software_id the app declares, and a new sign-in of the same app shares it once you approve it. Docs
  • Changed: A server's update reads the proof of who made a release from the release's own files, so updates keep working after GitHub retires the attestations API version it used. Docs
  • Fixed: A conflicted copy links to files and embeds as a device would for the same text, by file path, file name and ![[...]] embeds. Docs

CLI

  • Added: marfa items import --link links each imported record to an item a column of the file names, such as a contact to its company. An import that loses the answer to a write sends it again, so its report says what actually happened. Docs
  • Added: marfa items trash-named moves only the named items to the trash. Docs
  • Added: marfa types move --confirm moves only what the dry run showed, and marfa types replace and delete take --revision. Docs

Core

  • Added: A working copy reads each row's version and each item's restored_at, and can queue a delete that trashes only the named items while offline. Docs

TypeScript SDK

  • Added: The client's types carry restored_at, row versions, enforcement_revision, owner_items and the type move's confirm. Docs

Upgrading: This release opens the database of v0.0.124 in place and upgrades it with three migrations, first keeping a copy as marfa.db.before-upgrade. v0.0.124 does not open the upgraded database, so to go back, restore that copy (Docs). v0.0.124 cannot restore a backup this release writes (version 6), but this release restores v0.0.124's. A device's working copy upgrades itself when an app on this core opens it, and fetches its table rows from the server again; writes waiting to be sent are kept.

Full changelog: v0.0.124...v0.0.126