brick_rest 4.0.0+1
brick_rest: ^4.0.0+1 copied to clipboard
RESTful API connector for Brick, a data persistence library. Includes annotations, adapter, model, and provider.
4.0.0 #
3.2.0 #
- DEPRECATION remove
Rest#nullable. Builders should evaluate the nullable suffix of the field instead
3.1.0 #
- DEPRECATION
Query(providerArgs: {'request':})is nowQuery(forProviders: [RestProviderQuery(request:)]). #510 - Upgrade
brick_coreto1.3.0 - Update analysis to modern lints
- New
RestProviderQueryadds REST-specific support for the newQuery.
3.0.4 #
- Access
FieldRenamefrombrick_coreinstead of declaring within this package
3.0.3 #
- Apply standardized lints
- Upgrade minimum Dart to 2.18
- Update minimum HTTP to 1.0.0
3.0.2 #
- Support Dart 3
3.0.1 #
- Support accessing
supplementalTopLevelDatafrom any REST request that accepts a body (PUT,PATCH,POST). Additionally, includesupplementalTopLevelDatadefined withinRestRequestinstances defined outsideproviderArgs
3.0.0 #
Please follow the v3 migration guide to easily upgrade.
- BREAKING CHANGE Rename main export file to
brick_rest.dart - BREAKING CHANGE replace
RestSerializable(endpoint:)withRestSerializable(requestTransformer:) - Add
RestAdapter#restRequest - BREAKING CHANGE
providerArgs['topLevelKey']andproviderArgs['headers']andproviderArgs['supplementalTopLevelData']have been removed (use'request') andproviderArgs['request']now accepts aRestRequestinstead of the HTTP method string. - Use Dart 2.15's
.byNameaccessor for iterable enum values and removeRestAdapter.enumValueFromNameandRestAdapter.firstWhereOrNull. Instead use<Enum>.values.byNameandimport 'package:collection/collection.dart''s.firstWhereOrNullrespectively.
1.1.1 #
- Upgrade
brick_core
1.1.0 #
- Add Dart Lints
- Change
instanceanddatapositional arguments inRestAdaptertoinputto match generator variable
1.0.1 #
- Add support for PATCH requests (#188)
1.0.0+3 #
- Improve code hint documentation
- Move
RestProvider#statusCodeIsSuccessfultoRestProvider.statusCodeIsSuccessful - Require
providerinRestAdapter#fromRestandRestAdapter#toRest
1.0.0+2 #
- Require provider in adapter methods
fromRestandtoRest
1.0.0+1 #
- Add static methods
.firstWhereOrNulland.enumValueFromNametoRestAdapterto support null safe building
1.0.0 #
- Null safety
0.0.8 #
- Add
GZipHttpClient. When instantiating theRestProvider, optionally composeclientwith aGZipHttpClientto gzip all requests.
0.0.7+1 #
- Change
_convertJsonto protected methodconvertJsonFromGet(#57)
0.0.7 #
- When
urlisnullinRestProvider#upsertandRestProvider#delete, returnnulland do not attempt to perform the action - On
upsertinvocations, specifysupplementalTopLevelDatato include other information outside thetopLevelKey/toKey. This inserts a map alongside the data generated by the adapter.
0.0.5 #
- Carry rename from
Query#paramstoQuery#providerArgsfrom brick_core
0.0.4 #
Rest#defaultValueupdated to reflectFieldSerializable#defaultValuechange
0.0.2 #
- Fix linter hints