Skip to content

Releases: objectbox/objectbox-dart

v0.11.0

01 Feb 14:03

Choose a tag to compare

  • Add ToOne<> class to wrap related entities. See examples for details.
    (thanks @Buggaboo for jump-starting this).
  • Add ToMany<> class to wrap related entities. See examples for details.
  • Significantly improve Box read and write performance.
  • Change Box.put() and putMany() - now also update given object's ID property.
    Note: If you previously put() the same new object instance multiple times without setting id, the object will now
    be inserted only the first time, and overwritten on subsequent puts of the same instance, its ID is not zero anymore.
  • Change Box.putMany() and Query.FindIds() to return fixed-size lists.
  • Change Box.GetMany() to return a fixed-size list by default, with an option to return a growable list.
  • Change @Id() annotation to optional - recognized automatically if there's an int id field (case insensitive).
  • Make observable.dart part of objectbox.dart exports, no need to import it separately.
  • Expose PutMode - allowing semantics choice between put, update and insert.
  • Hide internal classes not intended for general use (e.g. all Model* classes).
  • Rename versionLib() to nativeLibraryVersion().
  • Change TxMode enum values to lowercase.
  • Remove flags from the Property() annotation.

v0.10.0

01 Dec 13:03

Choose a tag to compare

  • Change type field on @Property() annotation to PropertyType.
  • Add support for string array properties: List<String>.
  • Add support for byte array properties: List<Int>, Uint8List, Int8List.
  • Add @Index() and @Unique() property annotations
    (thanks @Buggaboo for #123).
  • Add Query.remove() to remove all objects matching the query.
  • Fix Query.findStream() to only rerun on changes to the queried type
    (thanks @RTrackerDev and @Buggaboo for #152).
  • Mark offset and limit query parameters deprecated, use offset() and limit() instead.
  • Update to objectbox-swift 1.4.1
  • Internal changes in preparation for null-safety (still waiting for our dependencies to migrate).

v0.9.0

12 Nov 18:36

Choose a tag to compare

  • Update to objectbox-c 0.11.0
  • Update to objectbox-android 2.8.0
  • Change box.get(id) to return null instead of throwing when trying to read a non-existent object.
  • Change the generator to skip read-only fields (getters)
  • Add SyncClient to enable the new ObjectBox Sync
  • Add "empty" query support using box.query().
    (thanks @Buggaboo for #132)
  • Expose lib/observable.dart to avoid linter isues in apps using objectbox.
    (thanks @cmengler for bringing this up in #141)
  • Documentation and examples updates & improvements.
  • Switch C-API binding code generation to package ffigen.

v0.8.0

13 Oct 13:21

Choose a tag to compare

  • Update to objectbox-c 0.10.0.
  • Update to objectbox-android 2.7.1.
  • Update to objectbox-swift 1.4.0.
  • String startsWith and endsWith condition: removed unused descending parameter, add caseSensitive parameter.
  • String greaterThan/lessThan condition: withEqual is deprecated, use the greaterOrEqual/lessOrEqual condition instead.
  • Query find/findIds offset and limit parameters are deprecated, set them using the equally named methods instead.
  • New support to create a Dart Stream from a Query (thanks @Buggaboo for #88).

v0.7.0

14 Aug 11:46

Choose a tag to compare

  • Flutter v1.20 support
    (move libs to separate package objectbox_flutter_libs, add it as a new dependency if you use Flutter)
  • New property query support
    (thanks Jasm Sison for #75)
  • New @Transient annotation to skip storing select properties
    (thanks Jasm Sison for #98)
  • Handle Byte property as a signed int8 (was previously unsigned) to align with other bindings

v0.6.4

12 May 09:40
e54aa89

Choose a tag to compare

  • Update to objectbox-swift 1.3.0
  • Update to objectbox-android 2.5.1

v0.6.3

07 May 12:48
cf18e0f

Choose a tag to compare

  • Update FlatBuffers to 1.12.0
  • Provide error hinting when DB can't be created (e.g. when an app docs directory isn't passed properly on Flutter).

v0.6.2

09 Mar 10:30
468bd24

Choose a tag to compare

  • Support large object arrays on 32-bit platforms/emulators.

v0.6.1

23 Jan 13:17
17fc5e1

Choose a tag to compare

  • Fixed Flutter Android/iOS release build failures
  • Updated to objectbox-c 0.8.2

v0.6.0

19 Dec 14:02
b733f30

Choose a tag to compare

  • Flutter iOS support
  • Generator fixes and rework to support multiple entity files in addition to many entities in a single file.
    Please move objectbox-model.json to lib/ before running the generator.
  • Simplified Android support (automatic dependency).
  • Docs improvements
  • Updated to objectbox-c 0.8.1