Skip to content

chore(wavesyncdb): bump to 0.6.0#56

Merged
pvg13 merged 1 commit into
mainfrom
chore/wavesyncdb-0.6.0
May 12, 2026
Merged

chore(wavesyncdb): bump to 0.6.0#56
pvg13 merged 1 commit into
mainfrom
chore/wavesyncdb-0.6.0

Conversation

@pvg13

@pvg13 pvg13 commented May 12, 2026

Copy link
Copy Markdown
Owner

Minor bump under pre-1.0 semver for the breaking changes that just landed in #55.

Breaking

  • 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. Old behavior is still 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. Existing native users already satisfy this via DeriveEntityModel; wasm-only entities (added in this release) need it explicitly.

Additive

  • BrowserEntity auto-derived from #[derive(SyncEntity)] on wasm.
  • New SyncHandle cross-target transport facade with submit::<E>(&entity).
  • New SyncedTableEntity metadata trait.

Test plan

  • cargo build -p wavesyncdb — version compiles
  • CI passes

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::<E>`
  for one-line writes.
- `SyncedTableEntity` trait + its derive emission.
@pvg13 pvg13 merged commit 35e1848 into main May 12, 2026
1 check passed
@pvg13 pvg13 deleted the chore/wavesyncdb-0.6.0 branch May 12, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant