Relate 1.0.2
Imports that keep their footing, shortest paths that honor the filter, and a tidier Swift API
Three fixes for things that were right in spirit and wrong in the details.
Large imports commit in batches
Each fs-to-graph batch now commits on its own. A tree larger than the 64 MB WAL record cap can import, and if you rerun, the batches that already landed stay.
Shortest paths mind the filter
A MATCH-level WHERE over a path now filters keyword shortest selectors after the selection, so a longer path can’t sneak in just because it passes the filter.
relate --database ./friends "MATCH p = SHORTEST 1 (a)-[*]-(b) WHERE length(p) >= 2 RETURN p"
A tidier Swift API
The Swift client gets typed namespaces, clearer errors and metadata names that don’t collide with Apple’s.
Database(url:readOnly:), a typedconnect(namespace:)andsetNamespace(_:), plus predicates such asEngineError.isConstraintViolationandRelateError.isRetryable, make opening, connecting and handling failure more direct.- Calls that can fail only with the package’s own error use typed
throws(RelateError). - Renames:
NotificationandNamespacebecomeQueryNotificationandDatabaseNamespace, andSeverityandCategorybecomeNotificationSeverityandNotificationCategory. The oldNotificationandNamespaceare removed; the oldSeverityandCategorystay as deprecated aliases.
Every change is in the v1.0.2 release notes.
Relatedly,
Archie & The Chords