Skip to content

v2.0.0

Compare
Choose a tag to compare
@greenrobot-team greenrobot-team released this 21 Mar 10:41
· 333 commits to main since this release

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
    (or dart run build_runner build for Dart Native apps) after updating!
  • Added and updated async APIs in Box:
    • new getAsync, getManyAsync, getAllAsync,
    • new putAsync and putManyAsync which support objects with relations,
    • renamed the former putAsync to putQueuedAwaitResult,
    • new putAndGetAsync and putAndGetManyAsync which return a copy of the given objects with new
      IDs set.
    • new removeAsync, removeManyAsync and removeAllAsync.
  • Add new async Query APIs: findAsync, findFirstAsync, findUniqueAsync, findIdsAsync and
    removeAsync.
  • Support sending objects containing ToOne and ToMany across isolates, e.g. when using
    store.runInTransactionAsync. #340
  • Store.attach (and Store.fromReference) do not longer accept a null model, which was not
    supported anyhow.
  • Breaking change: renamed store.awaitAsyncSubmitted and awaitAsyncCompletion to
    awaitQueueSubmitted and awaitQueueCompletion to 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.