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
56
downloads

We analyzed this package 2 days ago, and awarded it 70 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: ISC.

Failed report section
Provide documentation
10 / 20trigger folding of the section

Passed check 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.

Failed check 0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

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

Passed check 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

Failed check 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 report section
Pass static analysis
0 / 50trigger folding of the section

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

Found 21 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 report section
Support up-to-date dependencies
10 / 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
extension_type_unions ^1.0.10 1.0.10 1.0.10
web ^0.4.2 0.4.2 1.1.1

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.

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

Failed check 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.20, Dart 3.7.2.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
0
likes
70
points
56
downloads

Publisher

verified publisherluizbarboza.com

Weekly Downloads

Transform the DOM by selecting elements and joining to data.

Repository (GitHub)

Documentation

API reference

License

ISC (license)

Dependencies

extension_type_unions, web

More

Packages that depend on d4_selection