nats_dart 0.0.4

Dart native
Flutter Android iOS

Dart client for NATS, a lightweight, high-performance cloud native messaging system

4
likes
80 / 110
pub points
31 %
popularity

We analyzed this package on Oct 27, 2020, and awarded it 80 pub points (of a possible 110):

Follow Dart file conventions
20 / 20

10/10 points: Provide a valid pubspec.yaml

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

Provide documentation
10 / 20

10/10 points: Package has an example

  • Found example at: example/README.md

0/10 points: 20% or more of the public API has dartdoc comments

  • 34 out of 497 API elements (6.8 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

Support multiple platforms
10 / 20

10/20 points: Supports 1 of 2 possible platforms (native, js)

Consider supporting multiple platforms:

Package not compatible with runtime js

Because:

  • package:nats_dart/nats_dart.dart that imports:
  • dart:io
Pass static analysis
20 / 30

20/30 points: code has no errors, warnings, lints, or formatting issues

Found 77 issues. Showing the first 2:

INFO: Avoid return types on setters.

lib/src/classes/ClientOptions.dart:16:3

   ╷
16 │   void     set  pingInterval(Duration value) {
   │   ^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/classes/ClientOptions.dart

INFO: Avoid return types on setters.

lib/src/classes/ServerOptions.dart:13:3

   ╷
13 │   void        set  payloadType(PayloadType value) => _payloadType = _checkFinalized(value);
   │   ^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/src/classes/ServerOptions.dart

Support up-to-date dependencies
20 / 20

10/10 points: All of the package dependencies are supported in the latest version

PackageConstraintCompatibleLatest
event_bus^1.1.01.1.11.1.1
fixnum^0.10.110.10.110.10.11
kiwi^2.0.02.1.12.1.1
logging^0.11.3+20.11.40.11.4
meta^1.2.21.2.31.2.3
pedantic^1.8.0+11.9.21.9.2
protobuf^1.0.11.0.11.0.1
quiver^2.1.22.1.4+12.1.4+1
quiver_log^1.0.61.0.61.0.6
uuid^2.2.02.2.22.2.2
Transitive dependencies
PackageConstraintCompatibleLatest
charcode-1.1.31.1.3
collection-1.14.131.14.13
convert-2.1.12.1.1
crypto-2.1.52.1.5
intl-0.16.10.16.1
stack_trace-1.9.51.9.5
typed_data-1.2.01.2.0

To reproduce run pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

4
likes
80
pub points
31%
popularity

Dart client for NATS, a lightweight, high-performance cloud native messaging system

Homepage
Repository

Documentation

API reference

Uploader

bob.jackman@carruslearn.com

License

Apache 2.0 (LICENSE)

Dependencies

event_bus, fixnum, kiwi, logging, meta, pedantic, protobuf, quiver, quiver_log, uuid

More

Packages that depend on nats_dart