v2.0.0
To upgrade to this major release run flutter pub upgrade objectbox --major-versions
(or for Dart Native apps dart pub upgrade objectbox --major-versions).
- Breaking changes to generated code: run
flutter pub run build_runner build
(ordart run build_runner buildfor Dart Native apps) after updating! - Added and updated async APIs in
Box:- new
getAsync,getManyAsync,getAllAsync, - new
putAsyncandputManyAsyncwhich support objects with relations, - renamed the former
putAsynctoputQueuedAwaitResult, - new
putAndGetAsyncandputAndGetManyAsyncwhich return a copy of the given objects with new
IDs set. - new
removeAsync,removeManyAsyncandremoveAllAsync.
- new
- Add new async
QueryAPIs:findAsync,findFirstAsync,findUniqueAsync,findIdsAsyncand
removeAsync. - Support sending objects containing
ToOneandToManyacross isolates, e.g. when using
store.runInTransactionAsync. #340 Store.attach(andStore.fromReference) do not longer accept a null model, which was not
supported anyhow.- Breaking change: renamed
store.awaitAsyncSubmittedandawaitAsyncCompletionto
awaitQueueSubmittedandawaitQueueCompletionto avoid any mix-up with the new async methods. - Removed deprecated
Store.runIsolated. - Require at least Dart SDK 2.15 (shipped with Flutter 2.8.0).
In this release objectbox_flutter_libs ships with objectbox-android 3.5.1 and ObjectBox pod 1.8.1.