version 1.1.1
version: ^1.1.1 copied to clipboard

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

44
likes
100 / 110
pub points
96 %
popularity

We analyzed this package on Mar 25, 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 11 issues. Showing the first 2:

INFO: DO use curly braces for all flow control structures.

lib/version.dart:42:7

   ╷
42 │       throw ArgumentError("preRelease must not be null");
   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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

INFO: Use isEmpty instead of length

lib/version.dart:45:11

   ╷
45 │           _preRelease[i].toString().trim().length == 0)
   │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

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.1.

44
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