Skip to content

Commit

Permalink
[App Config] Add ApiVersion in the Options Bag (#31648)
Browse files Browse the repository at this point in the history
### Packages impacted by this PR
@azure/app-configuration
  • Loading branch information
minhanh-phan authored Nov 6, 2024
1 parent 24d7b78 commit 0995dcd
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 12 deletions.
8 changes: 2 additions & 6 deletions sdk/appconfiguration/app-configuration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# Release History

## 1.7.1 (Unreleased)
## 1.8.0 (2024-11-05)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes
- Add `apiVersion` in `AppConfigurationClientOptions` so that customers can specify the API version instead of using the default.

## 1.7.0 (2024-08-06)

Expand Down
2 changes: 1 addition & 1 deletion sdk/appconfiguration/app-configuration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/app-configuration",
"author": "Microsoft Corporation",
"description": "An isomorphic client library for the Azure App Configuration service.",
"version": "1.7.1",
"version": "1.8.0",
"sdk-type": "client",
"keywords": [
"node",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class AppConfigurationClient {

// @public
export interface AppConfigurationClientOptions extends CommonClientOptions {
apiVersion?: string;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class AppConfigurationClient {
this._syncTokens = appConfigOptions.syncTokens || new SyncTokens();
this.client = new AppConfiguration(
appConfigEndpoint,
appConfigurationApiVersion,
options?.apiVersion ?? appConfigurationApiVersion,
internalClientPipelineOptions,
);
this.client.pipeline.addPolicy(authPolicy, { phase: "Sign" });
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/**
* @internal
*/
export const packageVersion = "1.7.1";
export const packageVersion = "1.8.0";

/**
* @internal
Expand Down
8 changes: 7 additions & 1 deletion sdk/appconfiguration/app-configuration/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ import type {
/**
* Provides configuration options for AppConfigurationClient.
*/
export interface AppConfigurationClientOptions extends CommonClientOptions {}
export interface AppConfigurationClientOptions extends CommonClientOptions {
/**
* The API version to use when interacting with the service. The default value is `2023-11-01`.
* Note that overriding this default value may result in unsupported behavior.
*/
apiVersion?: string;
}

/**
* Fields that uniquely identify a configuration setting
Expand Down
2 changes: 1 addition & 1 deletion sdk/appconfiguration/app-configuration/swagger/swagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
```yaml
package-name: app-configuration
package-version: "1.7.1"
package-version: "1.8.0"
title: AppConfiguration
description: App Configuration client
enable-xml: true
Expand Down

0 comments on commit 0995dcd

Please sign in to comment.