Skip to content

Commit

Permalink
Updating analyser version (#53)
Browse files Browse the repository at this point in the history
* Updating analyser version

* Release notes
  • Loading branch information
numen31337 committed May 19, 2022
1 parent 142ff3c commit 91c11fc
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
6 changes: 6 additions & 0 deletions copy_with_extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.0.2
* Updating `analyzer` to `>=2.0.0 <5.0.0`

## 4.0.1
* [Fix](https://github.com/numen31337/copy_with_extension/issues/45) for passing `null` into `copyWith` function for non-nullable values.

## 4.0.0
* **BREAKING** `copyWith` function now correctly supports nullification of nullable fields like so `copyWith(id: null)`.
* **BREAKING** `CopyWith` annotation for named constructor `namedConstructor` is renamed to `constructor` to be in sync with [json_serializable](https://pub.dev/packages/json_serializable).
Expand Down
2 changes: 2 additions & 0 deletions copy_with_extension/example/example.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unused_element

import 'package:copy_with_extension/copy_with_extension.dart';

/// Make sure the `part` is specified before running the builder.
Expand Down
2 changes: 1 addition & 1 deletion copy_with_extension/lib/copy_with_extension.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CopyWith {
/// Set `copyWithNull` to `true` if you want to use `copyWithNull` function that allows you to nullify the fields. E.g. `myInstance.copyWithNull(id: true, name: true)`.
final bool copyWithNull;

/// Prevent the library from generating `copyWith` functions for individual filelds e.g. `instance.copyWith.id("123")`. If you want to use only copyWith(...) function.
/// Prevent the library from generating `copyWith` functions for individual fields e.g. `instance.copyWith.id("123")`. If you want to use only copyWith(...) function.
final bool skipFields;

/// Set `constructor` if you want to use a named constructor. The generated fields will be derived from this constructor.
Expand Down
4 changes: 2 additions & 2 deletions copy_with_extension/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: copy_with_extension
version: 4.0.0
version: 4.0.2
description: Annotation for generating `copyWith` extensions code using `copy_with_extension_gen`.
homepage: https://github.com/numen31337/copy_with_extension/tree/master/copy_with_extension
repository: https://github.com/numen31337/copy_with_extension
Expand All @@ -9,4 +9,4 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dev_dependencies:
flutter_lints: ^1.0.0
flutter_lints: ^2.0.1
3 changes: 3 additions & 0 deletions copy_with_extension_gen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 4.0.2
* Updating `analyzer` to `>=2.0.0 <5.0.0`

## 4.0.1
* [Fix](https://github.com/numen31337/copy_with_extension/issues/45) for passing `null` into `copyWith` function for non-nullable values.

Expand Down
2 changes: 2 additions & 0 deletions copy_with_extension_gen/example/example.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// ignore_for_file: unused_element

import 'package:copy_with_extension/copy_with_extension.dart';

/// Make sure the `part` is specified before running the builder.
Expand Down
6 changes: 3 additions & 3 deletions copy_with_extension_gen/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: copy_with_extension_gen
version: 4.0.1
version: 4.0.2
description: Automatically generating `copyWith` extensions code for classes with `@CopyWith()` annotation.
repository: https://github.com/numen31337/copy_with_extension
homepage: https://github.com/numen31337/copy_with_extension/tree/master/copy_with_extension_gen
Expand All @@ -9,13 +9,13 @@ environment:
sdk: ">=2.12.0 <3.0.0"

dependencies:
analyzer: ">=2.0.0 <4.0.0"
analyzer: ">=2.0.0 <5.0.0"
build: ^2.0.0
source_gen: ^1.0.0
copy_with_extension: ^4.0.0

dev_dependencies:
flutter_lints: ^1.0.0
flutter_lints: ^2.0.1
build_runner: ">=1.11.5 <3.0.0"
test: ^1.20.1
source_gen_test: ^1.0.1

0 comments on commit 91c11fc

Please sign in to comment.