@google-cloud/spanner 8.13.0 → 9.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.
- package/README.md +1 -16
- package/build/src/batch-transaction.js +15 -12
- package/build/src/codec.d.ts +18 -30
- package/build/src/codec.js +197 -79
- package/build/src/common.d.ts +14 -0
- package/build/src/common.js +28 -3
- package/build/src/database.d.ts +31 -41
- package/build/src/database.js +147 -315
- package/build/src/helper.d.ts +12 -0
- package/build/src/helper.js +44 -0
- package/build/src/index.d.ts +24 -8
- package/build/src/index.js +303 -147
- package/build/src/instance.d.ts +15 -2
- package/build/src/instance.js +11 -2
- package/build/src/instrument.d.ts +12 -1
- package/build/src/instrument.js +13 -0
- package/build/src/metrics/constants.d.ts +13 -6
- package/build/src/metrics/constants.js +24 -14
- package/build/src/metrics/external-types.d.ts +14 -0
- package/build/src/metrics/interceptor.js +39 -44
- package/build/src/metrics/metrics-tracer-factory.d.ts +25 -14
- package/build/src/metrics/metrics-tracer-factory.js +119 -78
- package/build/src/metrics/metrics-tracer.d.ts +19 -6
- package/build/src/metrics/metrics-tracer.js +147 -55
- package/build/src/metrics/spanner-metrics-exporter.js +4 -0
- package/build/src/metrics/transform.d.ts +3 -4
- package/build/src/metrics/transform.js +16 -10
- package/build/src/multiplexed-session.d.ts +26 -2
- package/build/src/multiplexed-session.js +39 -11
- package/build/src/partial-result-stream.d.ts +26 -33
- package/build/src/partial-result-stream.js +263 -283
- package/build/src/request-stream-coordinator.d.ts +88 -0
- package/build/src/request-stream-coordinator.js +229 -0
- package/build/src/request_id_header.d.ts +6 -4
- package/build/src/request_id_header.js +24 -24
- package/build/src/session-factory.d.ts +62 -60
- package/build/src/session-factory.js +46 -86
- package/build/src/session-pool.d.ts +97 -227
- package/build/src/session-pool.js +74 -547
- package/build/src/session.js +1 -1
- package/build/src/transaction-runner.js +1 -12
- package/build/src/transaction.d.ts +21 -5
- package/build/src/transaction.js +107 -136
- package/package.json +28 -37
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": "
|
|
4
|
+
"version": "9.1.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Google Inc.",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=22"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"docs": "jsdoc -c .jsdoc.js",
|
|
35
35
|
"predocs": "pnpm run compile",
|
|
36
36
|
"lint": "gts check",
|
|
37
|
-
"system-test": "
|
|
38
|
-
"observability-test": "
|
|
39
|
-
"cleanup": "
|
|
40
|
-
"test": "
|
|
37
|
+
"system-test": "node ../../bin/run-test.cjs build/system-test --timeout 1600000",
|
|
38
|
+
"observability-test": "node ../../bin/run-test.cjs --proxyquire-shim build/observability-test --timeout 1600000",
|
|
39
|
+
"cleanup": "node ../../bin/run-test.cjs scripts/cleanup.js --timeout 30000",
|
|
40
|
+
"test": "node ../../bin/run-test.cjs --proxyquire-shim build/test build/test/common build/observability-test",
|
|
41
41
|
"ycsb": "node ./benchmark/ycsb.js run -P ./benchmark/workloada -p table=usertable -p cloudspanner.instance=ycsb-instance -p operationcount=100 -p cloudspanner.database=ycsb",
|
|
42
42
|
"fix": "gts fix",
|
|
43
43
|
"clean": "gts clean",
|
|
@@ -48,48 +48,45 @@
|
|
|
48
48
|
"preobservability-test": "pnpm run compile",
|
|
49
49
|
"benchwrapper": "node bin/benchwrapper.js",
|
|
50
50
|
"precompile": "gts clean",
|
|
51
|
-
"coverage": "
|
|
51
|
+
"coverage": "node ../../bin/run-test.cjs build/test build/test/common && c8 report --check-coverage"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@babel/core": "7.27.7",
|
|
55
55
|
"@babel/helpers": "7.27.6",
|
|
56
56
|
"@babel/traverse": "7.27.7",
|
|
57
|
-
"@google-cloud/common": "^
|
|
58
|
-
"@google-cloud/monitoring": "^
|
|
59
|
-
"@google-cloud/
|
|
60
|
-
"@google-cloud/
|
|
61
|
-
"@google-cloud/
|
|
62
|
-
"@google-cloud/spanner-api": "^0.2.0",
|
|
57
|
+
"@google-cloud/common": "^8.0.0",
|
|
58
|
+
"@google-cloud/monitoring": "^6.0.0",
|
|
59
|
+
"@google-cloud/precise-date": "^6.0.0",
|
|
60
|
+
"@google-cloud/promisify": "^6.0.0",
|
|
61
|
+
"@google-cloud/spanner-api": "^0.4.0",
|
|
63
62
|
"@grpc/grpc-js": "^1.13.2",
|
|
64
63
|
"@grpc/proto-loader": "^0.8.0",
|
|
65
64
|
"@opentelemetry/api": "^1.9.0",
|
|
66
65
|
"@opentelemetry/context-async-hooks": "^2.0.0",
|
|
67
66
|
"@opentelemetry/core": "^2.0.0",
|
|
68
|
-
"@opentelemetry/
|
|
69
|
-
"@opentelemetry/
|
|
67
|
+
"@opentelemetry/resource-detector-gcp": "^0.57.0",
|
|
68
|
+
"@opentelemetry/resources": "^2.11.0",
|
|
69
|
+
"@opentelemetry/sdk-metrics": "^2.11.0",
|
|
70
70
|
"@opentelemetry/semantic-conventions": "^1.30.0",
|
|
71
71
|
"@types/big.js": "^6.2.2",
|
|
72
|
-
"@types/stack-trace": "^0.0.33",
|
|
73
72
|
"big.js": "^7.0.0",
|
|
74
73
|
"duplexify": "^4.1.3",
|
|
75
74
|
"extend": "^3.0.2",
|
|
76
|
-
"google-auth-library": "^
|
|
77
|
-
"google-gax": "
|
|
75
|
+
"google-auth-library": "^11.0.0",
|
|
76
|
+
"google-gax": "^6.0.0",
|
|
78
77
|
"grpc-gcp": "^1.0.1",
|
|
79
78
|
"lodash.snakecase": "^4.1.1",
|
|
80
|
-
"p-queue": "^6.0.2",
|
|
81
79
|
"protobufjs": "^7.4.0",
|
|
82
|
-
"retry-request": "^
|
|
83
|
-
"stack-trace": "0.0.10",
|
|
80
|
+
"retry-request": "^9.0.0",
|
|
84
81
|
"stream-events": "^1.0.5",
|
|
85
|
-
"teeny-request": "^
|
|
82
|
+
"teeny-request": "^11.0.0",
|
|
86
83
|
"through2": "^4.0.2"
|
|
87
84
|
},
|
|
88
85
|
"devDependencies": {
|
|
89
86
|
"@grpc/reflection": "^1.0.4",
|
|
90
|
-
"@opentelemetry/sdk-trace-base": "^2.
|
|
87
|
+
"@opentelemetry/sdk-trace-base": "^2.11.0",
|
|
91
88
|
"@opentelemetry/sdk-trace-node": "^2.0.0",
|
|
92
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "^0.
|
|
89
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "^0.222.0",
|
|
93
90
|
"@types/concat-stream": "^2.0.3",
|
|
94
91
|
"@types/extend": "^3.0.4",
|
|
95
92
|
"@types/is": "^0.0.25",
|
|
@@ -97,7 +94,7 @@
|
|
|
97
94
|
"@types/mocha": "^10.0.10",
|
|
98
95
|
"@types/mv": "^2.1.4",
|
|
99
96
|
"@types/ncp": "^2.0.8",
|
|
100
|
-
"@types/node": "^
|
|
97
|
+
"@types/node": "^22.18.12",
|
|
101
98
|
"@types/proxyquire": "^1.3.31",
|
|
102
99
|
"@types/request": "^2.48.12",
|
|
103
100
|
"@types/sinon": "^21.0.0",
|
|
@@ -109,12 +106,13 @@
|
|
|
109
106
|
"concat-stream": "^2.0.0",
|
|
110
107
|
"dedent": "^1.5.3",
|
|
111
108
|
"execa": "^5.0.0",
|
|
112
|
-
"gapic-tools": "^
|
|
109
|
+
"gapic-tools": "^2.0.0",
|
|
110
|
+
"google-test-utils": "^0.2.0",
|
|
113
111
|
"grpc-health-check": "^2.1.0",
|
|
114
112
|
"gts": "^6.0.2",
|
|
115
113
|
"jsdoc": "^4.0.4",
|
|
116
|
-
"jsdoc-fresh": "^
|
|
117
|
-
"jsdoc-region-tag": "^
|
|
114
|
+
"jsdoc-fresh": "^6.0.0",
|
|
115
|
+
"jsdoc-region-tag": "^5.0.0",
|
|
118
116
|
"lodash.random": "^3.2.0",
|
|
119
117
|
"long": "^5.3.2",
|
|
120
118
|
"mocha": "^11.1.0",
|
|
@@ -122,6 +120,7 @@
|
|
|
122
120
|
"ncp": "^2.0.0",
|
|
123
121
|
"nise": "^6.1.1",
|
|
124
122
|
"p-limit": "^3.0.1",
|
|
123
|
+
"p-queue": "^6.0.2",
|
|
125
124
|
"path-to-regexp": "^8.2.0",
|
|
126
125
|
"proxyquire": "^2.1.3",
|
|
127
126
|
"sinon": "21.0.3",
|
|
@@ -132,17 +131,9 @@
|
|
|
132
131
|
"yargs": "^17.7.2"
|
|
133
132
|
},
|
|
134
133
|
"overrides": {
|
|
135
|
-
"gcp-metadata": "^7.0.1",
|
|
136
134
|
"@sinonjs/fake-timers": "15.2.1",
|
|
137
|
-
"brace-expansion": "5.0.
|
|
135
|
+
"brace-expansion": "5.0.12",
|
|
138
136
|
"@eslint-community/eslint-utils": "<4.10.0"
|
|
139
137
|
},
|
|
140
|
-
"pnpm": {
|
|
141
|
-
"overrides": {
|
|
142
|
-
"gcp-metadata": "^7.0.1",
|
|
143
|
-
"@sinonjs/fake-timers": "15.2.1",
|
|
144
|
-
"@eslint-community/eslint-utils": "<4.10.0"
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
138
|
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/handwritten/spanner"
|
|
148
139
|
}
|