Skip to content

v0.1.8

Choose a tag to compare

@github-actions github-actions released this 02 Oct 18:47
· 2784 commits to main since this release
bed5569

Highlights

SDKs for every platform.

  • New SDKs: Go (go get github.com/fenecdb/fenec/integrations/go@v0.1.8) and .NET (FenecDb on NuGet) talk to fenec-server over HTTP.
  • One query builder in four languages: Python, JavaScript, Go and .NET build the same FenecQL from the same chain. A 175-case golden file checks this in CI.

The engine in apps. fenecdb now runs inside native apps: Swift (SwiftPM, iOS/macOS), Kotlin (com.fenecdb:fenecdb, com.fenecdb:fenecdb-android) and Dart/Flutter (fenecdb, fenecdb_flutter). Each has:

  • a file on the device;
  • the same builder;
  • live queries for SwiftUI, Compose and Flutter;
  • sync with a server: offline writes survive restarts and land exactly once.

State in the page. A local Fenec has live queries with no server, and useLiveQuery works with it.

The schema in code.

  • Declare it in TypeScript with Drizzle 1.0's syntax (fenecTable, defineRelations, $inferSelect), or as a schema.fenecql file in any SDK.
  • At open, safe differences are applied and destructive ones refused with their fix. Migrations run once.
  • fenec types writes TS, Python, Go, C#, Swift, Kotlin and Dart.

Queries.

  • in (get ...) subqueries.
  • @ttl fields: expired rows are never read, and the primary sweeps them.
  • Long in lists use a hash lookup: 2 000 values over 200 000 rows went from 2.3 s to 16 ms.

Sync. The browser's sync and the native core are held to 55 shared scenarios. The browser now:

  • keeps a write through network failures and retries it;
  • reaches an unanswered insert's row on update or delete;
  • keeps pending writes across reloads;
  • sends only from the leader tab.

Reads beside writes. The longest read beside large write batches went from 17.4 ms to 4.8 ms.

Sizes. The browser module is 523 KB raw, 208 KB gzip and 174 KB brotli. The schema check added 7.5 KB brotli of that.

What's Changed

Full Changelog: v0.1.7...v0.1.8