@google-cloud/service-management
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -64,4 +64,3 @@ "use strict"; | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -74,3 +73,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new ServiceManagerClient({fallback: 'rest'}, gax); | ||
* const client = new ServiceManagerClient({fallback: true}, gax); | ||
* ``` | ||
@@ -133,3 +132,3 @@ */ | ||
} | ||
else if (opts.fallback === 'rest') { | ||
else { | ||
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
@@ -158,3 +157,3 @@ } | ||
}; | ||
if (opts.fallback === 'rest') { | ||
if (opts.fallback) { | ||
lroOptions.protoJson = protoFilesRoot; | ||
@@ -161,0 +160,0 @@ lroOptions.httpRules = [ |
# Changelog | ||
## [2.0.1](https://github.com/googleapis/google-cloud-node/compare/service-management-v2.0.0...service-management-v2.0.1) (2023-09-06) | ||
### Bug Fixes | ||
* [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)) | ||
## [2.0.0](https://github.com/googleapis/google-cloud-node/compare/service-management-v1.2.2...service-management-v2.0.0) (2023-08-06) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-cloud/service-management", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Service management client for Node.js", | ||
@@ -58,4 +58,4 @@ "repository": { | ||
"jsdoc": "^4.0.0", | ||
"jsdoc-fresh": "^2.0.0", | ||
"jsdoc-region-tag": "^2.0.0", | ||
"jsdoc-fresh": "^3.0.0", | ||
"jsdoc-region-tag": "^3.0.0", | ||
"linkinator": "4.1.2", | ||
@@ -62,0 +62,0 @@ "long": "^5.2.3", |
@@ -112,3 +112,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). | ||
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule). | ||
Libraries are compatible with all current _active_ and _maintenance_ versions of | ||
@@ -115,0 +115,0 @@ Node.js. |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
3547267
0
61982