3.2.1 (2019-08-28)
- docs: stop redirecting reference docs to anchor, add new sample to README (bbb5537)
- samples: fix failing sample view IAM member-role groups (1c4f21f)
3.2.0 (2019-08-22)
- deps: update @google-cloud/common with fixes for http (#809) (8598631)
- deps: update dependency @google-cloud/pubsub to ^0.31.0 (#814) (604e564)
- deps: update dependency date-and-time to ^0.9.0 (#805) (8739a7d)
- ts: fix nock @~11.0.0 (#819) (48f9b44)
3.1.0 (2019-08-09)
- deps: update dependency @google-cloud/paginator to v2 (#781) (23244e9)
- deps: update dependency @google-cloud/pubsub to ^0.30.0 (#778) (7256650)
- allow calls with no request, add JSON proto (30fff15)
- deps: update dependency date-and-time to ^0.8.0 (#779) (ab2734d)
- deps: upgrade @google-cloud/common version to show original… (#795) (ea63cbe)
- deps: use the latest extend (#800) (a7f0172)
3.0.4 (2019-07-25)
3.0.3 (2019-07-16)
3.0.2 (2019-07-01)
- docs: fix sample code in docs (#759) (f9e5fd8)
- docs: link to reference docs section on googleapis.dev (#753) (5e3a96b)
3.0.1 (2019-06-14)
3.0.0 (2019-06-14)
- upgrade engines field to >=8.10.0 (#688)
- deps: update dependency @google-cloud/common to v1 (#705) (72a9f51)
- deps: update dependency @google-cloud/paginator to v1 (#695) (ada995e)
- deps: update dependency @google-cloud/promisify to v1 (#693) (5df2f83)
- deps: update dependency @google-cloud/pubsub to ^0.29.0 (#714) (3ee1a2c)
- deps: update dependency arrify to v2 (#667) (ce02c27)
- validate action of getSignedUrl() function (#684) (1b09d24)
- deps: update dependency date-and-time to ^0.7.0 (#736) (7071f26)
- deps: update dependency xdg-basedir to v4 (#681) (8b40e6a)
- docs: move to new client docs URL (#738) (a637f99)
- ts: improve return types for response metadata (#666) (da42bed)
- types: fix signatures of listing methods (#703) (42937a8)
04-04-2019 12:27 PDT
This release brings an option to file#getSignedURL to create a version 4 Signed URL.
file.getSignedUrl({
version: 'v4', // optional, defaults to v2 (existing version)
action: 'read',
expires: FUTURE_DATE,
})
- feat: introduce v4 signed url (#637)
- chore(deps): update dependency @types/node to v11.13.0 (#662)
- chore(deps): update dependency @types/tmp to v0.1.0
- chore(deps): upgrade to newest version of @google-cloud/common (#657)
- chore(deps): update dependency typescript to ~3.4.0
- chore(deps): update dependency tmp to ^0.1.0 (#641)
- docs: regenerate the samples/README.md (#649)
- docs: slight difference in how nightly synthtool run generated README (#650)
- docs: new synthtool generated README (#645)
- docs(samples): refactor the quickstart to match the new rubric (#647)
- docs: update README format
- docs: add requires_billing, retire .cloud-repo-tools.json (#644)
- docs: add additional api_id field (#640)
- docs: document destination option (#633)
- docs: clarify in docs, the meaning of ASIA and coldline (#632)
- docs: add a .repo-metadata.json (#639)
- test(v2-sign): add multi-valued headers system-test (#646)
- refactor: replace once with onetime (#660)
- fix: do not download cached files (#643)
- chore: publish to npm using wombat (#634)
- build: use per-repo npm publish token (#630)
03-13-2019 17:10 PDT
- fix: getSigned(Policy|Url) throws if expiration is invalid Date (#614)
- fix: handle errors from file#createReadStream (#615)
- fix(deps): update dependency @google-cloud/paginator to ^0.2.0
- fix(deps): update dependency gcs-resumable-upload to v1 (#619)
- fix(deps): update dependency @google-cloud/pubsub to ^0.27.0 (#620)
- fix(deps): update dependency @google-cloud/pubsub to ^0.26.0 (#618)
- fix(deps): update dependency @google-cloud/pubsub to ^0.25.0 (#616)
- chore(deps): update dependency mocha to v6 (#611)
- fix(deps): update dependency @google-cloud/promisify to ^0.4.0 (#609)
- chore(deps): update dependency @types/tmp to v0.0.34 (#608)
- fix(deps): update dependency yargs to v13 (#606)
- docs: update links in contrib guide (#610)
- docs: update contributing path in README (#603)
- chore: move CONTRIBUTING.md to root (#601)
- build: Add docuploader credentials to node publish jobs (#624)
- build: use node10 to run samples-test, system-test etc (#623)
- build: update release configuration
- build: use linkinator for docs test (#607)
- build: create docs test npm scripts (#605)
- build: test using @grpc/grpc-js in CI (#604)
- chore: remove console.log in system test (#599)
02-05-2019 16:55 PST
- docs: add lint/fix example to contributing guide (#594)
- test: skip public bucket system tests running under VPCSC (#595)
01-29-2019 13:05 PST
- fix(ts): fix Storage.createBucket overloaded signature (#589)
- fix(deps): update dependency @google-cloud/pubsub to ^0.24.0 (#588)
01-28-2019 12:13 PST
- fix:
expires
can be a Date, string, or number (#548)
- deps: upgrade nodejs-common (#582)
- chore(deps): update dependency eslint-config-prettier to v4 (#586)
- fix(deps): update dependency @google-cloud/pubsub to ^0.23.0 (#583)
- fix(deps): update dependency concat-stream to v2 (#563)
- test: Bucket Policy Only related system test (#579)
- build: check broken links in generated docs (#567)
- build: include only build/src in compiled source (#572)
12-19-2018 14:21 PST
- fix(types): file.getMetadata should resolves to Metadata, not File (#560)
- refactor: modernize the sample tests (#558)
- chore(build): inject yoshi automation key (#555)
- chore: update nyc and eslint configs (#554)
- chore: fix publish.sh permission +x (#552)
- fix(build): fix Kokoro release script (#551)
- build: add Kokoro configs for autorelease (#550)
12-06-2018 17:09 PST
- chore(deps): update dependency @types/configstore to v4 (#537)
- chore(deps): update dependency @google-cloud/pubsub to ^0.22.0 (#535)
- chore: always nyc report before calling codecov (#543)
- chore: nyc ignore build/test by default (#542)
- chore: update license file (#539)
This patch release fixed an issue affecting reading from a file on GCS (#528).
- fix(dep): upgrade teeny-request to v3.11.3 (#529)
- fix(deps): update dependency @google-cloud/common to ^0.27.0 (#525)
- refactor: convert sample tests from ava to mocha (#523)
- docs(samples): updated samples code to use async await (#521)
- chore: add synth.metadata
- fix(ts): Update bucket options types (#518)
11-14-2018 22:15 PST
- fix: fix TypeScript and system tests (#515)
- fix(deps): update dependency through2 to v3 (#507)
- docs: File#setMetadata in parallel results in unpredictable state (#504)
- chore(deps): update dependency gts to ^0.9.0 (#514)
- chore: update eslintignore config (#513)
- chore(deps): update dependency @google-cloud/nodejs-repo-tools to v3 (#512)
- refactor: use object.assign where possible (#510)
- chore: drop contributors from multiple places (#511)
- chore: use latest npm on Windows (#509)
- fix(types): Fixes getSignedUrl Return Type (#496)
- Introduce Object Lifecycle Management (#471)
- chore(deps): update dependency eslint-plugin-node to v8 (#490)
- chore: update issue templates (#488)
- fix: re-enable typescript types (#484)
- fix(deps): update dependency @google-cloud/common to ^0.26.0 (edited) (#480)
- chore: Remove 'is' dependency (#462)
- chore: upgrade teeny-request to 3.11.0 with type definitions (#457)
- feat: use small HTTP dependency (#416)
- docs: Minor docs correction (#465)
- chore: remove old issue template (#485)
- chore(typescript): enable noImplicitAny (#483)
- chore(typescript): improve typescript types and update tests (#482)
- build: run tests on node11 (#481)
- chores(build): do not collect sponge.xml from windows builds (#478)
- chores(build): run codecov on continuous builds (#476)
- chore: update new issue template (#475)
- fix: enable noImplicitAny for src/bucket.ts (#472)
- fix(tests): use unique prefix for system tests to avoid collision with another run (#468)
- fix: improve the types (#467)
- chore: move class Storage to storage.ts, create index.ts that contains all exports (#464)
- chore: add types to many unit tests (#463)
- fix: Annotate Iam types (#461)
- fix: complete bucket.ts noImplicitAny (#460)
- fix: improve the types on acl.ts (#459)
- fix: improve types (7) (#458)
- fix: improve the types (#453)
- chore: update build config (#455)
- fix: improve typescript types in src/file.ts (#450)
- build: fix codecov uploading on Kokoro (#451)
- test: Attempt to re-enable iam#testPermissions (#429)
- chore(deps): update dependency sinon to v7 (#449)
- Re-generate library using /synth.py (#448)
- Correct parameter name. (#446)
This release brings support for Bucket/Object lock operations, as well as disable TypeScript as we continue to annotate the project with types.
- feat: Support Bucket/Object lock operations (#374)
- fix: add better types for file.ts (#436)
- fix: use ~ for typescript (and fix compile errors) (#426)
- fix: Add typing for File#download() (#409)
- chore: convert system tests to typescript (#424)
- Improve TypeScript types (part 4) (#402)
- ts: convert jsdoc types to typescript interfaces (1) (#383)
- fix: TS definition (#387)
- Annotate types #3 (#391)
- Annotate types (2) (#388)
- chore(deps): update dependency eslint-plugin-prettier to v3 (#419)
- fix(tests): fix system tests on CircleCI (#431)
- fix(tests): system-test compiles to ./build, fix relative path (#428)
- Update kokoro config (#425)
- chore(samples): convert samples to async/await (#422)
- build: samples test by adding approprate test variables (#423)
- build: bring in latest kokoro cfgs to run System tests on PRs (#413)
- test: remove appveyor config (#411)
- Enable prefer-const in the eslint config (#404)
- fix(test): instantiate PubSub using new (#403)
- fix: optionsOrCallback could be undefined if not given, check before assign (#401)
- Fix the requesterPays methods (#400)
- Enable no-var in eslint (#398)
- samples: don't use USA formatted dates for expiry (#396)
- fix: copy(): Use correct destination file name in URI (#389)
- Improve the types (#377)
This fixes types declaration issues with projects using TypeScript.
- Enable noImplicitThis in the tsconfig (#370)
- Fix the path to the d.ts (#364)
- fix: make dependency on request explicit (#361)
- fix: remove trailing slashes from bucket name. (#266)
- fix(deps): update dependency @google-cloud/common to ^0.24.0 (#367)
- fix(deps): update dependency gcs-resumable-upload to ^0.13.0 (#368)
- Remove unused dependencies (#363)
- Remove safe-buffer (#359)
- samples: update dependency @google-cloud/storage to v2 (#350)
- Update CI config (#371)
- build(kokoro): run docker as user node (#358)
- build: fix multiline in circle.yml (#357)
- fix executable modes on .sh's; add pre-system-test.sh hook (#356)
- decrypt both service account keys (#353)
- Retry npm install in CI (#352)
- Add synth script and run it (#351)
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...
});
To better support a variety of HTTP clients, the remote fetching functionality of bucket.upload
has been removed. It can be replaced with your favorite HTTP client.
bucket.upload('https://example.com/images/image.png', function(err, file, res) {
// handle upload...
});
const request = require('request');
const file = bucket.file(name);
const writeStream = file.createWriteStream();
request(url).pipe(writeStream);
- semver: do not support upload() from url (#337)
- fix: drop support for node.js 4.x and 9.x (#282)
- refactor(ts): merge initial TypeScript conversion (#334)
- feat: Add Storage#getServiceAccount(). (#331)
- Kms sample (#209)
- 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)
- 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)