@google-cloud/spanner 5.17.0 → 6.1.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/README.md +16 -0
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +174 -9
  4. package/build/protos/google/spanner/admin/database/v1/common.proto +1 -2
  5. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +27 -2
  6. package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +22 -10
  7. package/build/protos/google/spanner/v1/commit_response.proto +1 -3
  8. package/build/protos/google/spanner/v1/keys.proto +1 -2
  9. package/build/protos/google/spanner/v1/mutation.proto +1 -2
  10. package/build/protos/google/spanner/v1/query_plan.proto +1 -2
  11. package/build/protos/google/spanner/v1/result_set.proto +1 -3
  12. package/build/protos/google/spanner/v1/spanner.proto +4 -1
  13. package/build/protos/google/spanner/v1/transaction.proto +73 -22
  14. package/build/protos/google/spanner/v1/type.proto +1 -2
  15. package/build/protos/protos.d.ts +883 -282
  16. package/build/protos/protos.js +2447 -880
  17. package/build/protos/protos.json +297 -87
  18. package/build/src/backup.d.ts +27 -5
  19. package/build/src/backup.js +62 -31
  20. package/build/src/batch-transaction.js +1 -1
  21. package/build/src/codec.d.ts +12 -1
  22. package/build/src/codec.js +44 -13
  23. package/build/src/common-grpc/service-object.js +1 -1
  24. package/build/src/common-grpc/service.js +2 -2
  25. package/build/src/database.d.ts +26 -6
  26. package/build/src/database.js +8 -8
  27. package/build/src/index.d.ts +18 -3
  28. package/build/src/index.js +26 -7
  29. package/build/src/instance.d.ts +41 -1
  30. package/build/src/instance.js +56 -2
  31. package/build/src/session-pool.d.ts +1 -0
  32. package/build/src/session-pool.js +46 -46
  33. package/build/src/session.js +1 -1
  34. package/build/src/table.d.ts +5 -1
  35. package/build/src/table.js +1 -1
  36. package/build/src/transaction-runner.js +3 -3
  37. package/build/src/transaction.d.ts +10 -2
  38. package/build/src/transaction.js +12 -12
  39. package/build/src/v1/database_admin_client.d.ts +267 -30
  40. package/build/src/v1/database_admin_client.js +148 -13
  41. package/build/src/v1/database_admin_client_config.json +5 -0
  42. package/build/src/v1/index.js +1 -0
  43. package/build/src/v1/instance_admin_client.d.ts +63 -18
  44. package/build/src/v1/instance_admin_client.js +42 -9
  45. package/build/src/v1/spanner_client.d.ts +70 -19
  46. package/build/src/v1/spanner_client.js +7 -8
  47. package/package.json +12 -12
@@ -36,7 +36,7 @@ export declare class SpannerClient {
36
36
  *
37
37
  * @param {object} [options] - The configuration object.
38
38
  * The options accepted by the constructor are described in detail
39
- * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance).
39
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
40
40
  * The common options are:
41
41
  * @param {object} [options.credentials] - Credentials object.
42
42
  * @param {string} [options.credentials.client_email]
