Releases: objectbox/objectbox-dart
Releases · objectbox/objectbox-dart
v1.7.0
- Support more concise method chaining when using a sort order with a query:
// BEFORE final query = (box.query()..order(Person_.name)).build(); // AFTER final query = box.query().order(Person_.name).build();
- Allow
analyzerwith major version 5. #487 - Generator not longer warns that it can not find the package source root if the output directory is
the package root directory. - Query: add
.containsElement, deprecate.containscondition forList<String>. #481 - Add
StorageExceptionwhich is aObjectBoxExceptionwith anerrorCode(aOBX_ERRORcode). - Throw
DbFullExceptioninstead ofObjectBoxExceptionwith message10101 Could not put(error
codeOBX_ERROR_DB_FULL). - Change
Query.findUnique()to throwNonUniqueResultExceptioninstead of
UniqueViolationExceptionif there is more than one result. - Update: objectbox-c 0.18.0.
- Update: objectbox-android 3.5.0. If you are using Admin, make sure to update your
objectbox-android-objectbrowserdependency. - Update: objectbox-swift 1.8.1-rc.
- (Data) Sync only: protocol updates improving efficiency. Reach out via your existing contact to check if any actions are required for your setup.
v1.6.2
- Revert to objectbox-android 3.2.0 to restore query functionality (#460). If you are using Admin, make sure to update your
objectbox-android-objectbrowserdependency. - Generator messages should be more helpful, provide code location when possible and link to docs.
v1.6.1
- Store: add option to pass debug flags. #134
- Add
// coverage:ignore-fileto generated objectbox.g.dart skipping this file from coverage test. - Increase supported
analyzerto v4. #443 - Update documentation on
Querystreams usingwatchto highlight it is a single-subscription
stream that can only be listened to once. Also updated code examples to not imply the stream is
re-usable. - Update: objectbox-android 3.2.1.
v1.6.0
- Require at least Dart SDK 2.14 (shipped with Flutter 2.5.0).
- When using the "All Exceptions" debug option in Visual Studio Code there is no longer an exception
when initializing ObjectBox. #252 - Update: objectbox-c 0.17.0.
- Update: objectbox-android 3.2.0.
v1.5.0
- Add
Store.runInTransactionAsyncto run database operations asynchronously in the background (requires Flutter 2.8.0/Dart 2.15.0 or newer). #415 - Rename
Store.runIsolatedtorunAsync, drop unusedmodeparameter, propagate errors and handle premature isolate exit. #415 - The native ObjectBox library is also searched for in the
libsubfolder on desktop OS (macOS, Linux, Windows). This is where theinstall.shscript downloads it by default.
E.g. it is no longer necessary to install the library globally to rundart testorflutter test. - Windows: Support database directory paths that contain unicode (UTF-8) characters. #406
- Changed
Query.streamto collect results in a worker isolate, which should typically be faster. #420 - Update: objectbox-c 0.16.0.
- Update: objectbox-android 3.1.3.
- Add new task with tag list Flutter example app that shows how to use relations. #419
v1.4.1
v1.4.0
Note: the code generated by ObjectBox has breaking changes, make sure to re-generate it after upgrading using
flutter pub run build_runner build (or dart run build_runner build for Dart only projects).
- Support ObjectBox Admin for Android apps to browse the database. #148
- Add
Store.runIsolatedto run database operations (asynchronous) in the background (requires Flutter 2.8.0/Dart 2.15.0 or newer). It spawns an isolate, runs the given callback in that isolate with its own Store and returns the result of the callback. This is similar to Flutters compute, but with the callback having access to a Store. #384 - Add
Store.attachto attach to a Store opened in a directory. This is an improved replacement forStore.fromReferenceto share a Store across isolates. It is no longer required to pass a Store reference and the underlying Store remains open until the last instance is closed. #376 - Add an option to change code-generator's
output_dirinpubspec.yaml. #341 - Update: objectbox-c 0.15.2.
- Update: objectbox-android 3.1.2.
- Update: objectbox-swift 1.7.0.
v1.3.0
v1.2.1
v1.2.0
- Add
Query.findUnique()to find a single object matching the query. - Add support for relations when using 3rd-party JSON serialization libraries.
- Fix generator when mixing backlinks and "standard" relations in the same entity (generated code had a syntax error).
- Fix
@Backlink()annotation when specifying aToOnerelation by field name. - Fix
Query.find*()exception forwarding when a user-provided property converter throws. - Increase supported
analyzerdependency version to include v2.x major version. - Update FlatBuffer dependency to the latest upstream version.