Skip to content

Releases: cloudyr/aws.s3

0.3.22

18 Aug 23:53
@s-u s-u

Choose a tag to compare

API changes

  • put_object splits the use of files vs payload into two separate arguments: what is now the first positional argument and expects actual content to store, file is now a named argument used to store file content. The previous use of file for both was very dangerous as it stored filenames instead of content without warning if the file was not found.

    Old code that intended to use files such as:

    put_object("foo.csv", "bucket")

    has to use either of

    put_object(file="foo.csv", bucket="bucket")
    ## or (not recommended)
    put_object(, "bucket", file="foo.csv")

    Any code that used file= explicitly and no positional arguments doesn't need to change.

Features

  • put_object supports connections, including non-seekable ones

Bugfixes

  • put_object now closes its connections properly (#354)

  • Adapt to DisplayName being removed from the AWS API (#437)

  • get_bucket fetched incorrect list (repeating the first chunk) if multiple fetches were required and the response included the NextMarker entry (#414)

CRAN Patch

25 May 08:50

Choose a tag to compare

This is a very small patch release to fix a failing test on CRAN.

CRAN Release

11 Apr 16:03

Choose a tag to compare

This release includes a number of user-visible changes, mostly expanding functionality with some new functions and arguments. It also includes a number of (mostly minor) bug fixes.

User-visible changes

  • put_object() and put_bucket() now expose explicit acl` arguments. (#137)
  • get_acl() and put_acl() are now exported. (#137)
  • Added a high-level put_folder() convenience function for creating an empty pseudo-folder.
  • save_object() now uses httr::write_disk() to avoid having to load a file into memory. (#158, h/t Arturo Saco)
  • s3sync() gains a direction argument allowing for unidirectional (upload-only or download-only) synchronization. The default remains bi-directional.
  • New functions put_encryption(), get_encryption(), and delete_encryption() implement bucket-level encryption so that encryption does not need to be specified for each put_object() call. (#183, h/t Dan Tenenbaum)
  • Bumped aws.signature dependency to v0.3.7 to take advantage of automatic credential loading. (#142, #143, #144; #184, h/t Dan Tenenbaum)
  • The base_url argument in s3HTTP() now defaults to an environment variable - AWS_S3_ENDPOINT - or the AWS S3 default in order to facilitate using the package with S3-compatible storage. (#189, #191, #194)
  • put_bucket() now errors if the request is unsuccessful. (#132, h/t Sean Kross)
  • Remove usage of endsWith() in two places to reduce (implicit) base R dependency. (#147, h/t Huang Pan)

Bug fixes

  • put_bucket() only includes a LocationConstraint body when the region != "us-east-1". (#171, h/t David Griswold)
  • Signatures are now calculated correctly when a port is specified. (#221, h/t @rvolykh)
  • acl argument was ignored by put_bucket(). This is now fixed. (#172)
  • Fixed a bug in the internal function setup_s3_url() when region = "".
  • Fixed a bug in s3write_using(). (#205, h/t Patrick Miller)
  • Fixed typos in s3sync(). (#211, h/t Nirmal Patel)
  • Fixed a typo in setup_s3_url(). (#223, h/t Peter Foley)

CRAN Release (beta)

28 Apr 13:35

Choose a tag to compare

This is a beta release of the aws.s3 package to CRAN.