Skip to content

Commit

Permalink
🔖 release v8.0.4 (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse authored Jan 21, 2025
1 parent dc9fe2b commit 87d1f73
Show file tree
Hide file tree
Showing 23 changed files with 58 additions and 40 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
if: "always() && steps.chopper_pub_upgrade.conclusion == 'success'"
working-directory: chopper
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: chopper/coverage/lcov.info
fail_ci_if_error: true
Expand All @@ -149,7 +149,7 @@ jobs:
if: "always() && steps.chopper_built_value_pub_upgrade.conclusion == 'success'"
working-directory: chopper_built_value
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: chopper_built_value/coverage/lcov.info
fail_ci_if_error: true
Expand All @@ -164,7 +164,7 @@ jobs:
if: "always() && steps.chopper_generator_pub_upgrade.conclusion == 'success'"
working-directory: chopper_generator
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
files: chopper_generator/coverage/lcov.info
fail_ci_if_error: true
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ jobs:
id: publish
if: ${{ env.IS_VERSION_GREATER == 1 }}
working-directory: ${{ matrix.package }}
run: |
set -e
yq -i 'del(.dependency_overrides)' pubspec.yaml
dart pub publish --force
run: dart pub publish --force
- name: Github release
id: github_release
if: ${{ env.IS_VERSION_GREATER == 1 }}
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/publish_dry_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ jobs:
id: publish_dry_run
if: ${{ env.IS_VERSION_GREATER == 1 }}
working-directory: ${{ matrix.package }}
run: |
set -e
yq -i 'del(.dependency_overrides)' pubspec.yaml
dart pub publish --dry-run
run: dart pub publish --dry-run
- name: Skip publish (dry run)
id: skip_publish_dry_run
if: ${{ env.IS_VERSION_GREATER == 0 }}
Expand Down
4 changes: 4 additions & 0 deletions chopper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 8.0.4

- Update dependencies

## 8.0.3

- Remove unnecessary library name
Expand Down
1 change: 1 addition & 0 deletions chopper/example/definition.chopper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'definition.dart';
Expand Down
1 change: 1 addition & 0 deletions chopper/example/tag.chopper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'tag.dart';
Expand Down
1 change: 1 addition & 0 deletions chopper/lib/src/request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import 'package:qs_dart/qs_dart.dart' show ListFormat;
/// {@template request}
/// This class represents an HTTP request that can be made with Chopper.
/// {@endtemplate}
// ignore: must_be_immutable
base class Request extends http.BaseRequest with EquatableMixin {
final Uri uri;
final Uri baseUri;
Expand Down
10 changes: 3 additions & 7 deletions chopper/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: chopper
description: Chopper is an http client generator using source_gen, inspired by Retrofit
version: 8.0.3
version: 8.0.4
documentation: https://hadrien-lejard.gitbook.io/chopper
repository: https://github.com/lejard-h/chopper

Expand All @@ -12,7 +12,7 @@ dependencies:
http: ^1.1.0
logging: ^1.2.0
meta: ^1.9.1
qs_dart: ^1.2.4
qs_dart: ^1.3.0

dev_dependencies:
build_runner: ^2.4.9
Expand All @@ -26,11 +26,7 @@ dev_dependencies:
lints: ">=4.0.0 <6.0.0"
test: ^1.25.5
transparent_image: ^2.0.1
chopper_generator: ^8.0.2

dependency_overrides:
chopper_generator:
path: ../chopper_generator
chopper_generator: ^8.0.3

topics:
- api
Expand Down
4 changes: 4 additions & 0 deletions chopper/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Development-only path for chopper_generator
dependency_overrides:
chopper_generator:
path: ../chopper_generator
1 change: 1 addition & 0 deletions chopper/test/test_service.chopper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'test_service.dart';
Expand Down
1 change: 1 addition & 0 deletions chopper/test/test_service_base_url.chopper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'test_service_base_url.dart';
Expand Down
1 change: 1 addition & 0 deletions chopper/test/test_service_variable.chopper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'test_service_variable.dart';
Expand Down
1 change: 1 addition & 0 deletions chopper/test/test_without_response_service.chopper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'test_without_response_service.dart';
Expand Down
4 changes: 4 additions & 0 deletions chopper_built_value/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.3

- Update dependencies

## 3.0.2

- Remove unnecessary library name
Expand Down
8 changes: 2 additions & 6 deletions chopper_built_value/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: chopper_built_value
description: A built_value based Converter for Chopper.
version: 3.0.2
version: 3.0.3
documentation: https://hadrien-lejard.gitbook.io/chopper/converters/built-value-converter
repository: https://github.com/lejard-h/chopper

Expand All @@ -10,7 +10,7 @@ environment:
dependencies:
built_value: ^8.9.2
built_collection: ^5.1.1
chopper: ^8.0.2
chopper: ^8.0.3
http: ^1.1.0

dev_dependencies:
Expand All @@ -20,10 +20,6 @@ dev_dependencies:
built_value_generator: ^8.9.2
lints: ">=4.0.0 <6.0.0"

dependency_overrides:
chopper:
path: ../chopper

topics:
- codegen
- converter
Expand Down
4 changes: 4 additions & 0 deletions chopper_built_value/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Development-only path for chopper
dependency_overrides:
chopper:
path: ../chopper
4 changes: 4 additions & 0 deletions chopper_generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 8.0.4

- Update dependencies

## 8.0.3

- Remove unnecessary library name
Expand Down
17 changes: 10 additions & 7 deletions chopper_generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import 'package:chopper_generator/src/extensions.dart';
import 'package:chopper_generator/src/utils.dart';
import 'package:chopper_generator/src/vars.dart';
import 'package:code_builder/code_builder.dart';
import 'package:dart_style/dart_style.dart';
import 'package:logging/logging.dart';
import 'package:source_gen/source_gen.dart';

Expand Down Expand Up @@ -101,7 +100,7 @@ final class ChopperGenerator
'// ignore_for_file: type=lint';
final DartEmitter emitter = DartEmitter(useNullSafetySyntax: true);

return DartFormatter().format('$ignore\n${classBuilder.accept(emitter)}');
return '$ignore\n${classBuilder.accept(emitter)}';
}

static Constructor _generateConstructor() => Constructor(
Expand Down Expand Up @@ -518,8 +517,8 @@ final class ChopperGenerator
}

static String _factoryForFunction(FunctionTypedElement function) =>
function.enclosingElement is ClassElement
? '${function.enclosingElement!.name}.${function.name}'
function.enclosingElement3 is ClassElement
? '${function.enclosingElement3!.name}.${function.name}'
: function.name!;

static Map<String, ConstantReader> _getAnnotation(
Expand Down Expand Up @@ -636,12 +635,16 @@ final class ChopperGenerator

if (generic == null ||
_typeChecker(Map).isExactlyType(type) ||
_typeChecker(BuiltMap).isExactlyType(type)) return type;
_typeChecker(BuiltMap).isExactlyType(type)) {
return type;
}

if (generic.isDynamic) return null;
if (generic is DynamicType) return null;

if (_typeChecker(List).isExactlyType(type) ||
_typeChecker(BuiltList).isExactlyType(type)) return generic;
_typeChecker(BuiltList).isExactlyType(type)) {
return generic;
}

