Releases: googleapis/nodejs-storage
Releases · googleapis/nodejs-storage
@google-cloud/storage v1.3.0
- Add runnable samples in
samples/
directory. - Replace use of deprecated
new Buffer
withBuffer.from
. - Change to a new linter (ESLint) and code style formatter (prettify).
- Update docs to use JSDoc 3.
- Migrate to the googleapis/nodejs-storage repository.
Refer to the nodejs-storage API reference documentation for details.
@google-cloud/storage v1.2.1
- Strip leading slashes from a File path. (Thanks, @sabrehagen!)
@google-cloud/storage v1.2.0
Features
- Support managing Bucket labels.
- Support "Requester Pays" functionality, allowing another project to be billed for access to your bucket. Alternatively, if you're accessing another user's bucket, specify the
userProject
option on any bucket access method (file.download()
,bucket.getFiles()
, etc) to have your project billed.
Fixes
- Upgrade dependency for Node v6 compatibility.
@google-cloud/storage v1.1.1
Fixes
file.setEncryptionKey()
returnsFile
object.
@google-cloud/storage v1.1.0
Features
- Add support for Bucket-level IAM policy management.
@google-cloud/storage v1.0.0
Update
$ npm install @google-cloud/[email protected]
⚠️ Breaking Changes!
Dropped support for Node v0.12.x
(googleapis/google-cloud-node#2171)
We've officially dropped support for Node v0.12.x in all of our APIs. It may still work, but it is not officially supported and may stop working at any time.
@google-cloud/storage v0.8.0
$ npm install @google-cloud/[email protected]
Features
@google-cloud/storage v0.6.0
Update
$ npm install @google-cloud/[email protected]
Features
- Auto-detect
projectId
. See Authentication for more.
Fixes
- Promisify ACL methods.
@google-cloud/storage v0.5.0
Update
$ npm install @google-cloud/[email protected]
Features
- Default to crc32c validation for data integrity. (Thanks, @zbjornson!)
@google-cloud/storage v0.4.0
Updating
$ npm install @google-cloud/[email protected]
Features
New Storage Classes!
(googleapis/google-cloud-node#1727, googleapis/google-cloud-node#1728)
This release brings support for several new storage classes:
To leverage any of the new storage classes, you can use the coldline
, multiRegional
and regional
options respectively.
var gcs = require('@google-cloud/storage')({
projectId: 'grape-spaceship-123',
keyFilename: '/path/to/keyfile.json'
});
var metadata = {
location: 'US-CENTRAL1',
multiRegional: true
};
gcs.createBucket('my-bucket', metadata, function(err, bucket) {});