tauri-store
Next
Nothing yet.
0.10.1
Documentation
- Update README.
0.10.0
Breaking Changes
- Remove
Store.subscribeKey
.
Features
- Add experimental support for store migrations.
- Use
alien-signals
as the underlying reactivity system.
0.9.0
Breaking Changes
- Use different files for the stores when in development mode.
- Add
StoreId
struct. - Add
WatcherId
struct. - Remove deprecated
StoreFrontendOptions.onError
.
0.8.1
Documentation
- Ensure that Cargo features are properly documented on
docs.rs
.
0.8.0
Breaking Changes
- Add
plugin
feature. Now it's possible usetauri-store
directly as a Tauri plugin. This is enabled by default, so anyone developing a plugin based on thetauri-store
crate should make sure to disable this feature.
0.7.2
Documentation
- Update README.
0.7.1
Bug Fixes
- Remove
#[expect]
attribute.
0.7.0
Features
0.6.0
Breaking Changes
StoreState
is now a struct instead of a type alias.- Remove the
StoreStateExt
trait. - Rename
StoreCollection::store_state
toStoreCollection::state
. - Rename
StoreCollection::try_store_state
toStoreCollection::try_state
.
Features
- Add
Store::try_get_or
,Store::try_get_or_default
, andStore::try_get_or_else
. - Add
StoreCollection::try_get_or
,StoreCollection::try_get_or_default
, andStoreCollection::try_get_or_else
. - Add
ManagerExt::with_store
as a provided method.
Enhancements
Store::patch
,Store::patch_with_source
,Store::set
,StoreCollection::patch
, andStoreCollection::set
now take a generic parameter for the value type.
0.5.0
Breaking Changes
- Remove
unstable-async
feature.
Enhancements
- Add
prelude
module.
0.4.0
Breaking Changes
- Take
&mut self
inStore::watch
andStore::unwatch
. - Return
T
instead ofResult<T, Error>
fromwith_store
functions. Store::set
,Store::patch
, andStore::patch_with_source
are now async.- Remove
ahash
feature. - Remove
boxed
andboxed_ok
macros.
Features
- Add
StoreCollection::default_save_strategy
andStoreCollectionBuilder::default_save_strategy
. - Add
StoreCollection::save_now
,StoreCollection::save_some_now
, andStoreCollection::save_all_now
, to save a store immediately, ignoring the save strategy. - Add
Store::save_on_change
. - Add
Store::save_now
. - Add
Store::set_options
. - Add
Store::save_strategy
andStore::set_save_strategy
. - Allow debouncing and throttling when saving the stores.
- Add
boxed
function.
Enhancements
StoreCollectionBuilder::autosave
,StoreCollection::clear_autosave
, andStoreCollection::set_autosave
are no longer gated by theunstable-async
feature.
Bug Fixes
- Consume the first autosave tick immediately before starting the interval.
Performance
- Use the
ResourceTable
to manage each store independently, instead of using a single hash map for all of them.