Skip to content

Commit

Permalink
2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rrousselGit committed Jul 12, 2022
1 parent de758af commit 59cb526
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/freezed/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 2.0.5

Increase minimum analyzer version.

# 2.0.4

Fixes a bug where using `@unfreezed` on unions somehow still generated immutable properties.
Expand Down
2 changes: 1 addition & 1 deletion packages/freezed/lib/src/templates/parameter_template.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class ParametersTemplate {
}

ParametersTemplate asThis() {
return mapParameters((e) => LocalParameter.fromParameter(e));
return mapParameters(LocalParameter.fromParameter);
}

ParametersTemplate asExpanded({bool showDefaultValue = false}) {
Expand Down
4 changes: 2 additions & 2 deletions packages/freezed/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: freezed
description: >
Code generation for immutable classes that has a simple syntax/API without
compromising on the features.
version: 2.0.4
version: 2.0.5
homepage: https://github.com/rrousselGit/freezed

environment:
sdk: '>=2.14.0 <3.0.0'
sdk: '>=2.17.0 <3.0.0'

dependencies:
analyzer: ">=4.2.0 <5.0.0"
Expand Down

0 comments on commit 59cb526

Please sign in to comment.