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
Releases
latest 39-
1.1.502 Dec 2025 -
1.1.407 Oct 2025Release notes
Open source →- Require Dart SDK
^3.9.0. - Widen
package:protobufconstraint to allow 5.0.0 and requiring minimum 4.0.0.
- Require Dart SDK
-
1.1.301 Apr 2025Release notes
Open source →- Require Dart SDK
^3.4.0. - Widen
package:protobufconstraint to allow 4.0.0.
- Require Dart SDK
-
1.1.229 Oct 2024 -
1.1.107 Mar 2024Release notes
Open source →- Fix a bug where if spawnWorker threw an error, work requests would hang forever instead of failing.
-
1.1.031 Aug 2023Release notes
Open source →- Add constructors with named parameters to the generated worker protocol messages.
- Include comments on the generated worker protocol API.
-
1.0.316 Jun 2023 -
1.0.218 Oct 2022 -
1.0.105 Oct 2021 -
1.0.008 Mar 2021Release notes
Open source →- Improve
AsyncMessageGrouperperformance. - Add
benchmark/benchmark.dartmeasuringAsyncMessageGrouperperformance.
- Improve
-
1.0.0-nullsafety.004 Feb 2021 pre-releaseRelease notes
Open source →- Migrate to null safety.
- Use
WorkResponsewithexitCodeset toEXIT_CODE_BROKEN_PIPEinstead ofnullresponses.
-
0.1.2506 Jul 2020 -
0.1.2401 Jun 2020Release notes
Open source →- Check for closed port when trying to read a response in
IsolateDriverConnectionand returnnullif there is nothing to be read.
- Check for closed port when trying to read a response in
-
0.1.2321 Oct 2019Release notes
Open source →- 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
protobufpackage to0.14.4.
- This required a lower bound bump of the
- Support protobuf
-
0.1.23+104 Feb 2020Release notes
Open source →- Don't rely on
exitCodeto know when a worker terminates, instead wait for the input stream to close.- The SDK may also start throwing instead of returning a
nullhere, so this pre-emptively guards against that.
- The SDK may also start throwing instead of returning a
- Don't rely on
-
0.1.2212 Sep 2019 -
0.1.2120 May 2019 -
0.1.21+104 May 2020Release notes
Open source →- Don't rely on
exitCodeto know when a worker terminates, instead wait for the input stream to close. Backport of fix in0.1.23+1in a version that does not require a newer protobuf.
- Don't rely on
-
0.1.2012 Feb 2019 -
0.1.1907 Feb 2019 -
0.1.1828 Jan 2019Release notes
Open source →- Add a
trackWorkoptional named argument toBazelDriver.doWork. This allows the caller to know when a work request is actually sent to a worker.
- Add a
-
0.1.1724 Jan 2019 -
0.1.1610 Jan 2019Release notes
Open source →- Update the worker_protocol.pb.dart file with the latest proto generator.
- Require protobuf 0.11.0.
-
0.1.1522 Oct 2018Release notes
Open source →- Update the worker_protocol.pb.dart file with the latest proto generator.
- Require protobuf 0.10.4.
-
0.1.1417 Sep 2018Release notes
Open source →- Allow workers to support running in isolates. To support running in isolates,
workers must modify their
mainmethod to accept aSendPortthen use it when creating theAsyncWorkerConnection. Seeasync_workerine2e_test.
- Allow workers to support running in isolates. To support running in isolates,
workers must modify their
-
0.1.1306 Sep 2018 -
0.1.1216 Jul 2018 -
0.1.1110 Jul 2018 -
0.1.1018 May 2018Release notes
Open source →- 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.
-
0.1.916 Jan 2018Release notes
Open source →- Update the worker_protocol.pb.dart file with the latest proto generator.
-
0.1.827 Nov 2017Release notes
Open source →- Add
Future cancel()method toDriverConnection, which in the case of aStdDriverConnectioncloses the input stream.- The
terminateWorkersmethod onBazelWorkerDrivernow callscancelon all worker connections to ensure the vm can exit correctly.
- The
- Add
-
0.1.721 Nov 2017Release notes
Open source →- Update the
BazelWorkerDriverclass to handle worker crashes, and retry work requests. The number of retries is configurable with the newint maxRetriesoptional arg to theBazelWorkerDriverconstructor.
- Update the
-
0.1.603 Nov 2017Release notes
Open source →- Update the worker_protocol.pb.dart file with the latest proto generator.
- Add support for package:async 2.x and package:protobuf 6.x.
-
0.1.503 Nov 2017Release notes
Open source →- Change TestStdinAsync.controller to StreamController<List<int>> (instead of using dynamic as the type argument).
-
0.1.405 Apr 2017Release notes
Open source →- Added
BazelWorkerDriverclass, 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#readRequestto return aFutureOr<WorkRequest>instead of dynamic.
- Added
-
0.1.320 Mar 2017Release notes
Open source →- 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.
- Add automatic intercepting of print calls and append them to
-
0.1.219 Jan 2017Release notes
Open source →- Add better handling for the case where stdin gives an error instead of an EOF.
-
0.1.115 Apr 2016Release notes
Open source →- Export
AsyncMessageGrouperandSyncMessageGrouperas part of the testing library. These can assist when writing e2e tests and communicating with a worker process.
- Export
-
0.1.013 Apr 2016