diff --git a/packages/leancode_cubit_utils_cqrs/CHANGELOG.md b/packages/leancode_cubit_utils_cqrs/CHANGELOG.md index 8efb4a6..bc33cf7 100644 --- a/packages/leancode_cubit_utils_cqrs/CHANGELOG.md +++ b/packages/leancode_cubit_utils_cqrs/CHANGELOG.md @@ -1,3 +1,3 @@ -## 0.0.1 +## 0.1.0 * Extract cqrs support from the `leancode_cubit_utils` package. diff --git a/packages/leancode_cubit_utils_cqrs/example/lib/main.dart b/packages/leancode_cubit_utils_cqrs/example/lib/main.dart index 0d4d05b..15551f3 100644 --- a/packages/leancode_cubit_utils_cqrs/example/lib/main.dart +++ b/packages/leancode_cubit_utils_cqrs/example/lib/main.dart @@ -6,7 +6,7 @@ import 'package:example/pages/home_page.dart'; import 'package:example/pages/paginated/paginated_cubit_page.dart'; import 'package:example/pages/query/query_page.dart'; import 'package:flutter/material.dart'; -import 'package:leancode_cubit_utils/leancode_cubit_utils.dart'; +import 'package:leancode_cubit_utils_cqrs/leancode_cubit_utils_cqrs.dart'; import 'package:logging/logging.dart'; import 'package:provider/provider.dart'; diff --git a/packages/leancode_cubit_utils_cqrs/example/lib/pages/paginated/paginated_cubit_page.dart b/packages/leancode_cubit_utils_cqrs/example/lib/pages/paginated/paginated_cubit_page.dart index d9019d5..63a39b6 100644 --- a/packages/leancode_cubit_utils_cqrs/example/lib/pages/paginated/paginated_cubit_page.dart +++ b/packages/leancode_cubit_utils_cqrs/example/lib/pages/paginated/paginated_cubit_page.dart @@ -2,7 +2,7 @@ import 'package:example/pages/paginated/api.dart'; import 'package:example/pages/paginated/simple_paginated_cubit.dart'; import 'package:flutter/material.dart' hide Page; import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:leancode_cubit_utils/leancode_cubit_utils.dart'; +import 'package:leancode_cubit_utils_cqrs/leancode_cubit_utils_cqrs.dart'; class PaginatedCubitScreen extends StatelessWidget { const PaginatedCubitScreen({super.key}); diff --git a/packages/leancode_cubit_utils_cqrs/example/lib/pages/paginated/simple_paginated_cubit.dart b/packages/leancode_cubit_utils_cqrs/example/lib/pages/paginated/simple_paginated_cubit.dart index 56ed5ab..3c7b02a 100644 --- a/packages/leancode_cubit_utils_cqrs/example/lib/pages/paginated/simple_paginated_cubit.dart +++ b/packages/leancode_cubit_utils_cqrs/example/lib/pages/paginated/simple_paginated_cubit.dart @@ -1,7 +1,6 @@ import 'package:cqrs/cqrs.dart'; import 'package:equatable/equatable.dart'; import 'package:example/pages/paginated/api.dart'; -import 'package:leancode_cubit_utils/leancode_cubit_utils.dart'; import 'package:leancode_cubit_utils_cqrs/leancode_cubit_utils_cqrs.dart'; class AdditionalData with EquatableMixin { diff --git a/packages/leancode_cubit_utils_cqrs/example/lib/pages/query/query_page.dart b/packages/leancode_cubit_utils_cqrs/example/lib/pages/query/query_page.dart index 0c49dd4..3a4e12b 100644 --- a/packages/leancode_cubit_utils_cqrs/example/lib/pages/query/query_page.dart +++ b/packages/leancode_cubit_utils_cqrs/example/lib/pages/query/query_page.dart @@ -2,7 +2,6 @@ import 'package:cqrs/cqrs.dart'; import 'package:example/cqrs/cqrs.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:leancode_cubit_utils/leancode_cubit_utils.dart'; import 'package:leancode_cubit_utils_cqrs/leancode_cubit_utils_cqrs.dart'; import 'package:leancode_hooks/leancode_hooks.dart'; diff --git a/packages/leancode_cubit_utils_cqrs/example/pubspec.lock b/packages/leancode_cubit_utils_cqrs/example/pubspec.lock index 894835e..a2c3bbd 100644 --- a/packages/leancode_cubit_utils_cqrs/example/pubspec.lock +++ b/packages/leancode_cubit_utils_cqrs/example/pubspec.lock @@ -252,11 +252,12 @@ packages: source: hosted version: "3.0.1" leancode_cubit_utils: - dependency: "direct main" + dependency: transitive description: - path: "../../leancode_cubit_utils" - relative: true - source: path + name: leancode_cubit_utils + sha256: a437577a8f0f854c67b5f76d849721d2d0f468a2d9c9801a1646fb23a0559d16 + url: "https://pub.dev" + source: hosted version: "0.1.0" leancode_cubit_utils_cqrs: dependency: "direct main" @@ -264,7 +265,7 @@ packages: path: ".." relative: true source: path - version: "0.0.1" + version: "0.1.0" leancode_hooks: dependency: "direct main" description: diff --git a/packages/leancode_cubit_utils_cqrs/example/pubspec.yaml b/packages/leancode_cubit_utils_cqrs/example/pubspec.yaml index a2bdedd..dfb411c 100644 --- a/packages/leancode_cubit_utils_cqrs/example/pubspec.yaml +++ b/packages/leancode_cubit_utils_cqrs/example/pubspec.yaml @@ -16,8 +16,6 @@ dependencies: mocktail: ^1.0.0 leancode_cubit_utils_cqrs: path: .. - leancode_cubit_utils: - path: ../../leancode_cubit_utils provider: ^6.0.5 logging: ^1.2.0 leancode_hooks: ^0.0.6 diff --git a/packages/leancode_cubit_utils_cqrs/lib/leancode_cubit_utils_cqrs.dart b/packages/leancode_cubit_utils_cqrs/lib/leancode_cubit_utils_cqrs.dart index 6e79c0d..3b0a79b 100644 --- a/packages/leancode_cubit_utils_cqrs/lib/leancode_cubit_utils_cqrs.dart +++ b/packages/leancode_cubit_utils_cqrs/lib/leancode_cubit_utils_cqrs.dart @@ -1,6 +1,7 @@ /// A library for building cubits for handling CQRS with less boilerplate code. library leancode_cubit_utils_cqrs; +export 'package:leancode_cubit_utils/leancode_cubit_utils.dart'; export 'src/paginated/paginated_query_cubit.dart'; export 'src/paginated/pre_request/query_pre_request.dart'; export 'src/request/query_cubit.dart'; diff --git a/packages/leancode_cubit_utils_cqrs/pubspec.yaml b/packages/leancode_cubit_utils_cqrs/pubspec.yaml index 2a98d81..0206906 100644 --- a/packages/leancode_cubit_utils_cqrs/pubspec.yaml +++ b/packages/leancode_cubit_utils_cqrs/pubspec.yaml @@ -1,8 +1,7 @@ name: leancode_cubit_utils_cqrs description: An extension of leancode_cubit_utils that provides cqrs support. -version: 0.0.1 +version: 0.1.0 repository: https://github.com/leancodepl/leancode_cubit_utils -publish_to: none environment: sdk: '>=3.1.0 <4.0.0' @@ -13,10 +12,7 @@ dependencies: flutter: sdk: flutter flutter_bloc: ^8.0.0 - leancode_cubit_utils: - # TODO: Change after leancode_cubit_utils' new version is published, - # also remove publish_to: none - path: ../leancode_cubit_utils + leancode_cubit_utils: ^0.1.0 leancode_hooks: ^0.0.6 dev_dependencies: diff --git a/packages/leancode_cubit_utils_cqrs/test/paginated/query_pre_request_test.dart b/packages/leancode_cubit_utils_cqrs/test/paginated/query_pre_request_test.dart index 0dedf08..5d46257 100644 --- a/packages/leancode_cubit_utils_cqrs/test/paginated/query_pre_request_test.dart +++ b/packages/leancode_cubit_utils_cqrs/test/paginated/query_pre_request_test.dart @@ -1,6 +1,5 @@ import 'package:cqrs/cqrs.dart'; import 'package:flutter_test/flutter_test.dart'; -import 'package:leancode_cubit_utils/leancode_cubit_utils.dart'; import 'package:leancode_cubit_utils_cqrs/leancode_cubit_utils_cqrs.dart'; class TestQueryPreRequest extends QueryPreRequest { diff --git a/packages/leancode_cubit_utils_cqrs/test/paginated/test_paginated_cubit.dart b/packages/leancode_cubit_utils_cqrs/test/paginated/test_paginated_cubit.dart index fd0c61d..9927b95 100644 --- a/packages/leancode_cubit_utils_cqrs/test/paginated/test_paginated_cubit.dart +++ b/packages/leancode_cubit_utils_cqrs/test/paginated/test_paginated_cubit.dart @@ -1,5 +1,4 @@ import 'package:cqrs/cqrs.dart'; -import 'package:leancode_cubit_utils/leancode_cubit_utils.dart'; import 'package:leancode_cubit_utils_cqrs/leancode_cubit_utils_cqrs.dart'; import '../utils/mocked_api.dart'; diff --git a/packages/leancode_cubit_utils_cqrs/test/utils/test_query_cubit.dart b/packages/leancode_cubit_utils_cqrs/test/utils/test_query_cubit.dart index 6e6b7b1..72d80bd 100644 --- a/packages/leancode_cubit_utils_cqrs/test/utils/test_query_cubit.dart +++ b/packages/leancode_cubit_utils_cqrs/test/utils/test_query_cubit.dart @@ -1,5 +1,4 @@ import 'package:cqrs/cqrs.dart'; -import 'package:leancode_cubit_utils/leancode_cubit_utils.dart'; import 'package:leancode_cubit_utils_cqrs/leancode_cubit_utils_cqrs.dart'; import 'test_query.dart';