dart2esm 0.2.0
dart2esm: ^0.2.0 copied to clipboard
A Dart-to-native-ESM compiler that emits clean modern JavaScript modules.
We analyzed this package 2 hours ago, and awarded it 120 pub points (of a possible 160):
10/10 points: Provide a valid pubspec.yaml
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: MIT.
0/10 points: 20% or more of the public API has dartdoc comments
7 out of 81 API elements (8.6 %) 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.
To highlight public API members missing documentation consider enabling the public_member_api_docs lint.
Some symbols that are missing documentation: dart2esm.CodeSizeMetrics, dart2esm.CodeSizeMetrics.CodeSizeMetrics.fromCode, dart2esm.CodeSizeMetrics.CodeSizeMetrics.new, dart2esm.CodeSizeMetrics.gzipBytes, dart2esm.CodeSizeMetrics.label.
0/10 points: Package has an example
No example found.
See package layout guidelines on how to add an example.
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:dart2esm/dart2esm.dartthat imports:package:dart2esm/src/foundation/diagnostics/metrics.dartthat imports:dart:io
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 91 issues. Showing the first 2:
INFO: Use 'isNotEmpty' instead of 'length' to test whether the collection is empty.
lib/src/lowering/intrinsics/dart_async_intrinsics.dart:575:16
╷
575 │ when positional.length >= 1 && positional.length <= 2 =>
│ ^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/lowering/intrinsics/dart_async_intrinsics.dart
INFO: Use 'isNotEmpty' instead of 'length' to test whether the collection is empty.
lib/src/lowering/intrinsics/dart_async_intrinsics.dart:584:16
╷
584 │ when positional.length >= 1 && positional.length <= 3 =>
│ ^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run dart analyze lib/src/lowering/intrinsics/dart_async_intrinsics.dart
0/10 points: All of the package dependencies are supported in the latest version
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
_fe_analyzer_shared |
^98.0.0 |
98.0.0 | 104.0.0 | |
args |
^2.7.0 |
2.7.0 | 2.7.0 | |
path |
^1.9.1 |
1.9.1 | 1.9.1 |
Transitive dependencies
| Package | Constraint | Compatible | Latest | Notes |
|---|---|---|---|---|
collection |
- | 1.19.1 | 1.19.1 | |
meta |
- | 1.19.0 | 1.19.0 | |
source_span |
- | 1.10.2 | 1.10.2 | |
term_glyph |
- | 1.2.2 | 1.2.2 |
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.
The constraint `^98.0.0` on _fe_analyzer_shared does not support the stable version `99.0.0`.
Try running dart pub upgrade --major-versions _fe_analyzer_shared to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade does not expose any static analysis error.
Analyzed with Pana 0.23.14, Dart 3.12.2.
Check the analysis log for details.