Releases: googleapis/nodejs-storage
v2.3.3
v2.3.2
v2.3.1
11-14-2018 22:15 PST
Bug fixes
- 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)
Internal / Testing Changes
- 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)
v2.3.0
Implementation Changes
- fix(types): Fixes getSignedUrl Return Type (#496)
- fix(types): overload Storage.createBucket with Promise return type (#503)
New Features
- Introduce Object Lifecycle Management (#471)
Dependencies
- chore(deps): update dependency eslint-plugin-node to v8 (#490)
Internal / Testing Changes
- chore: update issue templates (#488)
v2.2.0
Bug Fixes
- fix: re-enable typescript types (#484)
Dependencies
- 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)
Documentation
- docs: Minor docs correction (#465)
Internal / Testing Changes
- 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)
v2.1.0
This release brings support for Bucket/Object lock operations, as well as disable TypeScript as we continue to annotate the project with types.
New Features
- feat: Support Bucket/Object lock operations (#374)
Implementation Changes
TypeScript support (in progress)
- 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)
Dependencies
- chore(deps): update dependency eslint-plugin-prettier to v3 (#419)
Documentation
Internal / Testing Changes
- 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 appropriate 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)
v2.0.3
v2.0.2
v2.0.1
This fixes types declaration issues with projects using TypeScript.
Implementation Changes
- 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)
Dependencies
- 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)
Internal / Testing Changes
v2.0.0
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
no longer accepts URLs
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.
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
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)