Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

fix(deps): update dependency @google-cloud/storage to v2: edited#181

Merged
JustinBeckwith merged 7 commits intomasterfrom
renovate/google-cloud-storage-2.x
Sep 5, 2018
Merged

fix(deps): update dependency @google-cloud/storage to v2: edited#181
JustinBeckwith merged 7 commits intomasterfrom
renovate/google-cloud-storage-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Sep 4, 2018

This Pull Request updates dependency @google-cloud/storage (source) from ^1.5.1 to ^2.0.0

Note: This PR was created on a configured schedule ("after 9am and before 3pm") and will not receive updates outside those times.

Details
Release Notes

v2.0.0

Compare Source

This release has breaking changes. This release has a few notable breaking changes. Please take care when upgrading!

require syntax changes

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:

Old Code
const storage = require('@​google-cloud/storage')();
// or...
const Storage = require('@​google-cloud/storage');
const storage = new Storage({
  // config...
});
New Code
const {Storage} = require('@​google-cloud/storage');
const storage = new Storage({
  // config...
});
bucket.upload method removed

To better support a variety of HTTP clients, the bucket.upload method has been removed. It can be replaced with your favorite HTTP client.

Old Code
bucket.upload('https://example.com/images/image.png', function(err, file, res) {
  // handle upload...
});
New Code
const request = require('request');
const file = bucket.file(name);
const writeStream = file.createWriteStream();
request(url).pipe(writeStream);
Breaking changes
  • semver: do not support upload() from url (#​337)
  • fix: drop support for node.js 4.x and 9.x (#​282)
Features
  • refactor(ts): merge initial TypeScript conversion (#​334)
  • feat: Add Storage#getServiceAccount(). (#​331)
  • Kms sample (#​209)
Bug fixes
  • fix: gzip and Cache-Control headers in upload sample (#​225)
  • fix: move this.[ROLE]s initialization from Acl to AclAccessorRoleMethods (#​252)
  • fix: signedURL cname (#​210) (#​234)
Internal / Testing Changes
  • chore(deps): update dependency nyc to v13 (#​341)
  • fix(deps): update dependency @​google-cloud/common to ^0.23.0 (#​340)
  • test: throw on deprecation (#​319)
  • chore(deps): update dependency eslint-config-prettier to v3 (#​336)
  • fix(deps): update dependency gcs-resumable-upload to ^0.12.0 (#​317)
  • Fix system tests for string comparisons (#​328)
  • chore: ignore package-lock.json (#​326)
  • chore: update renovate config (#​322)
  • chore: regen lock files (#​318)
  • chore(deps): lock file maintenance (#​313)
  • chore: move mocha options to mocha.opts (#​311)
  • chore(deps): lock file maintenance (#​309)
  • test: use strictEqual in tests (#​306)
  • chore(deps): update dependency eslint-plugin-node to v7 (#​305)
  • chore(deps): lock file maintenance (#​303)
  • chore(deps): lock file maintenance (#​285)
  • fix: test meant to assert err msg exists (#​280)
  • fix(deps): update dependency yargs to v12 (#​270)
  • fix(deps): update dependency uuid to v3.3.2 (#​269)
  • chore: update gcs-resumable-upload to 0.11.1 (#​265)
  • fix(deps): update dependency uuid to v3.3.0 (#​262)
  • chore(deps): update dependency sinon to v6 (#​263)
  • Configure Renovate (#​250)
  • refactor: drop repo-tool as an exec wrapper (#​258)
  • chore: update sample lockfiles (#​256)
  • fix: update linking for samples (#​254)
  • chore(package): update eslint to version 5.0.0 (#​253)
  • refactor(es6): Refactor constructor pattern as ES6 class (#​246)
  • Update @​google-cloud/common to the latest version 🚀 (#​226)
  • system-tests: fix channel test. (#​243)
  • refactor: Update to the latest version of nodejs-common and gcs-resumable-upload (#​202)
  • Fix permission of bash script for Kokoro (#​223)
  • chore(package): update nyc to version 12.0.2 (#​216)
  • chore: fix prettier incompatibility (#​211)


This PR has been generated by Renovate Bot.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 4, 2018
@renovate renovate Bot force-pushed the renovate/google-cloud-storage-2.x branch from 3bb45d1 to 763b31b Compare September 4, 2018 18:32
@renovate renovate Bot force-pushed the renovate/google-cloud-storage-2.x branch from 763b31b to ce2e83e Compare September 4, 2018 19:01
Copy link
Copy Markdown
Contributor

@jkwlui jkwlui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

storage changed it's interface since v2, so manual change needed.

@jkwlui jkwlui self-assigned this Sep 4, 2018
@jkwlui jkwlui changed the title fix(deps): update dependency @google-cloud/storage to v2 fix(deps): update dependency @google-cloud/storage to v2: edited Sep 4, 2018
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Sep 4, 2018

PR has been edited

As this PR has been edited, Renovate will stop updating it in order to not cause any conflicts or other problems. If you wish to abandon your edits and have Renovate recreate this PR then you should rename this PR and then close it.

@JustinBeckwith JustinBeckwith merged commit cd42d7e into master Sep 5, 2018
@renovate renovate Bot deleted the renovate/google-cloud-storage-2.x branch September 5, 2018 17:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants