Skip to content

v0.36.0

Compare
Choose a tag to compare
@stephenplusplus stephenplusplus released this 10 Jun 19:12
· 22581 commits to main since this release

Updating

$ npm install gcloud@0.36.0

⚠️ Breaking Changes

Compute: An empty protocol array for createFirewall now means "don't allow this traffic"


Issue: #1330
PR: #1360

Before
gce.createFirewall({
  protocols: {
    tcp: []
  }
}, function(err, operation) {
  if (!err) {
    // tcp traffic from any port will be allowed.
  }
});
After
gce.createFirewall({
  protocols: {
    tcp: [],
    udp: true
  }
}, function(err, operation) {
  if (!err) {
    // tcp traffic will be blocked.
    // udp traffic from any port will be allowed.
  }
});

Storage: crc32c hardware acceleration disabled by default

Issue: #1299
PR: #1367

Due to npm's habit of printing scary warnings if an optionalDependency fails to install, we have removed the optionalDependency on fast-crc32c. We will still handle crc32c validation checks when uploading and downloading a file, however the speed difference may be relevant for your application.

To get the performance benefits back, just install fast-crc32c as a dependency in your project:

$ npm install --save fast-crc32c

Features

  • Storage (#1361, #1364): Allow custom file encryption.

Fixes

  • Datastore, Logging, Pub/Sub (#1357, #1358): Allow setting maxRetries for failed requests.
  • Logging (9f36a88, 6dfa761): An upstream property name has changed from projectName to parent.

Thank you!

If you catch any regressions, please open an issue. See the Contributing guide for how to get started.