cloudflare_workers 0.0.4+4 copy "cloudflare_workers: ^0.0.4+4" to clipboard
cloudflare_workers: ^0.0.4+4 copied to clipboard

Write and deploy Dart functions to Cloudflare Workers.

4
likes
90/ 160
pub points
36%
popularity

We analyzed this package 4 days ago, and awarded it 90 pub points (of a possible 160):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

The package description is too short.

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: Apache-2.0.

partial
Provide documentation
10 / 20trigger folding of the section

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

158 out of 973 API elements (16.2 %) have documentation comments.

Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.

To highlight public API members missing documentation consider enabling the public_member_api_docs lint.

Some symbols that are missing documentation: cache, cache.defaultCache, cache_storage, cache_storage.CloudflareWorkersCacheStorageExtension, cache_storage.CloudflareWorkersCacheStorageExtension.defaultCache.

10/10 points: Package has an example

failed
Platform support
0 / 20trigger folding of the section

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

These platforms are not supported:

Package not compatible with platform Android

Because:

  • package:cloudflare_workers/cloudflare_workers.dart that imports:
  • package:cloudflare_workers/public/top.dart that imports:
  • package:cloudflare_workers/public/request_init.dart that imports:
  • package:cloudflare_workers/interop/request_init_interop.dart that imports:
  • package:edge_runtime/src/interop/utils_interop.dart that imports:
  • package:edge_runtime/src/request.dart that imports:
  • package:edge_runtime/src/headers.dart that imports:
  • package:edge_runtime/src/interop/headers.dart that imports:
  • package:edge_runtime/src/interop/iterator_interop.dart that imports:
  • package:js/js.dart that imports:
  • dart:js
Package not compatible with platform iOS

Because:

  • package:cloudflare_workers/cloudflare_workers.dart that imports:
  • package:cloudflare_workers/public/top.dart that imports:
  • package:cloudflare_workers/public/request_init.dart that imports:
  • package:cloudflare_workers/interop/request_init_interop.dart that imports:
  • package:edge_runtime/src/interop/utils_interop.dart that imports:
  • package:edge_runtime/src/request.dart that imports:
  • package:edge_runtime/src/headers.dart that imports:
  • package:edge_runtime/src/interop/headers.dart that imports:
  • package:edge_runtime/src/interop/iterator_interop.dart that imports:
  • package:js/js.dart that imports:
  • dart:js
Package not compatible with platform Windows

Because:

  • package:cloudflare_workers/cloudflare_workers.dart that imports:
  • package:cloudflare_workers/public/top.dart that imports:
  • package:cloudflare_workers/public/request_init.dart that imports:
  • package:cloudflare_workers/interop/request_init_interop.dart that imports:
  • package:edge_runtime/src/interop/utils_interop.dart that imports:
  • package:edge_runtime/src/request.dart that imports:
  • package:edge_runtime/src/headers.dart that imports:
  • package:edge_runtime/src/interop/headers.dart that imports:
  • package:edge_runtime/src/interop/iterator_interop.dart that imports:
  • package:js/js.dart that imports:
  • dart:js
Package not compatible with platform Linux

Because:

  • package:cloudflare_workers/cloudflare_workers.dart that imports:
  • package:cloudflare_workers/public/top.dart that imports:
  • package:cloudflare_workers/public/request_init.dart that imports:
  • package:cloudflare_workers/interop/request_init_interop.dart that imports:
  • package:edge_runtime/src/interop/utils_interop.dart that imports:
  • package:edge_runtime/src/request.dart that imports:
  • package:edge_runtime/src/headers.dart that imports:
  • package:edge_runtime/src/interop/headers.dart that imports:
  • package:edge_runtime/src/interop/iterator_interop.dart that imports:
  • package:js/js.dart that imports:
  • dart:js
Package not compatible with platform macOS

Because:

  • package:cloudflare_workers/cloudflare_workers.dart that imports:
  • package:cloudflare_workers/public/top.dart that imports:
  • package:cloudflare_workers/public/request_init.dart that imports:
  • package:cloudflare_workers/interop/request_init_interop.dart that imports:
  • package:edge_runtime/src/interop/utils_interop.dart that imports:
  • package:edge_runtime/src/request.dart that imports:
  • package:edge_runtime/src/headers.dart that imports:
  • package:edge_runtime/src/interop/headers.dart that imports:
  • package:edge_runtime/src/interop/iterator_interop.dart that imports:
  • package:js/js.dart that imports:
  • dart:js
