json_cache 2.1.0 json_cache: ^2.1.0 copied to clipboard
An object-oriented package for caching user data locally in json; a combinable layer on top of local storage packages that unifies them.
We analyzed this package 14 hours ago, and awarded it 130 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
.
10/10 points: 20% or more of the public API has dartdoc comments
93 out of 93 API elements (100.0 %) have documentation comments.
10/10 points: Package has 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:json_cache/json_cache.dart
that imports:package:json_cache/src/json_cache_safe_local_storage.dart
that imports:package:safe_local_storage/safe_local_storage.dart
that imports:package:safe_local_storage/file_system.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:json_cache/json_cache.dart
that imports:package:json_cache/src/json_cache_safe_local_storage.dart
that imports:package:safe_local_storage/safe_local_storage.dart
that imports:package:safe_local_storage/file_system.dart
that imports:dart:io
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
30/50 points: code has no errors, warnings, lints, or formatting issues
Found 5 issues. Showing the first 2:
WARNING: This API is available since SDK 2.16.0, but constraints '>=2.12.0 <3.0.0' don't guarantee it.
lib/src/json_cache_try.dart:25:13
╷
25 │ Error.throwWithStackTrace(
│ ^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/json_cache_try.dart
WARNING: This API is available since SDK 2.16.0, but constraints '>=2.12.0 <3.0.0' don't guarantee it.
lib/src/json_cache_try.dart:43:13
╷
43 │ Error.throwWithStackTrace(
│ ^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/src/json_cache_try.dart
0/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
cross_local_storage |
^2.0.1 |
2.0.1 | 3.0.0 |
flutter |
flutter |
0.0.0 | 0.0.0 |
flutter_secure_storage |
^8.0.0 |
8.1.0 | 9.2.2 |
hive |
^2.2.3 |
2.2.3 | 2.2.3 |
localstorage |
^4.0.1+2 |
4.0.1+4 | 5.0.0 |
mutex |
^3.0.1 |
3.1.0 | 3.1.0 |
safe_local_storage |
^1.0.2 |
1.0.2 | 2.0.1 |
shared_preferences |
^2.0.18 |
2.3.3 | 2.3.3 |
Transitive dependencies
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
Found 4 issues. Showing the first 2:
The constraint `^2.0.1` on cross_local_storage does not support the stable version `3.0.0`.
Try running dart pub upgrade --major-versions cross_local_storage
to update the constraint.
The constraint `^8.0.0` on flutter_secure_storage does not support the stable version `9.0.0`.
Try running dart pub upgrade --major-versions flutter_secure_storage
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.22.15
, Flutter 3.24.5
, Dart 3.5.4
.
Check the analysis log for details.