vm_service_client 0.2.6

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 90

A client for the Dart VM service.

0.2.6 #

  • Add VMPauseEvent.atAsyncSuspension to indicate when an isolate is paused at an await, yield, or yield* statement (only available from VM service version 3.3).
  • Add VMStep.OverAsyncSuspension to allow continuing until execution returns from an await, yield, or yield* statement (only valid when VMPauseEvent.atAsyncSuspension is true).
  • Add VMIsolate.setExceptionPauseMode and VMIsolate.exceptionPauseMode to return/set pause behaviour for exceptions.

0.2.5+1 #

  • Support Dart 2 stable releases.

0.2.5 #

  • Update usage of SDK constants.

  • Increase minimum Dart SDK to 2.0.0-dev.58.0.

0.2.4+3 #

  • Fix more Dart 2 runtime issues.

0.2.4+2 #

  • Fix type issues with Dart 2 runtime.

0.2.4+1 #

  • Updates to support Dart 2.0 core library changes (wave 2.2). See issue 31847 for details.

0.2.4 #

  • Internal changes only.

0.2.3 #

  • Add VMIsolate.observatoryUrl and VMObjectRef.observatoryUrl getters that provide access to human-friendly relative Observatory URLs for VM service objects.

0.2.2+4 #

  • Fix a bug where Isolate.invokeExtension() would fail if the extension method returned a non-Map value.

0.2.2+3 #

  • Fix strong-mode errors and warnings.

0.2.2+2 #

  • Narrow the dependency on source_span.

0.2.2+1 #

  • Fix some documentation comments.

0.2.2 #

  • Add getSourceReport to VMIsolateRef and VMScriptRef, which return a VMSourceReport for the target isolate or just the target script respectively.

0.2.1 #

  • VMScriptToken.offset is deprecated. This never returned the documented value in the first place, and in practice determining that value isn't possible from the information available in the token.

  • VMScript.getLocation() and VMScript.getSpan() now return spans with the correct line, column, and offset numbers.

0.2.0 #

  • Breaking change: new VMServiceClient() and new VMServiceClient.withoutJson() now take a StreamChannel rather than a Stream/Sink pair.

  • Breaking change: the static asynchronous factory VMServiceClient.connect() is now a synchronous constructor, new VMServiceClient.connect().

0.1.3 #

  • On VM service versions 3.4 and greater, VMIsolate.pauseEvent now returns an instance of VMNoneEvent before the isolate is runnable.

0.1.2+1 #

  • Drop the dependency on the crypto package.

0.1.2 #

  • Add VMIsolateRef.onExtensionEvent, which emits events posted by VM service extensions using postEvent in dart:developer.

  • Add VMIsolateRef.selectExtensionEvents(), which selects events with specific kinds posted by VM service extensions using postEvent in dart:developer.

  • Add VMIsolateRef.onExtensionAdded, which emits an event when a VM service extension registers a new RPC.

  • Add VMIsolateRef.waitForExtension(), which returns when a given extension RPC is available.

  • Add VMIsolateRef.invokeExtension(), which invokes VM service extension RPCs registered using registerExtension in dart:developer.

  • Add VMIsolate.extensionRpcs, which returns the extension RPCs registered in a given isolate.

0.1.1+1 #

  • Fix a bug where VMPauseEvent.time would always be reported as null or crash.

0.1.1 #

  • Fix support for VM service protocol 1.0 events.

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:
  vm_service_client: ^0.2.6

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:vm_service_client/vm_service_client.dart';
  
Version Uploaded Documentation Archive
0.2.6 Jul 23, 2018 Go to the documentation of vm_service_client 0.2.6 Download vm_service_client 0.2.6 archive
0.2.5+1 Jul 20, 2018 Go to the documentation of vm_service_client 0.2.5+1 Download vm_service_client 0.2.5+1 archive
0.2.5 Jul 12, 2018 Go to the documentation of vm_service_client 0.2.5 Download vm_service_client 0.2.5 archive
0.2.4+3 May 30, 2018 Go to the documentation of vm_service_client 0.2.4+3 Download vm_service_client 0.2.4+3 archive
0.2.4+1 Feb 1, 2018 Go to the documentation of vm_service_client 0.2.4+1 Download vm_service_client 0.2.4+1 archive
0.2.4 Jan 16, 2018 Go to the documentation of vm_service_client 0.2.4 Download vm_service_client 0.2.4 archive
0.2.3 Jan 4, 2017 Go to the documentation of vm_service_client 0.2.3 Download vm_service_client 0.2.3 archive
0.2.2+4 Nov 18, 2016 Go to the documentation of vm_service_client 0.2.2+4 Download vm_service_client 0.2.2+4 archive
0.2.2+3 Nov 17, 2016 Go to the documentation of vm_service_client 0.2.2+3 Download vm_service_client 0.2.2+3 archive
0.2.2+2 Jun 22, 2016 Go to the documentation of vm_service_client 0.2.2+2 Download vm_service_client 0.2.2+2 archive

All 19 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
95
Health:
Code health derived from static analysis. [more]
95
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
90
Learn more about scoring.

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

  • Dart: 2.1.0
  • pana: 0.12.13

Platforms

Detected platforms: Flutter, other

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

Health suggestions

Fix lib/src/isolate.dart. (-2.48 points)

Analysis of lib/src/isolate.dart reported 5 hints:

line 263 col 19: Use = to separate a named parameter from its default value.

line 382 col 34: Use = to separate a named parameter from its default value.

line 383 col 38: Use = to separate a named parameter from its default value.

line 384 col 24: Use = to separate a named parameter from its default value.

line 487 col 56: 'typed' is deprecated and shouldn't be used.

Fix lib/src/script.dart. (-1.49 points)

Analysis of lib/src/script.dart reported 3 hints:

line 102 col 34: Use = to separate a named parameter from its default value.

line 103 col 38: Use = to separate a named parameter from its default value.

line 104 col 24: Use = to separate a named parameter from its default value.

Fix lib/src/instance.dart. (-0.50 points)

Analysis of lib/src/instance.dart reported 1 hint:

line 302 col 24: 'typed' is deprecated and shouldn't be used.

Fix lib/src/scope.dart. (-0.50 points)

Analysis of lib/src/scope.dart reported 1 hint:

line 114 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Fix lib/vm_service_client.dart. (-0.50 points)

Analysis of lib/vm_service_client.dart reported 1 hint:

line 158 col 43: Use = to separate a named parameter from its default value.

Maintenance suggestions

The package description is too short. (-20 points)

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.

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 vm_service_client.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.0.0-dev.58.0 <3.0.0
async >=1.7.0 <3.0.0 2.0.8
collection ^1.5.0 1.14.11
json_rpc_2 ^2.0.0 2.0.9
pub_semver ^1.0.0 1.4.2
source_span ^1.4.0 1.5.4
stack_trace ^1.5.0 1.9.3
stream_channel ^1.1.0 1.6.8
web_socket_channel ^1.0.0 1.0.9
Transitive dependencies
charcode 1.1.2
convert 2.1.1
crypto 2.0.6
path 1.6.2
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
test ^1.2.0