cuid2 3.1.0 copy "cuid2: ^3.1.0" to clipboard
cuid2: ^3.1.0 copied to clipboard

A dart implementaion of the secure, collision-resistant ids optimized for horizontal scaling and performance (v2).

8
likes
130/ 160
pub points
564
downloads

We analyzed this package 3 days ago, and awarded it 130 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.

Passed report section
Provide documentation
20 / 20trigger folding of the section

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

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

Passed check 10/10 points: Package has an example

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

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

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

  • ✓ Web

Failed check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:cuid2/cuid2.dart that imports:
  • package:cuid2/src/cuid2_base.dart that imports:
  • package:cuid2/src/fp_native.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.

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

WARNING: Unnecessary cast.

lib/src/cuid2_base.dart:78:28

78final sha3 = d.process(utf8.encode(input) as Uint8List);
   │                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
copied to clipboard

To reproduce make sure you are using the lints_core and run dart analyze lib/src/cuid2_base.dart

INFO: 'dart:html' is deprecated and shouldn't be used. Use package:web and dart:js_interop instead.

lib/src/fp_web.dart:1:1

1import 'dart:html';
  │ ^^^^^^^^^^^^^^^^^^^
  ╵
copied to clipboard

To reproduce make sure you are using the lints_core and run dart analyze lib/src/fp_web.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
pointycastle ^3.7.3 3.9.1 4.0.0
Transitive dependencies
Package Constraint Compatible Latest Notes
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
js - 0.7.2 0.7.2 Discontinued
typed_data - 1.4.0 1.4.0

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

The constraint `^3.7.3` on pointycastle does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions pointycastle 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.22.20, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
Jun 28Jul 26Aug 23Sep 20Oct 18Nov 15Dec 13Jan 10Feb 7Mar 7020406080100120140160180200>=2.0.0-0 <3.0.0>=3.0.0-0 <4.0.0
8
likes
130
points
564
downloads

Publisher

verified publisherobsidia.io

Weekly Downloads

2024.09.13 - 2025.03.28

A dart implementaion of the secure, collision-resistant ids optimized for horizontal scaling and performance (v2).

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

pointycastle

More

Packages that depend on cuid2