mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
* refactor(store)!: reset to defaults before merging the on-disk state in reload
`Store::reload` / `reload()` previously merged the on-disk state into the
current in-memory store. It now resets the store to its defaults first,
so in-memory keys that are neither in the defaults nor on disk are
dropped. `reload_ignore_defaults` / `reload({ ignoreDefaults: true })`
is unchanged.
* test(store): cover reload resetting to the defaults before merging the on-disk state
---------
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
41 lines
1.1 KiB
TOML
41 lines
1.1 KiB
TOML
[package]
|
|
name = "tauri-plugin-store"
|
|
version = "3.0.0-alpha.1"
|
|
description = "Simple, persistent key-value store."
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
repository = { workspace = true }
|
|
links = "tauri-plugin-store"
|
|
exclude = [
|
|
"/banner.png",
|
|
"/examples",
|
|
"/guest-js",
|
|
"/package.json",
|
|
"/rollup.config.js",
|
|
"/tsconfig.json",
|
|
]
|
|
|
|
[package.metadata.platforms.support]
|
|
windows = { level = "full", notes = "" }
|
|
linux = { level = "full", notes = "" }
|
|
macos = { level = "full", notes = "" }
|
|
android = { level = "full", notes = "" }
|
|
ios = { level = "full", notes = "" }
|
|
|
|
[build-dependencies]
|
|
tauri-plugin = { workspace = true, features = ["build"] }
|
|
|
|
[dependencies]
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tauri = { workspace = true }
|
|
tracing = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
dunce = { workspace = true }
|
|
tokio = { version = "1", features = ["sync", "time", "macros"] }
|
|
|
|
[dev-dependencies]
|
|
tauri = { workspace = true, features = ["test"] }
|