dwds 0.4.0

Dart Web Developer Service

Note: Under heavy development.

The Dart Web Developer Service (DWDS) allows developer tools designed to work with the native Dart VM to also work with Dart Web applications compiled with DDC, built/served with webdev, and run in Chrome.

DWDS will be integrated into the webdev.

At a basic level, DWDS proxies between:

0.4.0 #

  • Move data abstractions from package:webdev into package:dwds.
  • Move debugging related handlers from package:webdev into package:dwds.
  • Move injected client from package:webdev into package:dwds.
  • Create new public entrypoint dwds.dart. Existing public API services.dart is now private.

0.3.3 #

  • Add support for getScript for paused isolates.
  • Add support for onRequest and onResponse listeners for the vm service.

0.3.2 #

  • Add support for scope in evaluate calls.

0.3.1 #

  • Improve error reporting for evals, give the full JS eval in the error message so it can be more easily reproduced.

0.3.0 #

  • Change the exposed type on DebugService to VmServiceInterface

0.2.1 #

  • Support setExceptionPauseMode.

0.2.0 #

  • Added custom tokens to the wsUri for increased security.
    • Treating this as a breaking change because you now must use the wsUri getter to get a valid uri for connecting to the service, when previously combining the port and host was sufficient.

0.1.0 #

  • Initial version

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  dwds: ^0.4.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:dwds/dwds.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
46
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
60
Overall:
Weighted score of the above. [more]
65
Learn more about scoring.

We analyzed this package on Jul 23, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: Flutter, other

Primary library: package:dwds/dwds.dart with components: io, isolate.

Maintenance issues and suggestions

Support latest dependencies. (-30 points)

The version constraint in pubspec.yaml does not support the latest published versions for 3 dependencies (devtools, vm_service_lib, webkit_inspection_protocol).

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and dwds.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.2-dev.0.1 <3.0.0
async ^2.3.0 2.3.0
build ^1.1.0 1.1.5
build_daemon ^2.0.0 2.0.0
built_collection ^4.2.0 4.2.2
built_value ^6.7.0 6.7.0
crypto ^2.0.6 2.0.6
devtools ^0.1.0 0.1.1 0.1.4
http ^0.12.0 0.12.0+2
http_multi_server ^2.0.0 2.1.0
logging ^0.11.3 0.11.3+2
meta ^1.1.7 1.1.7
path ^1.6.0 1.6.2
pedantic ^1.5.0 1.8.0+1
pub_semver ^1.4.2 1.4.2
shelf ^0.7.0 0.7.5
shelf_proxy ^0.1.0+6 0.1.0+7
shelf_static ^0.2.8 0.2.8
shelf_web_socket ^0.2.0 0.2.3
source_maps ^0.10.0 0.10.8
sse ^2.0.2 2.0.2
stream_channel ^2.0.0 2.0.0
vm_service_lib 3.20.0+02 3.20.0+2 3.22.2
web_socket_channel ^1.0.0 1.0.14
webkit_inspection_protocol ^0.4.0 0.4.2 0.5.0
Transitive dependencies
analyzer 0.37.0
browser_launcher 0.1.2
charcode 1.1.2
codemirror 0.5.7+5.48.0
collection 1.14.11
convert 2.1.1
csslib 0.16.1
devtools_server 0.1.2 0.1.4
fixnum 0.10.9
front_end 0.1.20
glob 1.1.7
html 0.14.0+2
http_parser 3.1.3
intl 0.15.8
kernel 0.3.20
matcher 0.12.5
mime 0.9.6+3
octicons_css 0.0.1
package_config 1.0.5
package_resolver 1.0.10
platform_detect 1.3.5
plotly_js 0.0.1
polymer_css 0.0.1
pool 1.4.0
primer_css 0.0.2
quiver 2.0.3
rxdart 0.21.0 0.22.1
source_span 1.5.5
split 0.0.2
stack_trace 1.9.3
stream_transform 0.0.19
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
yaml 2.1.16
Dev dependencies
args ^1.0.0 1.5.2
build_runner ^1.6.2
build_web_compilers >=1.0.0 <3.0.0
built_value_generator ^6.4.0
graphs ^0.2.0
js ^0.6.1 0.6.1+1
test ^1.6.0
uuid ^2.0.0 2.0.2
webdriver ^2.0.0

Admin