@google-cloud/spanner 7.19.0 → 7.19.1

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 CHANGED
@@ -4,6 +4,13 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
6
6
 
7
+ ## [7.19.1](https://github.com/googleapis/nodejs-spanner/compare/v7.19.0...v7.19.1) (2025-03-13)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * CreateQueryPartition with query params ([91f5afd](https://github.com/googleapis/nodejs-spanner/commit/91f5afda53bd9c46fcd1a1fe33f579b6aed5223a))
13
+
7
14
  ## [7.19.0](https://github.com/googleapis/nodejs-spanner/compare/v7.18.1...v7.19.0) (2025-02-26)
8
15
 
9
16
 
package/README.md CHANGED
@@ -157,6 +157,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-spanner/tre
157
157
  | Numeric-add-column | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-add-column.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/numeric-add-column.js,samples/README.md) |
158
158
  | Numeric-query-parameter | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-query-parameter.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/numeric-query-parameter.js,samples/README.md) |
159
159
  | Numeric-update-data | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/numeric-update-data.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/numeric-update-data.js,samples/README.md) |
160
+ | Observability (Tracing) with OpenTelemetry using OTLP | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/observability-traces-otlp.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/observability-traces-otlp.js,samples/README.md) |
160
161
  | Observability (Tracing) with OpenTelemetry | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/observability-traces.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/observability-traces.js,samples/README.md) |
161
162
  | Adds a column to an existing table in a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-add-column.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-add-column.js,samples/README.md) |
162
163
  | Showcase the rules for case-sensitivity and case folding for a Spanner PostgreSQL database. | [source code](https://github.com/googleapis/nodejs-spanner/blob/main/samples/pg-case-sensitivity.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-spanner&page=editor&open_in_editor=samples/pg-case-sensitivity.js,samples/README.md) |
@@ -101,6 +101,9 @@ export interface Statement {
101
101
  types?: Type | {
102
102
  [param: string]: Value;
103
103
  };
104
+ paramTypes?: {
105
+ [k: string]: google.spanner.v1.Type;
106
+ } | null;
104
107
  }
105
108
  export interface ExecuteSqlRequest extends Statement, RequestOptions {
106
109
  resumeToken?: ResumeToken;
@@ -915,10 +915,11 @@ class Snapshot extends events_1.EventEmitter {
915
915
  * @returns {object}
916
916
  */
917
917
  static encodeParams(request) {
918
+ var _a;
918
919
  const typeMap = request.types || {};
919
- const params = {};
920
- const paramTypes = {};
921
- if (request.params) {
920
+ const params = { fields: ((_a = request.params) === null || _a === void 0 ? void 0 : _a.fields) || {} };
921
+ const paramTypes = request.paramTypes || {};
922
+ if (request.params && !request.params.fields) {
922
923
  const fields = {};
923
924
  Object.keys(request.params).forEach(param => {
924
925
  const value = request.params[param];
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": "7.19.0",
4
+ "version": "7.19.1",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc.",
7
7
  "engines": {
@@ -57,7 +57,7 @@
57
57
  "@google-cloud/common": "^5.0.0",
58
58
  "@google-cloud/precise-date": "^4.0.0",
59
59
  "@google-cloud/projectify": "^4.0.0",
60
- "@google-cloud/promisify": "^4.0.0",
60
+ "@google-cloud/promisify": "4.0.0",
61
61
  "@grpc/proto-loader": "^0.7.0",
62
62
  "@opentelemetry/api": "^1.9.0",
63
63
  "@opentelemetry/core": "^1.27.0",