Releases: objectbox/objectbox-dart
Releases · objectbox/objectbox-dart
v1.6.1
- Store: add option to pass debug flags. #134
- Add
// coverage:ignore-file
to generated objectbox.g.dart skipping this file from coverage test. - Increase supported
analyzer
to v4. #443 - Update documentation on
Query
streams usingwatch
to 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.runInTransactionAsync
to run database operations asynchronously in the background (requires Flutter 2.8.0/Dart 2.15.0 or newer). #415 - Rename
Store.runIsolated
torunAsync
, drop unusedmode
parameter, propagate errors and handle premature isolate exit. #415 - The native ObjectBox library is also searched for in the
lib
subfolder on desktop OS (macOS, Linux, Windows). This is where theinstall.sh
script downloads it by default.
E.g. it is no longer necessary to install the library globally to rundart test
orflutter test
. - Windows: Support database directory paths that contain unicode (UTF-8) characters. #406
- Changed
Query.stream
to 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.runIsolated
to 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.attach
to attach to a Store opened in a directory. This is an improved replacement forStore.fromReference
to 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_dir
inpubspec.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 aToOne
relation by field name. - Fix
Query.find*()
exception forwarding when a user-provided property converter throws. - Increase supported
analyzer
dependency version to include v2.x major version. - Update FlatBuffer dependency to the latest upstream version.
v1.1.1
v1.1.0
- New
openStore()
in the generated code to simplify creating a store instance, especially on Flutter (uses application
documents directory as a default). - Add support for Entities used together with some custom code-generators (immutable objects, JSON, ...).
See@Entity(realClass: )
new field and its docs. - New
Query.param()
to support reusable queries (changing condition values before execution).
See Reusing queries in docs. - Rename semi-internal
QueryRelationProperty
toQueryRelationToOne
andQueryRelationMany
toQueryRelationToMany
to help users pick the right link function:link()
vslinkMany()
. - Add support for the entity/property/relation rename or reset workflow.
See Data model updates for details. - Add support for
ToOne
relation cycles. - Enforce you can only open the same database directory once (multiple parallel
Store
instances are not allowed). - Fix
macOS
sandbox database directory permissions (see notes in Flutter-specific "Getting Started" docs). - Fix
ToMany
showing duplicate items after adding them before reading the previous list. - Fix invalid native free during store shutdown if large data was inserted (more than 64 kilobytes flatbuffer).
- FlatBuffers serialization performance improvements.
- Update to objectbox-android v2.9.2-RC3.