revali_router 1.3.0 copy "revali_router: ^1.3.0" to clipboard
revali_router: ^1.3.0 copied to clipboard

Feature rich http router for Revali

0
likes
110/ 160
pub points
279
downloads

We analyzed this package 6 days ago, and awarded it 110 pub points (of a possible 160):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Issue tracker URL doesn't exist.

At the time of the analysis https://github.com/mrgnhnt96/revali/issues was unreachable. Make sure that the website is reachable via HEAD requests.

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.

partial
Provide documentation
10 / 20trigger folding of the section

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

153 out of 1035 API elements (14.8 %) 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: coerce, coerce.coerce, revali_router, revali_router.AllowHeaders, revali_router.AllowHeaders.AllowHeaders.

10/10 points: Package has an example

failed
Platform support
20 / 20trigger folding of the section

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:revali_router/revali_router.dart that imports:
  • package:revali_router/src/server/handle_requests.dart that imports:
  • package:revali_router_core/response_handler/response_handler.dart that imports:
  • package:revali_router_core/request/request_context.dart that imports:
  • package:revali_router_core/request/underlying_request.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:revali_router/revali_router.dart that imports:
  • package:revali_router/src/server/handle_requests.dart that imports:
  • package:revali_router_core/response_handler/response_handler.dart that imports:
  • package:revali_router_core/request/request_context.dart that imports:
  • package:revali_router_core/request/underlying_request.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
Pass static analysis
30 / 50trigger folding of the section

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

WARNING: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: RequestContextImpl._headers, RequestContextImpl._payload

lib/src/request/request_context_impl.dart:12:7

   ╷
12 │ class RequestContextImpl with EquatableMixin implements RequestContext {
   │       ^^^^^^^^^^^^^^^^^^
   ╵

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

WARNING: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: MutableWebSocketRequestImpl._hasOverridden, MutableWebSocketRequestImpl._overrideBody, MutableRequestImpl._pathParameters, RequestContextImpl._headers, RequestContextImpl._payload

lib/src/request/websocket_request_context_impl.dart:5:7

  ╷
5 │ class MutableWebSocketRequestImpl extends MutableRequestImpl
  │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

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

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

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

Package Constraint Compatible Latest
autoequal ^0.9.1 0.9.1 0.9.1
collection ^1.19.0 1.19.1 1.19.1
copy_with_extension ^5.0.4 5.0.4 6.0.0
equatable ^2.0.5 2.0.7 2.0.7
file ^7.0.1 7.0.1 7.0.1
http_parser ^4.1.0 4.1.1 4.1.1
meta ^1.16.0 1.16.0 1.16.0
mime ^1.0.5 1.0.6 2.0.0
path ^1.9.0 1.9.1 1.9.1
revali_annotations ^1.2.0 1.2.0 1.2.0
revali_core ^1.1.0 1.1.0 1.1.0
revali_router_annotations ^1.1.0 1.1.0 1.1.0
revali_router_core ^1.3.0 1.3.0 1.3.0
stack_trace ^1.11.1 1.12.1 1.12.1
Transitive dependencies
Package Constraint Compatible Latest
source_span - 1.10.1 1.10.1
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
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 `^5.0.4` on copy_with_extension does not support the stable version `6.0.0`, that was published 20 days ago.

When copy_with_extension is 30 days old, this package will no longer be awarded points in this category.

Try running dart pub upgrade --major-versions copy_with_extension to update the constraint.

The constraint `^1.0.5` on mime does not support the stable version `2.0.0`.

Try running dart pub upgrade --major-versions mime 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.17, Dart 3.6.0.

Check the analysis log for details.