return _getResponseInnerType(generic);
}
Expand Down
13 changes: 4 additions & 9 deletions chopper_generator/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
name: chopper_generator
description: Chopper is an http client generator using source_gen, inspired by Retrofit
version: 8.0.3
version: 8.0.4
documentation: https://hadrien-lejard.gitbook.io/chopper
repository: https://github.com/lejard-h/chopper

environment:
sdk: ^3.0.0

dependencies:
analyzer: ^6.4.1
analyzer: ">=6.9.0 <8.0.0"
build: ^2.4.1
built_collection: ^5.1.1
chopper: ^8.0.2
chopper: ^8.0.3
code_builder: ^4.10.0
dart_style: ^2.3.6
logging: ^1.2.0
meta: ^1.9.1
source_gen: ^1.5.0
source_gen: ">=1.5.0 <3.0.0"
yaml: ^3.1.2
collection: ^1.18.0

Expand All @@ -27,10 +26,6 @@ dev_dependencies:
lints: ">=4.0.0 <6.0.0"
test: ^1.25.5

dependency_overrides:
chopper:
path: ../chopper

topics:
- api
- codegen
Expand Down
4 changes: 4 additions & 0 deletions chopper_generator/pubspec_overrides.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Development-only path for chopper
dependency_overrides:
chopper:
path: ../chopper
1 change: 1 addition & 0 deletions chopper_generator/test/test_service.chopper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'test_service.dart';
Expand Down
1 change: 1 addition & 0 deletions chopper_generator/test/test_service_variable.chopper.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'test_service_variable.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// dart format width=80
// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'test_without_response_service.dart';
Expand Down

0 comments on commit 87d1f73

Please sign in to comment.