tauri-store
Next
Nothing yet.
1.1.0
Features
1.0.2
Documentation
- Update README.
1.0.1
Bug fixes
- Remove accidentally exposed internal command.
1.0.0
Breaking Changes
- Rename
Store::gettoStore::get_raw. - Rename
Store::try_get,Store::try_get_or,Store::try_get_or_default, andStore::try_get_or_elsetoStore::get,Store::get_or,Store::get_or_default, andStore::get_or_else, respectively. - Rename
Store::statetoStore::raw_state. - Rename
StoreCollection::try_state,StoreCollection::try_state_or,StoreCollection::try_state_or_default, andStoreCollection::try_state_or_elsetoStoreCollection::state,StoreCollection::state_or,StoreCollection::state_or_default, andStoreCollection::state_or_else, respectively. - Remove
StoreCollection::set_pathand its respective JavaScript command (setStoreCollectionPath); - Remove
meta.tauristorefile. - Remove
prettyoption from the plugin builder.
Features
- Add
Marshalertrait for custom serialization and deserialization. - Add
JsonMarshalerandPrettyJsonMarshalerto save the stores as JSON files. - Add
TomlMarshalerandPrettyTomlMarshalerto save the stores as TOML files. - Add
StoreCollection::app_handle. - Allow to destroy stores, also deleting their respective files.
- Introduce unchecked variants for
getmethods (e.g.Store::get_unchecked). - Use sandboxed environment on Android and iOS (thanks @saurL).
- Stabilize store migrations.
0.12.1
Dependencies
- Update minor dependencies.
0.12.0
Features
- Allow adding or removing stores from the save and sync deny lists after the plugin has been built.
- Add
allowSave,allowSync,denySave, anddenySynccommands. - Add
saveandsyncoptions.
Bug fixes
- Stop unnecessarily requiring
filterKeysto be set when the strategy is a callback.
0.11.0
Breaking Changes
- Introduce a
CollectionMarkergeneric for theStoreandStoreCollectiontypes to enable plugin interoperability. - Remove top-level
with_storehelper.
Features
- Allow to start stores automatically.
- Add
store_collection_with_marker.
0.10.5
Features
- Expose
TimeStrategy,TimeStrategyKind,LooseTimeStrategyKind,StoreKeyFilter, andStoreKeyFilterStrategytypes.
0.10.4
Dependencies
- Update dependencies.
0.10.3
Features
- Add
try_state_or,try_state_or_default, andtry_state_or_elsemethods.
0.10.2
Dependencies
- Update dependencies.
0.10.1
Documentation
- Update README.
0.10.0
Breaking Changes
- Remove
Store.subscribeKey.
Features
- Add experimental support for store migrations.
- Use
alien-signalsas the underlying reactivity system.
0.9.0
Breaking Changes
- Use different files for the stores when in development mode.
- Add
StoreIdstruct. - Add
WatcherIdstruct. - Remove deprecated
StoreFrontendOptions.onError.
0.8.1
Documentation
- Ensure that Cargo features are properly documented on
docs.rs.
0.8.0
Breaking Changes
- Add
pluginfeature. Now it's possible usetauri-storedirectly as a Tauri plugin. This is enabled by default, so anyone developing a plugin based on thetauri-storecrate 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
StoreStateis now a struct instead of a type alias.- Remove the
StoreStateExttrait. - Rename
StoreCollection::store_statetoStoreCollection::state. - Rename
StoreCollection::try_store_statetoStoreCollection::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_storeas a provided method.
Enhancements
Store::patch,Store::patch_with_source,Store::set,StoreCollection::patch, andStoreCollection::setnow take a generic parameter for the value type.
0.5.0
Breaking Changes
- Remove
unstable-asyncfeature.
Enhancements
- Add
preludemodule.
0.4.0
Breaking Changes
- Take
&mut selfinStore::watchandStore::unwatch. - Return
Tinstead ofResult<T, Error>fromwith_storefunctions. Store::set,Store::patch, andStore::patch_with_sourceare now async.- Remove
ahashfeature. - Remove
boxedandboxed_okmacros.
Features
- Add
StoreCollection::default_save_strategyandStoreCollectionBuilder::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_strategyandStore::set_save_strategy. - Allow debouncing and throttling when saving the stores.
- Add
boxedfunction.
Enhancements
StoreCollectionBuilder::autosave,StoreCollection::clear_autosave, andStoreCollection::set_autosaveare no longer gated by theunstable-asyncfeature.
Bug Fixes
- Consume the first autosave tick immediately before starting the interval.
Performance
- Use the
ResourceTableto manage each store independently, instead of using a single hash map for all of them.