Skip to content

v0.0.122

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 00:18
1ae6bce

You can now import and export a table's rows or a type's items as CSV, TSV, JSON, JSON Lines or a workbook, read a table's totals by group and a view's groups, and an update or install checks who made a release before it runs anything.

Breaking: four things that earlier releases accepted are now refused or gone.

  • A connector exists only as part of an installed plugin. POST /connectors answers 403 plugin_install_required unless the key is the one a connector host minted for a plugin's connector, and marfa connectors register is removed. Publish the connector in a plugin and run it on a connector host. Docs
  • marfa export --format ndjson is removed, and marfa export writes only the archive. To move one table's rows or one type's items, use marfa rows export or marfa items export.
  • POST /items and a POST /items/bulk entry that send a version other than 0 for an item that doesn't exist now answer item_not_found instead of creating the item. Send version: 0, or no version, to create.
  • A source name that begins import: must now have the form import:<type>/<name>. Any other name with that prefix answers 400 validation_error. A source that a key or connector already held keeps working.

Server

  • Added: POST /items/{id}/tables/{table}/groups answers row counts and totals by group over one or two columns, with dates grouped by day, week, month or year in a time zone you name. Docs
  • Added: A row read takes columns, so it answers only the columns you name. Docs
  • Added: A row patch or delete takes expect, the values you read. If the row has changed, the whole batch is refused with 409 row_changed and nothing is written. Docs
  • Added: GET /views/{id}/groups answers a saved view's groups, each with the number of items the view lists to you. Docs
  • Added: A key or app that may write a type can write items under an import source, import:<type>/<name>, without claiming it, so two machines that import the same file land on the same items.
  • Added: A POST /items/bulk entry takes read_tags, so tags someone added since you read the item aren't replaced.
  • Added: GET /items/{id}?include=reading says what became of a file's bytes: waiting, read, filled or not_read, with the reason. GET / lists the file types this build can't read as unread_types. Docs
  • Added: Every type answers creatable, which is false for hidden types and for types a connector holds read only, so an app knows which types to offer in a New menu. It restricts no write. Docs
  • Added: GET /edge-types?include=counts answers how many edges of each type you can read, and the overview gives each edge type's count and reverse name. Docs
  • Added: Over MCP, a marfa_bulk_save entry takes edges, and item writes accept an edge type's reverse name, so an agent can name a new item's parent with child-of in the call that saves it. marfa_read_rows takes columns, group and time_zone, and marfa_get answers a view's groups. Docs
  • Added: POST /webhooks/{id}/secret replaces a webhook subscription's signing secret and keeps what is queued for it. Docs
  • Added: A plugin's connector that signs in to Google can ask for a short-lived access token with POST /connectors/{id}/access-token. When the provider refuses the sign-in, the owner sees it in GET /attention and in the sign-in status.
  • Added: An app you approve can ask for any app vendor's namespace, app.<vendor>.*, including one that holds nothing yet. Your approval on the server's page is the safeguard. Docs
  • Changed: An update verifies GitHub's proof that Marfa's release workflow made the release before it downloads the archive. Without that proof, nothing is unpacked or swapped in, and the update ends with a reason. Docs
  • Changed: POST /update answers update_unavailable while the server still keeps the record of an earlier update, and names the step that clears it. Docs
  • Changed: A conflicted copy now has a references edge to each item its body links to. Docs
  • Changed: A row write over 64 KiB is refused with a message that says to keep a long text in a file item and name it in an item column.
  • Changed: A table's totals leave out every value the column's type refuses, such as a fraction in an integer column.
  • Changed: A preview passes over the headings before an item's first line of text, so it no longer begins with a heading's words.
  • Fixed: A row write that sends 1 for a stored 1.0 answers unchanged and writes nothing. A type definition whose numbers come back in another form no longer counts as changed.
  • Fixed: A backup to a backup folder keeps the folder's lock until it ends, even when its destination changes during the backup. Docs
  • Fixed: A backup part, backup manifest or file copy that an object store moved to an archived class is no longer counted as intact. A backup stores a needed part again, health reports archived_files and archived_backups, and a restore that needs an archived file says so. Docs
  • Fixed: After a backup was written without a lost file, a scheduled backup is skipped until something changes or the file can be read again, instead of writing an identical backup at every interval.
  • Fixed: The approval pages count each list of type choices only under its own row, and a form posted without script that needs a recent sign-in gets a page with a Sign In link.
  • Fixed: The webhook sender wakes for every other writer's commit and waits before it retries a failing write.

CLI

  • Added: marfa rows import, marfa rows export, marfa items import and marfa items export move one table's rows or one type's items through a CSV, TSV, JSON or JSON Lines file, and an import also reads an .xlsx workbook. An import shows what would change and saves only when you say yes. Docs
  • Added: marfa rows groups and marfa device rows groups read a table's totals by group, and marfa views groups <id> reads a view's groups.
  • Added: --columns on marfa rows list and marfa rows get, --counts on marfa edge-types list, and --include reading on marfa items get.
  • Added: marfa webhooks replace-secret <id> replaces a subscription's signing secret.
  • Changed: marfa plugins install <name> always fetches the plugin of that name. Give a local file or folder of the same name as ./<name>.
  • Changed: marfa hosts list shows each host's name, when it was linked, when it last looked and its connectors.
  • Changed: marfa connectors list shows each connector's current problems in its plain table. Docs
  • Changed: The install script checks GitHub's proof of who made a release, with gh or cosign, before it installs. With neither tool it says so and installs on the checksum alone, unless you set MARFA_REQUIRE_PROOF=1. Docs
  • Fixed: The hints about a missing backup destination and the sign-in address name commands that work from any signed-in machine, and marfa config unset takes --confirm-address-change.
  • Fixed: Two messages printed to standard error at the same moment no longer run together on one line.

Core

  • Added: A working copy answers a table's totals by group, and a row read with columns, as the server does.
  • Added: The core reads import files, plans an import and writes export files, and the Swift binding exposes it, so an app can offer the same import and export as the command line.
  • Added: The type catalog carries each type's revision and creatable.
  • Changed: A trash of several items that is refused for waiting writes fails with a validation error, code writes_waiting, that lists each waiting write and its item. Docs
  • Fixed: A write the server answers idempotency_key_in_flight counts toward the limit of five only after the server's claim can no longer stand, so a slow server no longer ends a healthy write. Docs
  • Fixed: A refill in place keeps the hidden app.* items the copy holds instead of dropping them.
  • Fixed: A row write is no longer judged conflicted over a number that reads the same, such as 1 and 1.0.

TypeScript SDK

  • Added: The client's types include the new operations and fields: table and view groups, columns and expect on rows, read_tags, reading, creatable, edge type counts, the webhook secret and the connector access token.

Upgrading: This release opens the database of v0.0.121 in place, and keeps a copy beside it as marfa.db.before-upgrade first. v0.0.121 can't open the database once this release has changed it, so go back with that copy (how). v0.0.121 can restore a backup this release writes, because the backup format is unchanged (version 5). A device's working copy upgrades its store in place the first time this release opens it and keeps every waiting write. An earlier release can't open that store afterward.

Full changelog: v0.0.121...v0.0.122