From 4d6bb78d533464624f2bdc4a4fedacd2c2f974ed Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Mar 2026 13:28:55 +0000 Subject: [PATCH] chore: version packages --- .changeset/sql-flush-on-shutdown.md | 7 ------- CHANGELOG.md | 6 ++++++ tinycloud-auth/Cargo.toml | 2 +- tinycloud-core/Cargo.toml | 2 +- tinycloud-node-server/Cargo.toml | 2 +- tinycloud-sdk-rs/Cargo.toml | 2 +- tinycloud-sdk-wasm/Cargo.toml | 2 +- 7 files changed, 11 insertions(+), 12 deletions(-) delete mode 100644 .changeset/sql-flush-on-shutdown.md diff --git a/.changeset/sql-flush-on-shutdown.md b/.changeset/sql-flush-on-shutdown.md deleted file mode 100644 index 06c6a05..0000000 --- a/.changeset/sql-flush-on-shutdown.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"core": patch ---- - -Fix SQL data loss: flush in-memory databases to file on actor shutdown. - -SQL database actors start in-memory and only promote to file when data exceeds the 10 MiB memory threshold. Small databases never hit this, so when the actor idles out after 5 minutes, all data is silently lost. This adds a flush step on shutdown that persists any in-memory database to disk via the SQLite backup API, regardless of size. diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f58f53..4b17dc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [1.2.1] - 2026-03-17 + +- Fix SQL data loss: flush in-memory databases to file on actor shutdown. + +SQL database actors start in-memory and only promote to file when data exceeds the 10 MiB memory threshold. Small databases never hit this, so when the actor idles out after 5 minutes, all data is silently lost. This adds a flush step on shutdown that persists any in-memory database to disk via the SQLite backup API, regardless of size. + ## [1.2.0] - 2026-03-12 - Add `datadir` config to centralize all data paths under a single root directory. diff --git a/tinycloud-auth/Cargo.toml b/tinycloud-auth/Cargo.toml index 19b78a6..610b2d1 100644 --- a/tinycloud-auth/Cargo.toml +++ b/tinycloud-auth/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tinycloud-auth" -version = "1.2.0" +version = "1.2.1" edition = "2021" [dependencies] diff --git a/tinycloud-core/Cargo.toml b/tinycloud-core/Cargo.toml index c0c5a0c..074955a 100644 --- a/tinycloud-core/Cargo.toml +++ b/tinycloud-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tinycloud-core" -version = "1.2.0" +version = "1.2.1" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/tinycloud-node-server/Cargo.toml b/tinycloud-node-server/Cargo.toml index aaacd44..572bd26 100644 --- a/tinycloud-node-server/Cargo.toml +++ b/tinycloud-node-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tinycloud-node-server" -version = "1.2.0" +version = "1.2.1" authors = ["TinyCloud Protocol"] edition = "2021" license-file = "../LICENSE.md" diff --git a/tinycloud-sdk-rs/Cargo.toml b/tinycloud-sdk-rs/Cargo.toml index 5eec3e4..e93a577 100644 --- a/tinycloud-sdk-rs/Cargo.toml +++ b/tinycloud-sdk-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tinycloud-sdk-rs" -version = "1.2.0" +version = "1.2.1" edition = "2021" [dependencies] diff --git a/tinycloud-sdk-wasm/Cargo.toml b/tinycloud-sdk-wasm/Cargo.toml index 2cb9330..10c6d01 100644 --- a/tinycloud-sdk-wasm/Cargo.toml +++ b/tinycloud-sdk-wasm/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tinycloud-sdk-wasm" -version = "1.2.0" +version = "1.2.1" edition = "2021" [lib]