-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into mock-env-vars
- Loading branch information
Showing
114 changed files
with
926 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,17 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [2.21.1](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.21.1) (2021-02-11) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **amplify-codegen:** set sourceDir path to correct graphql schema location ([#6512](https://github.com/aws-amplify/amplify-cli/issues/6512)) ([6edf229](https://github.com/aws-amplify/amplify-cli/commit/6edf2298ebbabda57230f9e0b9c6c4f504f8a275)), closes [aws-amplify/amplify-cli#5483](https://github.com/aws-amplify/amplify-cli/issues/5483) [aws-amplify/amplify-cli#5483](https://github.com/aws-amplify/amplify-cli/issues/5483) | ||
|
||
|
||
|
||
|
||
|
||
# [2.21.0](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.21.0) (2021-02-10) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,17 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
## [1.25.2](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@1.25.2) (2021-02-11) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **amplify-appsync-simulator:** expose errors from util.validate ([#6514](https://github.com/aws-amplify/amplify-cli/issues/6514)) ([8273037](https://github.com/aws-amplify/amplify-cli/commit/82730371ed0292e762d45313a7fa8de062c860dd)), closes [#6068](https://github.com/aws-amplify/amplify-cli/issues/6068) | ||
|
||
|
||
|
||
|
||
|
||
## [1.25.1](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@1.25.1) (2021-02-10) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,17 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# [2.20.0](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.20.0) (2021-02-11) | ||
|
||
|
||
### Features | ||
|
||
* dont open urls when CLI is running in CI ([#6503](https://github.com/aws-amplify/amplify-cli/issues/6503)) ([27546a7](https://github.com/aws-amplify/amplify-cli/commit/27546a78159ea95c636dbbd094fe6a4f7fb8f8f4)), closes [#5973](https://github.com/aws-amplify/amplify-cli/issues/5973) | ||
|
||
|
||
|
||
|
||
|
||
## [2.19.5](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.19.5) (2021-02-10) | ||
|
||
**Note:** Version bump only for package amplify-category-analytics | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,22 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# [2.29.0](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.29.0) (2021-02-11) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* sets policy resource name in api update flow ([328abac](https://github.com/aws-amplify/amplify-cli/commit/328abacd81d03dbae8b0c0246536c465a7954c1e)) | ||
|
||
|
||
### Features | ||
|
||
* dont open urls when CLI is running in CI ([#6503](https://github.com/aws-amplify/amplify-cli/issues/6503)) ([27546a7](https://github.com/aws-amplify/amplify-cli/commit/27546a78159ea95c636dbbd094fe6a4f7fb8f8f4)), closes [#5973](https://github.com/aws-amplify/amplify-cli/issues/5973) | ||
|
||
|
||
|
||
|
||
|
||
## [2.28.3](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.28.3) (2021-02-10) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...ests__/provider-utils/awscloudformation/__snapshots__/legacy-update-resource.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`legacy update resource sets policy resource name in paths object before copying template 1`] = ` | ||
Object { | ||
"paths": Array [ | ||
Object { | ||
"name": "/some/{path}/with/{params}", | ||
"policyResourceName": "/some/*/with/*", | ||
}, | ||
Object { | ||
"name": "another/path/without/params", | ||
"policyResourceName": "another/path/without/params", | ||
}, | ||
], | ||
"resourceName": "mockResourceName", | ||
} | ||
`; |
34 changes: 34 additions & 0 deletions
34
...ategory-api/src/__tests__/provider-utils/awscloudformation/legacy-update-resource.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { legacyUpdateResource } from '../../../provider-utils/awscloudformation/legacy-update-resource'; | ||
import { category } from '../../../category-constants'; | ||
|
||
jest.mock('fs-extra'); | ||
|
||
describe('legacy update resource', () => { | ||
const contextStub = { | ||
amplify: { | ||
pathManager: { | ||
getBackendDirPath: jest.fn(_ => 'mock/backend/path'), | ||
}, | ||
updateamplifyMetaAfterResourceUpdate: jest.fn(), | ||
copyBatch: jest.fn(), | ||
}, | ||
}; | ||
|
||
it('sets policy resource name in paths object before copying template', async () => { | ||
const stubWalkthroughPromise: Promise<any> = Promise.resolve({ | ||
answers: { | ||
resourceName: 'mockResourceName', | ||
paths: [ | ||
{ | ||
name: '/some/{path}/with/{params}', | ||
}, | ||
{ | ||
name: 'another/path/without/params', | ||
}, | ||
], | ||
}, | ||
}); | ||
await legacyUpdateResource(stubWalkthroughPromise, contextStub, category, 'API Gateway'); | ||
expect(contextStub.amplify.copyBatch.mock.calls[0][2]).toMatchSnapshot(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,17 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# [2.28.0](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.28.0) (2021-02-11) | ||
|
||
|
||
### Features | ||
|
||
* dont open urls when CLI is running in CI ([#6503](https://github.com/aws-amplify/amplify-cli/issues/6503)) ([27546a7](https://github.com/aws-amplify/amplify-cli/commit/27546a78159ea95c636dbbd094fe6a4f7fb8f8f4)), closes [#5973](https://github.com/aws-amplify/amplify-cli/issues/5973) | ||
|
||
|
||
|
||
|
||
|
||
# [2.27.0](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.27.0) (2021-02-10) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,17 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# [2.29.0](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.29.0) (2021-02-11) | ||
|
||
|
||
### Features | ||
|
||
* dont open urls when CLI is running in CI ([#6503](https://github.com/aws-amplify/amplify-cli/issues/6503)) ([27546a7](https://github.com/aws-amplify/amplify-cli/commit/27546a78159ea95c636dbbd094fe6a4f7fb8f8f4)), closes [#5973](https://github.com/aws-amplify/amplify-cli/issues/5973) | ||
|
||
|
||
|
||
|
||
|
||
## [2.28.5](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.28.5) (2021-02-10) | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,17 @@ | |
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
|
||
# [2.6.0](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.6.0) (2021-02-11) | ||
|
||
|
||
### Features | ||
|
||
* dont open urls when CLI is running in CI ([#6503](https://github.com/aws-amplify/amplify-cli/issues/6503)) ([27546a7](https://github.com/aws-amplify/amplify-cli/commit/27546a78159ea95c636dbbd094fe6a4f7fb8f8f4)), closes [#5973](https://github.com/aws-amplify/amplify-cli/issues/5973) | ||
|
||
|
||
|
||
|
||
|
||
## [2.5.1](https://github.com/aws-amplify/amplify-cli/compare/[email protected]@2.5.1) (2020-11-22) | ||
|
||
**Note:** Version bump only for package amplify-category-hosting | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.