@google-analytics/data 4.0.0 → 4.0.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 +8 -0
- package/build/src/v1alpha/alpha_analytics_data_client.d.ts +2 -3
- package/build/src/v1alpha/alpha_analytics_data_client.js +4 -5
- package/build/src/v1beta/beta_analytics_data_client.d.ts +2 -3
- package/build/src/v1beta/beta_analytics_data_client.js +3 -4
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.0.1](https://github.com/googleapis/google-cloud-node/compare/data-v4.0.0...data-v4.0.1) (2023-09-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* [Many APIs] simplify logic for HTTP/1.1 REST fallback option ([#4583](https://github.com/googleapis/google-cloud-node/issues/4583)) ([c3ddba8](https://github.com/googleapis/google-cloud-node/commit/c3ddba8df9fee6185e36a4e99f7c67b0319f1242))
|
|
9
|
+
* **deps:** Update dependency google-auth-library to v9 ([#4560](https://github.com/googleapis/google-cloud-node/issues/4560)) ([e5099b7](https://github.com/googleapis/google-cloud-node/commit/e5099b7a475e0cfaf0d25aa8d6755cd7bc43cbe0))
|
|
10
|
+
|
|
3
11
|
## [4.0.0](https://github.com/googleapis/google-cloud-node/compare/data-v3.3.0...data-v4.0.0) (2023-08-06)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -57,8 +57,7 @@ export declare class AlphaAnalyticsDataClient {
|
|
|
57
57
|
* API remote host.
|
|
58
58
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
59
59
|
* Follows the structure of {@link gapicConfig}.
|
|
60
|
-
* @param {boolean
|
|
61
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
60
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
62
61
|
* For more information, please check the
|
|
63
62
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
64
63
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -66,7 +65,7 @@ export declare class AlphaAnalyticsDataClient {
|
|
|
66
65
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
67
66
|
* ```
|
|
68
67
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
69
|
-
* const client = new AlphaAnalyticsDataClient({fallback:
|
|
68
|
+
* const client = new AlphaAnalyticsDataClient({fallback: true}, gax);
|
|
70
69
|
* ```
|
|
71
70
|
*/
|
|
72
71
|
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
@@ -60,8 +60,7 @@ class AlphaAnalyticsDataClient {
|
|
|
60
60
|
* API remote host.
|
|
61
61
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
62
62
|
* Follows the structure of {@link gapicConfig}.
|
|
63
|
-
* @param {boolean
|
|
64
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
63
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
65
64
|
* For more information, please check the
|
|
66
65
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
67
66
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -69,7 +68,7 @@ class AlphaAnalyticsDataClient {
|
|
|
69
68
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
70
69
|
* ```
|
|
71
70
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
72
|
-
* const client = new AlphaAnalyticsDataClient({fallback:
|
|
71
|
+
* const client = new AlphaAnalyticsDataClient({fallback: true}, gax);
|
|
73
72
|
* ```
|
|
74
73
|
*/
|
|
75
74
|
constructor(opts, gaxInstance) {
|
|
@@ -126,7 +125,7 @@ class AlphaAnalyticsDataClient {
|
|
|
126
125
|
if (!opts.fallback) {
|
|
127
126
|
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
|
|
128
127
|
}
|
|
129
|
-
else
|
|
128
|
+
else {
|
|
130
129
|
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
|
|
131
130
|
}
|
|
132
131
|
if (opts.libName && opts.libVersion) {
|
|
@@ -155,7 +154,7 @@ class AlphaAnalyticsDataClient {
|
|
|
155
154
|
auth: this.auth,
|
|
156
155
|
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
157
156
|
};
|
|
158
|
-
if (opts.fallback
|
|
157
|
+
if (opts.fallback) {
|
|
159
158
|
lroOptions.protoJson = protoFilesRoot;
|
|
160
159
|
lroOptions.httpRules = [];
|
|
161
160
|
}
|
|
@@ -54,8 +54,7 @@ export declare class BetaAnalyticsDataClient {
|
|
|
54
54
|
* API remote host.
|
|
55
55
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
56
56
|
* Follows the structure of {@link gapicConfig}.
|
|
57
|
-
* @param {boolean
|
|
58
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
57
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
59
58
|
* For more information, please check the
|
|
60
59
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
61
60
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -63,7 +62,7 @@ export declare class BetaAnalyticsDataClient {
|
|
|
63
62
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
64
63
|
* ```
|
|
65
64
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
66
|
-
* const client = new BetaAnalyticsDataClient({fallback:
|
|
65
|
+
* const client = new BetaAnalyticsDataClient({fallback: true}, gax);
|
|
67
66
|
* ```
|
|
68
67
|
*/
|
|
69
68
|
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
@@ -60,8 +60,7 @@ class BetaAnalyticsDataClient {
|
|
|
60
60
|
* API remote host.
|
|
61
61
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
62
62
|
* Follows the structure of {@link gapicConfig}.
|
|
63
|
-
* @param {boolean
|
|
64
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
63
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
65
64
|
* For more information, please check the
|
|
66
65
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
67
66
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -69,7 +68,7 @@ class BetaAnalyticsDataClient {
|
|
|
69
68
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
70
69
|
* ```
|
|
71
70
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
72
|
-
* const client = new BetaAnalyticsDataClient({fallback:
|
|
71
|
+
* const client = new BetaAnalyticsDataClient({fallback: true}, gax);
|
|
73
72
|
* ```
|
|
74
73
|
*/
|
|
75
74
|
constructor(opts, gaxInstance) {
|
|
@@ -126,7 +125,7 @@ class BetaAnalyticsDataClient {
|
|
|
126
125
|
if (!opts.fallback) {
|
|
127
126
|
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
|
|
128
127
|
}
|
|
129
|
-
else
|
|
128
|
+
else {
|
|
130
129
|
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
|
|
131
130
|
}
|
|
132
131
|
if (opts.libName && opts.libVersion) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-analytics/data",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Data client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"gapic-tools": "^0.1.8",
|
|
56
56
|
"gts": "^5.0.0",
|
|
57
57
|
"jsdoc": "^4.0.0",
|
|
58
|
-
"jsdoc-fresh": "^
|
|
59
|
-
"jsdoc-region-tag": "^
|
|
58
|
+
"jsdoc-fresh": "^3.0.0",
|
|
59
|
+
"jsdoc-region-tag": "^3.0.0",
|
|
60
60
|
"linkinator": "4.1.2",
|
|
61
61
|
"long": "^5.2.3",
|
|
62
62
|
"mocha": "^9.2.2",
|