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

50/ 160
pub points
28
downloads

We analyzed this package 4 days ago, and awarded it 50 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 worker_service_web/worker_service_web.dart from package:worker_service/worker_service_web/worker_service_web.dart... Generating docs for library worker_service_web/common_web.dart from package:worker_service/worker_service_web/common_web.dart... Generating docs for library worker_service_web/web_worker.dart from package:worker_service/worker_service_web/web_worker.dart... Generating docs for library ports.dart from package:worker_service/ports.dart... Generating docs for library common.dart from package:worker_service/common.dart... [25 more lines] ERR: warning: web_worker has no library level documentation comments from web_worker: (file:///tmp/pana_FZVIYT/lib/worker_service_web/web_worker.dart:1:1) warning: worker_service has no library level documentation comments from worker_service: (file:///tmp/pana_FZVIYT/lib/worker_service.dart:1:1) warning: work has no library level documentation comments from work: (file:///tmp/pana_FZVIYT/lib/work_in_ww.dart:1:1) warning: unresolved doc reference [WorkIsolate.Isolate] from ports.WorkIsolate: (file:///tmp/pana_FZVIYT/lib/ports/ports.dart:74:16) warning: unresolved doc reference [spawn] from ports.WorkIsolate.debugName: (file:///tmp/pana_FZVIYT/lib/ports/ports.dart:123:15) [59 more lines]

Passed check 10/10 points: Package has an example

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

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

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 30 issues. Showing the first 2:

ERROR: The method 'allowInterop' isn't defined for the type 'WWDuplexChannel'.

lib/work/platform/grunt_platform_webworker.dart:37:17

   ╷
37 │     onMessage = allowInterop((event) {
   │                 ^^^^^^^^^^^^
   ╵

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

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

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 3.0.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.3 1.1.3
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 4 issues. Showing the first 2:

The constraint `^2.0.3` on equatable does not support the stable version `3.0.0`, that was published 9 days ago.

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

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

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.

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.19, Dart 3.13.4.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
5
likes
50
points
28
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