Skip to content

Commit

Permalink
Merge pull request #121 from netglade/release/2.0.0
Browse files Browse the repository at this point in the history
Bump versions to 2.0.0
  • Loading branch information
tenhobi authored Sep 19, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 5b2cd3a + e213125 commit 3f17a01
Showing 15 changed files with 35 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -46,6 +46,11 @@ updates:
directory: "/examples/freezed"
schedule:
interval: "weekly"

- package-ecosystem: "pub"
directory: "/examples/injectable"
schedule:
interval: "weekly"

- package-ecosystem: "pub"
directory: "/examples/json_serializable"
4 changes: 2 additions & 2 deletions examples/drift/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@ environment:
sdk: ">=2.18.7 <4.0.0"

dependencies:
auto_mappr_annotation: ^1.2.0
auto_mappr_annotation: ^2.0.0
drift: ^2.7.0
equatable: ^2.0.5

dev_dependencies:
auto_mappr: ^1.6.0
auto_mappr: ^2.0.0
build_runner: ^2.0.0
drift_dev: ^2.7.0
netglade_analysis: ^4.2.0
4 changes: 2 additions & 2 deletions examples/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ environment:
sdk: ">=2.18.7 <4.0.0"

dependencies:
auto_mappr_annotation: ^1.2.0
auto_mappr_annotation: ^2.0.0
equatable: ^2.0.5

dev_dependencies:
auto_mappr: ^1.3.0
auto_mappr: ^2.0.0
build_runner: ^2.0.0
netglade_analysis: ^4.2.0
test: ^1.16.0
4 changes: 2 additions & 2 deletions examples/freezed/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -7,12 +7,12 @@ environment:
sdk: ">=2.18.7 <4.0.0"

dependencies:
auto_mappr_annotation: ^1.2.0
auto_mappr_annotation: ^2.0.0
equatable: ^2.0.5
freezed_annotation: ^2.2.0

dev_dependencies:
auto_mappr: ^1.6.0
auto_mappr: ^2.0.0
build_runner: ^2.0.0
freezed: ^2.3.2
netglade_analysis: ^4.2.0
4 changes: 2 additions & 2 deletions examples/injectable/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -7,13 +7,13 @@ environment:
sdk: ">=2.18.7 <4.0.0"

dependencies:
auto_mappr_annotation: ^1.2.0
auto_mappr_annotation: ^2.0.0
equatable: ^2.0.5
get_it: ^7.3.0
injectable: ^2.1.1

dev_dependencies:
auto_mappr: ^1.6.0
auto_mappr: ^2.0.0
build_runner: ^2.0.0
injectable_generator: ^2.1.5
netglade_analysis: ^4.2.0
4 changes: 2 additions & 2 deletions examples/json_serializable/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ environment:
sdk: ">=2.18.7 <4.0.0"

dependencies:
auto_mappr_annotation: ^1.2.0
auto_mappr_annotation: ^2.0.0
json_annotation: ^4.8.1