@@ -59,11 +59,10 @@ export declare class SpannerClient {
59
59
  * API remote host.
60
60
  * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
61
61
  * Follows the structure of {@link gapicConfig}.
62
- * @param {boolean} [options.fallback] - Use HTTP fallback mode.
63
- * In fallback mode, a special browser-compatible transport implementation is used
64
- * instead of gRPC transport. In browser context (if the `window` object is defined)
65
- * the fallback mode is enabled automatically; set `options.fallback` to `false`
66
- * if you need to override this behavior.
62
+ * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
63
+ * Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
64
+ * For more information, please check the
65
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
67
66
  */
68
67
  constructor(opts?: ClientOptions);
69
68
  /**
@@ -139,7 +138,11 @@ export declare class SpannerClient {
139
138
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
140
139
  * for more details and examples.
141
140
  */
142
- createSession(request?: protos.google.spanner.v1.ICreateSessionRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.ISession, protos.google.spanner.v1.ICreateSessionRequest | undefined, {} | undefined]>;
141
+ createSession(request?: protos.google.spanner.v1.ICreateSessionRequest, options?: CallOptions): Promise<[
142
+ protos.google.spanner.v1.ISession,
143
+ protos.google.spanner.v1.ICreateSessionRequest | undefined,
144
+ {} | undefined
145
+ ]>;
143
146
  createSession(request: protos.google.spanner.v1.ICreateSessionRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.ISession, protos.google.spanner.v1.ICreateSessionRequest | null | undefined, {} | null | undefined>): void;
144
147
  createSession(request: protos.google.spanner.v1.ICreateSessionRequest, callback: Callback<protos.google.spanner.v1.ISession, protos.google.spanner.v1.ICreateSessionRequest | null | undefined, {} | null | undefined>): void;
145
148
  /**
@@ -168,7 +171,11 @@ export declare class SpannerClient {
168
171
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
169
172
  * for more details and examples.
170
173
  */
171
- batchCreateSessions(request?: protos.google.spanner.v1.IBatchCreateSessionsRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.IBatchCreateSessionsResponse, protos.google.spanner.v1.IBatchCreateSessionsRequest | undefined, {} | undefined]>;
174
+ batchCreateSessions(request?: protos.google.spanner.v1.IBatchCreateSessionsRequest, options?: CallOptions): Promise<[
175
+ protos.google.spanner.v1.IBatchCreateSessionsResponse,
176
+ protos.google.spanner.v1.IBatchCreateSessionsRequest | undefined,
177
+ {} | undefined
178
+ ]>;
172
179
  batchCreateSessions(request: protos.google.spanner.v1.IBatchCreateSessionsRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IBatchCreateSessionsResponse, protos.google.spanner.v1.IBatchCreateSessionsRequest | null | undefined, {} | null | undefined>): void;
173
180
  batchCreateSessions(request: protos.google.spanner.v1.IBatchCreateSessionsRequest, callback: Callback<protos.google.spanner.v1.IBatchCreateSessionsResponse, protos.google.spanner.v1.IBatchCreateSessionsRequest | null | undefined, {} | null | undefined>): void;
174
181
  /**
@@ -188,7 +195,11 @@ export declare class SpannerClient {
188
195
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
189
196
  * for more details and examples.
190
197
  */
191
- getSession(request?: protos.google.spanner.v1.IGetSessionRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.ISession, protos.google.spanner.v1.IGetSessionRequest | undefined, {} | undefined]>;
198
+ getSession(request?: protos.google.spanner.v1.IGetSessionRequest, options?: CallOptions): Promise<[
199
+ protos.google.spanner.v1.ISession,
200
+ protos.google.spanner.v1.IGetSessionRequest | undefined,
201
+ {} | undefined
202
+ ]>;
192
203
  getSession(request: protos.google.spanner.v1.IGetSessionRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.ISession, protos.google.spanner.v1.IGetSessionRequest | null | undefined, {} | null | undefined>): void;
193
204
  getSession(request: protos.google.spanner.v1.IGetSessionRequest, callback: Callback<protos.google.spanner.v1.ISession, protos.google.spanner.v1.IGetSessionRequest | null | undefined, {} | null | undefined>): void;
194
205
  /**
@@ -208,7 +219,11 @@ export declare class SpannerClient {
208
219
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
209
220
  * for more details and examples.
210
221
  */
211
- deleteSession(request?: protos.google.spanner.v1.IDeleteSessionRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.spanner.v1.IDeleteSessionRequest | undefined, {} | undefined]>;
222
+ deleteSession(request?: protos.google.spanner.v1.IDeleteSessionRequest, options?: CallOptions): Promise<[
223
+ protos.google.protobuf.IEmpty,
224
+ protos.google.spanner.v1.IDeleteSessionRequest | undefined,
225
+ {} | undefined
226
+ ]>;
212
227
  deleteSession(request: protos.google.spanner.v1.IDeleteSessionRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.v1.IDeleteSessionRequest | null | undefined, {} | null | undefined>): void;
213
228
  deleteSession(request: protos.google.spanner.v1.IDeleteSessionRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.v1.IDeleteSessionRequest | null | undefined, {} | null | undefined>): void;
214
229
  /**
@@ -303,7 +318,11 @@ export declare class SpannerClient {
303
318
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
304
319
  * for more details and examples.
305
320
  */
306
- executeSql(request?: protos.google.spanner.v1.IExecuteSqlRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IExecuteSqlRequest | undefined, {} | undefined]>;
321
+ executeSql(request?: protos.google.spanner.v1.IExecuteSqlRequest, options?: CallOptions): Promise<[
322
+ protos.google.spanner.v1.IResultSet,
323
+ protos.google.spanner.v1.IExecuteSqlRequest | undefined,
324
+ {} | undefined
325
+ ]>;
307
326
  executeSql(request: protos.google.spanner.v1.IExecuteSqlRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IExecuteSqlRequest | null | undefined, {} | null | undefined>): void;
308
327
  executeSql(request: protos.google.spanner.v1.IExecuteSqlRequest, callback: Callback<protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IExecuteSqlRequest | null | undefined, {} | null | undefined>): void;
309
328
  /**
@@ -355,7 +374,11 @@ export declare class SpannerClient {
355
374
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
356
375
  * for more details and examples.
357
376
  */
358
- executeBatchDml(request?: protos.google.spanner.v1.IExecuteBatchDmlRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.IExecuteBatchDmlResponse, protos.google.spanner.v1.IExecuteBatchDmlRequest | undefined, {} | undefined]>;
377
+ executeBatchDml(request?: protos.google.spanner.v1.IExecuteBatchDmlRequest, options?: CallOptions): Promise<[
378
+ protos.google.spanner.v1.IExecuteBatchDmlResponse,
379
+ protos.google.spanner.v1.IExecuteBatchDmlRequest | undefined,
380
+ {} | undefined
381
+ ]>;
359
382
  executeBatchDml(request: protos.google.spanner.v1.IExecuteBatchDmlRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IExecuteBatchDmlResponse, protos.google.spanner.v1.IExecuteBatchDmlRequest | null | undefined, {} | null | undefined>): void;
360
383
  executeBatchDml(request: protos.google.spanner.v1.IExecuteBatchDmlRequest, callback: Callback<protos.google.spanner.v1.IExecuteBatchDmlResponse, protos.google.spanner.v1.IExecuteBatchDmlRequest | null | undefined, {} | null | undefined>): void;
361
384
  /**
@@ -428,7 +451,11 @@ export declare class SpannerClient {
428
451
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
429
452
  * for more details and examples.
430
453
  */
431
- read(request?: protos.google.spanner.v1.IReadRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IReadRequest | undefined, {} | undefined]>;
454
+ read(request?: protos.google.spanner.v1.IReadRequest, options?: CallOptions): Promise<[
455
+ protos.google.spanner.v1.IResultSet,
456
+ protos.google.spanner.v1.IReadRequest | undefined,
457
+ {} | undefined
458
+ ]>;
432
459
  read(request: protos.google.spanner.v1.IReadRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IReadRequest | null | undefined, {} | null | undefined>): void;
433
460
  read(request: protos.google.spanner.v1.IReadRequest, callback: Callback<protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IReadRequest | null | undefined, {} | null | undefined>): void;
434
461
  /**
@@ -457,7 +484,11 @@ export declare class SpannerClient {
457
484
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
458
485
  * for more details and examples.
459
486
  */
460
- beginTransaction(request?: protos.google.spanner.v1.IBeginTransactionRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.ITransaction, protos.google.spanner.v1.IBeginTransactionRequest | undefined, {} | undefined]>;
487
+ beginTransaction(request?: protos.google.spanner.v1.IBeginTransactionRequest, options?: CallOptions): Promise<[
488
+ protos.google.spanner.v1.ITransaction,
489
+ protos.google.spanner.v1.IBeginTransactionRequest | undefined,
490
+ {} | undefined
491
+ ]>;
461
492
  beginTransaction(request: protos.google.spanner.v1.IBeginTransactionRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.ITransaction, protos.google.spanner.v1.IBeginTransactionRequest | null | undefined, {} | null | undefined>): void;
462
493
  beginTransaction(request: protos.google.spanner.v1.IBeginTransactionRequest, callback: Callback<protos.google.spanner.v1.ITransaction, protos.google.spanner.v1.IBeginTransactionRequest | null | undefined, {} | null | undefined>): void;
463
494
  /**
@@ -510,7 +541,11 @@ export declare class SpannerClient {
510
541
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
511
542
  * for more details and examples.
512
543
  */
513
- commit(request?: protos.google.spanner.v1.ICommitRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.ICommitResponse, protos.google.spanner.v1.ICommitRequest | undefined, {} | undefined]>;
544
+ commit(request?: protos.google.spanner.v1.ICommitRequest, options?: CallOptions): Promise<[
545
+ protos.google.spanner.v1.ICommitResponse,
546
+ protos.google.spanner.v1.ICommitRequest | undefined,
547
+ {} | undefined
548
+ ]>;
514
549
  commit(request: protos.google.spanner.v1.ICommitRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.ICommitResponse, protos.google.spanner.v1.ICommitRequest | null | undefined, {} | null | undefined>): void;
515
550
  commit(request: protos.google.spanner.v1.ICommitRequest, callback: Callback<protos.google.spanner.v1.ICommitResponse, protos.google.spanner.v1.ICommitRequest | null | undefined, {} | null | undefined>): void;
516
551
  /**
@@ -537,7 +572,11 @@ export declare class SpannerClient {
537
572
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
538
573
  * for more details and examples.
539
574
  */
540
- rollback(request?: protos.google.spanner.v1.IRollbackRequest, options?: CallOptions): Promise<[protos.google.protobuf.IEmpty, protos.google.spanner.v1.IRollbackRequest | undefined, {} | undefined]>;
575
+ rollback(request?: protos.google.spanner.v1.IRollbackRequest, options?: CallOptions): Promise<[
576
+ protos.google.protobuf.IEmpty,
577
+ protos.google.spanner.v1.IRollbackRequest | undefined,
578
+ {} | undefined
579
+ ]>;
541
580
  rollback(request: protos.google.spanner.v1.IRollbackRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.v1.IRollbackRequest | null | undefined, {} | null | undefined>): void;
542
581
  rollback(request: protos.google.spanner.v1.IRollbackRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.v1.IRollbackRequest | null | undefined, {} | null | undefined>): void;
543
582
  /**
@@ -603,7 +642,11 @@ export declare class SpannerClient {
603
642
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
604
643
  * for more details and examples.
605
644
  */
606
- partitionQuery(request?: protos.google.spanner.v1.IPartitionQueryRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionQueryRequest | undefined, {} | undefined]>;
645
+ partitionQuery(request?: protos.google.spanner.v1.IPartitionQueryRequest, options?: CallOptions): Promise<[
646
+ protos.google.spanner.v1.IPartitionResponse,
647
+ protos.google.spanner.v1.IPartitionQueryRequest | undefined,
648
+ {} | undefined
649
+ ]>;
607
650
  partitionQuery(request: protos.google.spanner.v1.IPartitionQueryRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionQueryRequest | null | undefined, {} | null | undefined>): void;
608
651
  partitionQuery(request: protos.google.spanner.v1.IPartitionQueryRequest, callback: Callback<protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionQueryRequest | null | undefined, {} | null | undefined>): void;
609
652
  /**
@@ -655,7 +698,11 @@ export declare class SpannerClient {
655
698
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
656
699
  * for more details and examples.
657
700
  */
658
- partitionRead(request?: protos.google.spanner.v1.IPartitionReadRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionReadRequest | undefined, {} | undefined]>;
701
+ partitionRead(request?: protos.google.spanner.v1.IPartitionReadRequest, options?: CallOptions): Promise<[
702
+ protos.google.spanner.v1.IPartitionResponse,
703
+ protos.google.spanner.v1.IPartitionReadRequest | undefined,
704
+ {} | undefined
705
+ ]>;
659
706
  partitionRead(request: protos.google.spanner.v1.IPartitionReadRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionReadRequest | null | undefined, {} | null | undefined>): void;
660
707
  partitionRead(request: protos.google.spanner.v1.IPartitionReadRequest, callback: Callback<protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionReadRequest | null | undefined, {} | null | undefined>): void;
661
708
  /**
@@ -846,7 +893,11 @@ export declare class SpannerClient {
846
893
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
847
894
  * for more details and examples.
848
895
  */
849
- listSessions(request?: protos.google.spanner.v1.IListSessionsRequest, options?: CallOptions): Promise<[protos.google.spanner.v1.ISession[], protos.google.spanner.v1.IListSessionsRequest | null, protos.google.spanner.v1.IListSessionsResponse]>;
896
+ listSessions(request?: protos.google.spanner.v1.IListSessionsRequest, options?: CallOptions): Promise<[
897
+ protos.google.spanner.v1.ISession[],
898
+ protos.google.spanner.v1.IListSessionsRequest | null,
899
+ protos.google.spanner.v1.IListSessionsResponse
900
+ ]>;
850
901
  listSessions(request: protos.google.spanner.v1.IListSessionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.v1.IListSessionsRequest, protos.google.spanner.v1.IListSessionsResponse | null | undefined, protos.google.spanner.v1.ISession>): void;
851
902
  listSessions(request: protos.google.spanner.v1.IListSessionsRequest, callback: PaginationCallback<protos.google.spanner.v1.IListSessionsRequest, protos.google.spanner.v1.IListSessionsResponse | null | undefined, protos.google.spanner.v1.ISession>): void;
852
903
  /**
@@ -44,7 +44,7 @@ class SpannerClient {
44
44
  *
45
45
  * @param {object} [options] - The configuration object.
46
46
  * The options accepted by the constructor are described in detail
47
- * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance).
47
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
48
48
  * The common options are:
49
49
  * @param {object} [options.credentials] - Credentials object.
50
50
  * @param {string} [options.credentials.client_email]
@@ -67,11 +67,10 @@ class SpannerClient {
67
67
  * API remote host.
68
68
  * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
69
69
  * Follows the structure of {@link gapicConfig}.
70
- * @param {boolean} [options.fallback] - Use HTTP fallback mode.
71
- * In fallback mode, a special browser-compatible transport implementation is used
72
- * instead of gRPC transport. In browser context (if the `window` object is defined)
73
- * the fallback mode is enabled automatically; set `options.fallback` to `false`
74
- * if you need to override this behavior.
70
+ * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
71
+ * Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
72
+ * For more information, please check the
73
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
75
74
  */
76
75
  constructor(opts) {
77
76
  var _a, _b;
@@ -145,8 +144,8 @@ class SpannerClient {
145
144
  // Some of the methods on this service provide streaming responses.
146
145
  // Provide descriptors for these.
147
146
  this.descriptors.stream = {
148
- executeStreamingSql: new this._gaxModule.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
149
- streamingRead: new this._gaxModule.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
147
+ executeStreamingSql: new this._gaxModule.StreamDescriptor(gax.StreamType.SERVER_STREAMING, opts.fallback === 'rest'),
148
+ streamingRead: new this._gaxModule.StreamDescriptor(gax.StreamType.SERVER_STREAMING, opts.fallback === 'rest'),
150
149
  };
151
150
  // Put together the default options sent with requests.
152
151
  this._defaults = this._gaxGrpc.constructSettings('google.spanner.v1.Spanner', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@google-cloud/spanner",
3
3
  "description": "Cloud Spanner Client Library for Node.js",
4
- "version": "5.17.0",
4
+ "version": "6.1.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc.",
7
7
  "engines": {
8
- "node": ">=10"
8
+ "node": ">=12.0.0"
9
9
  },
10
10
  "repository": "googleapis/nodejs-spanner",
11
11
  "main": "./build/src/index.js",
@@ -53,7 +53,7 @@
53
53
  "@google-cloud/common": "^3.0.0",
54
54
  "@google-cloud/precise-date": "^2.0.0",
55
55
  "@google-cloud/projectify": "^2.0.0",
56
- "@google-cloud/promisify": "^2.0.0",
56
+ "@google-cloud/promisify": "^3.0.0",
57
57
  "@types/big.js": "^6.0.0",
58
58
  "@types/stack-trace": "0.0.29",
59
59
  "arrify": "^2.0.0",
@@ -61,9 +61,9 @@
61
61
  "checkpoint-stream": "^0.1.1",
62
62
  "events-intercept": "^2.0.0",
63
63
  "extend": "^3.0.2",
64
- "google-auth-library": "^7.0.0",
65
- "google-gax": "^2.29.3",
66
- "grpc-gcp": "^0.3.2",
64
+ "google-auth-library": "^8.0.2",
65
+ "google-gax": "^3.0.1",
66
+ "grpc-gcp": "^0.4.0",
67
67
  "is": "^3.2.1",
68
68
  "lodash.snakecase": "^4.1.1",
69
69
  "merge-stream": "^2.0.0",
@@ -96,24 +96,24 @@
96
96
  "dedent": "^0.7.0",
97
97
  "duplexify": "^4.1.1",
98
98
  "execa": "^5.0.0",
99
- "gts": "^2.0.0",
99
+ "gts": "^3.1.0",
100
100
  "jsdoc": "^3.6.2",
101
101
  "jsdoc-fresh": "^1.0.1",
102
102
  "jsdoc-region-tag": "^1.0.2",
103
103
  "linkinator": "^2.0.0",
104
104
  "lodash.random": "^3.2.0",
105
- "mocha": "^8.0.0",
105
+ "mocha": "^9.2.2",
106
106
  "mv": "^2.1.1",
107
107
  "ncp": "^2.0.0",
108
108
  "p-limit": "^3.0.1",
109
109
  "proxyquire": "^2.0.1",
110
- "retry-request": "^4.1.1",
111
- "sinon": "^13.0.0",
110
+ "retry-request": "^5.0.0",
111
+ "sinon": "^14.0.0",
112
112
  "stats-lite": "^2.1.1",
113
- "teeny-request": "^7.0.0",
113
+ "teeny-request": "^8.0.0",
114
114
  "time-span": "^4.0.0",
115
115
  "tmp": "^0.2.0",
116
- "typescript": "^3.8.3",
116
+ "typescript": "^4.6.4",
117
117
  "uuid": "^8.0.0",
118
118
  "yargs": "^16.0.0"
119
119
  }