dartpad 0.1.1 copy "dartpad: ^0.1.1" to clipboard
dartpad: ^0.1.1 copied to clipboard

Client library for launching and communicating with dartpad-worker.

0.1.1 #

  • Add DartPadSdk.sharedWorker and dart run dartpad setup shared-worker CLI subcommand for running DartPad inside a SharedWorker.
  • Add Sandbox.connectServiceProtocol, Sandbox.startServiceProtocol, and DartPadSdk.createDevToolsIframe (DevToolsIframe) for VM Service and embedded DevTools support (replacing Sandbox.invokeExtension and Sandbox.extensionEvents).
  • Add ConsoleLevel to Sandbox.console and fold Sandbox.errors and Sandbox.unhandledRejections into ConsoleLevel.error.
  • Add WorkerClient.version() (VersionInfo), WorkerClient.ping(), and abort support on DartPadSdk.dedicatedWorker and DartPadSdk.sharedWorker.
  • Replace Uri parameters/fields with String workspace paths across Workspace, Sandbox, FileChangeEvent, and DartPadRunMode.
  • Standardize resource cleanup methods to close() across all client types and clean up child streams automatically on disconnect.
  • Strip request headers in embedded pub that trigger CORS preflight requests in Firefox and Safari.

0.0.10 #

  • Add dart run dartpad setup CLI (dart and flutter subcommands) to download or build DartPad SDK assets.
  • Stop bundling prebuilt web/ assets inside the published package archive.
  • Pre-populate /pub-cache in the Flutter DartPad SDK sdk.tar so pub get does not need to download precompiled packages.

0.0.9 #

  • Add missing MessagePort VM compilation stubs (asTransferableMessagePort and fromMessagePort).

0.0.8 #

  • Precompile and pin package:material_ui, package:cupertino_ui, and hosted dependencies in the Flutter DartPad SDK.
  • Load CanvasKit from Google CDN (www.gstatic.com/flutter-canvaskit/) and trim unused files from sdk.tar.

0.0.7 #

  • Dart stack traces printed from a sandbox are now mapped back to Dart source locations instead of rendering as raw JavaScript frames.
  • Fix stale hardcoded SDK platformVersion in the embedded pub tool.
  • The Flutter DartPad SDK can now build its web SDK from this SDK's sources, instead of copying the one Flutter pins.

0.0.6 #

  • Provide Sandbox.run(entrypoint, mode) for configuring different run modes.
  • Simplifies embedding by introducing SandboxedIframe that manages MessagePorts directly.
  • Faster binary data transfer over sandbox message ports using Uint8List.
  • Fix race condition during language server shutdown.

0.0.5 #

  • Update embedded resources.

0.0.4 #

  • Support for file watching.
  • flutter_test SDK-package is now included in the Flutter DartPad SDK.

0.0.3 #

  • Embed assets for package:dartpad in web/ folder.

0.0.2 #

  • Fixed dependency constraints on package:web.

0.0.1 #

  • Initial preview release.
1
likes
150
points
1.44k
downloads

Documentation

API reference

Publisher

verified publishertools.dart.dev

Weekly Downloads

Client library for launching and communicating with dartpad-worker.

Repository (GitHub)
View/report issues
Contributing

License

BSD-3-Clause (license)

Dependencies

args, async, http, json_rpc_2, path, stream_channel, tar, vm_service, web, yaml

More

Packages that depend on dartpad