dev_dependencies:
auto_mappr: ^1.6.0
auto_mappr: ^2.0.0
build_runner: ^2.0.0
json_serializable: ^6.6.1
netglade_analysis: ^4.2.0
4 changes: 0 additions & 4 deletions melos.yaml
Original file line number Diff line number Diff line change
@@ -5,10 +5,6 @@ packages:
- packages/*/example
- examples/*

command:
bootstrap:
usePubspecOverrides: true

scripts:
# ANALYZING

7 changes: 7 additions & 0 deletions packages/auto_mappr/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
[//]: # (## Unreleased)

## 2.0.0
- **Breaking**: Allow "absorbing" modules using `includes` on `@AutoMappr`. Previous `modules` is now `delegates`. [#117](https://github.com/netglade/auto_mappr/pull/117)
- **Breaking**: Remove shared AutoMappr builder that used PartBuilder, now `.auto_mappr.dart` is generated using LibraryBuilder. [#117](https://github.com/netglade/auto_mappr/pull/117)
- Add type converters, use `converters` on `AutoMappr` or `MapType`. [#119](https://github.com/netglade/auto_mappr/pull/119)
- Add a `reverse` option on `MapType`, which includes the reverse mapping. [#115](https://github.com/netglade/auto_mappr/pull/115)
- Add a support for Dart 3 and Records feature. [#116](https://github.com/netglade/auto_mappr/pull/116)

## 2.0.0-beta2
- Add type converters, use `converters` on `AutoMappr` or `MapType`. [#119](https://github.com/netglade/auto_mappr/pull/119)

6 changes: 3 additions & 3 deletions packages/auto_mappr/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=2.18.7 <4.0.0"
sdk: ^3.0.0

dependencies:
auto_mappr_annotation: ^1.1.0
auto_mappr_annotation: ^2.0.0
equatable: ^2.0.5

dev_dependencies:
auto_mappr: ^1.3.0
auto_mappr: ^2.0.0
build_runner: ^2.0.0
netglade_analysis: ^4.2.0
test: ^1.16.0
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// ignore_for_file: avoid-shadowing

import 'package:analyzer/dart/element/nullability_suffix.dart';
import 'package:analyzer/dart/element/type.dart' as type;
import 'package:auto_mappr/src/builder/assignments/assignment_builder_base.dart';
Original file line number Diff line number Diff line change
@@ -115,7 +115,6 @@ class AutoMapprBuilder {
).buildMethod(),

// Generates nullable mapping method only when nullable method is used.
// ignore: avoid-shadowing
for (final mapping in config.mappers.where(nullableMappings.contains))
MappingMethodBuilder(config, mapping: mapping, nullable: true).buildMethod(),
];
4 changes: 2 additions & 2 deletions packages/auto_mappr/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: auto_mappr
description: Code generation for mapping between different objects with ease.
version: 2.0.0-beta2
version: 2.0.0
repository: https://github.com/netglade/auto_mappr
issue_tracker: https://github.com/netglade/auto_mappr/issues
screenshots:
@@ -13,7 +13,7 @@ environment:
dependencies:
# TODO: Support analyzer same way as json_serializable https://github.com/google/json_serializable.dart/pull/1333
analyzer: ">=5.4.0 <7.0.0"
auto_mappr_annotation: ^2.0.0-beta2
auto_mappr_annotation: ^2.0.0
build: ^2.3.1
built_collection: ^5.1.1
code_builder: ^4.4.0
5 changes: 5 additions & 0 deletions packages/auto_mappr_annotation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[//]: # (## Unreleased)

## 2.0.0
- Adhere to netglade_analysis 4.0.0. [#111](https://github.com/netglade/auto_mappr/pull/111)
- Add `reverse` option to `MapType`. [#115](https://github.com/netglade/auto_mappr/pull/115)
- Add type converters, use `converters` on `AutoMappr` or `MapType`. [#119](https://github.com/netglade/auto_mappr/pull/119)

## 2.0.0-beta2
- Add type converters, use `converters` on `AutoMappr` or `MapType`. [#119](https://github.com/netglade/auto_mappr/pull/119)

5 changes: 2 additions & 3 deletions packages/auto_mappr_annotation/example/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -4,11 +4,10 @@ version: 1.0.0
publish_to: none

environment:
sdk: ">=2.18.7 <4.0.0"
sdk: ^3.0.0

dependencies:
auto_mappr_annotation:
path: ../
auto_mappr_annotation: ^2.0.0

dev_dependencies:
build_runner: ^2.0.0
2 changes: 1 addition & 1 deletion packages/auto_mappr_annotation/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: auto_mappr_annotation
description: Annotations for the auto_mappr code-generator of mapping between objects with ease.
version: 2.0.0-beta2
version: 2.0.0
repository: https://github.com/netglade/auto_mappr
issue_tracker: https://github.com/netglade/auto_mappr/issues

0 comments on commit 3f17a01

Please sign in to comment.