version 1.1.0
version: ^1.1.0 copied to clipboard

Provides a simple class for parsing and comparing semantic versions as defined by http://semver.org/

45
likes
100 / 110
pub points
96 %
popularity

We analyzed this package on Apr 9, 2021, and awarded it 100 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
20 / 20

10/10 points: Package has an example

  • Found example at: example/version_example.dart

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

  • 17 out of 17 API elements (100.0 %) have documentation comments.
Support multiple platforms
20 / 20

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

Pass static analysis
20 / 30

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

Found 36 issues. Showing the first 2:

INFO: Unnecessary new keyword.

lib/version.dart:10:7

   ╷
10 │       new RegExp(r"^([\d.]+)(-([0-9A-Za-z\-.]+))?(\+([0-9A-Za-z\-.]+))?$");
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/version.dart

INFO: Unnecessary new keyword.

lib/version.dart:11:37

   ╷
11 │   static final RegExp _buildRegex = new RegExp(r"^[0-9A-Za-z\-.]+$");
   │                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using pedantic and run dartanalyzer lib/version.dart

Support up-to-date dependencies
20 / 20

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

No dependencies.

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

Analysed with Pana 0.15.4, Dart 2.12.2.

45
likes
100
pub points
96%
popularity

Publisher

dart.ninja

Provides a simple class for parsing and comparing semantic versions as defined by http://semver.org/

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

More

Packages that depend on version