Repository navigation
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 /connectorsanswers403 plugin_install_requiredunless the key is the one a connector host minted for a plugin's connector, andmarfa connectors registeris removed. Publish the connector in a plugin and run it on a connector host. Docs marfa export --format ndjsonis removed, andmarfa exportwrites only the archive. To move one table's rows or one type's items, usemarfa rows exportormarfa items export.POST /itemsand aPOST /items/bulkentry that send aversionother than 0 for an item that doesn't exist now answeritem_not_foundinstead of creating the item. Sendversion: 0, or no version, to create.- A source name that begins
import:must now have the formimport:<type>/<name>. Any other name with that prefix answers400 validation_error. A source that a key or connector already held keeps working.
Server
- Added:
POST /items/{id}/tables/{table}/groupsanswers 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
patchordeletetakesexpect, the values you read. If the row has changed, the whole batch is refused with409 row_changedand nothing is written. Docs - Added:
GET /views/{id}/groupsanswers 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/bulkentry takesread_tags, so tags someone added since you read the item aren't replaced. - Added:
GET /items/{id}?include=readingsays what became of a file's bytes:waiting,read,filledornot_read, with the reason.GET /lists the file types this build can't read asunread_types. Docs - Added: Every type answers
creatable, which isfalsefor 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=countsanswers 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_saveentry takesedges, and item writes accept an edge type's reverse name, so an agent can name a new item's parent withchild-ofin the call that saves it.marfa_read_rowstakescolumns,groupandtime_zone, andmarfa_getanswers a view's groups. Docs - Added:
POST /webhooks/{id}/secretreplaces 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 inGET /attentionand 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 /updateanswersupdate_unavailablewhile 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
referencesedge 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
integercolumn. - 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
1for a stored1.0answersunchangedand 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_filesandarchived_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 importandmarfa items exportmove one table's rows or one type's items through a CSV, TSV, JSON or JSON Lines file, and an import also reads an.xlsxworkbook. An import shows what would change and saves only when you say yes. Docs - Added:
marfa rows groupsandmarfa device rows groupsread a table's totals by group, andmarfa views groups <id>reads a view's groups. - Added:
--columnsonmarfa rows listandmarfa rows get,--countsonmarfa edge-types list, and--include readingonmarfa 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 listshows each host's name, when it was linked, when it last looked and its connectors. - Changed:
marfa connectors listshows each connector's current problems in its plain table. Docs - Changed: The install script checks GitHub's proof of who made a release, with
ghorcosign, before it installs. With neither tool it says so and installs on the checksum alone, unless you setMARFA_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 unsettakes--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
revisionandcreatable. - Changed: A trash of several items that is refused for waiting writes fails with a
validationerror, codewrites_waiting, that lists each waiting write and its item. Docs - Fixed: A write the server answers
idempotency_key_in_flightcounts 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
1and1.0.
TypeScript SDK
- Added: The client's types include the new operations and fields: table and view groups,
columnsandexpecton 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