mongo_document 1.7.4 copy "mongo_document: ^1.7.4" to clipboard
mongo_document: ^1.7.4 copied to clipboard

A code generator for MongoDB-backed Dart models using @MongoDocument annotations - build type-safe, maintainable backend layers.

120/ 160
pub points
625
downloads

We analyzed this package 19 hours ago, and awarded it 120 pub points (of a possible 160):

Passed report section
Follow Dart file conventions
30 / 30trigger folding of the section

Passed check 10/10 points: Provide a valid pubspec.yaml

Passed check 5/5 points: Provide a valid README.md

Passed check 5/5 points: Provide a valid CHANGELOG.md

Passed check 10/10 points: Use an OSI-approved license

Detected license: MIT.

Failed report section
Provide documentation
10 / 20trigger folding of the section

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

5 out of 15 API elements (33.3 %) have documentation comments.

Some symbols that are missing documentation: builder, builder.mongoDocumentBuilder, mongo_document_generator, mongo_document_generator.MongoDocumentGenerator, mongo_document_generator.MongoDocumentGenerator.MongoDocumentGenerator.new.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

Passed report section
Platform support
20 / 20trigger folding of the section

Passed check 20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:mongo_document/builder.dart that imports:
  • package:mongo_document/mongo_document_generator.dart that imports:
  • package:mongo_document/src/utils/field_manipulators.dart that imports:
  • package:source_gen/source_gen.dart that imports:
  • package:source_gen/src/utils.dart that imports:
  • package:build/build.dart that imports:
  • package:build/src/resolver.dart that imports:
  • package:build/src/build_step.dart that imports:
  • package:glob/glob.dart that imports:
  • package:glob/src/list_tree.dart that imports:
  • package:file/file.dart that imports:
  • package:file/src/interface.dart that imports:
  • package:file/src/io.dart that imports:
  • dart:io
Failed report section
Pass static analysis
30 / 50trigger folding of the section

Failed check 30/50 points: code has no errors, warnings, lints, or formatting issues

Found 7 issues. Showing the first 2:

WARNING: The '!' will have no effect because the receiver can't be null.

lib/src/templates/crud/update/update_templates.dart:42:95

   ╷
42 │           final hasToJson = interfaceType.lookUpMethod('toJson', interfaceType.element.library!) != null;
   │                                                                                               ^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/templates/crud/update/update_templates.dart

INFO: Missing type annotation.

lib/src/templates/crud/create/create_template.dart:5:10

  ╷
5 │   static save(String className) {
  │          ^^^^
  ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/src/templates/crud/create/create_template.dart

Failed report section
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest Notes
analyzer ^8.2.0 8.4.1 9.0.0
build ^4.0.0 4.0.3 4.0.3
collection ^1.19.1 1.19.1 1.19.1
dart_style >=2.3.8 <4.0.0 3.1.3 3.1.3
json_annotation ^4.9.0 4.9.0 4.9.0
mongo_dart ^0.10.5 0.10.5 0.10.5
mongo_document_annotation ^1.7.4 1.7.4 1.7.4
path ^1.9.1 1.9.1 1.9.1
pluralize ^0.0.8 0.0.8 0.0.8
pub_semver ^2.2.0 2.2.0 2.2.0
recase ^4.1.0 4.1.0 4.1.0
source_gen ^4.0.2 4.1.1 4.1.1
Transitive dependencies
Package Constraint Compatible Latest Notes
_fe_analyzer_shared - 91.0.0 92.0.0
archive - 4.0.7 4.0.7
args - 2.7.0 2.7.0
async - 2.13.0 2.13.0
basic_utils - 5.8.2 5.8.2
bson - 5.0.7 5.0.7
buffer - 1.2.3 1.2.3
clock - 1.1.2 1.1.2
convert - 3.1.2 3.1.2
crypto - 3.0.7 3.0.7
decimal - 3.2.4 3.2.4
ffi - 2.1.5 2.1.5
file - 7.0.1 7.0.1
fixnum - 1.1.1 1.1.1
freezed_annotation - 3.1.0 3.1.0
glob - 2.1.3 2.1.3
http - 1.6.0 1.6.0
http_parser - 4.1.2 4.1.2
intl - 0.20.2 0.20.2
logging - 1.3.0 1.3.0
meta - 1.17.0 1.17.0
mongo_dart_query - 5.0.2 5.0.2
package_config - 2.2.0 2.2.0
packages_extensions - 0.1.1 0.1.1
pointycastle - 4.0.0 4.0.0
pool - 1.5.2 1.5.2
posix - 6.0.3 6.0.3
power_extensions - 0.2.3 0.2.3
rational - 2.2.3 2.2.3
sasl_scram - 0.1.1 0.1.1
saslprep - 1.0.3 1.0.3
source_span - 1.10.1 1.10.1
stack_trace - 1.12.1 1.12.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
unorm_dart - 0.3.2 0.3.2
uuid - 4.5.2 4.5.2
vy_string_utils - 0.4.6 0.4.6
watcher - 1.2.0 1.2.0
web - 1.1.1 1.1.1
yaml - 3.1.3 3.1.3

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

The constraint `^8.2.0` on analyzer does not support the stable version `9.0.0`.

Try running dart pub upgrade --major-versions analyzer to update the constraint.

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

Passed check 20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.23.5, Dart 3.10.7.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
2
likes
120
points
625
downloads

Publisher

unverified uploader

Weekly Downloads

A code generator for MongoDB-backed Dart models using @MongoDocument annotations - build type-safe, maintainable backend layers.

Repository (GitHub)
View/report issues

Topics

#codegen #mongodb #backend #dart #annotations

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

analyzer, build, collection, dart_style, json_annotation, mongo_dart, mongo_document_annotation, path, pluralize, pub_semver, recase, source_gen

More

Packages that depend on mongo_document