@google-cloud/storage
Advanced tools
Changelog
v2.0.0
This release has breaking changes. This release has a few notable breaking changes. Please take care when upgrading!
The import style of this library has been changed to support es module syntax. This provides both forward compatibility with es modules, and better supports the TypeScript and Babel ecosystems. As a result, the import syntax has changed:
const storage = require('@google-cloud/storage')();
// or...
const Storage = require('@google-cloud/storage');
const storage = new Storage({
// config...
});
const {Storage} = require('@google-cloud/storage');
const storage = new Storage({
// config...
});