diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 748836981..4d586c420 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest - digest: sha256:bb493bf01d28519e82ab61c490c20122c85a7119c03a978ad0c34b4239fbad15 -# created: 2022-08-23T18:40:55.597313991Z + digest: sha256:b15a6f06cc06dcffa11e1bebdf1a74b6775a134aac24a0f86f51ddf728eb373e +# created: 2022-08-26T22:34:55.905845397Z diff --git a/CHANGELOG.md b/CHANGELOG.md index 526021909..76a4075cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,15 @@ [1]: https://www.npmjs.com/package/@google-cloud/bigtable?activeTab=versions +## [4.0.2](https://github.com/googleapis/nodejs-bigtable/compare/v4.0.1...v4.0.2) (2022-08-27) + + +### Bug Fixes + +* add operation ([#1145](https://github.com/googleapis/nodejs-bigtable/issues/1145)) ([3a1e282](https://github.com/googleapis/nodejs-bigtable/commit/3a1e2827990729df078fe1d075c100ace1833a96)) +* do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-bigtable/issues/1553)) ([#1148](https://github.com/googleapis/nodejs-bigtable/issues/1148)) ([262d3d7](https://github.com/googleapis/nodejs-bigtable/commit/262d3d729211da7fa23043c64de59ba67de2ce5b)) +* use google-gax v3.3.0 ([262d3d7](https://github.com/googleapis/nodejs-bigtable/commit/262d3d729211da7fa23043c64de59ba67de2ce5b)) + ## [4.0.1](https://github.com/googleapis/nodejs-bigtable/compare/v4.0.0...v4.0.1) (2022-08-25) diff --git a/package.json b/package.json index 86aceb1f3..a7f1c278d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/bigtable", - "version": "4.0.1", + "version": "4.0.2", "description": "Cloud Bigtable Client Library for Node.js", "keywords": [ "bigtable", @@ -54,7 +54,7 @@ "dot-prop": "^6.0.0", "escape-string-regexp": "^4.0.0", "extend": "^3.0.2", - "google-gax": "^3.0.1", + "google-gax": "^3.3.0", "grpc-gcp": "0.4.2", "is": "^3.0.1", "is-utf8": "^0.2.1", diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 24c1f2145..fbbf4e562 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -13,7 +13,7 @@ // limitations under the License. import Long = require("long"); -import {protobuf as $protobuf} from "google-gax"; +import type {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { diff --git a/protos/protos.js b/protos/protos.js index 006a77011..623e30682 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -19,7 +19,7 @@ define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("google-gax").protobufMinimal); + module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); })(this, function($protobuf) { "use strict"; diff --git a/samples/instances.js b/samples/instances.js index 59be32210..769a2d4e6 100644 --- a/samples/instances.js +++ b/samples/instances.js @@ -47,7 +47,8 @@ async function runInstanceOperations(instanceID, clusterID) { }; // Create production instance with given options - const [prodInstance] = await instance.create(instanceOptions); + const [prodInstance, operation] = await instance.create(instanceOptions); + await operation.promise(); console.log(`Created Instance: ${prodInstance.id}`); // [END bigtable_create_prod_instance] } else { @@ -105,7 +106,11 @@ async function createDevInstance(instanceID, clusterID) { }; // Create development instance with given options - const [instance] = await bigtable.createInstance(instanceID, options); + const [instance, operation] = await bigtable.createInstance( + instanceID, + options + ); + await operation.promise(); console.log(`Created development instance: ${instance.id}`); // [END bigtable_create_dev_instance] } @@ -141,7 +146,11 @@ async function addCluster(instanceID, clusterID) { storage: 'ssd', }; - const [cluster] = await instance.createCluster(clusterID, clusterOptions); + const [cluster, operation] = await instance.createCluster( + clusterID, + clusterOptions + ); + await operation.promise(); console.log(`Cluster created: ${cluster.id}`); // [END bigtable_create_cluster] } diff --git a/samples/package.json b/samples/package.json index 7e76287c0..acf21f454 100644 --- a/samples/package.json +++ b/samples/package.json @@ -14,7 +14,7 @@ "node": ">=12.0.0" }, "dependencies": { - "@google-cloud/bigtable": "^4.0.1", + "@google-cloud/bigtable": "^4.0.2", "uuid": "^8.0.0", "yargs": "^16.0.0" },