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

100/ 160
pub points
43
downloads

We analyzed this package 7 days ago, and awarded it 100 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 122498 elements... Initialized dartdoc with 199 libraries Generating docs for library common.dart from package:worker_service/common.dart... Generating docs for library globals.dart from package:worker_service/globals.dart... Generating docs for library ports.dart from package:worker_service/ports.dart... Generating docs for library ports/ports.dart from package:worker_service/ports/ports.dart... Generating docs for library ports/isolate_entry.dart from package:worker_service/ports/isolate_entry.dart... [25 more lines] ERR: warning: unresolved doc reference [WorkIsolate.Isolate] from ports.WorkIsolate: (file:///tmp/pana_XYUOHK/lib/ports/ports.dart:74:16) warning: unresolved doc reference [spawn] from ports.WorkIsolate.debugName: (file:///tmp/pana_XYUOHK/lib/ports/ports.dart:123:15) warning: unresolved doc reference [spawnUri] from ports.WorkIsolate.debugName: (file:///tmp/pana_XYUOHK/lib/ports/ports.dart:123:15) warning: unresolved doc reference [IsolateMirror] from ports.WorkIsolate.debugName: (file:///tmp/pana_XYUOHK/lib/ports/ports.dart:123:15) warning: unresolved doc reference [WorkIsolate.spawn] from ports.SendPort2.send: (file:///tmp/pana_XYUOHK/lib/ports/ports.dart:391:8) [59 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 28 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

WARNING: Returning a 'Future' without 'await' inside a try block.

lib/work/supervisor.dart:97:11

   ╷
97 │           return fw;
   │           ^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run flutter analyze lib/work/supervisor.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
async ^2.6.1 2.13.1 2.13.1
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.1.0 2.1.0
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.19.0 1.19.0
uuid ^3.0.4 3.0.7 4.6.0
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.3
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

Failed check 0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 1 error:

  • UNDEFINED_METHOD - lib/work/platform/grunt_platform_webworker.dart:37:17 - The method 'allowInterop' isn't defined for the type 'WWDuplexChannel'.

Run flutter pub downgrade and then flutter 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.23.18, Dart 3.13.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
5
likes
100
points
43
downloads

Documentation

API reference

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

License

BSD-3-Clause (license)

Dependencies

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

More

Packages that depend on worker_service