@azure/app-configuration 1.3.2-alpha.20220401.1 → 1.4.0-alpha.20220407.2
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 +11 -7
- package/dist/index.js +153 -374
- package/dist/index.js.map +1 -1
- package/dist-esm/src/appConfigCredential.js +24 -30
- package/dist-esm/src/appConfigCredential.js.map +1 -1
- package/dist-esm/src/appConfigurationClient.js +48 -63
- package/dist-esm/src/appConfigurationClient.js.map +1 -1
- package/dist-esm/src/generated/src/appConfiguration.js +47 -89
- package/dist-esm/src/generated/src/appConfiguration.js.map +1 -1
- package/dist-esm/src/generated/src/index.js +0 -1
- package/dist-esm/src/generated/src/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/index.js +78 -1
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +7 -8
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/internal/helpers.js +33 -18
- package/dist-esm/src/internal/helpers.js.map +1 -1
- package/dist-esm/src/internal/synctokenpolicy.js +9 -18
- package/dist-esm/src/internal/synctokenpolicy.js.map +1 -1
- package/dist-esm/src/internal/tracingHelpers.js +1 -1
- package/dist-esm/src/internal/tracingHelpers.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/test/internal/helpers.spec.js +3 -12
- package/dist-esm/test/internal/helpers.spec.js.map +1 -1
- package/dist-esm/test/internal/http.spec.js +2 -14
- package/dist-esm/test/internal/http.spec.js.map +1 -1
- package/dist-esm/test/internal/node/throttlingRetryPolicy.spec.js +6 -5
- package/dist-esm/test/internal/node/throttlingRetryPolicy.spec.js.map +1 -1
- package/dist-esm/test/internal/tracingHelpers.spec.js.map +1 -1
- package/dist-esm/test/public/auth.spec.js +1 -1
- package/dist-esm/test/public/auth.spec.js.map +1 -1
- package/dist-esm/test/public/etags.spec.js +1 -2
- package/dist-esm/test/public/etags.spec.js.map +1 -1
- package/dist-esm/test/public/index.readonlytests.spec.js +6 -1
- package/dist-esm/test/public/index.readonlytests.spec.js.map +1 -1
- package/dist-esm/test/public/index.spec.js +23 -8
- package/dist-esm/test/public/index.spec.js.map +1 -1
- package/dist-esm/test/public/secretReference.spec.js.map +1 -1
- package/dist-esm/test/public/throwOrNotThrow.spec.js +1 -1
- package/dist-esm/test/public/throwOrNotThrow.spec.js.map +1 -1
- package/dist-esm/test/public/utils/testHelpers.js.map +1 -1
- package/package.json +10 -2
- package/types/app-configuration.d.ts +5 -13
- package/dist-esm/src/generated/src/appConfigurationContext.js +0 -46
- package/dist-esm/src/generated/src/appConfigurationContext.js.map +0 -1
- package/dist-esm/src/policies/throttlingRetryPolicy.js +0 -126
- package/dist-esm/src/policies/throttlingRetryPolicy.js.map +0 -1
- package/dist-esm/test/internal/throttlingRetryPolicyTests.spec.js +0 -145
- package/dist-esm/test/internal/throttlingRetryPolicyTests.spec.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.4.0-beta.1 (Unreleased)
|
|
4
4
|
|
|
5
5
|
### Features Added
|
|
6
6
|
|
|
7
|
+
- Migrated from using `@azure/core-http` to depend on newer version of Core libraries `@azure/core-client` and `@azure/core-rest-pipeline` which bring better maintainability and performance. [#20766](https://github.com/Azure/azure-sdk-for-js/pull/20766). See [Azure Core v1 vs v2](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-rest-pipeline/documentation/core2.md) for more on the difference and benefits of the move.
|
|
8
|
+
- As part of the migration to `@azure/core-client` and `@azure/core-rest-pipeline`,
|
|
9
|
+
through the operation options, the methods such as `AppConfgurationClient#addConfigurationSetting` can take a callback (`onResponse`) to access the HTTP response. See [Change to the \_response property](https://github.com/Azure/autorest.typescript/wiki/%60core-http%60-dependency-migration-to-%60core-client%60-%60core-rest-pipeline%60#change-to-the-_response-property).
|
|
10
|
+
|
|
7
11
|
### Breaking Changes
|
|
8
12
|
|
|
9
13
|
### Bugs Fixed
|
|
@@ -101,8 +105,8 @@ This release marks the general availability of the `@azure/app-configuration` pa
|
|
|
101
105
|
```typescript
|
|
102
106
|
new AppConfigurationClient(connectionString, {
|
|
103
107
|
userAgentOptions: {
|
|
104
|
-
userAgentPrefix: "MyUserAgent"
|
|
105
|
-
}
|
|
108
|
+
userAgentPrefix: "MyUserAgent",
|
|
109
|
+
},
|
|
106
110
|
});
|
|
107
111
|
```
|
|
108
112
|
|
|
@@ -158,11 +162,11 @@ In previous previews:
|
|
|
158
162
|
await client.getConfigurationSetting("MyKey", { label: "MyLabel" });
|
|
159
163
|
await client.addConfigurationSetting("MyKey", {
|
|
160
164
|
label: "MyLabel",
|
|
161
|
-
value: "MyValue"
|
|
165
|
+
value: "MyValue",
|
|
162
166
|
});
|
|
163
167
|
await client.setConfigurationSetting("MyKey", {
|
|
164
168
|
label: "MyLabel",
|
|
165
|
-
value: "MyValue"
|
|
169
|
+
value: "MyValue",
|
|
166
170
|
});
|
|
167
171
|
await client.deleteConfigurationSetting("MyKey", { label: "MyLabel" });
|
|
168
172
|
```
|
|
@@ -175,12 +179,12 @@ await client.getConfigurationSetting({ key: "MyKey", label: "MyLabel" });
|
|
|
175
179
|
await client.addConfigurationSetting({
|
|
176
180
|
key: "MyKey",
|
|
177
181
|
label: "MyLabel",
|
|
178
|
-
value: "MyValue"
|
|
182
|
+
value: "MyValue",
|
|
179
183
|
});
|
|
180
184
|
await client.setConfigurationSetting({
|
|
181
185
|
key: "MyKey",
|
|
182
186
|
label: "MyLabel",
|
|
183
|
-
value: "MyValue"
|
|
187
|
+
value: "MyValue",
|
|
184
188
|
});
|
|
185
189
|
await client.deleteConfigurationSetting({ key: "MyKey", label: "MyLabel" });
|
|
186
190
|
```
|