Skip to content

Releases: googleapis/nodejs-storage

@google-cloud/storage v1.2.0

25 Aug 04:43
Compare
Choose a tag to compare

Features

Fixes

@google-cloud/storage v1.1.1

25 Aug 04:38
Compare
Choose a tag to compare

@google-cloud/storage v1.1.0

25 Aug 04:37
Compare
Choose a tag to compare

Features

@google-cloud/storage v1.0.0

25 Aug 04:34
Compare
Choose a tag to compare

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

25 Aug 04:35
Compare
Choose a tag to compare

@google-cloud/storage v0.6.0

25 Aug 04:32
Compare
Choose a tag to compare

@google-cloud/storage v0.5.0

25 Aug 04:30
Compare
Choose a tag to compare

Update

$ npm install @google-cloud/[email protected]

Features

@google-cloud/storage v0.4.0

25 Aug 04:27
Compare
Choose a tag to compare

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) {});

@google-cloud/storage v0.3.0

25 Aug 04:25
Compare
Choose a tag to compare

Updating

$ npm install @google-cloud/[email protected]

⚠️ Breaking Changes

Promises have arrived!

Issue: googleapis/google-cloud-node#551
PR: googleapis/google-cloud-node#1697

It's been a long time coming, but we're finally here. We've shipped promise support in the Google Cloud Storage module!

Do I have to use promises?

Nope, carry on. (But keep reading if you use streams)

How do I use promises?

Don't pass a callback:

var gcs = require('@google-cloud/storage')();

gcs.getBuckets()
  .then(function(data) {
    var buckets = data[0];
  })
  .catch(function(err) {});

How do I use a method as a stream?

All of the streaming functionality from our methods have been moved to their own method.

var gcs = require('@google-cloud/storage')();
var bucket = gcs.bucket('my-bucket-name');

- gcs.getBuckets()
+ gcs.getBucketsStream()
    .on('data', function(bucket) {})

- bucket.getFiles()
+ bucket.getFilesStream()
  .on('data', function(file) {})

@google-cloud/storage v0.2.0

25 Aug 04:22
Compare
Choose a tag to compare

Updating

$ npm install @google-cloud/[email protected]

Features