PackageTrack
Sign in Get early access

bazel_worker

Protocol and utilities to implement or invoke persistent bazel workers.

1.1.5 239K downloads/mo #782 most downloaded on pub.dev dart-lang/tools

What this package is like to depend on

Last release 8 months ago

02 Dec 2025

Ships fairly regularly

a new release about every 6 months

Nearly every release is documented

notes for 38 of 38 stable releases

Nothing withdrawn

no release was ever pulled

10 years old

39 releases · first in 2016

2 releases in the last 12 months

see the full history below

Release timeline

39 releases · Apr 2016 to Dec 2025
2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 39
  1. 1.1.5 02 Dec 2025
    Release notes
    • Require protobuf: ">=5.0.0 <7.0.0"
    Open source →
  2. 1.1.4 07 Oct 2025
    Release notes
    • Require Dart SDK ^3.9.0.
    • Widen package:protobuf constraint to allow 5.0.0 and requiring minimum 4.0.0.
    Open source →
  3. 1.1.3 01 Apr 2025
    Release notes
    • Require Dart SDK ^3.4.0.
    • Widen package:protobuf constraint to allow 4.0.0.
    Open source →
  4. 1.1.2 29 Oct 2024
    Release notes
    • Require Dart SDK ^3.1.0.
    • Move to dart-lang/tools monorepo.
    Open source →
  5. 1.1.1 07 Mar 2024
    Release notes
    • Fix a bug where if spawnWorker threw an error, work requests would hang forever instead of failing.
    Open source →
  6. 1.1.0 31 Aug 2023
    Release notes
    • Add constructors with named parameters to the generated worker protocol messages.
    • Include comments on the generated worker protocol API.
    Open source →
  7. 1.0.3 16 Jun 2023
    Release notes
    • Require package:protobuf >= 3.0.0.
    • Require Dart SDK >= 2.19.0
    Open source →
  8. 1.0.2 18 Oct 2022
    Release notes
    • Expand pub documentation to improve pub score.
    Open source →
  9. 1.0.1 05 Oct 2021
    Release notes
    • Require Dart SDK >=2.14.0
    • Drop dependency on package:pedantic.
    Open source →
  10. 1.0.0 08 Mar 2021
    Release notes
    • Improve AsyncMessageGrouper performance.
    • Add benchmark/benchmark.dart measuring AsyncMessageGrouper performance.
    Open source →
  11. 1.0.0-nullsafety.0 04 Feb 2021 pre-release
    Release notes
    • Migrate to null safety.
    • Use WorkResponse with exitCode set to EXIT_CODE_BROKEN_PIPE instead of null responses.
    Open source →
  12. 0.1.25 06 Jul 2020
    Release notes
    • Add isBroadcast implementation to TestStdin classes.
    Open source →
  13. 0.1.24 01 Jun 2020
    Release notes
    • Check for closed port when trying to read a response in IsolateDriverConnection and return null if there is nothing to be read.
    Open source →
  14. 0.1.23 21 Oct 2019
    Release notes
    • Support protobuf 1.x.
    • Added a tool for updating generated proto files and updated them using the latest version of the protoc_plugin package.
      • This required a lower bound bump of the protobuf package to 0.14.4.
    Open source →
  15. 0.1.23+1 04 Feb 2020
    Release notes
    • Don't rely on exitCode to know when a worker terminates, instead wait for the input stream to close.
      • The SDK may also start throwing instead of returning a null here, so this pre-emptively guards against that.
    Open source →
  16. 0.1.22 12 Sep 2019
    Release notes
    • Require protobuf 0.14.0.
    Open source →
  17. 0.1.21 20 May 2019
    Release notes
    • Make TestStdinAsync behave like a Stream<Uint8List>
    Open source →
  18. 0.1.21+1 04 May 2020
    Release notes
    • Don't rely on exitCode to know when a worker terminates, instead wait for the input stream to close. Backport of fix in 0.1.23+1 in a version that does not require a newer protobuf.
    Open source →
  19. 0.1.20 12 Feb 2019
    Release notes
    • Close worker outputStream on cancel.
    Open source →
  20. 0.1.19 07 Feb 2019
    Release notes
    • Work around https://github.com/dart-lang/sdk/issues/35874.
    Open source →
  21. 0.1.18 28 Jan 2019
    Release notes
    • Add a trackWork optional named argument to BazelDriver.doWork. This allows the caller to know when a work request is actually sent to a worker.
    Open source →
  22. 0.1.17 24 Jan 2019
    Release notes
    • Allow protobuf 0.13.0.
    Open source →
  23. 0.1.16 10 Jan 2019
    Release notes
    • Update the worker_protocol.pb.dart file with the latest proto generator.
    • Require protobuf 0.11.0.
    Open source →
  24. 0.1.15 22 Oct 2018
    Release notes
    • Update the worker_protocol.pb.dart file with the latest proto generator.
    • Require protobuf 0.10.4.
    Open source →
  25. 0.1.14 17 Sep 2018
    Release notes
    • Allow workers to support running in isolates. To support running in isolates, workers must modify their main method to accept a SendPort then use it when creating the AsyncWorkerConnection. See async_worker in e2e_test.
    Open source →
  26. 0.1.13 06 Sep 2018
    Release notes
    • Support protobuf 0.10.0.
    Open source →
  27. 0.1.12 16 Jul 2018
    Release notes
    • Set max SDK version to <3.0.0.
    Open source →
  28. 0.1.11 10 Jul 2018
    Release notes
    • Added support for protobuf 0.9.0.
    Open source →
  29. 0.1.10 18 May 2018
    Release notes
    • Update the SDK dependency to 2.0.0-dev.17.0.
    • Update to protobuf version 0.8.0
    • Remove usages of deprecated upper-case constants from the SDK.
    Open source →
  30. 0.1.9 16 Jan 2018
    Release notes
    • Update the worker_protocol.pb.dart file with the latest proto generator.
    Open source →
  31. 0.1.8 27 Nov 2017
    Release notes
    • Add Future cancel() method to DriverConnection, which in the case of a StdDriverConnection closes the input stream.
      • The terminateWorkers method on BazelWorkerDriver now calls cancel on all worker connections to ensure the vm can exit correctly.
    Open source →
  32. 0.1.7 21 Nov 2017
    Release notes
    • Update the BazelWorkerDriver class to handle worker crashes, and retry work requests. The number of retries is configurable with the new int maxRetries optional arg to the BazelWorkerDriver constructor.
    Open source →
  33. 0.1.6 03 Nov 2017
    Release notes
    • Update the worker_protocol.pb.dart file with the latest proto generator.
    • Add support for package:async 2.x and package:protobuf 6.x.
    Open source →
  34. 0.1.5 03 Nov 2017
    Release notes
    • Change TestStdinAsync.controller to StreamController<List<int>> (instead of using dynamic as the type argument).
    Open source →
  35. 0.1.4 05 Apr 2017
    Release notes
    • Added BazelWorkerDriver class, which can be used to implement the bazel side of the protocol. This allows you to speak to any process which knows the bazel protocol from your own process.
    • Changed WorkerConnection#readRequest to return a FutureOr<WorkRequest> instead of dynamic.
    Open source →
  36. 0.1.3 20 Mar 2017
    Release notes
    • Add automatic intercepting of print calls and append them to response.output. This makes more libraries work out of the box, as printing would previously cause an error due to communication over stdin/stdout.
      • Note that using stdin/stdout directly will still cause an error, but that is less common.
    Open source →
  37. 0.1.2 19 Jan 2017
    Release notes
    • Add better handling for the case where stdin gives an error instead of an EOF.
    Open source →
  38. 0.1.1 15 Apr 2016
    Release notes
    • Export AsyncMessageGrouper and SyncMessageGrouper as part of the testing library. These can assist when writing e2e tests and communicating with a worker process.
    Open source →
  39. 0.1.0 13 Apr 2016
    Release notes
    • Initial version.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive