Releases: objectbox/objectbox-dart
Releases · objectbox/objectbox-dart
v0.11.0
- 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
Boxread and write performance. - Change
Box.put()andputMany()- now also update given object's ID property.
Note: If you previouslyput()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()andQuery.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 anint idfield (case insensitive). - Make
observable.dartpart ofobjectbox.dartexports, 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()tonativeLibraryVersion(). - Change
TxModeenum values to lowercase. - Remove
flagsfrom theProperty()annotation.
v0.10.0
- Change
typefield on@Property()annotation toPropertyType. - 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
offsetandlimitquery parameters deprecated, useoffset()andlimit()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
- 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.dartto 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
- 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
descendingparameter, addcaseSensitiveparameter. - String greaterThan/lessThan condition:
withEqualis deprecated, use the greaterOrEqual/lessOrEqual condition instead. - Query find/findIds
offsetandlimitparameters 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
- Flutter v1.20 support
(move libs to separate packageobjectbox_flutter_libs, add it as a new dependency if you use Flutter) - New property query support
(thanks Jasm Sison for #75) - New
@Transientannotation to skip storing select properties
(thanks Jasm Sison for #98) - Handle
Byteproperty as a signedint8(was previously unsigned) to align with other bindings
v0.6.4
v0.6.3
v0.6.2
v0.6.1
v0.6.0
- Flutter iOS support
- Generator fixes and rework to support multiple entity files in addition to many entities in a single file.
Please moveobjectbox-model.jsontolib/before running the generator. - Simplified Android support (automatic dependency).
- Docs improvements
- Updated to objectbox-c 0.8.1