Skip to content

v0.13.0

Compare
Choose a tag to compare
@vangent vangent released this 24 Apr 16:40
· 922 commits to master since this release

Breaking Changes:

  • blob
    • Modified Bucket.Attributes to return *Attributes instead of Attributes.
    • gcsblob: Modified As for Reader to return *storage.Reader, not storage.Reader.
  • pubsub
    • awssnssqs: Modified OpenTopic and OpenSubscription constructors to take AWS ConfigProvider instead of the raw SNS/SQS connections.
    • awssnssqs: Changed the URL scheme from awssnssqs to awssns for Topics and awssqs for Subscriptions.
    • natspubsub: Renamed CreateTopic/CreateSubscription to OpenTopic/OpenSubscription for consistency.
  • secrets
    • Some provider constructors were renamed from NewKeeper to OpenKeeper for consistency.
  • runtimevar
    • Some provider constructors were renamed from NewVariable to OpenVariable for consistency.
    • Decode now takes a context.Context argument.
  • server
    • New now takes an http.Handler argument (rather than passing it later in ListenAndServe).
  • sql:
    • The GCP Cloud SQL/Postgres Open function now return an additional function used to close the returned *sql.DB.

Highlights:

  • all: Added functions to URLMux to retrieve a slice of registered schemes (e.g., blob.DefaultURLMux().BucketSchemes(), and a separate function to see if a specific scheme has been registered (e.g., blob.DefaultURLMux().ValidBucketScheme()).
  • runtimevar
    • Added a new httpvar provider.
  • blob
    • Added a Copy method, for copying a blob within a Bucket.
    • azureblob: Fixed bug when using SASToken.
    • fileblob: Improved List performance when using Prefix.
    • s3blob: Fixed a bug where Attribute.MD5 would sometimes report an incorrect MD5 hash.
  • pubsub
    • A bunch of performance improvements in the portable type and in various providers.
    • Added support for Nack.
  • secrets
    • Added a Close function to Keeper.
  • sql
    • Added support for Azure Database for MySQL.
    • Added URLOpener support for GCP PostgreSQL and RDS PostgreSQL.