cqrs 2.0.1+1

  • Readme
  • Changelog
  • Installing
  • 69

dart_cqrs #

Introduction #

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

Code Samples #


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


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

if (result.wasSuccessful) {

Changelog #

[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:

  cqrs: ^2.0.1+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';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Dec 4, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21


Detected platforms: Flutter, web, other

No platform restriction found in primary library package:cqrs/cqrs.dart.

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.

Fix lib/cqrs.dart. (-1.49 points)

Analysis of lib/cqrs.dart reported 3 hints:

line 65 col 4: 'virtual' is deprecated and shouldn't be used.

line 72 col 4: 'virtual' is deprecated and shouldn't be used.

line 75 col 4: 'virtual' is deprecated and shouldn't be used.

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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.28.0 <3.0.0
http ^0.12.0 0.12.0+2
meta ^1.1.7 1.1.8
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
http_parser 3.1.3
path 1.6.4
pedantic 1.8.0+1
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6