@google-cloud/spanner
Advanced tools
Comparing version 5.16.3 to 5.17.0
@@ -52,3 +52,3 @@ /*! | ||
poolCtor?: SessionPool; | ||
schema?: string; | ||
schema?: string | string[]; | ||
gaxOptions?: CallOptions; | ||
@@ -55,0 +55,0 @@ } |
"use strict"; | ||
// Copyright 2021 Google LLC | ||
// Copyright 2022 Google LLC | ||
// | ||
@@ -829,4 +829,3 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
close() { | ||
this.initialize(); | ||
if (!this._terminated) { | ||
if (this.instanceAdminStub && !this._terminated) { | ||
return this.instanceAdminStub.then(stub => { | ||
@@ -833,0 +832,0 @@ this._terminated = true; |
"use strict"; | ||
// Copyright 2021 Google LLC | ||
// Copyright 2022 Google LLC | ||
// | ||
@@ -23,2 +23,4 @@ // Licensed under the Apache License, Version 2.0 (the "License"); | ||
const gax = require("google-gax"); | ||
const google_gax_1 = require("google-gax"); | ||
const stream_1 = require("stream"); | ||
const jsonProtos = require("../../protos/protos.json"); | ||
@@ -203,2 +205,9 @@ /** | ||
if (this._terminated) { | ||
if (methodName in this.descriptors.stream) { | ||
const stream = new stream_1.PassThrough(); | ||
setImmediate(() => { | ||
stream.emit('error', new google_gax_1.GoogleError('The client has already been closed.')); | ||
}); | ||
return stream; | ||
} | ||
return Promise.reject('The client has already been closed.'); | ||
@@ -588,4 +597,2 @@ } | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/spanner.execute_streaming_sql.js</caption> | ||
* region_tag:spanner_v1_generated_Spanner_ExecuteStreamingSql_async | ||
*/ | ||
@@ -665,4 +672,2 @@ executeStreamingSql(request, options) { | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/spanner.streaming_read.js</caption> | ||
* region_tag:spanner_v1_generated_Spanner_StreamingRead_async | ||
*/ | ||
@@ -787,4 +792,2 @@ streamingRead(request, options) { | ||
* for more details and examples. | ||
* @example <caption>include:samples/generated/v1/spanner.list_sessions.js</caption> | ||
* region_tag:spanner_v1_generated_Spanner_ListSessions_async | ||
*/ | ||
@@ -917,4 +920,3 @@ listSessionsAsync(request, options) { | ||
close() { | ||
this.initialize(); | ||
if (!this._terminated) { | ||
if (this.spannerStub && !this._terminated) { | ||
return this.spannerStub.then(stub => { | ||
@@ -921,0 +923,0 @@ this._terminated = true; |
{ | ||
"name": "@google-cloud/spanner", | ||
"description": "Cloud Spanner Client Library for Node.js", | ||
"version": "5.16.3", | ||
"version": "5.17.0", | ||
"license": "Apache-2.0", | ||
@@ -79,3 +79,3 @@ "author": "Google Inc.", | ||
"@grpc/proto-loader": "^0.6.0", | ||
"@types/concat-stream": "^1.6.0", | ||
"@types/concat-stream": "^2.0.0", | ||
"@types/extend": "^3.0.0", | ||
@@ -112,3 +112,3 @@ "@types/is": "0.0.21", | ||
"retry-request": "^4.1.1", | ||
"sinon": "^12.0.0", | ||
"sinon": "^13.0.0", | ||
"stats-lite": "^2.1.1", | ||
@@ -115,0 +115,0 @@ "teeny-request": "^7.0.0", |
@@ -151,18 +151,18 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
Node.js. | ||
If you are using an end-of-life version of Node.js, we recommend that you update | ||
as soon as possible to an actively supported LTS version. | ||
Google's client libraries support legacy versions of Node.js runtimes on a | ||
best-efforts basis with the following warnings: | ||
* Legacy versions are not tested in continuous integration. | ||
* Some security patches and features cannot be backported. | ||
* Dependencies cannot be kept up-to-date. | ||
Client libraries targeting some end-of-life versions of Node.js are available, and | ||
can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). | ||
can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). | ||
The dist-tags follow the naming convention `legacy-(version)`. | ||
For example, `npm install @google-cloud/spanner@legacy-8` installs client libraries | ||
for versions compatible with Node.js 8. | ||
_Legacy Node.js versions are supported as a best effort:_ | ||
* Legacy versions will not be tested in continuous integration. | ||
* Some security patches may not be able to be backported. | ||
* Dependencies will not be kept up-to-date, and features will not be backported. | ||
#### Legacy tags available | ||
* `legacy-8`: install client libraries from this dist-tag for versions | ||
compatible with Node.js 8. | ||
## Versioning | ||
@@ -169,0 +169,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5177111
87610