worker_service 0.7.4 copy "worker_service: ^0.7.4" to clipboard
worker_service: ^0.7.4 copied to clipboard

A flutter package that works for native/web, and allows the creation of workers that offload work into a potentially parallel space

120/ 160
pub points
41
downloads

We analyzed this package 2 days ago, and awarded it 120 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: BSD-3-Clause.

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

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

OUT: Documenting worker_service... Discovering libraries... Linking elements... Precaching local docs for 150130 elements... Initialized dartdoc with 193 libraries Generating docs for library ports.dart from package:worker_service/ports.dart... Generating docs for library common.dart from package:worker_service/common.dart... Generating docs for library worker_service_interface.dart from package:worker_service/worker_service_interface.dart... Generating docs for library work.dart from package:worker_service/work.dart... Generating docs for library worker_service_isolate.dart from package:worker_service/worker_service_isolate.dart... [25 more lines] ERR: warning: work has no library level documentation comments from work: (file:///tmp/pana_PELKSJ/lib/work.dart:1:1) warning: work has no library level documentation comments from work: (file:///tmp/pana_PELKSJ/lib/work_in_ww.dart:1:1) error: file already written at "work/index.html" for symbol work: (file:///tmp/pana_PELKSJ/lib/work_in_ww.dart:1:1) conflicting with file already generated by work: (file:///tmp/pana_PELKSJ/lib/work.dart:1:1) Dartdoc generates a path and filename to write to for each symbol. 'work' conflicts with another symbol in the generated path, and therefore can not be written out. Changing the name, library name, or [51 more lines]

Passed check 10/10 points: Package has an example

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

Passed check 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:worker_service/worker_service.dart that imports:
  • package:worker_service/worker_service_web/worker_service_web.dart that imports:
  • package:worker_service/common.dart that imports:
  • package:isolates/isolates.dart that imports:
  • package:isolates/registry.dart that imports:
  • package:isolates/ports.dart that imports:
  • dart:isolate
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

Found 19 issues. Showing the first 2:

WARNING: This 'onError' handler must return a value assignable to 'R', but ends without returning a value.

lib/common.dart:94:51

   ╷
94 │           onTimeout: onTimeout)).catchError((err) {
   │                                                   ^
   ╵

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

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

lib/ports/platform/work_proxy_web.dart:4:1

  ╷
4 │ import 'dart:html' as web;
  │ ^^^^^^^^^^^^^^^^^^^^^^^^^^
  ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/ports/platform/work_proxy_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
async ^2.6.1 2.13.0 2.13.0
collection ^1.15.0 1.19.1 1.19.1
dartxx ^0.5.5 0.5.5 0.5.5
equatable ^2.0.3 2.0.8 2.0.8
isolates ^3.0.3+8 3.0.3+8 3.0.3+8
js ^0.6.3 0.6.7 0.7.2 Discontinued
logging ^1.0.2 1.3.0 1.3.0
logging_config ^0.6.7+7 0.6.7+7 0.6.7+7
meta ^1.3.0 1.18.1 1.18.1
uuid ^3.0.4 3.0.7 4.5.2
Transitive dependencies
Package Constraint Compatible Latest Notes
clock - 1.1.2 1.1.2
crypto - 3.0.7 3.0.7
inflection3 - 0.5.3+2 0.5.3+2
intl - 0.17.0 0.20.2
path - 1.9.1 1.9.1
recase - 4.1.0 4.1.0
typed_data - 1.4.0 1.4.0

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

Found 3 issues. Showing the first 2:

The constraint `^0.6.3` on js does not support the stable version `0.7.0`.

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

The constraint `^3.0.4` on uuid does not support the stable version `4.0.0`.

Try running dart pub upgrade --major-versions uuid 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.23.9, Dart 3.11.0.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
5
likes
120
points
41
downloads

Publisher

verified publishersunnyapp.co

Weekly Downloads

A flutter package that works for native/web, and allows the creation of workers that offload work into a potentially parallel space

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

async, collection, dartxx, equatable, isolates, js, logging, logging_config, meta, uuid

More

Packages that depend on worker_service