cqrs 3.0.1

  • Readme
  • Changelog
  • Installing
  • 71

dart_cqrs #

Introduction #

cqrs is a simple CQRS client (with http) using helper Command/Query classes.

Code Samples #

Queries:

const result = await _cqrs.get(SimpleQuery());
print result;

Commands:

const result = await _cqrs.run(SimpleCommand());

if (result.wasSuccessful) {
  print('Success!');
}

Changelog #

[3.0.1] - 2020-05-11 #

  • Fix the returned null value directly from query

[3.0.0] - 2020-04-10 #

Breaking changes #

  • Remove deprecated @virtual annotations
  • Rename toJsonMap to toJson
  • Fix readme

[2.0.1+1] - 2019-02-07 #

  • Update readme

[2.0.1] - 2019-02-07 #

Fixed #

  • Fix validation errors

[2.0.0] - 2019-02-06 #

Breaking changes #

  • Remove normalizeDate function
  • Add @virtual annotations

[1.0.6] - 2019-01-31 #

Fixed #

  • From now CQRSException implements Exception

[1.0.5] - 2018-12-31 #

Fixed #

  • Overload toString() on CQRSException in case of treating it like dynamic

[1.0.4] - 2018-12-31 #

Fixed #

  • Fix command result JSON validation.

[1.0.3] - 2018-12-31 #

Fixed #

  • Query resultFactory only argument decodedJson is now of dynamic type. It's due to a fact, that it can be more than a map, i.e. an array of maps.

[1.0.2] - 2018-12-31 #

Fixed #

  • Removed useless oauth dependency. Now this package depends only on http.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  cqrs: ^3.0.1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:cqrs/cqrs.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
50
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
84
Overall:
Weighted score of the above. [more]
71
Learn more about scoring.

We analyzed this package on Jul 2, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.9+1

Health issues and suggestions

Document public APIs. (-1 points)

28 out of 28 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and cqrs.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

The package description is too short. (-6 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
http ^0.12.0 0.12.1
Transitive dependencies
charcode 1.1.3
collection 1.14.13
http_parser 3.1.4
meta 1.1.8 1.2.0
path 1.7.0
pedantic 1.9.0 1.9.1
source_span 1.7.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.2.0