From 045b663858a30149d259eb480be3e23df1c8c6a0 Mon Sep 17 00:00:00 2001 From: pvg13 Date: Tue, 12 May 2026 23:34:16 +0200 Subject: [PATCH] chore(wavesyncdb): bump to 0.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Breaking changes since 0.5.0 that warrant the minor bump under pre-1.0 semver: - `wavesyncdb::dioxus::use_synced_table` signature changed on both targets — it now takes a `SyncHandle` and a `SyncedTableEntity` type parameter instead of the per-backend `(WaveSyncDb)` / `(client, table)` argument shapes. The old behavior remains available behind `use_synced_table_db` (native) and `use_synced_table_client` (web). - `#[derive(SyncEntity)]` now requires `#[sea_orm(table_name = "...")]` at the struct level on all targets — the derive reads it to populate `SyncedTableEntity::table_name()`. Existing native users already satisfy this via `DeriveEntityModel`; wasm-only entities (added in this release) need it explicitly. Additive changes that don't break anything but expand the surface: - `BrowserEntity` is now auto-derived from `#[derive(SyncEntity)]` on wasm — manual impls still compile and are documented as the escape hatch for fields that can't round-trip through `serde_json::Value`. - New `SyncHandle` transport facade with cross-target `submit::` for one-line writes. - `SyncedTableEntity` trait + its derive emission. --- Cargo.toml | 2 +- wavesyncdb/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ba87666..d834c4a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ exclude = [ resolver = "3" [workspace.dependencies] -wavesyncdb = { path = "wavesyncdb", version = "0.5.0" } +wavesyncdb = { path = "wavesyncdb", version = "0.6.0" } wavesyncdb_derive = { path = "wavesyncdb_derive", version = "0.2.1" } sea-orm = { version = "2.0.0-rc", features = ["sqlx-sqlite", "runtime-tokio", "macros"] } serde = { version = "1.0", features = ["derive"] } diff --git a/wavesyncdb/Cargo.toml b/wavesyncdb/Cargo.toml index a80c5d5..079aed1 100644 --- a/wavesyncdb/Cargo.toml +++ b/wavesyncdb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wavesyncdb" -version = "0.5.0" +version = "0.6.0" edition = "2024" license = "AGPL-3.0-or-later OR LicenseRef-Commercial" description = "WaveSyncDB is a lightweight, distributed database synchronization engine designed to bridge the gap between real-time data streaming and relational storage. It ensures high-consistency data replication across decentralized nodes with a focus on low-latency updates."