brick_core 2.1.0
brick_core: ^2.1.0 copied to clipboard
Interfaces and shared helpers for implementing models, adapters, providers, and repositories in Brick, an intuitive way to work with persistent data in Dart.
2.1.0 #
- Add support for
#isInandCompare.inIterabletoWherequeries (#602) - Add additional API documentation discouraging
SingleProviderRepositoryusage in practical implementations.
2.0.0 #
- BREAKING CHANGE
Query(providerArgs:)is no longer accepted. See 1.3.0 for migration steps. - BREAKING CHANGE
Query#copyWithno longer acceptsproviderArgs. See 1.3.0 for migration steps. - BREAKING CHANGE
FieldSerializable#nullableis removed. See 1.4.0 for migration steps. - Dart minimum SDK is updated to
3.4.0
1.4.0 #
- DEPRECATION remove
FieldSerializable#nullable. Builders should evaluate the nullable suffix of the field instead
1.3.1 #
constantizeWhere.exactlyandOrderBy.{desc|asc}- Add deprecation annotation to
Query#copyWith#providerArgs
1.3.0 #
- DEPRECATION
Query(providerArgs: {'limit':})is nowQuery(limit:)#510 - DEPRECATION
Query(providerArgs: {'offset':})is nowQuery(offset:)#510 - DEPRECATION
Query(providerArgs: {'orderBy':})is nowQuery(orderBy:).orderByis now defined by a class that permits multiple commands. For example,'orderBy': 'name ASC'becomes[OrderBy('name', ascending: true)]. #510 - DEPRECATION
providerArgswill be removed in the next major release #510 OrderBywill support association ordering and multiple valuesQueryis constructed withconstQuery#offsetno longer requires companionlimitparameter
1.2.1 #
- Add
FieldRenametoFieldSerializable
1.2.0 #
- Apply standardized lints
- Upgrade minimum Dart to 2.18
1.1.2 #
- Support Dart 3
- Loosen dependency restrictions to major versions
1.1.1 #
- Add
subscribetoQueryAction
1.1.0 #
- Add Dart lints
- Add
enumAsString
1.0.0+1 #
- Null safety cleanup and refactor
1.0.0 #
- Null safety
- BREAKING CHANGE: because
requiredis now a first-class Dart keyword,requiredinWherePhrase,WhereCondition,And,Or, andWherehas been renamed toisRequired. - Add optional method
Provider#exists. Whether a model instance is present.nullis returned when existence is unknown. The model instance is not hydrated in the function output; aboolvariant (e.g.List<bool>,Map<_Model, bool>) should be returned.
0.0.6 #
- Add a
doesNotContainenum toCompareforWherequeries
0.0.5 #
- Rename
Query#paramstoQuery#providerArgs, reflecting the much narrower purpose of the member
0.0.4 #
FieldSerializable#defaultValuechanges fromdynamictoString. As this is injected directly into the adapter, it does not need to be dynamic and should better reflect its purpose.
0.0.3+1 #
- Moves generator placeholders to
FieldSerializableformOfflineFirst - Removes query validation that ensures all Where conditions have a non-null value
0.0.3 #
- Add
AndandOrWheresubclasses - Removes Type argument from
Where - Adds semantic methods to
Wheresuch asisExactlyand - BREAKING Revise
Wheresyntax. This removes the second positional argument in favor of using it in a semantic method. - Adds
Where.exactfactory to preserve previous, short syntax - Move query-related files to
src/queryand make them accessible from a barrel file in the lib root
0.0.2 #
- Fix linter hints
- Adds
initializemethod toModelRepository. This is enforces a predictable, overridable method for sub classes