@azure/container-registry 1.0.0-beta.5 → 1.0.1-alpha.20220128.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 +26 -0
- package/README.md +5 -9
- package/dist/index.js +812 -771
- package/dist/index.js.map +1 -1
- package/dist-esm/src/containerRegistryChallengeHandler.js +1 -1
- package/dist-esm/src/containerRegistryChallengeHandler.js.map +1 -1
- package/dist-esm/src/containerRegistryClient.js +12 -9
- package/dist-esm/src/containerRegistryClient.js.map +1 -1
- package/dist-esm/src/containerRegistryTokenCredential.js +3 -83
- package/dist-esm/src/containerRegistryTokenCredential.js.map +1 -1
- package/dist-esm/src/containerRepository.js +4 -5
- package/dist-esm/src/containerRepository.js.map +1 -1
- package/dist-esm/src/generated/generatedClient.js +3 -2
- package/dist-esm/src/generated/generatedClient.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +7 -2
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js +61 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +514 -557
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/models/parameters.js +87 -7
- package/dist-esm/src/generated/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/operations/authentication.js +27 -7
- package/dist-esm/src/generated/operations/authentication.js.map +1 -1
- package/dist-esm/src/generated/operations/containerRegistry.js +26 -6
- package/dist-esm/src/generated/operations/containerRegistry.js.map +1 -1
- package/dist-esm/src/generated/operations/containerRegistryBlob.js +1 -1
- package/dist-esm/src/generated/operations/containerRegistryBlob.js.map +1 -1
- package/dist-esm/src/generated/operationsInterfaces/authentication.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models.js.map +1 -1
- package/dist-esm/src/registryArtifact.js +6 -6
- package/dist-esm/src/registryArtifact.js.map +1 -1
- package/dist-esm/src/tracing.js +1 -1
- package/dist-esm/src/tracing.js.map +1 -1
- package/dist-esm/src/transformations.js +2 -2
- package/dist-esm/src/transformations.js.map +1 -1
- package/dist-esm/src/utils/base64.browser.js.map +1 -1
- package/dist-esm/src/utils/tokenCycler.js +3 -3
- package/dist-esm/src/utils/tokenCycler.js.map +1 -1
- package/dist-esm/src/utils/wwwAuthenticateParser.js.map +1 -1
- package/package.json +14 -19
- package/types/container-registry.d.ts +30 -29
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 1.0.1 (Unreleased)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
### Bugs Fixed
|
|
10
|
+
|
|
11
|
+
### Other Changes
|
|
12
|
+
|
|
13
|
+
## 1.0.0 (2022-01-11)
|
|
14
|
+
|
|
15
|
+
This release marks the general availability release of Azure Container Registry client SDK library.
|
|
16
|
+
|
|
17
|
+
### Breaking Changes
|
|
18
|
+
|
|
19
|
+
- `TagOrderBy` is renamed to `ArtifactTagOrder`.
|
|
20
|
+
- `ManifestOrderBy` is renamed to `ArtifactManifestOrder`.
|
|
21
|
+
- `size` property in `ArtifactManifestProperties` is renamed to `sizeInBytes`.
|
|
22
|
+
|
|
23
|
+
## 1.0.0-beta.6 (2021-11-09)
|
|
24
|
+
|
|
25
|
+
### Features Added
|
|
26
|
+
|
|
27
|
+
- Support passing service version via client options [PR #18067](https://github.com/Azure/azure-sdk-for-js/pull/18067).
|
|
28
|
+
|
|
3
29
|
## 1.0.0-beta.5 (2021-09-08)
|
|
4
30
|
|
|
5
31
|
### Breaking Changes
|
package/README.md
CHANGED
|
@@ -23,10 +23,11 @@ Key links:
|
|
|
23
23
|
### Currently supported environments
|
|
24
24
|
|
|
25
25
|
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
26
|
-
- Latest versions of Safari, Chrome, Edge, and Firefox.
|
|
27
26
|
|
|
28
27
|
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
29
28
|
|
|
29
|
+
> Note: This package cannot be used in the browser due to service limitations, please refer to [this document][cors] for guidance.
|
|
30
|
+
|
|
30
31
|
### Prerequisites
|
|
31
32
|
|
|
32
33
|
- An [Azure Subscription](https://azure.microsoft.com)
|
|
@@ -48,12 +49,6 @@ Install the Container Registry client library for JavaScript with `npm`:
|
|
|
48
49
|
npm install @azure/container-registry
|
|
49
50
|
```
|
|
50
51
|
|
|
51
|
-
### Browser support
|
|
52
|
-
|
|
53
|
-
#### JavaScript Bundle
|
|
54
|
-
|
|
55
|
-
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
56
|
-
|
|
57
52
|
### Authenticate the client
|
|
58
53
|
|
|
59
54
|
The [Azure Identity library][identity] provides easy Azure Active Directory support for authentication.
|
|
@@ -224,9 +219,9 @@ async function main() {
|
|
|
224
219
|
const repositoryNames = client.listRepositoryNames();
|
|
225
220
|
for await (const repositoryName of repositoryNames) {
|
|
226
221
|
const repository = client.getRepository(repositoryName);
|
|
227
|
-
// Obtain the images ordered from newest to oldest by passing the `
|
|
222
|
+
// Obtain the images ordered from newest to oldest by passing the `order` option
|
|
228
223
|
const imageManifests = repository.listManifestProperties({
|
|
229
|
-
|
|
224
|
+
order: "LastUpdatedOnDescending"
|
|
230
225
|
});
|
|
231
226
|
const imagesToKeep = 3;
|
|
232
227
|
let imageCount = 0;
|
|
@@ -285,6 +280,7 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
285
280
|
[api_docs]: https://docs.microsoft.com/javascript/api/@azure/container-registry
|
|
286
281
|
[rest_docs]: https://docs.microsoft.com/rest/api/containerregistry/
|
|
287
282
|
[product_docs]: https://docs.microsoft.com/azure/container-registry/
|
|
283
|
+
[cors]: https://github.com/Azure/azure-sdk-for-js/blob/main/samples/cors/ts/README.md
|
|
288
284
|
[samples]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/containerregistry/container-registry/samples
|
|
289
285
|
[container_registry_docs]: https://docs.microsoft.com/azure/container-registry/container-registry-intro
|
|
290
286
|
[container_registry_create_ps]: https://docs.microsoft.com/azure/container-registry/container-registry-get-started-powershell
|