@google-cloud/spanner 6.11.0 → 6.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/build/src/index.d.ts +2 -2
- package/build/src/index.js +3 -3
- package/build/src/transaction.d.ts +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [6.13.0](https://github.com/googleapis/nodejs-spanner/compare/v6.12.0...v6.13.0) (2023-07-21)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Enable leader aware routing by default. This update contains performance optimisations that will reduce the latency of read/write transactions that originate from a region other than the default leader region. ([87cd5e6](https://github.com/googleapis/nodejs-spanner/commit/87cd5e6ecdf6d888dd0e7fe712b7070c58b32d42))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **deps:** Update dependency yargs to v17 ([#1866](https://github.com/googleapis/nodejs-spanner/issues/1866)) ([24e321f](https://github.com/googleapis/nodejs-spanner/commit/24e321f6327cfdfc191a84bb47d80a156eff5be9))
|
|
18
|
+
|
|
19
|
+
## [6.12.0](https://github.com/googleapis/nodejs-spanner/compare/v6.11.0...v6.12.0) (2023-06-19)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* Databoostenabled for Query and Read partitions ([#1784](https://github.com/googleapis/nodejs-spanner/issues/1784)) ([66ff70c](https://github.com/googleapis/nodejs-spanner/commit/66ff70cd377d5e3f60a6796bc36bab3a39337f31))
|
|
25
|
+
|
|
7
26
|
## [6.11.0](https://github.com/googleapis/nodejs-spanner/compare/v6.10.1...v6.11.0) (2023-06-06)
|
|
8
27
|
|
|
9
28
|
|
package/build/src/index.d.ts
CHANGED
|
@@ -48,8 +48,8 @@ export type GetInstanceConfigOperationsResponse = PagedResponse<IOperation, inst
|
|
|
48
48
|
export type GetInstanceConfigOperationsCallback = PagedCallback<IOperation, instanceAdmin.spanner.admin.instance.v1.IListInstanceConfigOperationsResponse>;
|
|
49
49
|
/**
|
|
50
50
|
* Session pool configuration options.
|
|
51
|
-
* @property {boolean} [routeToLeaderEnabled=
|
|
52
|
-
*
|
|
51
|
+
* @property {boolean} [routeToLeaderEnabled=True] If set to false leader aware routing will be disabled.
|
|
52
|
+
* Disabling leader aware routing would route all requests in RW/PDML transactions to any region.
|
|
53
53
|
*/
|
|
54
54
|
export interface SpannerOptions extends GrpcClientOptions {
|
|
55
55
|
apiEndpoint?: string;
|
package/build/src/index.js
CHANGED
|
@@ -173,9 +173,9 @@ class Spanner extends service_1.GrpcService {
|
|
|
173
173
|
packageJson: require('../../package.json'),
|
|
174
174
|
};
|
|
175
175
|
super(config, options);
|
|
176
|
-
this.routeToLeaderEnabled =
|
|
177
|
-
if (options.routeToLeaderEnabled ===
|
|
178
|
-
this.routeToLeaderEnabled =
|
|
176
|
+
this.routeToLeaderEnabled = true;
|
|
177
|
+
if (options.routeToLeaderEnabled === false) {
|
|
178
|
+
this.routeToLeaderEnabled = false;
|
|
179
179
|
}
|
|
180
180
|
this.options = options;
|
|
181
181
|
this.auth = new google_auth_library_1.GoogleAuth(this.options);
|
|
@@ -67,6 +67,7 @@ export interface ExecuteSqlRequest extends Statement, RequestOptions {
|
|
|
67
67
|
seqno?: number;
|
|
68
68
|
queryOptions?: IQueryOptions;
|
|
69
69
|
requestOptions?: Omit<IRequestOptions, 'transactionTag'>;
|
|
70
|
+
dataBoostEnabled?: boolean | null;
|
|
70
71
|
}
|
|
71
72
|
export interface KeyRange {
|
|
72
73
|
startClosed?: Value[];
|
|
@@ -85,6 +86,7 @@ export interface ReadRequest extends RequestOptions {
|
|
|
85
86
|
resumeToken?: Uint8Array | null;
|
|
86
87
|
partitionToken?: Uint8Array | null;
|
|
87
88
|
requestOptions?: Omit<IRequestOptions, 'transactionTag'>;
|
|
89
|
+
dataBoostEnabled?: boolean | null;
|
|
88
90
|
}
|
|
89
91
|
export interface BatchUpdateError extends grpc.ServiceError {
|
|
90
92
|
rowCounts: number[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/spanner",
|
|
3
3
|
"description": "Cloud Spanner Client Library for Node.js",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.13.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Google Inc.",
|
|
7
7
|
"engines": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@types/through2": "^2.0.34",
|
|
94
94
|
"@types/uuid": "^9.0.0",
|
|
95
95
|
"binary-search-bounds": "^2.0.4",
|
|
96
|
-
"c8": "^
|
|
96
|
+
"c8": "^8.0.0",
|
|
97
97
|
"codecov": "^3.0.2",
|
|
98
98
|
"concat-stream": "^2.0.0",
|
|
99
99
|
"dedent": "^0.7.0",
|