Skip to content

Commit 2d96667

Browse files
authored
Merge pull request #5 from MaintainX/micfer/upstream-0.22
Merge upstream 0.22
2 parents 04070c2 + 2db9e47 commit 2d96667

File tree

7 files changed

+850
-802
lines changed

7 files changed

+850
-802
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## [0.22.0] - 2024-07-30
4+
[0.22.0]: https://github.com/mhassan1/yarn-plugin-aws-codeartifact/compare/v0.21.0...v0.22.0
5+
6+
- Bump `@aws-sdk/*` dependencies
7+
8+
## [0.21.0] - 2024-07-03
9+
[0.21.0]: https://github.com/mhassan1/yarn-plugin-aws-codeartifact/compare/v0.20.0...v0.21.0
10+
11+
- Remove deprecated `decorateDefaultCredentialProvider`
12+
13+
## [0.20.0] - 2024-05-15
14+
[0.20.0]: https://github.com/mhassan1/yarn-plugin-aws-codeartifact/compare/v0.19.0...v0.20.0
15+
16+
- Added: Add support for `yarn create` commands
17+
318
## [0.19.0] - 2024-04-22
419
[0.19.0]: https://github.com/mhassan1/yarn-plugin-aws-codeartifact/compare/v0.18.0...v0.19.0
520

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ For Yarn v2 support, install [v0.7.6](https://github.com/mhassan1/yarn-plugin-aw
1010
## Install
1111

1212
```
13-
yarn plugin import https://raw.githubusercontent.com/mhassan1/yarn-plugin-aws-codeartifact/v0.19.0/bundles/@yarnpkg/plugin-aws-codeartifact.js
13+
yarn plugin import https://raw.githubusercontent.com/mhassan1/yarn-plugin-aws-codeartifact/v0.22.0/bundles/@yarnpkg/plugin-aws-codeartifact.js
1414
```
1515

1616
## Usage

bundles/@yarnpkg/plugin-aws-codeartifact.js

Lines changed: 45 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yarn-plugin-aws-codeartifact",
3-
"version": "0.19.0",
3+
"version": "0.22.0",
44
"description": "Yarn Berry plugin that resolves authentication for AWS CodeArtifact NPM registries",
55
"main": "src/index.ts",
66
"repository": {
@@ -37,10 +37,11 @@
3737
"postversion": "git push && git push --tags"
3838
},
3939
"dependencies": {
40-
"@aws-sdk/client-codeartifact": "^3.489.0",
41-
"@aws-sdk/client-sts": "^3.489.0",
42-
"@aws-sdk/credential-provider-env": "^3.489.0",
43-
"@aws-sdk/credential-provider-node": "^3.489.0",
40+
"@aws-sdk/client-codeartifact": "^3.621.0",
41+
"@aws-sdk/client-sso-oidc": "^3.621.0",
42+
"@aws-sdk/client-sts": "^3.621.0",
43+
"@aws-sdk/credential-provider-env": "^3.620.1",
44+
"@aws-sdk/credential-provider-node": "^3.621.0",
4445
"@aws-sdk/property-provider": "^3.374.0",
4546
"@yarnpkg/builder": "^4.0.0",
4647
"@yarnpkg/cli": "^4.0.0",

src/authHook.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
getScopePluginRegistryConfig
1616
} from './utils'
1717
import { Codeartifact } from '@aws-sdk/client-codeartifact'
18-
import { decorateDefaultCredentialProvider } from '@aws-sdk/client-sts'
1918
import { defaultProvider } from '@aws-sdk/credential-provider-node'
2019
import { fromEnv } from '@aws-sdk/credential-provider-env'
2120
import { chain } from '@aws-sdk/property-provider'
@@ -180,7 +179,7 @@ const getAuthorizationToken = memoizePromise(
180179
'~'
181180
)
182181
} else {
183-
const _defaultProvider = decorateDefaultCredentialProvider(defaultProvider)({
182+
const _defaultProvider = defaultProvider({
184183
// `awsProfile` that is any value (including `null` and `''`) should be provided as-is
185184
// `awsProfile` that is `undefined` should be excluded
186185
...(awsProfile !== undefined ? { profile: awsProfile } : {})

src/registryCommands.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ export const registryCommands: RegistryCommand[] = [
2121
{
2222
positionalArgs: ['add']
2323
},
24+
{
25+
positionalArgs: ['create']
26+
},
2427
{
2528
positionalArgs: ['dedupe']
2629
},

0 commit comments

Comments
 (0)