NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #322 most downloaded on pub.dev
Utilities for running Dart code correctly on the Google Cloud Platform.
Last release 4 months ago
12 May 2026
Ships unpredictably
gaps range from 3 weeks to 2.5 years
Nearly every release is documented
notes for 6 of 6 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
7 releases · first in 2023
One column per quarter.
DEPRECATED: Use google_cloud.dart instead.
google_cloud.dartBREAKING: No longer exports logging or HTTP serving features. These are now exported by the new packages:
constants.dartBREAKING: Removed logging and serving related constants:
portEnvironmentVariabledefaultListenPortcloudTraceContextHeaderlogTraceKeylogSpanIdKeylogTraceSampledKeyThese constants are available in the new
package:google_cloud_shelf.
general.dartpackage:google_cloud_logging
instead.google_cloud.dart instead.http_serving.dartpackage:google_cloud_shelf
package.Update dependency meta: ^1.17.0 to allow workspaces with stable Flutter.
meta: ^1.17.0 to allow workspaces with stable Flutter.Added logSpanIdKey, logTraceKey, and logTraceSampledKey.
constants.dartlogSpanIdKey, logTraceKey, and logTraceSampledKey.general.dartBREAKING structuredLogEntry removed traceId parameter. Use the new
payload parameter with the logTraceKey constant as a key.
Hardened structured log JSON serialization with automatic fallback mechanisms
to safely handle native toJson() implementations and circular references
without failing.
Added CloudLogger (renamed from RequestLogger).
payload and stackTrace named parameters to
CloudLogger functions.CloudLogger is no longer abstract and has a default implementation that
prints to stdout.http_serving.dartRequestLogger to CloudLogger and moved it to
package:google_cloud/general.dart.spanId and traceSampled.Fix a bug where projectIdFromGcloudConfig() used the incorrect gcloud shell command on Windows.
projectIdFromGcloudConfig() used the incorrect gcloud shell
command on Windows.Breaking Change: Local discovery strategies (environment variables, credentials files, and gcloud config) are no longer cached.
package:google_cloud/general.dart for general GCP features like project
discovery, identity discovery, and core structured logging.package:google_cloud/http_serving.dart for HTTP serving features like
port discovery, shelf middleware, and signal handling.package:google_cloud/google_cloud.dart remains as an umbrella library
exporting both.projectIdFromEnvironment() to projectIdFromEnvironmentVariables().portEnvironmentKey to portEnvironmentVariable.listenPort() to listenPortFromEnvironment().computeProjectId(), projectIdFromMetadataServer(), and
serviceAccountEmailFromMetadataServer() now leverage a unified process-wide
metadata cache.gcloud config) are no longer cached.projectIdFromMetadataServer() and
serviceAccountEmailFromMetadataServer() now throw
MetadataServerException (which wraps SocketException, TimeoutException,
or ClientException) when discovery fails.package:google_cloud/constants.dart and are
no longer exported by package:google_cloud/google_cloud.dart.package:http ^1.1.0.getMetadataValue() (caching) and fetchMetadataValue() (non-caching)
to package:google_cloud/general.dart.projectIdFromCredentialsFile() to automatically discover project ID
from the credentials JSON file.projectIdFromGcloudConfig() to automatically discover project ID from
gcloud CLI configuration.serviceAccountEmailFromMetadataServer() to discover the default
service account email.gceMetadataHost and gceMetadataUrl to interact with the metadata
server.projectIdFromMetadataServer() now respects the GCE_METADATA_HOST
environment variable.refresh parameter to computeProjectId(),
projectIdFromMetadataServer(), and serviceAccountEmailFromMetadataServer()
to force re-discovery.client parameter to computeProjectId(),
projectIdFromMetadataServer(), and serviceAccountEmailFromMetadataServer()
to allow providing a custom http.Client.structuredLogEntry() for low-level structured log creation.Nothing published for this version
First release replacing package:gcp.
package:gcp.Your coding agent can read these notes before it upgrades. Set up the MCP server →