Skip to content

Releases: google/go-cloud

v0.40.0

10 Oct 21:28
ce6d5c1
Compare
Choose a tag to compare

What's Changed

  • blob/all: disable Upload optimization when WriterOptions.ContentMD5 is set by @vangent in #3478
  • blob/s3blob: custom endpoints with s3 and aws sdk v2 by @caarlos0 in #3473
  • blob/all: Don't require SetIOFSCallback be called to use io/fs.FS functions by @vangent in #3479
  • blob/s3blob: fix data race by @arjunnair1997 in #3480
  • blob/azblob: Support AZURE_STORAGEBLOB_CONNECTIONSTRING as an alternative for AZURE_STORAGE_CONNECTION_STRING by @vangent in #3483
  • s3blob/blob: support additional endpoint query parameters by @stanhu in #3486
  • blob/gcsblob: Allow providing options for storage.NewClient by @vangent in #3493
  • aws: Add support for non-camelcased version of two URL parameters by @vangent in #3494
  • Add disableHTTPS and usePathStyle s3v2.Options as query param by @khrm in #3491
  • aws: add rate_limiter_capacity to configure client-side rate limits by @stanhu in #3497

New Contributors

Full Changelog: v0.39.0...v0.40.0

v0.39.0

14 Aug 21:27
00a16e0
Compare
Choose a tag to compare

BREAKING CHANGE (AWS only, V1 vs V2 SDK)

Context: AWS has announced maintenance mode for the Go V1 SDK.

Go CDK has changed the default SDK for URLs across all modules except docstore/awsdynamodb to be V2 (previously you needed to add awssdk=v2 to the URL to get V2). Most URLs should continue to work, but in some cases you may need to add awssdk=v1 to force V1 explicitly.

Also, concrete type constructors (e.g., OpenBucket) for V1 (again, except docstore/awsdynamodb) have been marked deprecated; please migrate to using the V2 versions (e.g., OpenBucketV2).

Our tentative plan is to remove support for V1 in early 2025; please file a bug if you have concerns about that.

What's Changed

New Contributors

Full Changelog: v0.38.0...v0.39.0

v0.38.0

25 Jul 17:24
88d9ea8
Compare
Choose a tag to compare

blob

  • all: Fix panics if reader recreation fails after Seek by @vangent in #3425
  • all: Convert errors in Open() into appropriate fs errors by @milescrabill in #3443
  • s3blob: Fix Copy to work with keys that need escaping by @vangent in #3403
  • azureblob: Do not panic if Content-Length and Content-Range are missing by @chancez in #3445
  • fileblob: Allow customization of the FileMode by @vangent in #3426

pubsub

  • awssnssqs: Add support for setting FIFO message metadata by @bartventer in #3435
  • kafkapubsub: Configuring key_name when OpenTopicURL by @ssetin in #3404
  • rabbitpubsub: Add query string set the qos prefetch count by @peczenyj in #3431
  • rabbitpubsub: Add query string to set the routing key from metadata by @peczenyj in #3433
  • rabbitpubsub: Wrap pubsub rabbitmq errors by @peczenyj in #3437

docstore

  • all: Fix offset handling and extend test coverage by @bartventer in #3409
  • awsdynamodb: Ensure Next returns EOF when no more items by @bartventer in #3406
  • mongodocstore: Update Mongo dialer when MONGO_SERVER_URL rotates by @concaf in #3429

New Contributors

Full Changelog: v0.37.0...v0.38.0

v0.37.0

12 Mar 17:10
720ec47
Compare
Choose a tag to compare
  • blob

    • s3blob: Support S3 server side encryption headers for Write and Copy.
    • gcsblob: Ensure driver sets Content-Type auto-detection properly.
  • pubsub

    • azpubsub: Ensure 401s are not retryable.
    • azpubsub: Allow configuring max_recv_batch_size in via URL.
    • mongodocstore: Fix error when calling the update function with no 'set' operations.
  • docstore

    • all: Add Offset method, useful for pagination

v0.36.0

28 Dec 06:57
Compare
Choose a tag to compare

blob

  • all: Allow disabling of ContentType auto-detection during writes.

pubsub

  • azuresb: Added a new auth method to support Service principal/kubelet identity/Workload identity auth methods.

docstore

  • all: Add in/not-in operators for Query.
  • gcpfirestore: Added a missing resource header when running query.

mysql

  • Pass TLS config directly to MySQL's config

v0.35.0

08 Dec 22:38
27e0bca
Compare
Choose a tag to compare

BREAKING CHANGES

This release updates the dependency on AWS/S3, which included some breaking changes; see #3342 for details.

blob

  • gcsblob: Fix unauthenticated requests.

runtimevar

  • constantvar: Add support for reading the constant variable value from the environment.

docstore

  • gcpfilestore: Add support for non-default databases.

v0.34.0

25 Aug 21:11
22c0c79
Compare
Choose a tag to compare
  • blob

    • fileblob: Added an option to avoid using os.TempDir for temp files.
    • gcsblob: Don't hard-fail if no DefaultCredentials are found.
  • aws/rds: Switch AWS RDS CA bundle to the officially documented URL

v0.33.0

02 Aug 00:16
ffb5921
Compare
Choose a tag to compare

blob

  • all: Avoid infinite recursion when using io.Copy between Reader and Writer.
  • azblob: Fixed bug in use of SAS token in service URLs.
  • fileblob: Create temp files in os.TempDir so they don't leak.

pubsub

  • awssnssqs: Use PublishBatch for sending messages in SNS.
  • natspubsub: Added support for NATS v2.2.0+ native message headers and message encoding.

v0.32.0

19 Jul 22:56
728b7c1
Compare
Choose a tag to compare

Redoing v0.31.0 since I think I messed up the tags. Copying the release notes:

all

  • Update go version in go.mod to maintain cleaner go.mod and go.sum files.

blob

  • all: Pass through reader/writer to WriteTo/ReadFrom if available (optimization).
  • all: Make blob.Bucket implement io/fs.FS and io/fs.SubFS.
  • gcsblob: Add support for forcing an unauthenticated client.

server

  • Make requestlog internal structs implement http.Flusher.
  • Don't always read the full request in order to calculate the request size; use Content-Length when available.

v0.30.0

19 Jun 19:27
d2d5bed
Compare
Choose a tag to compare

blob

  • all: Add Upload and Download methods that may be more efficient for some drivers.
  • s3blob: Add support for per-request s3v2.Options.
  • s3blob: Stop escaping second / in //; it's no longer necessary.

pubsub

  • gcppubsub: Make it possible to configure max_send_batch_size.