Package not compatible with platform Web

Because:

  • package:cloudflare_workers/cloudflare_workers.dart that imports:
  • package:cloudflare_workers/public/top.dart that imports:
  • package:edge_runtime/edge_runtime.dart that imports:
  • package:edge_runtime/src/io_http_client.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Package not compatible with runtime wasm

Because:

  • package:cloudflare_workers/cloudflare_workers.dart that imports:
  • package:cloudflare_workers/public/top.dart that imports:
  • package:cloudflare_workers/public/request_init.dart that imports:
  • package:cloudflare_workers/interop/request_init_interop.dart that imports:
  • package:edge_runtime/src/interop/utils_interop.dart that imports:
  • package:edge_runtime/src/request.dart that imports:
  • package:edge_runtime/src/headers.dart that imports:
  • package:edge_runtime/src/interop/headers.dart that imports:
  • package:edge_runtime/src/interop/iterator_interop.dart that imports:
  • package:js/js.dart that imports:
  • dart:js

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
Pass static analysis
30 / 50trigger folding of the section

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

Found 3 issues. Showing the first 2:

WARNING: The '?' is unnecessary because 'dynamic' is nullable without it.

lib/interop/request_init_interop.dart:48:20

   ╷
48 │   set image(dynamic? value) {
   │                    ^
   ╵

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

WARNING: The '?' is unnecessary because 'dynamic' is nullable without it.

lib/interop/request_init_interop.dart:52:21

   ╷
52 │   set minify(dynamic? value) {
   │                     ^
   ╵

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

failed
Support up-to-date dependencies
30 / 40trigger folding of the section

0/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
edge ^0.0.7 0.0.7 0.0.7
edge_runtime ^0.0.4+2 0.0.4+2 0.0.4+2
js ^0.6.5 0.6.7 0.7.1
js_bindings ^0.1.0 0.1.2+2 0.1.2+2
Transitive dependencies
Package Constraint Compatible Latest
ansi_styles - 0.3.2+1 0.3.2+1
archive - 3.6.1 3.6.1
args - 2.6.0 2.6.0
async - 2.12.0 2.12.0
charcode - 1.3.1 1.3.1
checked_yaml - 2.0.3 2.0.3
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
ffi - 2.1.3 2.1.3
file - 7.0.1 7.0.1
freezed_annotation - 2.4.4 2.4.4
glob - 2.1.2 2.1.2
hotreloader - 3.0.6 4.2.0
http - 1.2.2 1.2.2
http_parser - 4.1.1 4.1.1
io - 1.0.4 1.0.4
json_annotation - 4.9.0 4.9.0
logging - 1.3.0 1.3.0
mason - 0.1.0-dev.57 0.1.0-dev.60
mason_logger - 0.2.16 0.3.1
meta - 1.16.0 1.16.0
mustache_template - 2.0.0 2.0.0
path - 1.9.1 1.9.1
petitparser - 5.4.0 6.0.2
pool - 1.5.1 1.5.1
prompts - 2.0.0 2.0.0
pub_semver - 2.1.4 2.1.4
source_span - 1.10.0 1.10.0
stack_trace - 1.12.0 1.12.0
stream_transform - 2.1.0 2.1.0
string_scanner - 1.4.0 1.4.0
term_glyph - 1.2.1 1.2.1
toml - 0.13.1 0.16.0
typed_data - 1.4.0 1.4.0
vm_service - 11.10.0 14.3.1
watcher - 1.1.0 1.1.0
web - 1.1.0 1.1.0
win32 - 5.8.0 5.8.0
yaml - 3.1.2 3.1.2

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

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

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

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

20/20 points: Compatible with dependency constraint lower bounds

pub downgrade does not expose any static analysis error.

Analyzed with Pana 0.22.15, Dart 3.5.4.

Check the analysis log for details.

4
likes
90
pub points
36%
popularity

Publisher

verified publisherinvertase.io

Write and deploy Dart functions to Cloudflare Workers.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

edge, edge_runtime, js, js_bindings

More

Packages that depend on cloudflare_workers