bson 0.3.2

bson #

Build Status

Bson library for Dart programming language

Use this package as a library

1. Depend on it

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

  bson: ^0.3.2

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:bson/bson.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 Jan 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.4

Health issues and suggestions

Document public APIs. (-0.66 points)

262 out of 265 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/src/bson_type.dart. (-20.59 points)

Analysis of lib/src/bson_type.dart reported 46 hints, including:

line 2 col 1: Prefer using /// for doc comments.

line 5 col 1: Prefer using /// for doc comments.

line 8 col 1: Prefer using /// for doc comments.

line 11 col 1: Prefer using /// for doc comments.

line 14 col 1: Prefer using /// for doc comments.

Fix lib/src/types/binary.dart. (-7.71 points)

Analysis of lib/src/types/binary.dart reported 16 hints, including:

line 38 col 18: Unnecessary new keyword.

line 64 col 38: Unnecessary new keyword.

line 67 col 51: Unnecessary new keyword.

line 73 col 34: Unnecessary new keyword.

line 75 col 33: Unnecessary new keyword.

Fix lib/src/types/objectid.dart. (-5.36 points)

Analysis of lib/src/types/objectid.dart reported 11 hints, including:

line 2 col 26: Unnecessary new keyword.

line 2 col 61: Unnecessary new keyword.

line 6 col 28: Use = to separate a named parameter from its default value.

line 7 col 19: Unnecessary new keyword.

line 27 col 14: Unnecessary new keyword.

Fix additional 16 files with analysis or formatting issues. (-13.82 points)

Additional issues in the following files:

  • lib/src/types/regexp.dart (10 hints)
  • lib/src/statics.dart (6 hints)
  • lib/src/bson_impl.dart (4 hints)
  • lib/src/types/dbpointer.dart (3 hints)
  • lib/src/types/dbref.dart (3 hints)
  • lib/src/types/date.dart (1 hint)
  • lib/src/types/timestamp.dart (1 hint)
  • lib/bson.dart (Run dartfmt to format lib/bson.dart.)
  • lib/src/types/array.dart (Run dartfmt to format lib/src/types/array.dart.)
  • lib/src/types/boolean.dart (Run dartfmt to format lib/src/types/boolean.dart.)
  • lib/src/types/double.dart (Run dartfmt to format lib/src/types/double.dart.)
  • lib/src/types/int.dart (Run dartfmt to format lib/src/types/int.dart.)
  • lib/src/types/map.dart (Run dartfmt to format lib/src/types/map.dart.)
  • lib/src/types/min_max_keys.dart (Run dartfmt to format lib/src/types/min_max_keys.dart.)
  • lib/src/types/null.dart (Run dartfmt to format lib/src/types/null.dart.)
  • lib/src/types/string.dart (Run dartfmt to format lib/src/types/string.dart.)

Maintenance issues and suggestions

Provide a file named (-20 points)

Changelog entries help developers follow the progress of your package. See the example generated by stagehand.

Use analysis_options.yaml. (-10 points)

Change the name of your package's .analysis_options file to analysis_options.yaml.

Read more about the setup of analysis-options.yaml.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (more).

Package is getting outdated. (-50.68 points)

The package was last published 78 weeks ago.

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 bson.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.69.2 <3.0.0
fixnum ^0.10.8 0.10.11
more ^1.9.2 1.18.2 2.2.0
Transitive dependencies
collection 1.14.12
Dev dependencies
test ^1.3.0