Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Releases: googleapis/nodejs-compute

v0.10.0

16 Mar 17:22
Compare
Choose a tag to compare

Features

@google-cloud/compute v0.9.1

16 Feb 12:30
Compare
Choose a tag to compare

Fixes

  • (#40): Always initialize the client parameters correctly.
  • Update dependencies to mitigate possible security issues.

@google-cloud/compute v0.9.0

31 Oct 19:48
bd2cf8c
Compare
Choose a tag to compare

release level

Features

Runnable samples

There are now runnable samples in the samples/ directory. These samples demonstrate the use of this API and offer an additional resource for getting started. These also power the README, and are automatically tested to ensure that they are up-to-date and correct.

Implementation Details

  • Change to a new linter (ESLint) and code style formatter (prettify).
  • Update docs to use JSDoc 3.
  • Migrate to the googleapis/nodejs-compute repository.

Refer to the nodejs-compute API reference documentation for details.

@google-cloud/compute v0.8.0

17 Oct 02:44
Compare
Choose a tag to compare

release level

Features

@google-cloud/compute v0.7.2

17 Oct 16:23
Compare
Choose a tag to compare

release level

Bugfixes

  • Reverted the addition of the trailing dot in FQDNs, as it flatly broke DNS lookups on Android (#2283)

@google-cloud/compute v0.7.1

17 Oct 16:26
Compare
Choose a tag to compare

release level

Features

  • Updated FQDNs to include a trailing dot, e.g. googleapis.com. This provides a substantial speed improvement in some use cases. (#2214)

@google-cloud/compute v0.7.0

17 Oct 02:42
Compare
Choose a tag to compare

release level

Features

  • Add vm.waitFor method to alert you when a specified VM state is reached; h/t @NickZ. (#2047)

@google-cloud/compute v0.6.0

17 Oct 02:40
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

Dropped support for Node v0.12.x

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/compute v0.4.0

17 Oct 02:38
Compare
Choose a tag to compare

release level

Features

@google-cloud/compute v0.3.0

17 Oct 02:37
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

Promises have arrived!

Issue: #551
PR: #1703

It's been a long time coming, but we're finally here. We've shipped promise support in the Google Cloud Compute 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 gce = require('@google-cloud/compute')();

gce.getVMs()
  .then(function(data) {
    var vms = 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 gce = require('@google-cloud/compute')();

- gce.getAddresses()
+ gce.getAddressesStream()
   .on('data', function(address) {})

- gce.getAutoscalers()
+ gce.getAutoscalersStream()
   .on('data', function(autoscaler) {})

- gce.getDisks()
+ gce.getDisksStream()
   .on('data', function(disk) {})

- gce.getInstanceGroups()
+ gce.getInstanceGroupsStream()
   .on('data', function(instanceGroup) {})

- gce.getFirewalls()
+ gce.getFirewallsStream()
   .on('data', function(firewall) {})

- gce.getHealthChecks()
+ gce.getHealthChecksStream()
   .on('data', function(healthCheck) {})

- gce.getMachineTypes()
+ gce.getMachineTypesStream()
   .on('data', function(machineType) {})

- gce.getNetworks()
+ gce.getNetworksStream()
   .on('data', function(network) {})

- gce.getOperations()
+ gce.getOperationsStream()
   .on('data', function(operation) {})

- gce.getRegions()
+ gce.getRegionsStream()
   .on('data', function(region) {})

- gce.getRules()
+ gce.getRulesStream()
   .on('data', function(rule) {})

- gce.getServices()
+ gce.getServicesStream()
   .on('data', function(service) {})

- gce.getSnapshots()
+ gce.getSnapshotsStream()
   .on('data', function(snapshot) {})

- gce.getSubnetworks()
+ gce.getSubnetworksStream()
   .on('data', function(subnetwork) {})

- gce.getVMs()
+ gce.getVMsStream()
   .on('data', function(vm) {})

- gce.getZones()
+ gce.getZonesStream()
   .on('data', function(zone) {})
var instanceGroup = gcs.instanceGroup('my-instance-group-name');

- instanceGroup.getVMs()
+ instanceGroup.getVMsStream()
   .on('data', function(vm) {})
var network = gcs.network('my-network-name');

- network.getFirewalls()
+ network.getFirewallsStream()
   .on('data', function(firewall) {})

- network.getSubnetworks()
+ network.getSubnetworksStream()
   .on('data', function(subnetwork) {})
var region = gcs.region('us-central1');

- region.getAddresses()
+ region.getAddressesStream()
   .on('data', function(address) {})

- region.getOperations()
+ region.getOperationsStream()
   .on('data', function(operation) {})

- region.getRules()
+ region.getRulesStream()
   .on('data', function(rule) {})

- region.getSubnetworks()
+ region.getSubnetworksStream()
   .on('data', function(subnetwork) {})
var zone = gcs.zone('us-central1-a');

- zone.getAutoscalers()
+ zone.getAutoscalersStream()
   .on('data', function(autoscaler) {})

- zone.getDisks()
+ zone.getDisksStream()
   .on('data', function(disk) {})

- zone.getInstanceGroups()
+ zone.getInstanceGroupsStream()
   .on('data', function(instanceGroup) {})

- zone.getMachineTypes()
+ zone.getMachineTypesStream()
   .on('data', function(machineType) {})

- zone.getOperations()
+ zone.getOperationsStream()
   .on('data', function(operation) {})

- zone.getVMs()
+ zone.getVMsStream()
   .on('data', function(vm) {})