Skip to content

somnia v0.7.0

Choose a tag to compare

@github-actions github-actions released this 21 Jun 15:28
· 9 commits to main since this release

Pre-1.0 API stabilization plus release-pipeline hardening. Breaking in two
small ways — update count("") → count(), and deref any &String args to
builder string methods. Bump your dependency to somnia = "0.7".

Changed (0.7.0)

  • (Breaking) Table::count() drops its ignored argument — was
    count(field: &str) (the field was never used); now count(). Update
    table().count("") → table().count().
  • (Breaking) builder string args widened to impl Into<String> for
    consistency with the newer builders: Select::fetch/omit/split,
    Create/Update::set_lit/set_expr/set_raw (the col name), and
    DefineIndex::search/hnsw/mtree. &str literals and String still work;
    callers passing &String must deref (s.as_str() or s.clone()).
  • Release pipeline — scripts/release.sh now runs cargo doc -D warnings
    before tagging (catches broken doc links pre-release), and the publish workflow
    retries each cargo publish up to 5× with a 30s backoff to ride out crates.io
    index-propagation lag (which had left somnia-cli unpublished in 0.6.0 until a
    manual re-run).

Fixed (0.7.0)

  • Docs — removed a broken intra-doc link in the SurrealEdge derive doc
    (the proc-macro crate can't resolve ::somnia_core::… paths), which failed
    cargo doc -D warnings in CI.