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

4
likes
120/ 160
pub points
284
downloads

We analyzed this package 6 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 157288 elements... Initialized dartdoc with 197 libraries Generating docs for library work/supervisor.dart from package:worker_service/work/supervisor.dart... Generating docs for library work/work.dart from package:worker_service/work/work.dart... Generating docs for library work/grunt_channel.dart from package:worker_service/work/grunt_channel.dart... Generating docs for library work/grunt.dart from package:worker_service/work/grunt.dart... Generating docs for library work/grunt_registry.dart from package:worker_service/work/grunt_registry.dart... [25 more lines] ERR: warning: grunt_platform_webworker has no library level documentation comments from grunt_platform_webworker: (file:///tmp/pana_NFTCBQ/lib/work/platform/grunt_platform_webworker.dart:1:1) warning: work has no library level documentation comments from work: (file:///tmp/pana_NFTCBQ/lib/work.dart:1:1) warning: unresolved doc reference [WorkIsolate.spawn] from ports_shared.ProxyReceivePort.send: (file:///tmp/pana_NFTCBQ/lib/ports/ports_shared.dart:16:8) in documentation inherited from ports.SendPort2.send: (file:///tmp/pana_NFTCBQ/lib/ports/ports.dart:391:8) warning: unresolved doc reference [WorkIsolate.Isolate] from ports.WorkIsolate: (file:///tmp/pana_NFTCBQ/lib/ports/ports.dart:74:16) warning: unresolved doc reference [spawn] [53 more lines]

Passed check 10/10 points: Package has an example

Failed 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 check 0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:worker_service/worker_service.dart that imports:
  • package:worker_service/worker_service_interface.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

This package is not compatible with runtime wasm, and 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
30 / 50trigger folding of the section

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

Found 9 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.7 2.0.7
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.17.0 1.17.0
uuid ^3.0.4 3.0.7 4.5.1
Transitive dependencies
Package Constraint Compatible Latest Notes
clock - 1.1.2 1.1.2
crypto - 3.0.6 3.0.6
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.22.21, Dart 3.8.1.

Check the analysis log for details.

Weekly downloads

Display as:
By versions:
4
likes
120
points
284
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)

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