d4_selection 0.1.1 copy "d4_selection: ^0.1.1" to clipboard
d4_selection: ^0.1.1 copied to clipboard

Transform the DOM by selecting elements and joining to data.

0
likes
70/ 160
pub points
69
downloads

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

OK
Follow Dart file conventions
30 / 30trigger folding of the section

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: ISC.

failed
Provide documentation
10 / 20trigger folding of the section

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

64 out of 106 API elements (60.4 %) have documentation comments.

Some symbols that are missing documentation: Control flow, Handling events, Joining data, Local variables, Modifying elements.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
20 / 20trigger folding of the section

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

  • ✓ Web

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:d4_selection/d4_selection.dart that imports:
  • package:d4_selection/src/d4_selection.dart that imports:
  • package:d4_selection/src/window.dart that imports:
  • package:web/web.dart that imports:
  • package:web/src/helpers.dart that imports:
  • package:web/src/helpers/http.dart that imports:
  • package:web/src/helpers/events/events.dart that imports:
  • package:web/src/helpers/events/streams.dart that imports:
  • package:web/src/dom.dart that imports:
  • package:web/src/dom/xhr.dart that imports:
  • package:web/src/dom/trust_token_api.dart that imports:
  • dart:js_interop
Package not compatible with platform iOS

Because:

  • package:d4_selection/d4_selection.dart that imports:
  • package:d4_selection/src/d4_selection.dart that imports:
  • package:d4_selection/src/window.dart that imports:
  • package:web/web.dart that imports:
  • package:web/src/helpers.dart that imports:
  • package:web/src/helpers/http.dart that imports:
  • package:web/src/helpers/events/events.dart that imports:
  • package:web/src/helpers/events/streams.dart that imports:
  • package:web/src/dom.dart that imports:
  • package:web/src/dom/xhr.dart that imports:
  • package:web/src/dom/trust_token_api.dart that imports:
  • dart:js_interop
Package not compatible with platform Windows

Because:

  • package:d4_selection/d4_selection.dart that imports:
  • package:d4_selection/src/d4_selection.dart that imports:
  • package:d4_selection/src/window.dart that imports:
  • package:web/web.dart that imports:
  • package:web/src/helpers.dart that imports:
  • package:web/src/helpers/http.dart that imports:
  • package:web/src/helpers/events/events.dart that imports:
  • package:web/src/helpers/events/streams.dart that imports:
  • package:web/src/dom.dart that imports:
  • package:web/src/dom/xhr.dart that imports:
  • package:web/src/dom/trust_token_api.dart that imports:
  • dart:js_interop
Package not compatible with platform Linux

Because:

  • package:d4_selection/d4_selection.dart that imports:
  • package:d4_selection/src/d4_selection.dart that imports:
  • package:d4_selection/src/window.dart that imports:
  • package:web/web.dart that imports:
  • package:web/src/helpers.dart that imports:
  • package:web/src/helpers/http.dart that imports:
  • package:web/src/helpers/events/events.dart that imports:
  • package:web/src/helpers/events/streams.dart that imports:
  • package:web/src/dom.dart that imports:
  • package:web/src/dom/xhr.dart that imports:
  • package:web/src/dom/trust_token_api.dart that imports:
  • dart:js_interop
Package not compatible with platform macOS

Because:

  • package:d4_selection/d4_selection.dart that imports:
  • package:d4_selection/src/d4_selection.dart that imports:
  • package:d4_selection/src/window.dart that imports:
  • package:web/web.dart that imports:
  • package:web/src/helpers.dart that imports:
  • package:web/src/helpers/http.dart that imports:
  • package:web/src/helpers/events/events.dart that imports:
  • package:web/src/helpers/events/streams.dart that imports:
  • package:web/src/dom.dart that imports:
  • package:web/src/dom/xhr.dart that imports:
  • package:web/src/dom/trust_token_api.dart that imports:
  • dart:js_interop

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package 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
0 / 50trigger folding of the section

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

Found 20 issues. Showing the first 2:

ERROR: The argument type 'String' can't be assigned to the parameter type 'int'.

lib/src/selection/on.dart:28:29

   ╷
28 │     for (var j = 0, m = (on["length"] as JSNumber).toDartInt; j < m; ++j) {
   │                             ^^^^^^^^
   ╵

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

ERROR: The argument type 'String' can't be assigned to the parameter type 'int'.

lib/src/selection/on.dart:30:14

   ╷
30 │       o = on[j0] as JSObject;
   │              ^^
   ╵

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

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

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

Package Constraint Compatible Latest
extension_type_unions ^1.0.10 1.0.10 1.0.10
web ^0.4.2 0.4.2 1.1.0

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

The constraint `^0.4.2` on web does not support the stable version `0.5.0`.

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

10/10 points: Package supports latest stable Dart and Flutter SDKs

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 9 errors:

  • ARGUMENT_TYPE_NOT_ASSIGNABLE - lib/src/selection/on.dart:28:29 - The argument type 'String' can't be assigned to the parameter type 'int'.
  • ARGUMENT_TYPE_NOT_ASSIGNABLE - lib/src/selection/on.dart:30:14 - The argument type 'String' can't be assigned to the parameter type 'int'.
  • ARGUMENT_TYPE_NOT_ASSIGNABLE - lib/src/selection/on.dart:40:12 - The argument type 'String' can't be assigned to the parameter type 'int'.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.17, Dart 3.6.0.

Check the analysis log for details.

0
likes
70
points
69
downloads

Publisher

verified publisherluizbarboza.com

Weekly Downloads

Transform the DOM by selecting elements and joining to data.

Repository (GitHub)
View/report issues

Documentation

API reference

License

ISC (license)

Dependencies

extension_type_unions, web

More

Packages that depend on d4_selection