chopper2_generator 4.0.1
chopper2_generator: ^4.0.1 copied to clipboard
chopper2 is an http client generator using source_gen and inspired from retrofit
Changelog #
4.0.1 #
- Update deps to work with 2.5.0
3.0.8 #
- Update deps to work with 2.5.0
3.0.6 #
- generate correct code for application/x-www-form-urlencoded
3.0.5 #
- Packages upgrade
3.0.4 #
- Maintenance release to match the version with generator
- Analyzer update
3.0.3 #
- Fix a bug in generator not running
- Documentations update
- Generate code compatible with pedantic analysis option
3.0.2 #
- Maintenance release to match the version with chopper2
- Fix factory converter
3.0.1 #
- to change the name to chopper2_generator
- Fix Avoid using braces in interpolation when not needed
3.0.0 #
- Maintenance release to support last version of
chopper2package (3.0.0) that introduced a breaking change on error handling
2.5.0 #
- Unsuccessful response are not throw anymore, use
Response.isSuccessfulgetter orstatusCodeinstead - Support HEAD request
2.4.2 #
-
Fix on JsonConverter If content type header overrided using @Post(headers: {'content-type': ' ...'}) The converter won't add json header and won't apply json.encode if content type is not JSON
-
add
bool overrideonapplyHeader(s)functions, true by default -
support
List<MultipartFile>
2.4.1 #
- Fix PartValue cast
2.4.0 #
- Deprecate
@FileField, use@PartFileinstead - support
chopper2: ^2.4.1
2.3.4 #
fix trailing slash when empty path
2.3.3 #
- update analyzer to
0.35.0
2.3.2 #
- do not set to null explicitly
2.3.1 #
- Fixed @Path issue, thanks to @kiruto
- update
built_collectionto4.0.0
2.3.0 #
- Breaking Change
ChopperClient.errorConverteris now taking anErrorConverteras a parameterabstract class ErrorConverter { FutureOr<Response> convertError<ResultType, ItemType>(Response response); } - Remove deprecated
chopper2.service<Type>(Type) - Add
QueryMapannotation - Fix https://github.com/lejard-h/chopper2/issues/28
- Fix https://github.com/lejard-h/chopper2/issues/21
- Fix https://github.com/lejard-h/chopper2/issues/37
2.2.0 #
-
Fix converter issue on List
- Breaking Change
on
Converter.convertResponse<ResultType>(response), it take a new generic type =>Converter.convertResponse<ResultType, ItemType>(response)
- Breaking Change
on
-
deprecated
chopper2.service<Type>(Type), usechopper2.getservice<Type>()instead thanks to @MichaelDark
2.1.0 #
- fix casting issue
2.0.0 #
-
Request is now containing baseUrl
-
Can call
Request.toHttpRequest()direclty to get thehttp.BaseRequestwill receive -
If a full url is specified in the
path(ex: @Get(path: 'https://...')), it won't be concaten with the baseUrl of the ChopperClient and the ChopperAPI -
Add
CurlInterceptorthanks @edwardaux -
Add
HttpLoggingInterceptor -
Add
FactoryConverterannotation@FactoryConverter(request: convertRequest, response: convertResponse) -
BreakingChange
- Method.url renamed to path
Converter.encodeandConverter.decoderemoved, implementConverter.convertResponseand Converter.convertRequest` insteadChopperClient.jsonApideprecated, use aJsonConverterinsteadChopperClient.formUrlEncodedApi, useFormUrlEncodedConverterinstead- remove
JsonEncodedannotation, useFactoryConverterinstead
1.1.0 #
- BreakingChange
Removed
nameparameter onChopperApiNew way to instanciate a serviceabstract class MyService extends ChopperService { static MyService create([ChopperClient client]) => _$MyService(client); }
1.0.1 #
- update build package
1.0.0 #
- Multipart request
- form url encoded
- add jsonAPI and formUrlEncodedApi boolean to ChopperClient
- json and formUrlEncoding are now builtin
onError,onResponse,onRequeststream- error converter
- add withClient constructor
0.1.0 #
- update dart sdk
0.0.2 #
-
the generated extension is now
*.chopper2.dart -
rename
ServiceDefinitiontoChopperApi -
rename
ChopperClient.servicesfield toChopperClient.apis
0.0.1 #
- Initial version, created by Stagehand