Repository navigation
v0.1.8
Highlights
SDKs for every platform.
- New SDKs: Go (
go get github.com/fenecdb/fenec/integrations/go@v0.1.8) and .NET (FenecDbon NuGet) talk tofenec-serverover 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 aschema.fenecqlfile in any SDK. - At open, safe differences are applied and destructive ones refused with their fix. Migrations run once.
fenec typeswrites TS, Python, Go, C#, Swift, Kotlin and Dart.
Queries.
in (get ...)subqueries.@ttlfields: expired rows are never read, and the primary sweeps them.- Long
inlists 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
- RELEASING.md: the rename note went out with 0.1.7 by @furkankinyas in #186
- Phase 53: Go and .NET SDKs over HTTP by @furkankinyas in #187
- Bump cloudflare/wrangler-action from 3 to 4 by @dependabot[bot] in #178
- Phase 54: the query builder in the Python, Go and .NET SDKs by @furkankinyas in #188
- Subqueries and expiry: in (get ...) and @Ttl by @furkankinyas in #189
- The builder table: one call per cell, and why Python's starts with collection by @furkankinyas in #190
- Phase 55: live queries on a database in the page by @furkankinyas in #191
- Phase 56: the embedded engine in native and mobile apps by @furkankinyas in #192
- TypeScript examples, type-checked in CI; toFenecQL is not a step by @furkankinyas in #193
- Phase 57: native apps sync with a server by @furkankinyas in #194
- Phase 58: the schema in code — Drizzle 1.0 syntax, a FenecQL schema file, one planner by @furkankinyas in #195
- Phase 59: the browser's sync keeps every write, held to the native core by 55 shared scenarios by @furkankinyas in #196
- 0.1.8 by @furkankinyas in #197
- swift-binary builds fenec-server before the Swift tests by @furkankinyas in #198
- Package.swift: the XCFramework of v0.1.8 by @furkankinyas in #199
Full Changelog: v0.1.7...v0.1.8