From 984c0f8548cec80d0e14269757cd49b031403097 Mon Sep 17 00:00:00 2001 From: Zachary Goldberg <117126550+goldbez@users.noreply.github.com> Date: Wed, 16 Nov 2022 10:56:54 -0800 Subject: [PATCH 01/30] fix(cli): fix grammar in pull warning message (#11407) --- .../src/commands/utils/notifyMissingPackages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/amplify-util-uibuilder/src/commands/utils/notifyMissingPackages.ts b/packages/amplify-util-uibuilder/src/commands/utils/notifyMissingPackages.ts index aca6db217ee..bbbffd8a975 100644 --- a/packages/amplify-util-uibuilder/src/commands/utils/notifyMissingPackages.ts +++ b/packages/amplify-util-uibuilder/src/commands/utils/notifyMissingPackages.ts @@ -33,11 +33,11 @@ export const notifyMissingPackages = (context: $TSContext): void => { const packageIsInstalled = Object.keys(packageJson.dependencies).includes(dependency.dependencyName); if (!packageIsInstalled) { printer.warn( - `UIBuilder components required "${dependency.dependencyName}" that is not in your package.json. Run \`npm install "${dependency.dependencyName}@${dependency.supportedSemVerPattern}"\`. ${dependency.reason}`, + `UIBuilder components require "${dependency.dependencyName}" that is not in your package.json. Run \`npm install "${dependency.dependencyName}@${dependency.supportedSemVerPattern}"\`. ${dependency.reason}`, ); } else if (!rangeSubset(packageJson.dependencies[dependency.dependencyName], dependency.supportedSemVerPattern)) { printer.warn( - `UIBuilder components requires version "${dependency.supportedSemVerPattern}" of "${ + `UIBuilder components require version "${dependency.supportedSemVerPattern}" of "${ dependency.dependencyName }". You currently are on version "${packageJson.dependencies[dependency.dependencyName]}". Run \`npm install "${ dependency.dependencyName From 5ebbc72bb2e6a8e72387182747d6b1e7d0f7bccd Mon Sep 17 00:00:00 2001 From: Pavel Lazar <85319655+lazpavel@users.noreply.github.com> Date: Wed, 16 Nov 2022 14:58:12 -0500 Subject: [PATCH 02/30] chore: migrate notifications category to amplify-prompter (#11401) * chore: migrate notifications category to amplify-prompter --- .../package.json | 4 -- .../src/__tests__/apns-cert-config.test.ts | 16 +++-- .../src/__tests__/apns-key-config.test.ts | 25 ++++---- .../src/__tests__/channel-apns.test.ts | 55 +++++++++-------- .../src/__tests__/channel-fcm.test.ts | 61 +++++++++++-------- .../src/apns-cert-config.ts | 22 +++---- .../src/apns-key-config.ts | 38 ++++-------- .../src/channel-apns.ts | 36 ++++------- .../src/channel-email.ts | 49 ++++----------- .../src/channel-fcm.ts | 55 ++++------------- .../src/channel-sms.ts | 21 ++----- .../src/validate-filepath.ts | 9 ++- 12 files changed, 149 insertions(+), 242 deletions(-) diff --git a/packages/amplify-category-notifications/package.json b/packages/amplify-category-notifications/package.json index 517a04b6ad7..5740ff8d5f9 100644 --- a/packages/amplify-category-notifications/package.json +++ b/packages/amplify-category-notifications/package.json @@ -27,14 +27,10 @@ "amplify-prompts": "2.6.0", "chalk": "^4.1.1", "fs-extra": "^8.1.0", - "inquirer": "^7.3.3", "lodash": "^4.17.21", "ora": "^4.0.3", "promise-sequential": "^1.1.1" }, - "devDependencies": { - "mockirer": "^2.0.1" - }, "jest": { "testURL": "http://localhost", "transform": { diff --git a/packages/amplify-category-notifications/src/__tests__/apns-cert-config.test.ts b/packages/amplify-category-notifications/src/__tests__/apns-cert-config.test.ts index a4624ac49ff..3249b5ed4bc 100644 --- a/packages/amplify-category-notifications/src/__tests__/apns-cert-config.test.ts +++ b/packages/amplify-category-notifications/src/__tests__/apns-cert-config.test.ts @@ -1,14 +1,11 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ -/* eslint-disable @typescript-eslint/no-empty-function */ -/* eslint-disable spellcheck/spell-checker */ +import { prompter } from 'amplify-prompts'; import * as apnsCertConfig from '../apns-cert-config'; import * as p12decoder from '../apns-cert-p12decoder'; import { ICertificateInfo } from '../apns-cert-p12decoder'; -const inquirer = require('inquirer'); -const mockirer = require('mockirer'); - jest.mock('../apns-cert-p12decoder'); +jest.mock('amplify-prompts'); +const prompterMock = prompter as jest.Mocked; describe('apns-cert-config', () => { const mockFilePath = 'mock_p12_file_path'; @@ -21,14 +18,15 @@ describe('apns-cert-config', () => { const mockP12DecoderReturn = {}; beforeAll(() => { - mockirer(inquirer, mockAnswers); const p12DecoderMock = p12decoder as jest.Mocked; p12DecoderMock.run.mockReturnValue(mockP12DecoderReturn as unknown as ICertificateInfo); }); - beforeEach(() => {}); - test('p12decoder invoked', async () => { + prompterMock.input + .mockResolvedValueOnce(mockFilePath) + .mockResolvedValueOnce(mockPassword); + const result = await apnsCertConfig.run(undefined); expect(p12decoder.run).toBeCalledWith(mockAnswers); expect(result).toBe(mockP12DecoderReturn); diff --git a/packages/amplify-category-notifications/src/__tests__/apns-key-config.test.ts b/packages/amplify-category-notifications/src/__tests__/apns-key-config.test.ts index 5ab850cf0b4..539df3b55ff 100644 --- a/packages/amplify-category-notifications/src/__tests__/apns-key-config.test.ts +++ b/packages/amplify-category-notifications/src/__tests__/apns-key-config.test.ts @@ -1,37 +1,38 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ -/* eslint-disable @typescript-eslint/no-empty-function */ -/* eslint-disable spellcheck/spell-checker */ +import { prompter } from 'amplify-prompts'; import * as p8decoder from '../apns-cert-p8decoder'; import * as apnsKeyConfig from '../apns-key-config'; -const inquirer = require('inquirer'); -const mockirer = require('mockirer'); - jest.mock('../apns-cert-p8decoder'); +jest.mock('amplify-prompts'); +const prompterMock = prompter as jest.Mocked; + describe('apns-key-config', () => { const mockBundleId = 'mockBundleId'; const mockTeamId = 'mockTeamId'; const mockTokenKeyId = 'mockTokenKeyId'; const mockFilePath = 'mock_p8_file_path'; + const mockP8DecoderReturn = 'mockP8DecoderReturn'; const mockKeyConfig = { BundleId: mockBundleId, TeamId: mockTeamId, TokenKeyId: mockTokenKeyId, - P8FilePath: mockFilePath, + TokenKey: mockP8DecoderReturn, }; - const mockP8DecoderReturn = 'mockP8DecoderReturn'; beforeAll(() => { - mockirer(inquirer, mockKeyConfig); const p8DecoderMock = p8decoder as jest.Mocked; p8DecoderMock.run.mockReturnValue(mockP8DecoderReturn); }); - beforeEach(() => {}); - test('p8decoder invoked', async () => { + prompterMock.input + .mockResolvedValueOnce(mockBundleId) + .mockResolvedValueOnce(mockTeamId) + .mockResolvedValueOnce(mockTokenKeyId) + .mockResolvedValueOnce(mockFilePath); + const result = await apnsKeyConfig.run(undefined); expect(p8decoder.run).toBeCalledWith(mockFilePath); - expect(result).toBe(mockKeyConfig); + expect(result).toMatchObject(mockKeyConfig); }); }); diff --git a/packages/amplify-category-notifications/src/__tests__/channel-apns.test.ts b/packages/amplify-category-notifications/src/__tests__/channel-apns.test.ts index 571fa725cd8..761ebf877d6 100644 --- a/packages/amplify-category-notifications/src/__tests__/channel-apns.test.ts +++ b/packages/amplify-category-notifications/src/__tests__/channel-apns.test.ts @@ -1,10 +1,7 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ -/* eslint-disable jest/no-conditional-expect */ -/* eslint-disable @typescript-eslint/no-empty-function */ -/* eslint-disable spellcheck/spell-checker */ import { $TSAny, $TSContext, AmplifyCategories, AmplifyFault, AmplifySupportedService, IContextPrint, } from 'amplify-cli-core'; +import { prompter } from 'amplify-prompts'; import * as configureKey from '../apns-key-config'; import * as configureCertificate from '../apns-cert-config'; @@ -13,12 +10,11 @@ import { ICertificateInfo } from '../apns-cert-p12decoder'; import { ChannelAction, ChannelConfigDeploymentType, IChannelAPIResponse } from '../channel-types'; import { ChannelType } from '../notifications-backend-cfg-channel-api'; -const inquirer = require('inquirer'); -const mockirer = require('mockirer'); - const channelName = 'APNS'; jest.mock('../apns-key-config'); jest.mock('../apns-cert-config'); +jest.mock('amplify-prompts'); +const prompterMock = prompter as jest.Mocked; class NoErrorThrownError extends Error {} // wrapper to avoid conditional error checks @@ -112,52 +108,59 @@ describe('channel-APNS', () => { configureCertificateMock.run.mockImplementation(async () => mockCertificateConfig as ICertificateInfo); }); - beforeEach(() => {}); - test('configure', async () => { mockChannelOutput.Enabled = true; - mockirer(inquirer, { disableChannel: true }); + prompterMock.yesOrNo + .mockResolvedValueOnce(true); await channelAPNS.configure(mockContext).then(() => { expect(mockPinpointClient.updateApnsChannel).toBeCalled(); }); mockChannelOutput.Enabled = true; - mockirer(inquirer, { disableChannel: false }); + prompterMock.yesOrNo + .mockResolvedValueOnce(false); await channelAPNS.configure(mockContext).then(() => { expect(mockPinpointClient.updateApnsChannel).toBeCalled(); }); mockChannelOutput.Enabled = false; - mockirer(inquirer, { enableChannel: true }); + prompterMock.yesOrNo + .mockResolvedValueOnce(true); + prompterMock.pick + .mockResolvedValueOnce('Certificate'); await channelAPNS.configure(mockContext).then(() => { expect(mockPinpointClient.updateApnsChannel).toBeCalled(); }); }); test('enable', async () => { - mockirer(inquirer, { DefaultAuthenticationMethod: 'Certificate' }); - await channelAPNS.enable(mockContext, 'successMessage').then(data => { - expect(mockPinpointClient.updateApnsChannel).toBeCalled(); - expect(mockPinpointClient.updateApnsSandboxChannel).toBeCalled(); - expect(data).toEqual(mockAPNSChannelResponseData(true, ChannelAction.ENABLE, mockPinpointResponseData.APNSChannelResponse)); - }); + prompterMock.pick + .mockResolvedValueOnce('Certificate'); - mockirer(inquirer, { DefaultAuthenticationMethod: 'Key' }); - await channelAPNS.enable(mockContext, 'successMessage').then(data => { - expect(mockPinpointClient.updateApnsChannel).toBeCalled(); - expect(mockPinpointClient.updateApnsSandboxChannel).toBeCalled(); - expect(data).toEqual(mockAPNSChannelResponseData(true, ChannelAction.ENABLE, mockPinpointResponseData.APNSChannelResponse)); - }); + const disableData = await channelAPNS.enable(mockContext, 'successMessage'); + expect(mockPinpointClient.updateApnsChannel).toBeCalled(); + expect(mockPinpointClient.updateApnsSandboxChannel).toBeCalled(); + expect(disableData).toEqual(mockAPNSChannelResponseData(true, ChannelAction.ENABLE, mockPinpointResponseData.APNSChannelResponse)); + + prompterMock.pick + .mockResolvedValueOnce('Key'); + const enableData = await channelAPNS.enable(mockContext, 'successMessage'); + expect(mockPinpointClient.updateApnsChannel).toBeCalled(); + expect(mockPinpointClient.updateApnsSandboxChannel).toBeCalled(); + expect(enableData).toEqual(mockAPNSChannelResponseData(true, ChannelAction.ENABLE, mockPinpointResponseData.APNSChannelResponse)); }); // eslint-disable-next-line jest/no-focused-tests test('enable unsuccessful', async () => { - mockirer(inquirer, { DefaultAuthenticationMethod: 'Certificate' }); + prompterMock.pick + .mockResolvedValueOnce('Certificate'); + const errCert: AmplifyFault = await getError(async () => channelAPNS.enable(mockContextReject as unknown as $TSContext, 'successMessage')); expect(mockContextReject.exeInfo.pinpointClient.updateApnsChannel).toBeCalled(); expect(errCert?.downstreamException?.message).toContain(mockPinpointResponseErr.message); - mockirer(inquirer, { DefaultAuthenticationMethod: 'Key' }); + prompterMock.pick + .mockResolvedValueOnce('Key'); const errKey: AmplifyFault = await getError(async () => channelAPNS.enable(mockContextReject as unknown as $TSContext, 'successMessage')); expect(mockPinpointClient.updateApnsChannel).toBeCalled(); expect(errKey?.downstreamException?.message).toContain(mockPinpointResponseErr.message); diff --git a/packages/amplify-category-notifications/src/__tests__/channel-fcm.test.ts b/packages/amplify-category-notifications/src/__tests__/channel-fcm.test.ts index 57df93dad20..498a4a5a066 100644 --- a/packages/amplify-category-notifications/src/__tests__/channel-fcm.test.ts +++ b/packages/amplify-category-notifications/src/__tests__/channel-fcm.test.ts @@ -1,25 +1,26 @@ /* eslint-disable spellcheck/spell-checker */ import { - $TSContext, $TSAny, AmplifyCategories, AmplifySupportedService, + $TSContext, $TSAny, AmplifyCategories, AmplifySupportedService, AmplifyFault, } from 'amplify-cli-core'; -import inquirer from 'inquirer'; +import { prompter } from 'amplify-prompts'; import * as channelFCM from '../channel-fcm'; import { ChannelAction, ChannelConfigDeploymentType, IChannelAPIResponse } from '../channel-types'; import { ChannelType } from '../notifications-backend-cfg-channel-api'; -const channelName = 'FCM'; - -const mockInquirer = (answers : $TSAny): $TSAny => { - (inquirer as any).prompt = async (prompts:$TSAny):Promise<$TSAny> => { - [].concat(prompts).forEach(prompt => { - if (!((prompt as unknown as any).name in answers) && typeof (prompt as unknown as any).default !== 'undefined') { - // eslint-disable-next-line no-param-reassign - answers[(prompt as unknown as any).name] = (prompt as unknown as any).default; - } - }); - return answers; - }; +const apiKey = 'ApiKey-abc123'; +jest.mock('amplify-prompts'); +const prompterMock = prompter as jest.Mocked; + +class NoErrorThrownError extends Error {} +const getError = async (call: () => unknown): Promise => { + try { + await call(); + throw new NoErrorThrownError(); + } catch (error: unknown) { + return error as TError; + } }; +const channelName = 'FCM'; const mockPinpointResponseData = (status: boolean, action : ChannelAction): IChannelAPIResponse => ({ action, @@ -48,7 +49,7 @@ const mockContext = (output: $TSAny, client: $TSAny): $TSContext => ({ }, }) as unknown as $TSContext; -const mockContextReject = (output:$TSAny, clientReject:$TSAny):$TSAny => ({ +const mockContextReject = (output: $TSAny, clientReject: $TSAny): $TSAny => ({ exeInfo: { serviceMeta: { output, @@ -84,27 +85,34 @@ describe('channel-FCM', () => { test('configure', async () => { mockChannelEnabledOutput.Enabled = true; - mockInquirer({ disableChannel: true }); + prompterMock.yesOrNo + .mockResolvedValueOnce(true); + prompterMock.input + .mockResolvedValueOnce(apiKey); + const mockContextObj = mockContext(mockChannelEnabledOutput, mockPinpointClient); await channelFCM.configure(mockContextObj).then(() => { expect(mockPinpointClient.updateGcmChannel).toBeCalled(); }); mockChannelEnabledOutput.Enabled = true; - mockInquirer({ disableChannel: false }); + prompterMock.yesOrNo + .mockResolvedValueOnce(false); await channelFCM.configure(mockContext(mockChannelEnabledOutput, mockPinpointClient)).then(() => { expect(mockPinpointClient.updateGcmChannel).toBeCalled(); }); mockChannelEnabledOutput.Enabled = false; - mockInquirer({ enableChannel: true }); + prompterMock.yesOrNo + .mockResolvedValueOnce(true); await channelFCM.configure(mockContext(mockChannelEnabledOutput, mockPinpointClient)).then(() => { expect(mockPinpointClient.updateGcmChannel).toBeCalled(); }); }); test('enable', async () => { - mockInquirer({ ApiKey: 'ApiKey-abc123' }); + prompterMock.input + .mockResolvedValueOnce(apiKey); const mockContextObj = mockContext(mockChannelEnabledOutput, mockPinpointClient); const data = await channelFCM.enable(mockContextObj, 'successMessage'); expect(mockPinpointClient.updateGcmChannel).toBeCalled(); @@ -112,13 +120,14 @@ describe('channel-FCM', () => { }); test('enable with newline', async () => { - mockInquirer({ ApiKey: 'ApiKey-abc123\n' }); + prompterMock.input + .mockResolvedValueOnce(`${apiKey}\n`); const data = await channelFCM.enable(mockContext(mockChannelEnabledOutput, mockPinpointClient), 'successMessage'); expect(mockPinpointClient.updateGcmChannel).toBeCalledWith( { ApplicationId: undefined, GCMChannelRequest: { - ApiKey: 'ApiKey-abc123', + ApiKey: apiKey, Enabled: true, }, }, @@ -127,9 +136,13 @@ describe('channel-FCM', () => { }); test('enable unsuccessful', async () => { - mockInquirer({ ApiKey: 'ApiKey-abc123' }); - await expect(channelFCM.enable(mockContextReject(mockServiceOutput, mockPinpointClientReject), 'successMessage')).rejects.toThrowError('Failed to enable the FCM channel'); - expect(mockPinpointClient.updateGcmChannel).toBeCalled(); + prompterMock.input + .mockResolvedValueOnce(apiKey); + + const context = mockContextReject(mockServiceOutput, mockPinpointClientReject); + const errCert: AmplifyFault = await getError(async () => channelFCM.enable(context as unknown as $TSContext, 'successMessage')); + expect(context.exeInfo.pinpointClient.updateGcmChannel).toBeCalled(); + expect(errCert?.downstreamException?.message).toContain(mockPinpointResponseErr.message); }); test('disable', async () => { diff --git a/packages/amplify-category-notifications/src/apns-cert-config.ts b/packages/amplify-category-notifications/src/apns-cert-config.ts index 7884aa6431c..bceaf698ae3 100644 --- a/packages/amplify-category-notifications/src/apns-cert-config.ts +++ b/packages/amplify-category-notifications/src/apns-cert-config.ts @@ -1,5 +1,5 @@ import { $TSAny } from 'amplify-cli-core'; -import inquirer from 'inquirer'; +import { prompter } from 'amplify-prompts'; import { run as p12decoderRun, ICertificateInfo } from './apns-cert-p12decoder'; import { validateFilePath } from './validate-filepath'; @@ -11,20 +11,12 @@ export const run = async (channelInput: $TSAny): Promise => { return p12decoderRun(channelInput); } - const questions = [ - { - name: 'P12FilePath', - type: 'input', - message: 'The certificate file path (.p12): ', - validate: validateFilePath, - }, - { - name: 'P12FilePassword', - type: 'input', - message: 'The certificate password (if any): ', - }, - ]; + const p12FilePath = await prompter.input('The certificate file path (.p12): ', { validate: validateFilePath }); + const p12FilePassword = await prompter.input('The certificate password (if any): '); + const answers = { + P12FilePath: p12FilePath, + P12FilePassword: p12FilePassword, + }; - const answers = await inquirer.prompt(questions); return p12decoderRun(answers); }; diff --git a/packages/amplify-category-notifications/src/apns-key-config.ts b/packages/amplify-category-notifications/src/apns-key-config.ts index 19f25c2c547..436d1df75d7 100644 --- a/packages/amplify-category-notifications/src/apns-key-config.ts +++ b/packages/amplify-category-notifications/src/apns-key-config.ts @@ -1,5 +1,5 @@ import { $TSAny } from 'amplify-cli-core'; -import inquirer from 'inquirer'; +import { prompter } from 'amplify-prompts'; import { validateFilePath } from './validate-filepath'; import { run as p8decoderRun } from './apns-cert-p8decoder'; /** @@ -7,33 +7,21 @@ import { run as p8decoderRun } from './apns-cert-p8decoder'; */ export const run = async (channelInput: $TSAny) : Promise<$TSAny> => { let keyConfig; + if (channelInput) { keyConfig = channelInput; } else { - const questions = [ - { - name: 'BundleId', - type: 'input', - message: 'The bundle id used for APNs Tokens: ', - }, - { - name: 'TeamId', - type: 'input', - message: 'The team id used for APNs Tokens: ', - }, - { - name: 'TokenKeyId', - type: 'input', - message: 'The key id used for APNs Tokens: ', - }, - { - name: 'P8FilePath', - type: 'input', - message: 'The key file path (.p8): ', - validate: validateFilePath, - }, - ]; - keyConfig = await inquirer.prompt(questions); + const bundleId = await prompter.input('The bundle id used for APNs Tokens: '); + const teamId = await prompter.input('The team id used for APNs Tokens: '); + const tokenKeyId = await prompter.input('The key id used for APNs Tokens: '); + const p8FilePath = await prompter.input('The key file path (.p8): ', { validate: validateFilePath }); + + keyConfig = { + BundleId: bundleId, + TeamId: teamId, + TokenKeyId: tokenKeyId, + P8FilePath: p8FilePath, + }; } keyConfig.TokenKey = p8decoderRun(keyConfig.P8FilePath); diff --git a/packages/amplify-category-notifications/src/channel-apns.ts b/packages/amplify-category-notifications/src/channel-apns.ts index 8771fcce273..e33ace655e8 100644 --- a/packages/amplify-category-notifications/src/channel-apns.ts +++ b/packages/amplify-category-notifications/src/channel-apns.ts @@ -1,13 +1,11 @@ /* eslint-disable no-param-reassign */ -/* eslint-disable spellcheck/spell-checker */ -import inquirer, { QuestionCollection } from 'inquirer'; import ora from 'ora'; import fs from 'fs-extra'; import { $TSAny, $TSContext, AmplifyFault, } from 'amplify-cli-core'; -import { printer } from 'amplify-prompts'; +import { byValue, printer, prompter } from 'amplify-prompts'; import * as configureKey from './apns-key-config'; import * as configureCertificate from './apns-cert-config'; import { ChannelAction, IChannelAPIResponse, ChannelConfigDeploymentType } from './channel-types'; @@ -26,26 +24,16 @@ export const configure = async (context: $TSContext): Promise = { - name: 'DefaultAuthenticationMethod', - type: 'list', - message: 'Choose authentication method used for APNs', - choices: ['Certificate', 'Key'], - default: channelOutput.DefaultAuthenticationMethod || 'Certificate', + const authMethod = await prompter.pick( + 'Select the authentication method for the APNS channel', + ['Certificate', 'Key'], + { initial: byValue(channelOutput.DefaultAuthenticationMethod || 'Certificate') }, + ); + answers = { + DefaultAuthenticationMethod: authMethod, }; - answers = await inquirer.prompt(question); } if (answers.DefaultAuthenticationMethod === 'Key') { diff --git a/packages/amplify-category-notifications/src/channel-email.ts b/packages/amplify-category-notifications/src/channel-email.ts index a08a0023cfc..930a780b6b7 100644 --- a/packages/amplify-category-notifications/src/channel-email.ts +++ b/packages/amplify-category-notifications/src/channel-email.ts @@ -1,10 +1,9 @@ import { $TSAny, $TSContext, AmplifyError, AmplifyFault, } from 'amplify-cli-core'; -import { printer } from 'amplify-prompts'; +import { printer, prompter } from 'amplify-prompts'; /* eslint-disable @typescript-eslint/explicit-function-return-type */ -import inquirer from 'inquirer'; import ora from 'ora'; import { ChannelAction, ChannelConfigDeploymentType } from './channel-types'; import { buildPinpointChannelResponseSuccess } from './pinpoint-helper'; @@ -22,26 +21,16 @@ export const configure = async (context: $TSContext):Promise => { if (isChannelEnabled) { printer.info(`The ${channelName} channel is currently enabled`); - const answer = await inquirer.prompt({ - name: 'disableChannel', - type: 'confirm', - message: `Do you want to disable the ${channelName} channel`, - default: false, - }); - if (answer.disableChannel) { + const disableChannel = await prompter.yesOrNo(`Do you want to disable the ${channelName} channel`, false); + if (disableChannel) { await disable(context); } else { const successMessage = `The ${channelName} channel has been successfully updated.`; await enable(context, successMessage); } } else { - const answer = await inquirer.prompt({ - name: 'enableChannel', - type: 'confirm', - message: `Do you want to enable the ${channelName} channel`, - default: true, - }); - if (answer.enableChannel) { + const enableChannel = await prompter.yesOrNo(`Do you want to enable the ${channelName} channel`, true); + if (enableChannel) { await enable(context, undefined); } } @@ -57,31 +46,15 @@ export const enable = async (context:$TSContext, successMessage: string|undefine if (context.exeInfo.pinpointInputParams?.[channelName]) { answers = validateInputParams(context.exeInfo.pinpointInputParams[channelName]); } else { - let channelOutput:$TSAny = {}; + let channelOutput: $TSAny = {}; if (context.exeInfo.serviceMeta.output[channelName]) { channelOutput = context.exeInfo.serviceMeta.output[channelName]; } - const questions = [ - { - name: 'FromAddress', - type: 'input', - message: "The 'From' Email address used to send emails", - default: channelOutput.FromAddress, - }, - { - name: 'Identity', - type: 'input', - message: 'The ARN of an identity verified with SES', - default: channelOutput.Identity, - }, - { - name: 'RoleArn', - type: 'input', - message: "The ARN of an IAM Role used to submit events to Mobile notifications' event ingestion service", - default: channelOutput.RoleArn, - }, - ]; - answers = await inquirer.prompt(questions); + answers = { + FromAddress: await prompter.input(`The 'From' Email address used to send emails`, { initial: channelOutput.FromAddress }), + Identity: await prompter.input('The ARN of an identity verified with SES', { initial: channelOutput.Identity }), + RoleArn: await prompter.input(`The ARN of an IAM Role used to submit events to Mobile notifications' event ingestion service`, { initial: channelOutput.RoleArn }), + }; } const params = { diff --git a/packages/amplify-category-notifications/src/channel-fcm.ts b/packages/amplify-category-notifications/src/channel-fcm.ts index c613d92e423..a551d73fd79 100644 --- a/packages/amplify-category-notifications/src/channel-fcm.ts +++ b/packages/amplify-category-notifications/src/channel-fcm.ts @@ -1,8 +1,7 @@ import { $TSAny, $TSContext, AmplifyError, AmplifyFault, } from 'amplify-cli-core'; -import { printer } from 'amplify-prompts'; -import inquirer from 'inquirer'; +import { printer, prompter } from 'amplify-prompts'; import ora from 'ora'; import { ChannelAction, ChannelConfigDeploymentType, IChannelAPIResponse } from './channel-types'; import { buildPinpointChannelResponseSuccess } from './pinpoint-helper'; @@ -20,26 +19,16 @@ export const configure = async (context: $TSContext): Promise => { if (isChannelEnabled) { printer.info(`The ${channelName} channel is currently enabled`); - const answer = await inquirer.prompt({ - name: 'disableChannel', - type: 'confirm', - message: `Do you want to disable the ${channelName} channel`, - default: false, - }); - if (answer.disableChannel) { + const disableChannel = await prompter.yesOrNo(`Do you want to disable the ${channelName} channel`, false); + if (disableChannel) { await disable(context); } else { const successMessage = `The ${channelName} channel has been successfully updated.`; await enable(context, successMessage); } } else { - const answer = await inquirer.prompt({ - name: 'enableChannel', - type: 'confirm', - message: `Do you want to enable the ${channelName} channel`, - default: true, - }); - if (answer.enableChannel) { + const enableChannel = await prompter.yesOrNo(`Do you want to enable the ${channelName} channel`, true); + if (enableChannel) { await enable(context, undefined); } } @@ -59,15 +48,9 @@ export const enable = async (context: $TSContext, successMessage: string | undef if (context.exeInfo.serviceMeta.output[channelName]) { channelOutput = context.exeInfo.serviceMeta.output[channelName]; } - const questions = [ - { - name: 'ApiKey', - type: 'input', - message: 'ApiKey', - default: channelOutput.ApiKey, - }, - ]; - answers = trimAnswers(await inquirer.prompt(questions)); + answers = { + ApiKey: await prompter.input('ApiKey', { initial: channelOutput.ApiKey, transform: input => input.trim() }), + }; } const params = { @@ -121,15 +104,9 @@ export const disable = async (context: $TSContext): Promise<$TSAny> => { if (context.exeInfo.serviceMeta.output[channelName]) { channelOutput = context.exeInfo.serviceMeta.output[channelName]; } - const questions = [ - { - name: 'ApiKey', - type: 'input', - message: 'ApiKey', - default: channelOutput.ApiKey, - }, - ]; - answers = trimAnswers(await inquirer.prompt(questions)); + answers = { + ApiKey: await prompter.input('ApiKey', { initial: channelOutput.ApiKey, transform: input => input.trim() }), + }; } const params = { @@ -183,13 +160,3 @@ export const pull = async (context: $TSContext, pinpointApp: $TSAny):Promise<$TS return undefined; } }; - -const trimAnswers = (answers: Record): Record => { - for (const [key, value] of Object.entries(answers)) { - if (typeof answers[key] === 'string') { - // eslint-disable-next-line no-param-reassign - answers[key] = value.trim(); - } - } - return answers; -}; diff --git a/packages/amplify-category-notifications/src/channel-sms.ts b/packages/amplify-category-notifications/src/channel-sms.ts index de108b51402..2b23db7adb5 100644 --- a/packages/amplify-category-notifications/src/channel-sms.ts +++ b/packages/amplify-category-notifications/src/channel-sms.ts @@ -1,7 +1,6 @@ import { $TSAny, $TSContext, AmplifyFault } from 'amplify-cli-core'; -import inquirer from 'inquirer'; import ora from 'ora'; -import { printer } from 'amplify-prompts'; +import { printer, prompter } from 'amplify-prompts'; import { ChannelAction, ChannelConfigDeploymentType } from './channel-types'; import { buildPinpointChannelResponseSuccess } from './pinpoint-helper'; @@ -18,23 +17,13 @@ export const configure = async (context : $TSContext):Promise => { if (isChannelEnabled) { printer.info(`The ${channelName} channel is currently enabled`); - const answer = await inquirer.prompt({ - name: 'disableChannel', - type: 'confirm', - message: `Do you want to disable the ${channelName} channel`, - default: false, - }); - if (answer.disableChannel) { + const disableChannel = await prompter.yesOrNo(`Do you want to disable the ${channelName} channel`, false); + if (disableChannel) { await disable(context); } } else { - const answer = await inquirer.prompt({ - name: 'enableChannel', - type: 'confirm', - message: `Do you want to enable the ${channelName} channel`, - default: true, - }); - if (answer.enableChannel) { + const enableChannel = await prompter.yesOrNo(`Do you want to enable the ${channelName} channel`, true); + if (enableChannel) { await enable(context); } } diff --git a/packages/amplify-category-notifications/src/validate-filepath.ts b/packages/amplify-category-notifications/src/validate-filepath.ts index 1e817f6645e..c4c5974bd5b 100644 --- a/packages/amplify-category-notifications/src/validate-filepath.ts +++ b/packages/amplify-category-notifications/src/validate-filepath.ts @@ -5,10 +5,9 @@ import * as fs from 'fs-extra'; * @param filePath - path to file * @returns true on success */ -export const validateFilePath = (filePath: string): boolean|string => { - let result = false; - if (filePath) { - result = fs.existsSync(filePath); +export const validateFilePath = (filePath: string): string | true => { + if (filePath && fs.existsSync(filePath)) { + return true; } - return result || 'file path must be valid'; + return 'file path must be valid'; }; From e01894e5b3ed71163e647ada63515d8de8aa3d92 Mon Sep 17 00:00:00 2001 From: Danielle Adams <6271256+danielleadams@users.noreply.github.com> Date: Wed, 16 Nov 2022 18:58:42 -0500 Subject: [PATCH 03/30] fix: suppress errors when browser launch fails (#11406) * fix: catch failure to launch browser and redirect to use login key * chore: replace ora with amplify spinner from prompts module * test: add unit test to detect that spinner starts and stops with launch error * chore: change sync promise to sync try/catch, add info log with login url to catch * fix: change wording in message --- .../src/__tests__/admin-login.test.ts | 54 +++++++++++++++++++ .../src/admin-login.ts | 21 +++++--- 2 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 packages/amplify-provider-awscloudformation/src/__tests__/admin-login.test.ts diff --git a/packages/amplify-provider-awscloudformation/src/__tests__/admin-login.test.ts b/packages/amplify-provider-awscloudformation/src/__tests__/admin-login.test.ts new file mode 100644 index 00000000000..5cbc3527872 --- /dev/null +++ b/packages/amplify-provider-awscloudformation/src/__tests__/admin-login.test.ts @@ -0,0 +1,54 @@ +import { $TSContext } from 'amplify-cli-core'; +import { adminLoginFlow } from '../admin-login'; +import { AmplifySpinner } from 'amplify-prompts'; + +jest.mock('amplify-cli-core', () => { + return { + open: jest.fn().mockReturnValue(Promise.reject('some spawn error')), + } +}); + +jest.mock('../utils/admin-login-server', () => { + return { + AdminLoginServer: jest.fn().mockReturnValue({ + startServer: jest.fn().mockImplementation((callback) => { + callback(); + }), + shutdown: jest.fn(), + }) + } +}); + +describe('adminLoginFlow', () => { + let contextStub: $TSContext; + + beforeEach(() => { + jest.clearAllMocks(); + + contextStub = ({ + amplify: { + getEnvInfo: () => { + return { + envName: 'dev' + } + } + }, + } as unknown) as $TSContext; + }); + + it('catches errors when fails to launch browser', async () => { + const appId = 'appid'; + const region = 'us-east-2'; + + const spinnerStartMock = jest.spyOn(AmplifySpinner.prototype, 'start'); + const spinnerStopMock = jest.spyOn(AmplifySpinner.prototype, 'stop'); + + await adminLoginFlow(contextStub, appId, undefined, region); + + expect(spinnerStartMock).toBeCalledTimes(1); + expect(spinnerStartMock).toBeCalledWith('Manually enter your CLI login key:\n'); + + expect(spinnerStopMock).toBeCalledTimes(1); + expect(spinnerStopMock).toBeCalledWith("Successfully received Amplify Studio tokens."); + }); +}); diff --git a/packages/amplify-provider-awscloudformation/src/admin-login.ts b/packages/amplify-provider-awscloudformation/src/admin-login.ts index de6fe2a5448..cb62b0d1301 100644 --- a/packages/amplify-provider-awscloudformation/src/admin-login.ts +++ b/packages/amplify-provider-awscloudformation/src/admin-login.ts @@ -1,11 +1,10 @@ -import ora from 'ora'; import util from 'util'; import readline from 'readline'; import { Writable } from 'stream'; import { $TSContext, AmplifyError, AMPLIFY_DOCS_URL, open, } from 'amplify-cli-core'; -import { printer } from 'amplify-prompts'; +import { printer, AmplifySpinner } from 'amplify-prompts'; import { adminVerifyUrl, adminBackendMap, isAmplifyAdminApp } from './utils/admin-helpers'; // eslint-disable-line import { AdminLoginServer } from './utils/admin-login-server'; import { AdminAuthPayload } from './utils/auth-types'; @@ -27,11 +26,16 @@ export const adminLoginFlow = async (context: $TSContext, appId: string, envName } const url = adminVerifyUrl(appId, envName, region); - printer.info(`Opening link: ${url}`); - await open(url, { wait: false }).catch(e => { - printer.error(`Failed to open web browser: ${e?.message || e}`); - }); - const spinner = ora('Confirm login in the browser or manually paste in your CLI login key:\n').start(); + const spinner = new AmplifySpinner(); + + try { + await open(url, { wait: false }); + printer.info(`Opening link: ${url}`); + spinner.start('Confirm login in the browser or manually paste in your CLI login key:\n'); + } catch(_) { + printer.info(`Could not open ${url} in the current environment`) + spinner.start('Manually enter your CLI login key:\n'); + } try { // spawn express server locally to get credentials @@ -122,7 +126,8 @@ export const adminLoginFlow = async (context: $TSContext, appId: string, envName cancelGetTokenViaServer(); cancelGetTokenViaPrompt(); }); - spinner.succeed('Successfully received Amplify Studio tokens.'); + + spinner.stop('Successfully received Amplify Studio tokens.'); } catch (e) { spinner.stop(); printer.error(`Failed to authenticate with Amplify Studio: ${e?.message || e}`); From 1a133377ea9d9deb05827457f35c0e9b6092477b Mon Sep 17 00:00:00 2001 From: awsluja <110861985+awsluja@users.noreply.github.com> Date: Wed, 16 Nov 2022 18:17:36 -0800 Subject: [PATCH 04/30] chore: updated pagination to ensure account selection (#11418) --- packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts b/packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts index c52f0fb2546..04783eb1709 100644 --- a/packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts +++ b/packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts @@ -624,7 +624,14 @@ const getAccountsToCleanup = async (): Promise => { }); try { const orgAccounts = await orgApi.listAccounts().promise(); - const accountCredentialPromises = orgAccounts.Accounts.map(async account => { + const allAccounts = orgAccounts.Accounts; + let nextToken = orgAccounts.NextToken; + while(nextToken){ + const nextPage = await orgApi.listAccounts({"NextToken": nextToken }).promise(); + allAccounts.push(...nextPage.Accounts); + nextToken = nextPage.NextToken; + } + const accountCredentialPromises = allAccounts.map(async account => { if (account.Id === parentAccountIdentity.Account) { return { accessKeyId: process.env.AWS_ACCESS_KEY_ID, From 5c4104686a1e2ac96a25c02ffec40f34cea70769 Mon Sep 17 00:00:00 2001 From: awsluja <110861985+awsluja@users.noreply.github.com> Date: Wed, 16 Nov 2022 19:57:58 -0800 Subject: [PATCH 05/30] fix: add human readable names to artifact files (#11420) --- .../amplify-e2e-core/src/nexpect-reporter.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/amplify-e2e-core/src/nexpect-reporter.js b/packages/amplify-e2e-core/src/nexpect-reporter.js index 3391e9f2b04..4ce3366afee 100644 --- a/packages/amplify-e2e-core/src/nexpect-reporter.js +++ b/packages/amplify-e2e-core/src/nexpect-reporter.js @@ -64,15 +64,28 @@ class AmplifyCLIExecutionReporter { fs.ensureDirSync(publicPath); const processedResults = results.testResults.map(result => { + // result is Array of TestResult: https://github.com/facebook/jest/blob/ac57282299c383320845fb9a026719de7ed3ee5e/packages/jest-test-result/src/types.ts#L90 const resultCopy = { ...result }; delete resultCopy.CLITestRunner; return { ...resultCopy, + // each test result has an array of 'AssertionResult' testResults: result.testResults.map(r => { const recordings = mergeCliLog(r, result.CLITestRunner.logs.children, r.ancestorTitles); - const recordingWithPath = recordings.map(r => { - const castFile = `${uuid()}.cast`; + const recordingWithPath = recordings.map((r, index) => { + // the first command is always 'amplify', but r.cmd is the full path to the cli.. so this is more readable + const commandAndParams = ['amplify']; + if(r.params){ + commandAndParams.push(...r.params); + } + let sanitizedSections = []; + for(let section of commandAndParams){ + // this ensures only alphanumeric values are in the file name + sanitizedSections.push(section.replace(/[^a-z0-9]/gi, '_').toLowerCase()); + } + const suffix = sanitizedSections.join('_'); + const castFile = `${new Date().getTime()}_${index}_${suffix}.cast`; const castFilePath = path.join(publicPath, castFile); fs.writeFileSync(castFilePath, r.recording); const rCopy = { ...r }; From 6ec60136922b2b9e2e1b68ef83574b0431330b9d Mon Sep 17 00:00:00 2001 From: josef Date: Thu, 17 Nov 2022 07:20:50 -0800 Subject: [PATCH 06/30] chore(e2e): add babel project tests (#11054) * chore(e2e): add babel project tests * chore(e2e): add e2e-core as a devDependency * chore(e2e): improve test description * chore: hardcoded workspace package version * chore(amplify-e2e-tests): move initProject to beforeAll, add assertion --- .../src/__tests__/with-babel-config.test.ts | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 packages/amplify-e2e-tests/src/__tests__/with-babel-config.test.ts diff --git a/packages/amplify-e2e-tests/src/__tests__/with-babel-config.test.ts b/packages/amplify-e2e-tests/src/__tests__/with-babel-config.test.ts new file mode 100644 index 00000000000..4800356b0bd --- /dev/null +++ b/packages/amplify-e2e-tests/src/__tests__/with-babel-config.test.ts @@ -0,0 +1,61 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import { spawnSync } from 'child_process'; +import { + initJSProjectWithProfile, + createNewProjectDir, + deleteProject, + deleteProjectDir, + nspawn as spawn, + getCLIPath, +} from '@aws-amplify/amplify-e2e-core'; + +describe('project with babel config', () => { + let projectRoot: string; + let packageJsonPath: string; + let babelConfigPath: string; + const projName = 'withBabelConfig'; + const envName = 'dev'; + + beforeAll(async () => { + projectRoot = await createNewProjectDir(projName); + packageJsonPath = path.join(projectRoot, 'package.json'); + babelConfigPath = path.join(projectRoot, 'babel.config.json'); + + // write package.json + const packageJson = { + name: projName, + version: '0.1.0', + private: true, + devDependencies: { + '@babel/core': '^7.19.1', + }, + }; + fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2)); + + // write babel config + const babelConfig = { + presets: ['es2015'], + }; + fs.writeFileSync(babelConfigPath, JSON.stringify(babelConfig, null, 2)); + + // install babel dependencies + spawnSync('npm', ['install'], { cwd: projectRoot }); + + // init project + await initJSProjectWithProfile(projectRoot, { name: projName, envName }); + }); + + afterAll(async () => { + await deleteProject(projectRoot); + deleteProjectDir(projectRoot); + }); + + /** + * This test is to ensure the CLI is able to read aws-exports.js when a babel config file is present + * @see {module:@aws-amplify/amplify-frontend-javascript/lib/frontend-config-creator.js:getCurrentAWSExports} + */ + it('should be able to checkout env (reads aws-exports)', async () => { + expect(() => spawn(getCLIPath(), ['env', 'checkout', envName], { cwd: projectRoot, stripColors: true })).not.toThrow(); + }); +}); From 0c05c631a49930d642e7e182ad699e4bf077b068 Mon Sep 17 00:00:00 2001 From: Danielle Adams <6271256+danielleadams@users.noreply.github.com> Date: Thu, 17 Nov 2022 10:21:23 -0500 Subject: [PATCH 07/30] docs: add recommendation of pull request breakdown to contributing guides (#11412) --- CONTRIBUTING.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a45160b30f9..b528fa627ae 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -102,7 +102,7 @@ and print out errors that need manual attention. Pull requests are welcome! -You should open an issue to discuss your pull request, unless it's a trivial change. It's best to ensure that your proposed change would be accepted so that you don't waste your own time. If you would like to implement support for a significant feature that is not yet available, please talk to us beforehand to avoid any duplication of effort. +You should open an issue to discuss your pull request, unless it's a trivial change. It's best to ensure that your proposed change would be accepted so that you don't waste your own time. If you would like to implement support for a significant feature that is not yet available, please talk to us beforehand to avoid any duplication of effort. Additionally, please be mindful of the length of the pull request - if your change requires more than 12 file changes, consider breaking the change down into smaller, non-dependent changes. This includes any changes that may be added as a result of the linter. Pull requests should be opened against **_dev_**. @@ -135,7 +135,6 @@ When filing a bug, please try to be as detailed as possible. In addition to the - Any modifications you've made relevant to the bug - Anything unusual about your environment or deployment - Guidelines for bug reports: - Check to see if a [duplicate or closed issue](https://github.com/aws-amplify/amplify-cli/issues?q=is%3Aissue+) already exists! @@ -144,10 +143,8 @@ Guidelines for bug reports: - Format any code snippets using [Markdown](https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks) syntax - If you're not using the latest version of the CLI, see if the issue still persists after upgrading - this helps to isolate regressions! - Finally, thank you for taking the time to read this, and taking the time to write a good bug report. - ## Commits Commit messages should follow the [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/#summary) specification. For example: @@ -165,6 +162,7 @@ Valid commit types are as follows: - `refactor` - `style` - `test` + ### Git Hooks You will notice the extra actions carried out when you run the `git commit` or `git push` commands on this monorepo, that's because the following git hooks are configured using [husky](https://github.com/typicode/husky/tree/main) (you can see them in the root [package.json](https://github.com/aws-amplify/amplify-cli/blob/f2ac2b27b6b0dbf0c52edbc696c35b71f539c944/package.json#L61) file): @@ -192,6 +190,7 @@ The "pre-commit" hook runs the [verify-commit](https://github.com/aws-amplify/am #### "pre-push" hook: The "pre-push" hook will build test files and run the `split-e2e-tests` script to ensure the correct configuration file is generated for our CICD workflow. + ## Tests Please ensure that your change still passes unit tests, and ideally integration/UI tests. It's OK if you're still working on tests at the time that you submit, but be prepared to be asked about them. Wherever possible, pull requests should contain tests as appropriate. Bugfixes should contain tests that exercise the corrected behavior (i.e., the test should fail without the bugfix and pass with it), and new features should be accompanied by tests exercising the feature. From 72f67c4a7c9b7acd9dec3cb2396813af6ef39e81 Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Thu, 17 Nov 2022 17:49:53 +0000 Subject: [PATCH 08/30] chore(release): Publish latest [ci skip] - amplify-app@4.3.5 - @aws-amplify/amplify-appsync-simulator@2.8.0 - amplify-category-analytics@4.2.1 - @aws-amplify/amplify-category-auth@2.13.1 - @aws-amplify/amplify-category-custom@2.5.5 - amplify-category-function@4.2.1 - amplify-category-geo@2.10.0 - amplify-category-hosting@3.4.5 - amplify-category-interactions@4.1.5 - amplify-category-notifications@2.21.1 - amplify-category-predictions@4.2.1 - @aws-amplify/amplify-category-storage@3.6.1 - amplify-category-xr@3.3.5 - amplify-cli-core@3.4.0 - @aws-amplify/cli-extensibility-helper@2.4.5 - @aws-amplify/cli@10.5.0 - @aws-amplify/cli-internal@10.5.0 - amplify-console-hosting@2.3.5 - @aws-amplify/amplify-console-integration-tests@2.6.0 - amplify-container-hosting@2.5.6 - amplify-dotnet-function-template-provider@2.3.5 - amplify-dynamodb-simulator@2.5.1 - @aws-amplify/amplify-e2e-core@4.5.0 - amplify-e2e-tests@3.15.0 - @aws-amplify/amplify-environment-parameters@1.2.1 - amplify-frontend-ios@3.5.5 - amplify-frontend-javascript@3.7.1 - amplify-go-function-runtime-provider@2.3.5 - @aws-amplify/amplify-graphiql-explorer@2.5.1 - amplify-graphql-migration-tests@2.3.4 - amplify-headless-interface@1.16.0 - amplify-java-function-runtime-provider@2.3.5 - @aws-amplify/amplify-migration-tests@5.2.1 - amplify-nodejs-function-runtime-provider@2.3.5 - amplify-nodejs-function-template-provider@2.6.0 - @aws-amplify/amplify-opensearch-simulator@1.1.0 - amplify-prompts@2.6.1 - amplify-provider-awscloudformation@6.9.1 - amplify-python-function-runtime-provider@2.4.5 - amplify-util-headless-input@1.9.7 - amplify-util-mock@4.7.0 - @aws-amplify/amplify-util-uibuilder@1.6.1 --- packages/amplify-app/CHANGELOG.md | 8 +++ packages/amplify-app/package.json | 6 +- .../amplify-appsync-simulator/CHANGELOG.md | 17 ++++++ .../amplify-appsync-simulator/package.json | 10 ++-- .../amplify-category-analytics/CHANGELOG.md | 11 ++++ .../amplify-category-analytics/package.json | 8 +-- packages/amplify-category-auth/CHANGELOG.md | 11 ++++ packages/amplify-category-auth/package.json | 14 ++--- packages/amplify-category-custom/CHANGELOG.md | 8 +++ packages/amplify-category-custom/package.json | 6 +- .../amplify-category-function/CHANGELOG.md | 8 +++ .../amplify-category-function/package.json | 8 +-- packages/amplify-category-geo/CHANGELOG.md | 11 ++++ packages/amplify-category-geo/package.json | 10 ++-- .../amplify-category-hosting/CHANGELOG.md | 8 +++ .../amplify-category-hosting/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../CHANGELOG.md | 11 ++++ .../package.json | 8 +-- .../amplify-category-predictions/CHANGELOG.md | 8 +++ .../amplify-category-predictions/package.json | 4 +- .../amplify-category-storage/CHANGELOG.md | 8 +++ .../amplify-category-storage/package.json | 12 ++-- packages/amplify-category-xr/CHANGELOG.md | 8 +++ packages/amplify-category-xr/package.json | 4 +- packages/amplify-cli-core/CHANGELOG.md | 26 +++++++++ packages/amplify-cli-core/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 6 +- packages/amplify-cli-npm/CHANGELOG.md | 11 ++++ packages/amplify-cli-npm/package.json | 4 +- packages/amplify-cli/CHANGELOG.md | 32 ++++++++++ packages/amplify-cli/package.json | 58 +++++++++---------- packages/amplify-console-hosting/CHANGELOG.md | 8 +++ packages/amplify-console-hosting/package.json | 6 +- .../CHANGELOG.md | 17 ++++++ .../package.json | 6 +- .../amplify-container-hosting/CHANGELOG.md | 8 +++ .../amplify-container-hosting/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../amplify-dynamodb-simulator/CHANGELOG.md | 8 +++ .../amplify-dynamodb-simulator/package.json | 4 +- packages/amplify-e2e-core/CHANGELOG.md | 20 +++++++ packages/amplify-e2e-core/package.json | 6 +- packages/amplify-e2e-tests/CHANGELOG.md | 21 +++++++ packages/amplify-e2e-tests/package.json | 14 ++--- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- packages/amplify-frontend-ios/CHANGELOG.md | 8 +++ packages/amplify-frontend-ios/package.json | 4 +- .../amplify-frontend-javascript/CHANGELOG.md | 8 +++ .../amplify-frontend-javascript/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../amplify-graphiql-explorer/CHANGELOG.md | 8 +++ .../amplify-graphiql-explorer/package.json | 2 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../amplify-headless-interface/CHANGELOG.md | 12 ++++ .../amplify-headless-interface/package.json | 2 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- packages/amplify-migration-tests/CHANGELOG.md | 8 +++ packages/amplify-migration-tests/package.json | 4 +- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../CHANGELOG.md | 11 ++++ .../package.json | 4 +- .../amplify-opensearch-simulator/CHANGELOG.md | 17 ++++++ .../amplify-opensearch-simulator/package.json | 8 +-- packages/amplify-prompts/CHANGELOG.md | 8 +++ packages/amplify-prompts/package.json | 2 +- .../CHANGELOG.md | 17 ++++++ .../package.json | 12 ++-- .../CHANGELOG.md | 8 +++ .../package.json | 4 +- .../amplify-util-headless-input/CHANGELOG.md | 8 +++ .../amplify-util-headless-input/package.json | 4 +- packages/amplify-util-mock/CHANGELOG.md | 21 +++++++ packages/amplify-util-mock/package.json | 20 +++---- packages/amplify-util-uibuilder/CHANGELOG.md | 11 ++++ packages/amplify-util-uibuilder/package.json | 6 +- 84 files changed, 632 insertions(+), 155 deletions(-) create mode 100644 packages/amplify-opensearch-simulator/CHANGELOG.md diff --git a/packages/amplify-app/CHANGELOG.md b/packages/amplify-app/CHANGELOG.md index d7c66358ea4..9877e7e6016 100644 --- a/packages/amplify-app/CHANGELOG.md +++ b/packages/amplify-app/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.3.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-app@4.3.4...amplify-app@4.3.5) (2022-11-17) + +**Note:** Version bump only for package amplify-app + + + + + ## [4.3.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-app@4.3.3...amplify-app@4.3.4) (2022-10-27) **Note:** Version bump only for package amplify-app diff --git a/packages/amplify-app/package.json b/packages/amplify-app/package.json index bfc3f5f4ea9..4eb1e75f61f 100644 --- a/packages/amplify-app/package.json +++ b/packages/amplify-app/package.json @@ -1,6 +1,6 @@ { "name": "amplify-app", - "version": "4.3.4", + "version": "4.3.5", "description": "Amplify CLI", "repository": { "type": "git", @@ -30,8 +30,8 @@ "dependencies": { "amplify-frontend-android": "3.4.0", "amplify-frontend-flutter": "1.3.5", - "amplify-frontend-ios": "3.5.4", - "amplify-frontend-javascript": "3.7.0", + "amplify-frontend-ios": "3.5.5", + "amplify-frontend-javascript": "3.7.1", "chalk": "^4.1.1", "execa": "^5.1.1", "fs-extra": "^8.1.0", diff --git a/packages/amplify-appsync-simulator/CHANGELOG.md b/packages/amplify-appsync-simulator/CHANGELOG.md index d2e03c234ea..a2ae7b0a23d 100644 --- a/packages/amplify-appsync-simulator/CHANGELOG.md +++ b/packages/amplify-appsync-simulator/CHANGELOG.md @@ -3,6 +3,23 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [2.8.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-appsync-simulator@2.7.0...@aws-amplify/amplify-appsync-simulator@2.8.0) (2022-11-17) + + +### Features + +* add searchable mocking ([#11326](https://github.com/aws-amplify/amplify-cli/issues/11326)) ([da313bb](https://github.com/aws-amplify/amplify-cli/commit/da313bbaa61068519e6f1dfefd6029e9479d226a)) +* add Searchable mocking feature ([#11089](https://github.com/aws-amplify/amplify-cli/issues/11089)) ([899fe22](https://github.com/aws-amplify/amplify-cli/commit/899fe225b31a3d0e88a8090e13b8da0c725b69a1)) + + +### Reverts + +* Revert "feat: add Searchable mocking feature (#11089)" (#11324) ([6dfe8ed](https://github.com/aws-amplify/amplify-cli/commit/6dfe8ed16549a40c3ad72248612414287a444d8f)), closes [#11089](https://github.com/aws-amplify/amplify-cli/issues/11089) [#11324](https://github.com/aws-amplify/amplify-cli/issues/11324) + + + + + # [2.7.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-appsync-simulator@2.6.2...@aws-amplify/amplify-appsync-simulator@2.7.0) (2022-10-27) diff --git a/packages/amplify-appsync-simulator/package.json b/packages/amplify-appsync-simulator/package.json index cf94339fd99..2f84f1552aa 100644 --- a/packages/amplify-appsync-simulator/package.json +++ b/packages/amplify-appsync-simulator/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-appsync-simulator", - "version": "2.7.0", + "version": "2.8.0", "description": "An AppSync Simulator to test AppSync API.", "repository": { "type": "git", @@ -29,10 +29,10 @@ "test": "jest --logHeapUsage --forceExit" }, "dependencies": { - "amplify-cli-core": "3.3.0", - "amplify-prompts": "2.6.0", "@graphql-tools/schema": "^8.3.1", "@graphql-tools/utils": "^8.5.1", + "amplify-cli-core": "3.4.0", + "amplify-prompts": "2.6.1", "amplify-velocity-template": "1.4.8", "aws-sdk": "^2.1233.0", "chalk": "^4.1.1", @@ -57,7 +57,7 @@ "ws": "^8.5.0" }, "devDependencies": { - "@aws-amplify/amplify-graphiql-explorer": "2.5.0", + "@aws-amplify/amplify-graphiql-explorer": "2.5.1", "@types/cors": "^2.8.6", "@types/express": "^4.17.3", "@types/node": "^12.12.6", @@ -85,4 +85,4 @@ "node" ] } -} \ No newline at end of file +} diff --git a/packages/amplify-category-analytics/CHANGELOG.md b/packages/amplify-category-analytics/CHANGELOG.md index 2809e00fd3f..ae63ce50382 100644 --- a/packages/amplify-category-analytics/CHANGELOG.md +++ b/packages/amplify-category-analytics/CHANGELOG.md @@ -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. +## [4.2.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-analytics@4.2.0...amplify-category-analytics@4.2.1) (2022-11-17) + + +### Bug Fixes + +* add function access to analytics ([#11276](https://github.com/aws-amplify/amplify-cli/issues/11276)) ([3939d41](https://github.com/aws-amplify/amplify-cli/commit/3939d41b2aca6cf64bd0a36a32ff0d45ae954eaf)) + + + + + # [4.2.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-analytics@4.1.3...amplify-category-analytics@4.2.0) (2022-10-27) diff --git a/packages/amplify-category-analytics/package.json b/packages/amplify-category-analytics/package.json index 4e6e71fa20d..82fa95c9179 100644 --- a/packages/amplify-category-analytics/package.json +++ b/packages/amplify-category-analytics/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-analytics", - "version": "4.2.0", + "version": "4.2.1", "description": "amplify-cli analytics plugin", "repository": { "type": "git", @@ -21,9 +21,9 @@ "test": "jest --logHeapUsage" }, "dependencies": { - "@aws-amplify/amplify-environment-parameters": "1.2.0", - "amplify-cli-core": "3.3.0", - "amplify-prompts": "2.6.0", + "@aws-amplify/amplify-environment-parameters": "1.2.1", + "amplify-cli-core": "3.4.0", + "amplify-prompts": "2.6.1", "fs-extra": "^8.1.0", "inquirer": "^7.3.3", "uuid": "^8.3.2" diff --git a/packages/amplify-category-auth/CHANGELOG.md b/packages/amplify-category-auth/CHANGELOG.md index 62ca829d6f7..d02089565ab 100644 --- a/packages/amplify-category-auth/CHANGELOG.md +++ b/packages/amplify-category-auth/CHANGELOG.md @@ -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.13.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-category-auth@2.13.0...@aws-amplify/amplify-category-auth@2.13.1) (2022-11-17) + + +### Bug Fixes + +* uploading multiple auth trigger files ([#11254](https://github.com/aws-amplify/amplify-cli/issues/11254)) ([#11267](https://github.com/aws-amplify/amplify-cli/issues/11267)) ([b7bdcec](https://github.com/aws-amplify/amplify-cli/commit/b7bdcec939ac71c4f70ae87ece8c2a7995d4ae72)) + + + + + # [2.13.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-category-auth@2.12.4...@aws-amplify/amplify-category-auth@2.13.0) (2022-10-27) diff --git a/packages/amplify-category-auth/package.json b/packages/amplify-category-auth/package.json index 86dc6ac3d5a..9c07d15e30c 100644 --- a/packages/amplify-category-auth/package.json +++ b/packages/amplify-category-auth/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-category-auth", - "version": "2.13.0", + "version": "2.13.1", "description": "amplify-cli authentication plugin", "repository": { "type": "git", @@ -27,16 +27,16 @@ "generateSchemas": "ts-node ./scripts/generateAuthSchemas.ts" }, "dependencies": { - "@aws-amplify/amplify-environment-parameters": "1.2.0", - "@aws-amplify/cli-extensibility-helper": "2.4.4", + "@aws-amplify/amplify-environment-parameters": "1.2.1", + "@aws-amplify/cli-extensibility-helper": "2.4.5", "@aws-cdk/aws-cognito": "~1.172.0", "@aws-cdk/aws-iam": "~1.172.0", "@aws-cdk/aws-lambda": "~1.172.0", "@aws-cdk/core": "~1.172.0", - "amplify-cli-core": "3.3.0", - "amplify-headless-interface": "1.15.0", - "amplify-prompts": "2.6.0", - "amplify-util-headless-input": "1.9.6", + "amplify-cli-core": "3.4.0", + "amplify-headless-interface": "1.16.0", + "amplify-prompts": "2.6.1", + "amplify-util-headless-input": "1.9.7", "amplify-util-import": "2.3.0", "aws-sdk": "^2.1233.0", "chalk": "^4.1.1", diff --git a/packages/amplify-category-custom/CHANGELOG.md b/packages/amplify-category-custom/CHANGELOG.md index d5a387d11fa..a8fd7cb0c27 100644 --- a/packages/amplify-category-custom/CHANGELOG.md +++ b/packages/amplify-category-custom/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.5](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-category-custom@2.5.4...@aws-amplify/amplify-category-custom@2.5.5) (2022-11-17) + +**Note:** Version bump only for package @aws-amplify/amplify-category-custom + + + + + ## [2.5.4](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-category-custom@2.5.3...@aws-amplify/amplify-category-custom@2.5.4) (2022-10-27) **Note:** Version bump only for package @aws-amplify/amplify-category-custom diff --git a/packages/amplify-category-custom/package.json b/packages/amplify-category-custom/package.json index 3533d3866c7..fb972e121cf 100644 --- a/packages/amplify-category-custom/package.json +++ b/packages/amplify-category-custom/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-category-custom", - "version": "2.5.4", + "version": "2.5.5", "description": "amplify-cli custom resources plugin", "repository": { "type": "git", @@ -25,8 +25,8 @@ "access": "public" }, "dependencies": { - "amplify-cli-core": "3.3.0", - "amplify-prompts": "2.6.0", + "amplify-cli-core": "3.4.0", + "amplify-prompts": "2.6.1", "execa": "^5.1.1", "fs-extra": "^8.1.0", "glob": "^7.2.0", diff --git a/packages/amplify-category-function/CHANGELOG.md b/packages/amplify-category-function/CHANGELOG.md index 8172c30b06f..d467ebc69be 100644 --- a/packages/amplify-category-function/CHANGELOG.md +++ b/packages/amplify-category-function/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.2.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-function@4.2.0...amplify-category-function@4.2.1) (2022-11-17) + +**Note:** Version bump only for package amplify-category-function + + + + + # [4.2.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-function@4.1.3...amplify-category-function@4.2.0) (2022-10-27) diff --git a/packages/amplify-category-function/package.json b/packages/amplify-category-function/package.json index 924447d8314..3c729acce27 100644 --- a/packages/amplify-category-function/package.json +++ b/packages/amplify-category-function/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-function", - "version": "4.2.0", + "version": "4.2.1", "description": "amplify-cli function plugin", "repository": { "type": "git", @@ -22,10 +22,10 @@ "aws" ], "dependencies": { - "@aws-amplify/amplify-environment-parameters": "1.2.0", - "amplify-cli-core": "3.3.0", + "@aws-amplify/amplify-environment-parameters": "1.2.1", + "amplify-cli-core": "3.4.0", "amplify-function-plugin-interface": "1.9.5", - "amplify-prompts": "2.6.0", + "amplify-prompts": "2.6.1", "archiver": "^5.3.0", "aws-sdk": "^2.1233.0", "chalk": "^4.1.1", diff --git a/packages/amplify-category-geo/CHANGELOG.md b/packages/amplify-category-geo/CHANGELOG.md index 62a983634cc..db5847d5e0b 100644 --- a/packages/amplify-category-geo/CHANGELOG.md +++ b/packages/amplify-category-geo/CHANGELOG.md @@ -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.10.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-geo@2.9.0...amplify-category-geo@2.10.0) (2022-11-17) + + +### Features + +* **category-geo:** add two new map styles 2022.10 ([#11262](https://github.com/aws-amplify/amplify-cli/issues/11262)) ([77a473e](https://github.com/aws-amplify/amplify-cli/commit/77a473ed78a945681d98b2c14822474aef966dcf)) + + + + + # [2.9.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-geo@2.8.3...amplify-category-geo@2.9.0) (2022-10-27) diff --git a/packages/amplify-category-geo/package.json b/packages/amplify-category-geo/package.json index 05d7508910e..92adbd8e329 100644 --- a/packages/amplify-category-geo/package.json +++ b/packages/amplify-category-geo/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-geo", - "version": "2.9.0", + "version": "2.10.0", "description": "Amplify CLI plugin to manage the Geo resources for the project", "repository": { "type": "git", @@ -26,10 +26,10 @@ "@aws-cdk/aws-lambda": "~1.172.0", "@aws-cdk/core": "~1.172.0", "ajv": "^6.12.6", - "amplify-cli-core": "3.3.0", - "amplify-headless-interface": "1.15.0", - "amplify-prompts": "2.6.0", - "amplify-util-headless-input": "1.9.6", + "amplify-cli-core": "3.4.0", + "amplify-headless-interface": "1.16.0", + "amplify-prompts": "2.6.1", + "amplify-util-headless-input": "1.9.7", "aws-sdk": "^2.1233.0", "fs-extra": "^8.1.0", "lodash": "^4.17.21", diff --git a/packages/amplify-category-hosting/CHANGELOG.md b/packages/amplify-category-hosting/CHANGELOG.md index c58b66bbcaa..c1fe425f861 100644 --- a/packages/amplify-category-hosting/CHANGELOG.md +++ b/packages/amplify-category-hosting/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.4.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-hosting@3.4.4...amplify-category-hosting@3.4.5) (2022-11-17) + +**Note:** Version bump only for package amplify-category-hosting + + + + + ## [3.4.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-hosting@3.4.3...amplify-category-hosting@3.4.4) (2022-10-27) **Note:** Version bump only for package amplify-category-hosting diff --git a/packages/amplify-category-hosting/package.json b/packages/amplify-category-hosting/package.json index bbc26c35a6b..f4e4d5f4db7 100644 --- a/packages/amplify-category-hosting/package.json +++ b/packages/amplify-category-hosting/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-hosting", - "version": "3.4.4", + "version": "3.4.5", "description": "amplify-cli hosting plugin", "repository": { "type": "git", @@ -18,7 +18,7 @@ "test": "jest --logHeapUsage --coverage" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "chalk": "^4.1.1", "fs-extra": "^8.1.0", "inquirer": "^7.3.3", diff --git a/packages/amplify-category-interactions/CHANGELOG.md b/packages/amplify-category-interactions/CHANGELOG.md index 9b287fa3e76..eb02e815e6e 100644 --- a/packages/amplify-category-interactions/CHANGELOG.md +++ b/packages/amplify-category-interactions/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.1.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-interactions@4.1.4...amplify-category-interactions@4.1.5) (2022-11-17) + +**Note:** Version bump only for package amplify-category-interactions + + + + + ## [4.1.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-interactions@4.1.3...amplify-category-interactions@4.1.4) (2022-10-27) **Note:** Version bump only for package amplify-category-interactions diff --git a/packages/amplify-category-interactions/package.json b/packages/amplify-category-interactions/package.json index 79d56956625..c7310ee190f 100644 --- a/packages/amplify-category-interactions/package.json +++ b/packages/amplify-category-interactions/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-interactions", - "version": "4.1.4", + "version": "4.1.5", "description": "amplify-cli interactions plugin", "repository": { "type": "git", @@ -21,7 +21,7 @@ "copy-templates": "copyfiles -u 4 src/provider-utils/awscloudformation/cloudformation-templates/* lib/provider-utils/awscloudformation/cloudformation-templates/ && yarn copyfiles -u 4 src/provider-utils/awscloudformation/function-template-dir/*.ejs lib/provider-utils/awscloudformation/function-template-dir/" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "fs-extra": "^8.1.0", "fuzzy": "^0.1.3", "inquirer": "^7.3.3", diff --git a/packages/amplify-category-notifications/CHANGELOG.md b/packages/amplify-category-notifications/CHANGELOG.md index db671acf332..77974ba0ce5 100644 --- a/packages/amplify-category-notifications/CHANGELOG.md +++ b/packages/amplify-category-notifications/CHANGELOG.md @@ -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/amplify-category-notifications@2.21.0...amplify-category-notifications@2.21.1) (2022-11-17) + + +### Bug Fixes + +* trigger analytics migration on update/configure notifications ([#11285](https://github.com/aws-amplify/amplify-cli/issues/11285)) ([0972ef9](https://github.com/aws-amplify/amplify-cli/commit/0972ef9d10e86871d9fa6ca737c20399adf9b6f3)) + + + + + # [2.21.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-notifications@2.20.3...amplify-category-notifications@2.21.0) (2022-10-27) diff --git a/packages/amplify-category-notifications/package.json b/packages/amplify-category-notifications/package.json index 517a04b6ad7..c9511ffe2aa 100644 --- a/packages/amplify-category-notifications/package.json +++ b/packages/amplify-category-notifications/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-notifications", - "version": "2.21.0", + "version": "2.21.1", "description": "amplify-cli notifications plugin", "repository": { "type": "git", @@ -22,9 +22,9 @@ "watch": "tsc --watch" }, "dependencies": { - "@aws-amplify/amplify-environment-parameters": "1.2.0", - "amplify-cli-core": "3.3.0", - "amplify-prompts": "2.6.0", + "@aws-amplify/amplify-environment-parameters": "1.2.1", + "amplify-cli-core": "3.4.0", + "amplify-prompts": "2.6.1", "chalk": "^4.1.1", "fs-extra": "^8.1.0", "inquirer": "^7.3.3", diff --git a/packages/amplify-category-predictions/CHANGELOG.md b/packages/amplify-category-predictions/CHANGELOG.md index 9dce0839a9e..033340d0586 100644 --- a/packages/amplify-category-predictions/CHANGELOG.md +++ b/packages/amplify-category-predictions/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.2.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-predictions@4.2.0...amplify-category-predictions@4.2.1) (2022-11-17) + +**Note:** Version bump only for package amplify-category-predictions + + + + + # [4.2.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-predictions@4.1.3...amplify-category-predictions@4.2.0) (2022-10-27) diff --git a/packages/amplify-category-predictions/package.json b/packages/amplify-category-predictions/package.json index 31eb79d1cf7..b01adaf13d8 100644 --- a/packages/amplify-category-predictions/package.json +++ b/packages/amplify-category-predictions/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-predictions", - "version": "4.2.0", + "version": "4.2.1", "description": "amplify-cli predictions plugin", "repository": { "type": "git", @@ -21,7 +21,7 @@ "copy-templates": "copyfiles -u 4 src/provider-utils/awscloudformation/cloudformation-templates/* lib/provider-utils/awscloudformation/cloudformation-templates/ && copyfiles -u 4 src/provider-utils/awscloudformation/triggers/**/*.ejs lib/provider-utils/awscloudformation/triggers/" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "aws-sdk": "^2.1233.0", "chalk": "^4.1.1", "fs-extra": "^8.1.0", diff --git a/packages/amplify-category-storage/CHANGELOG.md b/packages/amplify-category-storage/CHANGELOG.md index 00d8e8875ce..300420d158f 100644 --- a/packages/amplify-category-storage/CHANGELOG.md +++ b/packages/amplify-category-storage/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.6.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-category-storage@3.6.0...@aws-amplify/amplify-category-storage@3.6.1) (2022-11-17) + +**Note:** Version bump only for package @aws-amplify/amplify-category-storage + + + + + # [3.6.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-category-storage@3.5.3...@aws-amplify/amplify-category-storage@3.6.0) (2022-10-27) diff --git a/packages/amplify-category-storage/package.json b/packages/amplify-category-storage/package.json index 01b4544cc11..fd445c2c9a0 100644 --- a/packages/amplify-category-storage/package.json +++ b/packages/amplify-category-storage/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-category-storage", - "version": "3.6.0", + "version": "3.6.1", "description": "amplify-cli storage plugin", "repository": { "type": "git", @@ -26,16 +26,16 @@ "access": "public" }, "dependencies": { - "@aws-amplify/amplify-environment-parameters": "1.2.0", - "@aws-amplify/cli-extensibility-helper": "2.4.4", + "@aws-amplify/amplify-environment-parameters": "1.2.1", + "@aws-amplify/cli-extensibility-helper": "2.4.5", "@aws-cdk/aws-dynamodb": "~1.172.0", "@aws-cdk/aws-iam": "~1.172.0", "@aws-cdk/aws-lambda": "~1.172.0", "@aws-cdk/aws-s3": "~1.172.0", "@aws-cdk/core": "~1.172.0", - "amplify-cli-core": "3.3.0", - "amplify-headless-interface": "1.15.0", - "amplify-prompts": "2.6.0", + "amplify-cli-core": "3.4.0", + "amplify-headless-interface": "1.16.0", + "amplify-prompts": "2.6.1", "amplify-util-import": "2.3.0", "aws-sdk": "^2.1233.0", "chalk": "^4.1.1", diff --git a/packages/amplify-category-xr/CHANGELOG.md b/packages/amplify-category-xr/CHANGELOG.md index 36d98c19662..8dcfc81f8d2 100644 --- a/packages/amplify-category-xr/CHANGELOG.md +++ b/packages/amplify-category-xr/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.3.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-xr@3.3.4...amplify-category-xr@3.3.5) (2022-11-17) + +**Note:** Version bump only for package amplify-category-xr + + + + + ## [3.3.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-category-xr@3.3.3...amplify-category-xr@3.3.4) (2022-10-27) **Note:** Version bump only for package amplify-category-xr diff --git a/packages/amplify-category-xr/package.json b/packages/amplify-category-xr/package.json index 80cf4941bd3..8747c835347 100644 --- a/packages/amplify-category-xr/package.json +++ b/packages/amplify-category-xr/package.json @@ -1,6 +1,6 @@ { "name": "amplify-category-xr", - "version": "3.3.4", + "version": "3.3.5", "description": "amplify-cli xr plugin", "repository": { "type": "git", @@ -19,7 +19,7 @@ "test-watch": "jest --watch" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "chalk": "^4.1.1", "fs-extra": "^8.1.0", "inquirer": "^7.3.3" diff --git a/packages/amplify-cli-core/CHANGELOG.md b/packages/amplify-cli-core/CHANGELOG.md index 08a851969ab..7a1d8921297 100644 --- a/packages/amplify-cli-core/CHANGELOG.md +++ b/packages/amplify-cli-core/CHANGELOG.md @@ -3,6 +3,32 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.4.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@3.3.0...amplify-cli-core@3.4.0) (2022-11-17) + + +### Bug Fixes + +* change reference to Amplify Admin UI to Amplify Studio ([dbdc861](https://github.com/aws-amplify/amplify-cli/commit/dbdc861d710ef1c8d04fd375b163fbf016992491)) +* override dependency for auth ([#11255](https://github.com/aws-amplify/amplify-cli/issues/11255)) ([690a2f7](https://github.com/aws-amplify/amplify-cli/commit/690a2f71cdb3b40db0935dbca0095349dbdc2a7a)) +* uploading multiple auth trigger files ([#11254](https://github.com/aws-amplify/amplify-cli/issues/11254)) ([#11267](https://github.com/aws-amplify/amplify-cli/issues/11267)) ([b7bdcec](https://github.com/aws-amplify/amplify-cli/commit/b7bdcec939ac71c4f70ae87ece8c2a7995d4ae72)) + + +### Features + +* add searchable mocking ([#11326](https://github.com/aws-amplify/amplify-cli/issues/11326)) ([da313bb](https://github.com/aws-amplify/amplify-cli/commit/da313bbaa61068519e6f1dfefd6029e9479d226a)) +* add Searchable mocking feature ([#11089](https://github.com/aws-amplify/amplify-cli/issues/11089)) ([899fe22](https://github.com/aws-amplify/amplify-cli/commit/899fe225b31a3d0e88a8090e13b8da0c725b69a1)) +* enable auto-naming indexes for new project ([#11348](https://github.com/aws-amplify/amplify-cli/issues/11348)) ([a8fad87](https://github.com/aws-amplify/amplify-cli/commit/a8fad872dc8e4b701f6203d730500a16312a28aa)) +* enable cpk feature flag for new projects ([#11373](https://github.com/aws-amplify/amplify-cli/issues/11373)) ([d3dd3e8](https://github.com/aws-amplify/amplify-cli/commit/d3dd3e8ec5f77fde60068e742a1141bf90dce7eb)) + + +### Reverts + +* Revert "feat: add Searchable mocking feature (#11089)" (#11324) ([6dfe8ed](https://github.com/aws-amplify/amplify-cli/commit/6dfe8ed16549a40c3ad72248612414287a444d8f)), closes [#11089](https://github.com/aws-amplify/amplify-cli/issues/11089) [#11324](https://github.com/aws-amplify/amplify-cli/issues/11324) + + + + + # [3.3.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-cli-core@3.2.2...amplify-cli-core@3.3.0) (2022-10-27) diff --git a/packages/amplify-cli-core/package.json b/packages/amplify-cli-core/package.json index b5863d4c1be..50ca9307bf3 100644 --- a/packages/amplify-cli-core/package.json +++ b/packages/amplify-cli-core/package.json @@ -1,6 +1,6 @@ { "name": "amplify-cli-core", - "version": "3.3.0", + "version": "3.4.0", "description": "Amplify CLI Core", "repository": { "type": "git", @@ -28,7 +28,7 @@ "@aws-amplify/graphql-transformer-interfaces": "^1.14.9", "ajv": "^6.12.6", "amplify-cli-logger": "1.2.1", - "amplify-prompts": "2.6.0", + "amplify-prompts": "2.6.1", "chalk": "^4.1.1", "ci-info": "^2.0.0", "cloudform-types": "^4.2.0", diff --git a/packages/amplify-cli-extensibility-helper/CHANGELOG.md b/packages/amplify-cli-extensibility-helper/CHANGELOG.md index f4446fb24ac..3775a23af40 100644 --- a/packages/amplify-cli-extensibility-helper/CHANGELOG.md +++ b/packages/amplify-cli-extensibility-helper/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.4.5](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli-extensibility-helper@2.4.4...@aws-amplify/cli-extensibility-helper@2.4.5) (2022-11-17) + +**Note:** Version bump only for package @aws-amplify/cli-extensibility-helper + + + + + ## [2.4.4](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli-extensibility-helper@2.4.3...@aws-amplify/cli-extensibility-helper@2.4.4) (2022-10-27) **Note:** Version bump only for package @aws-amplify/cli-extensibility-helper diff --git a/packages/amplify-cli-extensibility-helper/package.json b/packages/amplify-cli-extensibility-helper/package.json index 1112f478e8d..38bdc2bb835 100644 --- a/packages/amplify-cli-extensibility-helper/package.json +++ b/packages/amplify-cli-extensibility-helper/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/cli-extensibility-helper", - "version": "2.4.4", + "version": "2.4.5", "description": "Amplify CLI Extensibility Helper utility package", "repository": { "type": "git", @@ -27,7 +27,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo node_modules" }, "dependencies": { - "@aws-amplify/amplify-category-custom": "2.5.4", + "@aws-amplify/amplify-category-custom": "2.5.5", "@aws-cdk/aws-apigateway": "~1.172.0", "@aws-cdk/aws-appsync": "~1.172.0", "@aws-cdk/aws-cognito": "~1.172.0", @@ -37,7 +37,7 @@ "@aws-cdk/aws-lambda": "~1.172.0", "@aws-cdk/aws-s3": "~1.172.0", "@aws-cdk/core": "~1.172.0", - "amplify-cli-core": "3.3.0" + "amplify-cli-core": "3.4.0" }, "jest": { "transform": { diff --git a/packages/amplify-cli-npm/CHANGELOG.md b/packages/amplify-cli-npm/CHANGELOG.md index e3418e4d0f3..67b3062e24c 100644 --- a/packages/amplify-cli-npm/CHANGELOG.md +++ b/packages/amplify-cli-npm/CHANGELOG.md @@ -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. +# [10.5.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli@10.4.1...@aws-amplify/cli@10.5.0) (2022-11-17) + + +### Features + +* no op version bump ([#11325](https://github.com/aws-amplify/amplify-cli/issues/11325)) ([ffe42c5](https://github.com/aws-amplify/amplify-cli/commit/ffe42c5425aa331ba9c6caf0976011b7aa4b95ca)) + + + + + ## [10.4.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli@10.4.0...@aws-amplify/cli@10.4.1) (2022-11-11) **Note:** Version bump only for package @aws-amplify/cli diff --git a/packages/amplify-cli-npm/package.json b/packages/amplify-cli-npm/package.json index eca3fa5a6b1..5b26df6f5d5 100644 --- a/packages/amplify-cli-npm/package.json +++ b/packages/amplify-cli-npm/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/cli", - "version": "10.4.1", + "version": "10.5.0", "description": "Amplify CLI", "repository": { "type": "git", @@ -35,7 +35,7 @@ "tar-stream": "^2.2.0" }, "devDependencies": { - "@aws-amplify/cli-internal": "10.4.1", + "@aws-amplify/cli-internal": "10.5.0", "@types/tar": "^6.1.1", "rimraf": "^3.0.2" } diff --git a/packages/amplify-cli/CHANGELOG.md b/packages/amplify-cli/CHANGELOG.md index 1fe8d5fa640..5ea129538cb 100644 --- a/packages/amplify-cli/CHANGELOG.md +++ b/packages/amplify-cli/CHANGELOG.md @@ -3,6 +3,38 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [10.5.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli-internal@10.4.1...@aws-amplify/cli-internal@10.5.0) (2022-11-17) + + +### Bug Fixes + +* stop timer on early push resources exit ([#11287](https://github.com/aws-amplify/amplify-cli/issues/11287)) ([ac06cb2](https://github.com/aws-amplify/amplify-cli/commit/ac06cb27b1d9e83a09b2f7ac99571f0d8825a64e)) +* updates to error handler print format ([#11311](https://github.com/aws-amplify/amplify-cli/issues/11311)) ([0ac69bb](https://github.com/aws-amplify/amplify-cli/commit/0ac69bb5edbbeef13602d97650f55333f9e5c547)) + + +### Features + +* add searchable mocking ([#11326](https://github.com/aws-amplify/amplify-cli/issues/11326)) ([da313bb](https://github.com/aws-amplify/amplify-cli/commit/da313bbaa61068519e6f1dfefd6029e9479d226a)) +* add Searchable mocking feature ([#11089](https://github.com/aws-amplify/amplify-cli/issues/11089)) ([899fe22](https://github.com/aws-amplify/amplify-cli/commit/899fe225b31a3d0e88a8090e13b8da0c725b69a1)) + + +### Reverts + +* Revert "feat: add Searchable mocking feature (#11089)" (#11324) ([6dfe8ed](https://github.com/aws-amplify/amplify-cli/commit/6dfe8ed16549a40c3ad72248612414287a444d8f)), closes [#11089](https://github.com/aws-amplify/amplify-cli/issues/11089) [#11324](https://github.com/aws-amplify/amplify-cli/issues/11324) + + + +## 10.3.2 (2022-10-25) + + +### Bug Fixes + +* keeps hooks intact when attaching backend ([#11179](https://github.com/aws-amplify/amplify-cli/issues/11179)) ([41caa91](https://github.com/aws-amplify/amplify-cli/commit/41caa9149680b2ca712addbbacd5234b12c4c13f)) + + + + + ## [10.4.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/cli-internal@10.4.0...@aws-amplify/cli-internal@10.4.1) (2022-11-11) **Note:** Version bump only for package @aws-amplify/cli-internal diff --git a/packages/amplify-cli/package.json b/packages/amplify-cli/package.json index 44190720dd9..ea239df583f 100644 --- a/packages/amplify-cli/package.json +++ b/packages/amplify-cli/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/cli-internal", - "version": "10.4.1", + "version": "10.5.0", "description": "Amplify CLI", "repository": { "type": "git", @@ -34,46 +34,46 @@ }, "dependencies": { "@aws-amplify/amplify-category-api": "^4.0.9", - "@aws-amplify/amplify-category-auth": "2.13.0", - "@aws-amplify/amplify-category-custom": "2.5.4", - "@aws-amplify/amplify-category-storage": "3.6.0", - "@aws-amplify/amplify-environment-parameters": "1.2.0", - "@aws-amplify/amplify-util-uibuilder": "1.6.0", + "@aws-amplify/amplify-category-auth": "2.13.1", + "@aws-amplify/amplify-category-custom": "2.5.5", + "@aws-amplify/amplify-category-storage": "3.6.1", + "@aws-amplify/amplify-environment-parameters": "1.2.1", + "@aws-amplify/amplify-util-uibuilder": "1.6.1", "@aws-amplify/graphql-auth-transformer": "^1.1.4", "@aws-cdk/cloudformation-diff": "~1.172.0", - "amplify-app": "4.3.4", - "amplify-category-analytics": "4.2.0", - "amplify-category-function": "4.2.0", - "amplify-category-geo": "2.9.0", - "amplify-category-hosting": "3.4.4", - "amplify-category-interactions": "4.1.4", - "amplify-category-notifications": "2.21.0", - "amplify-category-predictions": "4.2.0", - "amplify-category-xr": "3.3.4", - "amplify-cli-core": "3.3.0", + "amplify-app": "4.3.5", + "amplify-category-analytics": "4.2.1", + "amplify-category-function": "4.2.1", + "amplify-category-geo": "2.10.0", + "amplify-category-hosting": "3.4.5", + "amplify-category-interactions": "4.1.5", + "amplify-category-notifications": "2.21.1", + "amplify-category-predictions": "4.2.1", + "amplify-category-xr": "3.3.5", + "amplify-cli-core": "3.4.0", "amplify-cli-logger": "1.2.1", "amplify-cli-shared-interfaces": "1.1.0", "amplify-codegen": "^3.3.2", - "amplify-console-hosting": "2.3.4", - "amplify-container-hosting": "2.5.5", + "amplify-console-hosting": "2.3.5", + "amplify-container-hosting": "2.5.6", "amplify-dotnet-function-runtime-provider": "1.6.10", - "amplify-dotnet-function-template-provider": "2.3.4", + "amplify-dotnet-function-template-provider": "2.3.5", "amplify-frontend-android": "3.4.0", "amplify-frontend-flutter": "1.3.5", - "amplify-frontend-ios": "3.5.4", - "amplify-frontend-javascript": "3.7.0", - "amplify-go-function-runtime-provider": "2.3.4", + "amplify-frontend-ios": "3.5.5", + "amplify-frontend-javascript": "3.7.1", + "amplify-go-function-runtime-provider": "2.3.5", "amplify-go-function-template-provider": "1.3.14", - "amplify-java-function-runtime-provider": "2.3.4", + "amplify-java-function-runtime-provider": "2.3.5", "amplify-java-function-template-provider": "1.5.14", - "amplify-nodejs-function-runtime-provider": "2.3.4", - "amplify-nodejs-function-template-provider": "2.5.4", - "amplify-prompts": "2.6.0", - "amplify-provider-awscloudformation": "6.9.0", - "amplify-python-function-runtime-provider": "2.4.4", + "amplify-nodejs-function-runtime-provider": "2.3.5", + "amplify-nodejs-function-template-provider": "2.6.0", + "amplify-prompts": "2.6.1", + "amplify-provider-awscloudformation": "6.9.1", + "amplify-python-function-runtime-provider": "2.4.5", "amplify-python-function-template-provider": "1.3.16", "amplify-util-import": "2.3.0", - "amplify-util-mock": "4.6.1", + "amplify-util-mock": "4.7.0", "aws-sdk": "^2.1233.0", "chalk": "^4.1.1", "ci-info": "^2.0.0", diff --git a/packages/amplify-console-hosting/CHANGELOG.md b/packages/amplify-console-hosting/CHANGELOG.md index 1823c3684c3..ec508981b54 100644 --- a/packages/amplify-console-hosting/CHANGELOG.md +++ b/packages/amplify-console-hosting/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.3.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-console-hosting@2.3.4...amplify-console-hosting@2.3.5) (2022-11-17) + +**Note:** Version bump only for package amplify-console-hosting + + + + + ## [2.3.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-console-hosting@2.3.3...amplify-console-hosting@2.3.4) (2022-10-27) **Note:** Version bump only for package amplify-console-hosting diff --git a/packages/amplify-console-hosting/package.json b/packages/amplify-console-hosting/package.json index 4d7ab5b4d01..e02cb73cdb0 100644 --- a/packages/amplify-console-hosting/package.json +++ b/packages/amplify-console-hosting/package.json @@ -1,14 +1,14 @@ { "name": "amplify-console-hosting", - "version": "2.3.4", + "version": "2.3.5", "description": "cli plugin for AWS Amplify Console hosting", "main": "lib/index.js", "types": "lib/index.d.ts", "author": "Amazon Web Services", "license": "Apache-2.0", "dependencies": { - "@aws-amplify/amplify-environment-parameters": "1.2.0", - "amplify-cli-core": "3.3.0", + "@aws-amplify/amplify-environment-parameters": "1.2.1", + "amplify-cli-core": "3.4.0", "archiver": "^5.3.0", "chalk": "^4.1.1", "cli-table3": "^0.6.0", diff --git a/packages/amplify-console-integration-tests/CHANGELOG.md b/packages/amplify-console-integration-tests/CHANGELOG.md index f5f726787b4..51ce22f1428 100644 --- a/packages/amplify-console-integration-tests/CHANGELOG.md +++ b/packages/amplify-console-integration-tests/CHANGELOG.md @@ -3,6 +3,23 @@ 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-console-integration-tests/compare/@aws-amplify/amplify-console-integration-tests@2.5.0...@aws-amplify/amplify-console-integration-tests@2.6.0) (2022-11-17) + + +### Features + +* add searchable mocking ([#11326](https://github.com/aws-amplify/amplify-console-integration-tests/issues/11326)) ([da313bb](https://github.com/aws-amplify/amplify-console-integration-tests/commit/da313bbaa61068519e6f1dfefd6029e9479d226a)) +* add Searchable mocking feature ([#11089](https://github.com/aws-amplify/amplify-console-integration-tests/issues/11089)) ([899fe22](https://github.com/aws-amplify/amplify-console-integration-tests/commit/899fe225b31a3d0e88a8090e13b8da0c725b69a1)) + + +### Reverts + +* Revert "feat: add Searchable mocking feature (#11089)" (#11324) ([6dfe8ed](https://github.com/aws-amplify/amplify-console-integration-tests/commit/6dfe8ed16549a40c3ad72248612414287a444d8f)), closes [#11089](https://github.com/aws-amplify/amplify-console-integration-tests/issues/11089) [#11324](https://github.com/aws-amplify/amplify-console-integration-tests/issues/11324) + + + + + # [2.5.0](https://github.com/aws-amplify/amplify-console-integration-tests/compare/@aws-amplify/amplify-console-integration-tests@2.4.3...@aws-amplify/amplify-console-integration-tests@2.5.0) (2022-10-27) diff --git a/packages/amplify-console-integration-tests/package.json b/packages/amplify-console-integration-tests/package.json index 704028bcb44..b83bad9df56 100644 --- a/packages/amplify-console-integration-tests/package.json +++ b/packages/amplify-console-integration-tests/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-console-integration-tests", - "version": "2.5.0", + "version": "2.6.0", "description": "", "repository": { "type": "git", @@ -21,9 +21,9 @@ "setup-profile": "ts-node ./src/setup-profile.ts" }, "dependencies": { - "@aws-amplify/amplify-e2e-core": "4.4.0", + "@aws-amplify/amplify-e2e-core": "4.5.0", "@types/ini": "^1.3.30", - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "aws-sdk": "^2.1233.0", "dotenv": "^8.2.0", "fs-extra": "^8.1.0", diff --git a/packages/amplify-container-hosting/CHANGELOG.md b/packages/amplify-container-hosting/CHANGELOG.md index 910833e986f..ae7c98d127e 100644 --- a/packages/amplify-container-hosting/CHANGELOG.md +++ b/packages/amplify-container-hosting/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.6](https://github.com/aws-amplify/amplify-cli/compare/amplify-container-hosting@2.5.5...amplify-container-hosting@2.5.6) (2022-11-17) + +**Note:** Version bump only for package amplify-container-hosting + + + + + ## [2.5.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-container-hosting@2.5.4...amplify-container-hosting@2.5.5) (2022-11-11) **Note:** Version bump only for package amplify-container-hosting diff --git a/packages/amplify-container-hosting/package.json b/packages/amplify-container-hosting/package.json index 8e3d5ef88af..74d7d59a837 100644 --- a/packages/amplify-container-hosting/package.json +++ b/packages/amplify-container-hosting/package.json @@ -1,6 +1,6 @@ { "name": "amplify-container-hosting", - "version": "2.5.5", + "version": "2.5.6", "description": "amplify-cli hosting plugin for containers", "repository": { "type": "git", @@ -23,7 +23,7 @@ }, "dependencies": { "@aws-amplify/amplify-category-api": "^4.0.9", - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "fs-extra": "^8.1.0", "inquirer": "^7.3.3", "mime-types": "^2.1.26", diff --git a/packages/amplify-dotnet-function-template-provider/CHANGELOG.md b/packages/amplify-dotnet-function-template-provider/CHANGELOG.md index 0790d6d05bb..9a736b41579 100644 --- a/packages/amplify-dotnet-function-template-provider/CHANGELOG.md +++ b/packages/amplify-dotnet-function-template-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.3.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-dotnet-function-template-provider@2.3.4...amplify-dotnet-function-template-provider@2.3.5) (2022-11-17) + +**Note:** Version bump only for package amplify-dotnet-function-template-provider + + + + + ## [2.3.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-dotnet-function-template-provider@2.3.3...amplify-dotnet-function-template-provider@2.3.4) (2022-10-27) **Note:** Version bump only for package amplify-dotnet-function-template-provider diff --git a/packages/amplify-dotnet-function-template-provider/package.json b/packages/amplify-dotnet-function-template-provider/package.json index 602498d1795..ec7e7a8c1cf 100644 --- a/packages/amplify-dotnet-function-template-provider/package.json +++ b/packages/amplify-dotnet-function-template-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-dotnet-function-template-provider", - "version": "2.3.4", + "version": "2.3.5", "description": ".NET Core templates supplied by the Amplify Team", "repository": { "type": "git", @@ -22,7 +22,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo node_modules" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "amplify-function-plugin-interface": "1.9.5", "graphql-transformer-core": "^7.6.6" }, diff --git a/packages/amplify-dynamodb-simulator/CHANGELOG.md b/packages/amplify-dynamodb-simulator/CHANGELOG.md index 0a161802ca5..93b99b2a2fd 100644 --- a/packages/amplify-dynamodb-simulator/CHANGELOG.md +++ b/packages/amplify-dynamodb-simulator/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-dynamodb-simulator@2.5.0...amplify-dynamodb-simulator@2.5.1) (2022-11-17) + +**Note:** Version bump only for package amplify-dynamodb-simulator + + + + + # [2.5.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-dynamodb-simulator@2.4.3...amplify-dynamodb-simulator@2.5.0) (2022-10-27) diff --git a/packages/amplify-dynamodb-simulator/package.json b/packages/amplify-dynamodb-simulator/package.json index 1dd1d43c0d4..ea496b7af9f 100644 --- a/packages/amplify-dynamodb-simulator/package.json +++ b/packages/amplify-dynamodb-simulator/package.json @@ -1,6 +1,6 @@ { "name": "amplify-dynamodb-simulator", - "version": "2.5.0", + "version": "2.5.1", "description": "DynamoDB emulator nodejs wrapper", "repository": { "type": "git", @@ -21,7 +21,7 @@ "test": "jest --logHeapUsage" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "aws-sdk": "^2.1233.0", "detect-port": "^1.3.0", "execa": "^5.1.1", diff --git a/packages/amplify-e2e-core/CHANGELOG.md b/packages/amplify-e2e-core/CHANGELOG.md index c9411c4fef3..61bbb529e8f 100644 --- a/packages/amplify-e2e-core/CHANGELOG.md +++ b/packages/amplify-e2e-core/CHANGELOG.md @@ -3,6 +3,26 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.5.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-e2e-core@4.4.0...@aws-amplify/amplify-e2e-core@4.5.0) (2022-11-17) + + +### Bug Fixes + +* add default ref for unauthrole for imported auth ([#10848](https://github.com/aws-amplify/amplify-cli/issues/10848)) ([bd71707](https://github.com/aws-amplify/amplify-cli/commit/bd717077a9fe88adf66244d621aa48d7157387a8)) +* eliminate circular dependency when generating CMS assets ([#11304](https://github.com/aws-amplify/amplify-cli/issues/11304)) ([2d7e8d0](https://github.com/aws-amplify/amplify-cli/commit/2d7e8d0e6549f680a979b9cdfb0cd28bf98fb349)) +* keeps hooks intact when attaching backend ([#11179](https://github.com/aws-amplify/amplify-cli/issues/11179)) ([41caa91](https://github.com/aws-amplify/amplify-cli/commit/41caa9149680b2ca712addbbacd5234b12c4c13f)) +* parse true and false strings from env vars ([#11386](https://github.com/aws-amplify/amplify-cli/issues/11386)) ([5ed67f5](https://github.com/aws-amplify/amplify-cli/commit/5ed67f52001429b05fb902d9ec2e06960cf2a3ad)) +* uploading multiple auth trigger files ([#11254](https://github.com/aws-amplify/amplify-cli/issues/11254)) ([#11267](https://github.com/aws-amplify/amplify-cli/issues/11267)) ([b7bdcec](https://github.com/aws-amplify/amplify-cli/commit/b7bdcec939ac71c4f70ae87ece8c2a7995d4ae72)) + + +### Features + +* Nodejs graphql IAM template ([#10997](https://github.com/aws-amplify/amplify-cli/issues/10997)) ([880f7eb](https://github.com/aws-amplify/amplify-cli/commit/880f7eb3996133b31c0f498136a66488d1c8ceeb)) + + + + + # [4.4.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-e2e-core@4.3.0...@aws-amplify/amplify-e2e-core@4.4.0) (2022-10-27) diff --git a/packages/amplify-e2e-core/package.json b/packages/amplify-e2e-core/package.json index 5587cdfdf0e..cb6da6f5837 100644 --- a/packages/amplify-e2e-core/package.json +++ b/packages/amplify-e2e-core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-e2e-core", - "version": "4.4.0", + "version": "4.5.0", "description": "", "repository": { "type": "git", @@ -22,8 +22,8 @@ "clean": "rimraf ./lib tsconfig.tsbuildinfo" }, "dependencies": { - "amplify-cli-core": "3.3.0", - "amplify-headless-interface": "1.15.0", + "amplify-cli-core": "3.4.0", + "amplify-headless-interface": "1.16.0", "aws-sdk": "^2.1233.0", "chalk": "^4.1.1", "dotenv": "^8.2.0", diff --git a/packages/amplify-e2e-tests/CHANGELOG.md b/packages/amplify-e2e-tests/CHANGELOG.md index e5b31153483..099c9516fa2 100644 --- a/packages/amplify-e2e-tests/CHANGELOG.md +++ b/packages/amplify-e2e-tests/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [3.15.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-tests@3.14.0...amplify-e2e-tests@3.15.0) (2022-11-17) + + +### Bug Fixes + +* add default ref for unauthrole for imported auth ([#10848](https://github.com/aws-amplify/amplify-cli/issues/10848)) ([bd71707](https://github.com/aws-amplify/amplify-cli/commit/bd717077a9fe88adf66244d621aa48d7157387a8)) +* add function access to analytics ([#11276](https://github.com/aws-amplify/amplify-cli/issues/11276)) ([3939d41](https://github.com/aws-amplify/amplify-cli/commit/3939d41b2aca6cf64bd0a36a32ff0d45ae954eaf)) +* eliminate circular dependency when generating CMS assets ([#11304](https://github.com/aws-amplify/amplify-cli/issues/11304)) ([2d7e8d0](https://github.com/aws-amplify/amplify-cli/commit/2d7e8d0e6549f680a979b9cdfb0cd28bf98fb349)) +* generate default theme if user has no themes ([#11343](https://github.com/aws-amplify/amplify-cli/issues/11343)) ([13a02ac](https://github.com/aws-amplify/amplify-cli/commit/13a02ac32de717a518336871b1c741aa2714562b)) +* keeps hooks intact when attaching backend ([#11179](https://github.com/aws-amplify/amplify-cli/issues/11179)) ([41caa91](https://github.com/aws-amplify/amplify-cli/commit/41caa9149680b2ca712addbbacd5234b12c4c13f)) +* uploading multiple auth trigger files ([#11254](https://github.com/aws-amplify/amplify-cli/issues/11254)) ([#11267](https://github.com/aws-amplify/amplify-cli/issues/11267)) ([b7bdcec](https://github.com/aws-amplify/amplify-cli/commit/b7bdcec939ac71c4f70ae87ece8c2a7995d4ae72)) + + +### Features + +* Nodejs graphql IAM template ([#10997](https://github.com/aws-amplify/amplify-cli/issues/10997)) ([880f7eb](https://github.com/aws-amplify/amplify-cli/commit/880f7eb3996133b31c0f498136a66488d1c8ceeb)) + + + + + # [3.14.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-e2e-tests@3.13.3...amplify-e2e-tests@3.14.0) (2022-10-27) diff --git a/packages/amplify-e2e-tests/package.json b/packages/amplify-e2e-tests/package.json index e685ed7bbb7..e36d4dbdf10 100644 --- a/packages/amplify-e2e-tests/package.json +++ b/packages/amplify-e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "amplify-e2e-tests", - "version": "3.14.0", + "version": "3.15.0", "description": "", "repository": { "type": "git", @@ -23,16 +23,16 @@ "clean-e2e-resources": "ts-node ./src/cleanup-e2e-resources.ts" }, "dependencies": { - "@aws-amplify/amplify-category-auth": "2.13.0", - "@aws-amplify/amplify-e2e-core": "4.4.0", - "@aws-cdk/core": "~1.172.0", + "@aws-amplify/amplify-category-auth": "2.13.1", + "@aws-amplify/amplify-e2e-core": "4.5.0", + "@aws-amplify/graphql-transformer-core": "^0.17.15", "@aws-cdk/aws-iam": "~1.172.0", "@aws-cdk/aws-sns": "~1.172.0", "@aws-cdk/aws-sns-subscriptions": "~1.172.0", "@aws-cdk/aws-sqs": "~1.172.0", - "@aws-amplify/graphql-transformer-core": "^0.17.15", - "amplify-cli-core": "3.3.0", - "amplify-headless-interface": "^1.15.0", + "@aws-cdk/core": "~1.172.0", + "amplify-cli-core": "3.4.0", + "amplify-headless-interface": "1.16.0", "aws-amplify": "^4.2.8", "aws-appsync": "^4.1.1", "aws-sdk": "^2.1233.0", diff --git a/packages/amplify-environment-parameters/CHANGELOG.md b/packages/amplify-environment-parameters/CHANGELOG.md index d49d6c74876..0b8bbaeffea 100644 --- a/packages/amplify-environment-parameters/CHANGELOG.md +++ b/packages/amplify-environment-parameters/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-environment-parameters@1.2.0...@aws-amplify/amplify-environment-parameters@1.2.1) (2022-11-17) + +**Note:** Version bump only for package @aws-amplify/amplify-environment-parameters + + + + + # [1.2.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-environment-parameters@1.1.3...@aws-amplify/amplify-environment-parameters@1.2.0) (2022-10-27) diff --git a/packages/amplify-environment-parameters/package.json b/packages/amplify-environment-parameters/package.json index 9f20f191cd2..e66a548ceb7 100644 --- a/packages/amplify-environment-parameters/package.json +++ b/packages/amplify-environment-parameters/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-environment-parameters", - "version": "1.2.0", + "version": "1.2.1", "description": "Amplify CLI environment parameter manager", "repository": { "type": "git", @@ -25,7 +25,7 @@ "test": "jest --logHeapUsage" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "lodash": "^4.17.21" }, "devDependencies": { diff --git a/packages/amplify-frontend-ios/CHANGELOG.md b/packages/amplify-frontend-ios/CHANGELOG.md index 5fee8c3de21..267637e1314 100644 --- a/packages/amplify-frontend-ios/CHANGELOG.md +++ b/packages/amplify-frontend-ios/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.5.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-frontend-ios@3.5.4...amplify-frontend-ios@3.5.5) (2022-11-17) + +**Note:** Version bump only for package amplify-frontend-ios + + + + + ## [3.5.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-frontend-ios@3.5.3...amplify-frontend-ios@3.5.4) (2022-10-27) **Note:** Version bump only for package amplify-frontend-ios diff --git a/packages/amplify-frontend-ios/package.json b/packages/amplify-frontend-ios/package.json index 011d671a957..fe07858bfea 100644 --- a/packages/amplify-frontend-ios/package.json +++ b/packages/amplify-frontend-ios/package.json @@ -1,6 +1,6 @@ { "name": "amplify-frontend-ios", - "version": "3.5.4", + "version": "3.5.5", "description": "amplify-cli front-end plugin for xcode projects", "repository": { "type": "git", @@ -21,7 +21,7 @@ "test-watch": "jest --watch" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "execa": "^5.1.1", "fs-extra": "^8.1.0", "graphql-config": "^2.2.1", diff --git a/packages/amplify-frontend-javascript/CHANGELOG.md b/packages/amplify-frontend-javascript/CHANGELOG.md index f602adabfee..067c0f6e745 100644 --- a/packages/amplify-frontend-javascript/CHANGELOG.md +++ b/packages/amplify-frontend-javascript/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.7.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-frontend-javascript@3.7.0...amplify-frontend-javascript@3.7.1) (2022-11-17) + +**Note:** Version bump only for package amplify-frontend-javascript + + + + + # [3.7.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-frontend-javascript@3.6.3...amplify-frontend-javascript@3.7.0) (2022-10-27) diff --git a/packages/amplify-frontend-javascript/package.json b/packages/amplify-frontend-javascript/package.json index d1dbf521a90..ae8002e580b 100644 --- a/packages/amplify-frontend-javascript/package.json +++ b/packages/amplify-frontend-javascript/package.json @@ -1,6 +1,6 @@ { "name": "amplify-frontend-javascript", - "version": "3.7.0", + "version": "3.7.1", "description": "amplify-cli front-end plugin for JavaScript projects", "scripts": { "test": "jest --logHeapUsage", @@ -22,7 +22,7 @@ "dependencies": { "@babel/core": "^7.10.5", "@babel/plugin-transform-modules-commonjs": "7.10.4", - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "chalk": "^4.1.1", "execa": "^5.1.1", "fs-extra": "^8.1.0", diff --git a/packages/amplify-go-function-runtime-provider/CHANGELOG.md b/packages/amplify-go-function-runtime-provider/CHANGELOG.md index c9f0717f05a..c519f7b2a5a 100644 --- a/packages/amplify-go-function-runtime-provider/CHANGELOG.md +++ b/packages/amplify-go-function-runtime-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.3.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-go-function-runtime-provider@2.3.4...amplify-go-function-runtime-provider@2.3.5) (2022-11-17) + +**Note:** Version bump only for package amplify-go-function-runtime-provider + + + + + ## [2.3.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-go-function-runtime-provider@2.3.3...amplify-go-function-runtime-provider@2.3.4) (2022-10-27) **Note:** Version bump only for package amplify-go-function-runtime-provider diff --git a/packages/amplify-go-function-runtime-provider/package.json b/packages/amplify-go-function-runtime-provider/package.json index 6a993984fb9..4e2e41128ad 100644 --- a/packages/amplify-go-function-runtime-provider/package.json +++ b/packages/amplify-go-function-runtime-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-go-function-runtime-provider", - "version": "2.3.4", + "version": "2.3.5", "description": "Provides functionality related to functions in Go 1.x on AWS", "repository": { "type": "git", @@ -21,7 +21,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo resources/localinvoke/go.sum resources/localinvoke/main resources/localinvoke/main.exe" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "amplify-function-plugin-interface": "1.9.5", "archiver": "^5.3.0", "execa": "^5.1.1", diff --git a/packages/amplify-graphiql-explorer/CHANGELOG.md b/packages/amplify-graphiql-explorer/CHANGELOG.md index 11a7dcd8b58..2f7a968973e 100644 --- a/packages/amplify-graphiql-explorer/CHANGELOG.md +++ b/packages/amplify-graphiql-explorer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.5.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-graphiql-explorer@2.5.0...@aws-amplify/amplify-graphiql-explorer@2.5.1) (2022-11-17) + +**Note:** Version bump only for package @aws-amplify/amplify-graphiql-explorer + + + + + # 2.5.0 (2022-08-02) diff --git a/packages/amplify-graphiql-explorer/package.json b/packages/amplify-graphiql-explorer/package.json index 00a07a9bba0..f43bfdac8d5 100644 --- a/packages/amplify-graphiql-explorer/package.json +++ b/packages/amplify-graphiql-explorer/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-graphiql-explorer", - "version": "2.5.0", + "version": "2.5.1", "private": true, "dependencies": { "@babel/core": "^7.16.0", diff --git a/packages/amplify-graphql-migration-tests/CHANGELOG.md b/packages/amplify-graphql-migration-tests/CHANGELOG.md index d0d7a5aa67c..b245b8fca9b 100644 --- a/packages/amplify-graphql-migration-tests/CHANGELOG.md +++ b/packages/amplify-graphql-migration-tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.3.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-graphql-migration-tests@2.3.3...amplify-graphql-migration-tests@2.3.4) (2022-11-17) + +**Note:** Version bump only for package amplify-graphql-migration-tests + + + + + ## [2.3.3](https://github.com/aws-amplify/amplify-cli/compare/amplify-graphql-migration-tests@2.3.2...amplify-graphql-migration-tests@2.3.3) (2022-11-11) **Note:** Version bump only for package amplify-graphql-migration-tests diff --git a/packages/amplify-graphql-migration-tests/package.json b/packages/amplify-graphql-migration-tests/package.json index 82ffc975963..12dc88b3cb2 100644 --- a/packages/amplify-graphql-migration-tests/package.json +++ b/packages/amplify-graphql-migration-tests/package.json @@ -1,6 +1,6 @@ { "name": "amplify-graphql-migration-tests", - "version": "2.3.3", + "version": "2.3.4", "description": "Tests migration from v1 to v2 of the Amplify GraphQL transformer", "main": "lib/index.js", "private": true, @@ -50,7 +50,7 @@ "@aws-amplify/graphql-transformer-interfaces": "^1.14.9", "@aws-amplify/graphql-transformer-migrator": "^1.4.10", "@aws-cdk/cloudformation-diff": "~1.172.0", - "amplify-prompts": "2.6.0", + "amplify-prompts": "2.6.1", "fs-extra": "^8.1.0", "graphql-auth-transformer": "^7.2.44", "graphql-connection-transformer": "^5.2.43", diff --git a/packages/amplify-headless-interface/CHANGELOG.md b/packages/amplify-headless-interface/CHANGELOG.md index 06c62ae1151..8d0896840e6 100644 --- a/packages/amplify-headless-interface/CHANGELOG.md +++ b/packages/amplify-headless-interface/CHANGELOG.md @@ -3,6 +3,18 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [1.16.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-headless-interface@1.15.0...amplify-headless-interface@1.16.0) (2022-11-17) + + +### Features + +* add API key extension headless config ([#11037](https://github.com/aws-amplify/amplify-cli/issues/11037)) ([bd087d7](https://github.com/aws-amplify/amplify-cli/commit/bd087d7a468f35f1a1e1bae390cf623121310abc)) +* **category-geo:** add two new map styles 2022.10 ([#11262](https://github.com/aws-amplify/amplify-cli/issues/11262)) ([77a473e](https://github.com/aws-amplify/amplify-cli/commit/77a473ed78a945681d98b2c14822474aef966dcf)) + + + + + # [1.15.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-headless-interface@1.14.3...amplify-headless-interface@1.15.0) (2022-06-03) diff --git a/packages/amplify-headless-interface/package.json b/packages/amplify-headless-interface/package.json index c53b53a74b0..15ea2239189 100644 --- a/packages/amplify-headless-interface/package.json +++ b/packages/amplify-headless-interface/package.json @@ -1,6 +1,6 @@ { "name": "amplify-headless-interface", - "version": "1.15.0", + "version": "1.16.0", "description": "interfaces for amplify headless mode payloads", "main": "lib/index.js", "scripts": { diff --git a/packages/amplify-java-function-runtime-provider/CHANGELOG.md b/packages/amplify-java-function-runtime-provider/CHANGELOG.md index 9a4b17aa6c1..5912aefbd52 100644 --- a/packages/amplify-java-function-runtime-provider/CHANGELOG.md +++ b/packages/amplify-java-function-runtime-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.3.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-java-function-runtime-provider@2.3.4...amplify-java-function-runtime-provider@2.3.5) (2022-11-17) + +**Note:** Version bump only for package amplify-java-function-runtime-provider + + + + + ## [2.3.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-java-function-runtime-provider@2.3.3...amplify-java-function-runtime-provider@2.3.4) (2022-10-27) **Note:** Version bump only for package amplify-java-function-runtime-provider diff --git a/packages/amplify-java-function-runtime-provider/package.json b/packages/amplify-java-function-runtime-provider/package.json index 068118a7553..bdb844ebb2e 100644 --- a/packages/amplify-java-function-runtime-provider/package.json +++ b/packages/amplify-java-function-runtime-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-java-function-runtime-provider", - "version": "2.3.4", + "version": "2.3.5", "description": "Provides functionality related to functions in JAVA on AWS", "repository": { "type": "git", @@ -21,7 +21,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo node_modules" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "amplify-function-plugin-interface": "1.9.5", "execa": "^5.1.1", "fs-extra": "^8.1.0", diff --git a/packages/amplify-migration-tests/CHANGELOG.md b/packages/amplify-migration-tests/CHANGELOG.md index 88407da6dcc..b35e14b9f35 100644 --- a/packages/amplify-migration-tests/CHANGELOG.md +++ b/packages/amplify-migration-tests/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [5.2.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-migration-tests@5.2.0...@aws-amplify/amplify-migration-tests@5.2.1) (2022-11-17) + +**Note:** Version bump only for package @aws-amplify/amplify-migration-tests + + + + + # [5.2.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-migration-tests@5.1.3...@aws-amplify/amplify-migration-tests@5.2.0) (2022-10-27) diff --git a/packages/amplify-migration-tests/package.json b/packages/amplify-migration-tests/package.json index 2838e65c660..6d4a98f3d38 100644 --- a/packages/amplify-migration-tests/package.json +++ b/packages/amplify-migration-tests/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-migration-tests", - "version": "5.2.0", + "version": "5.2.1", "description": "", "repository": { "type": "git", @@ -25,7 +25,7 @@ "setup-profile": "ts-node ./src/configure_tests.ts" }, "dependencies": { - "@aws-amplify/amplify-e2e-core": "4.4.0", + "@aws-amplify/amplify-e2e-core": "4.5.0", "fs-extra": "^8.1.0", "graphql-transformer-core": "^7.6.6", "lodash": "^4.17.21", diff --git a/packages/amplify-nodejs-function-runtime-provider/CHANGELOG.md b/packages/amplify-nodejs-function-runtime-provider/CHANGELOG.md index 95ee84287f4..ee050a4b11d 100644 --- a/packages/amplify-nodejs-function-runtime-provider/CHANGELOG.md +++ b/packages/amplify-nodejs-function-runtime-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.3.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-nodejs-function-runtime-provider@2.3.4...amplify-nodejs-function-runtime-provider@2.3.5) (2022-11-17) + +**Note:** Version bump only for package amplify-nodejs-function-runtime-provider + + + + + ## [2.3.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-nodejs-function-runtime-provider@2.3.3...amplify-nodejs-function-runtime-provider@2.3.4) (2022-10-27) **Note:** Version bump only for package amplify-nodejs-function-runtime-provider diff --git a/packages/amplify-nodejs-function-runtime-provider/package.json b/packages/amplify-nodejs-function-runtime-provider/package.json index 43709001d72..41bb48033de 100644 --- a/packages/amplify-nodejs-function-runtime-provider/package.json +++ b/packages/amplify-nodejs-function-runtime-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-nodejs-function-runtime-provider", - "version": "2.3.4", + "version": "2.3.5", "description": "Provides functionality related to functions in NodeJS on AWS", "repository": { "type": "git", @@ -23,7 +23,7 @@ "test": "jest --logHeapUsage" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "amplify-function-plugin-interface": "1.9.5", "execa": "^5.1.1", "exit": "^0.1.2", diff --git a/packages/amplify-nodejs-function-template-provider/CHANGELOG.md b/packages/amplify-nodejs-function-template-provider/CHANGELOG.md index 504788c0653..568b05fdb72 100644 --- a/packages/amplify-nodejs-function-template-provider/CHANGELOG.md +++ b/packages/amplify-nodejs-function-template-provider/CHANGELOG.md @@ -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/amplify-nodejs-function-template-provider@2.5.4...amplify-nodejs-function-template-provider@2.6.0) (2022-11-17) + + +### Features + +* Nodejs graphql IAM template ([#10997](https://github.com/aws-amplify/amplify-cli/issues/10997)) ([880f7eb](https://github.com/aws-amplify/amplify-cli/commit/880f7eb3996133b31c0f498136a66488d1c8ceeb)) + + + + + ## [2.5.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-nodejs-function-template-provider@2.5.3...amplify-nodejs-function-template-provider@2.5.4) (2022-10-27) **Note:** Version bump only for package amplify-nodejs-function-template-provider diff --git a/packages/amplify-nodejs-function-template-provider/package.json b/packages/amplify-nodejs-function-template-provider/package.json index dca10b6d2c9..9c3c7353866 100644 --- a/packages/amplify-nodejs-function-template-provider/package.json +++ b/packages/amplify-nodejs-function-template-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-nodejs-function-template-provider", - "version": "2.5.4", + "version": "2.6.0", "description": "Node JS templates supplied by the Amplify Team", "repository": { "type": "git", @@ -21,7 +21,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo node_modules" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "amplify-function-plugin-interface": "1.9.5", "graphql-transformer-core": "^7.6.6", "lodash": "^4.17.21" diff --git a/packages/amplify-opensearch-simulator/CHANGELOG.md b/packages/amplify-opensearch-simulator/CHANGELOG.md new file mode 100644 index 00000000000..956657532ff --- /dev/null +++ b/packages/amplify-opensearch-simulator/CHANGELOG.md @@ -0,0 +1,17 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +# 1.1.0 (2022-11-17) + + +### Features + +* add searchable mocking ([#11326](https://github.com/aws-amplify/amplify-cli/issues/11326)) ([da313bb](https://github.com/aws-amplify/amplify-cli/commit/da313bbaa61068519e6f1dfefd6029e9479d226a)) +* add Searchable mocking feature ([#11089](https://github.com/aws-amplify/amplify-cli/issues/11089)) ([899fe22](https://github.com/aws-amplify/amplify-cli/commit/899fe225b31a3d0e88a8090e13b8da0c725b69a1)) + + +### Reverts + +* Revert "feat: add Searchable mocking feature (#11089)" (#11324) ([6dfe8ed](https://github.com/aws-amplify/amplify-cli/commit/6dfe8ed16549a40c3ad72248612414287a444d8f)), closes [#11089](https://github.com/aws-amplify/amplify-cli/issues/11089) [#11324](https://github.com/aws-amplify/amplify-cli/issues/11324) diff --git a/packages/amplify-opensearch-simulator/package.json b/packages/amplify-opensearch-simulator/package.json index 42a489142d1..60fe8b3f4b9 100644 --- a/packages/amplify-opensearch-simulator/package.json +++ b/packages/amplify-opensearch-simulator/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-opensearch-simulator", - "version": "1.0.0", + "version": "1.1.0", "description": "Opensearch local simulator", "repository": { "type": "git", @@ -24,8 +24,8 @@ "test": "jest" }, "dependencies": { - "amplify-cli-core": "3.3.0", - "amplify-prompts": "2.6.0", + "amplify-cli-core": "3.4.0", + "amplify-prompts": "2.6.1", "aws-sdk": "^2.1233.0", "detect-port": "^1.3.0", "execa": "^5.1.1", @@ -47,4 +47,4 @@ "testEnvironment": "node", "collectCoverage": true } -} \ No newline at end of file +} diff --git a/packages/amplify-prompts/CHANGELOG.md b/packages/amplify-prompts/CHANGELOG.md index 59fd05e371a..e1dff554b88 100644 --- a/packages/amplify-prompts/CHANGELOG.md +++ b/packages/amplify-prompts/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.6.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-prompts@2.6.0...amplify-prompts@2.6.1) (2022-11-17) + +**Note:** Version bump only for package amplify-prompts + + + + + # [2.6.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-prompts@2.5.0...amplify-prompts@2.6.0) (2022-10-13) diff --git a/packages/amplify-prompts/package.json b/packages/amplify-prompts/package.json index c3b1eba6a36..1b0fa8e6af8 100644 --- a/packages/amplify-prompts/package.json +++ b/packages/amplify-prompts/package.json @@ -1,6 +1,6 @@ { "name": "amplify-prompts", - "version": "2.6.0", + "version": "2.6.1", "description": "Utility functions for Amplify CLI terminal I/O", "main": "lib/index.js", "scripts": { diff --git a/packages/amplify-provider-awscloudformation/CHANGELOG.md b/packages/amplify-provider-awscloudformation/CHANGELOG.md index 21a602c0637..1e3abe24da8 100644 --- a/packages/amplify-provider-awscloudformation/CHANGELOG.md +++ b/packages/amplify-provider-awscloudformation/CHANGELOG.md @@ -3,6 +3,23 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [6.9.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-provider-awscloudformation@6.9.0...amplify-provider-awscloudformation@6.9.1) (2022-11-17) + + +### Bug Fixes + +* add default ref for unauthrole for imported auth ([#10848](https://github.com/aws-amplify/amplify-cli/issues/10848)) ([bd71707](https://github.com/aws-amplify/amplify-cli/commit/bd717077a9fe88adf66244d621aa48d7157387a8)) +* eliminate circular dependency when generating CMS assets ([#11304](https://github.com/aws-amplify/amplify-cli/issues/11304)) ([2d7e8d0](https://github.com/aws-amplify/amplify-cli/commit/2d7e8d0e6549f680a979b9cdfb0cd28bf98fb349)) +* uploading multiple auth trigger files ([#11254](https://github.com/aws-amplify/amplify-cli/issues/11254)) ([#11267](https://github.com/aws-amplify/amplify-cli/issues/11267)) ([b7bdcec](https://github.com/aws-amplify/amplify-cli/commit/b7bdcec939ac71c4f70ae87ece8c2a7995d4ae72)) + + + +## 10.3.2 (2022-10-25) + + + + + # [6.9.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-provider-awscloudformation@6.8.1...amplify-provider-awscloudformation@6.9.0) (2022-10-27) diff --git a/packages/amplify-provider-awscloudformation/package.json b/packages/amplify-provider-awscloudformation/package.json index fa836c916a7..ee6a0e3443e 100644 --- a/packages/amplify-provider-awscloudformation/package.json +++ b/packages/amplify-provider-awscloudformation/package.json @@ -1,6 +1,6 @@ { "name": "amplify-provider-awscloudformation", - "version": "6.9.0", + "version": "6.9.1", "description": "AWS CloudFormation Provider", "repository": { "type": "git", @@ -24,9 +24,9 @@ "watch": "tsc --watch" }, "dependencies": { - "@aws-amplify/amplify-category-custom": "2.5.4", - "@aws-amplify/amplify-environment-parameters": "1.2.0", - "@aws-amplify/cli-extensibility-helper": "2.4.4", + "@aws-amplify/amplify-category-custom": "2.5.5", + "@aws-amplify/amplify-environment-parameters": "1.2.1", + "@aws-amplify/cli-extensibility-helper": "2.4.5", "@aws-amplify/graphql-transformer-core": "^0.17.15", "@aws-amplify/graphql-transformer-interfaces": "^1.14.9", "@aws-cdk/assert": "~1.172.0", @@ -53,10 +53,10 @@ "@aws-cdk/aws-sqs": "~1.172.0", "@aws-cdk/core": "~1.172.0", "@aws-cdk/region-info": "~1.172.0", - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "amplify-cli-logger": "1.2.1", "amplify-codegen": "^3.3.2", - "amplify-prompts": "2.6.0", + "amplify-prompts": "2.6.1", "amplify-util-import": "2.3.0", "archiver": "^5.3.0", "aws-sdk": "^2.1233.0", diff --git a/packages/amplify-python-function-runtime-provider/CHANGELOG.md b/packages/amplify-python-function-runtime-provider/CHANGELOG.md index c7c2e9291a6..965ea0d6c34 100644 --- a/packages/amplify-python-function-runtime-provider/CHANGELOG.md +++ b/packages/amplify-python-function-runtime-provider/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.4.5](https://github.com/aws-amplify/amplify-cli/compare/amplify-python-function-runtime-provider@2.4.4...amplify-python-function-runtime-provider@2.4.5) (2022-11-17) + +**Note:** Version bump only for package amplify-python-function-runtime-provider + + + + + ## [2.4.4](https://github.com/aws-amplify/amplify-cli/compare/amplify-python-function-runtime-provider@2.4.3...amplify-python-function-runtime-provider@2.4.4) (2022-10-27) **Note:** Version bump only for package amplify-python-function-runtime-provider diff --git a/packages/amplify-python-function-runtime-provider/package.json b/packages/amplify-python-function-runtime-provider/package.json index bee5d34502b..d03ca1752ce 100644 --- a/packages/amplify-python-function-runtime-provider/package.json +++ b/packages/amplify-python-function-runtime-provider/package.json @@ -1,6 +1,6 @@ { "name": "amplify-python-function-runtime-provider", - "version": "2.4.4", + "version": "2.4.5", "description": "Provides functionality related to functions in Python on AWS", "repository": { "type": "git", @@ -21,7 +21,7 @@ "clean": "rimraf lib tsconfig.tsbuildinfo node_modules" }, "dependencies": { - "amplify-cli-core": "3.3.0", + "amplify-cli-core": "3.4.0", "amplify-function-plugin-interface": "1.9.5", "execa": "^5.1.1", "glob": "^7.2.0", diff --git a/packages/amplify-util-headless-input/CHANGELOG.md b/packages/amplify-util-headless-input/CHANGELOG.md index c3cd4615c93..592dee0ea66 100644 --- a/packages/amplify-util-headless-input/CHANGELOG.md +++ b/packages/amplify-util-headless-input/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.9.7](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-headless-input@1.9.6...amplify-util-headless-input@1.9.7) (2022-11-17) + +**Note:** Version bump only for package amplify-util-headless-input + + + + + ## [1.9.6](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-headless-input@1.9.5...amplify-util-headless-input@1.9.6) (2022-10-13) **Note:** Version bump only for package amplify-util-headless-input diff --git a/packages/amplify-util-headless-input/package.json b/packages/amplify-util-headless-input/package.json index b8e034cfe3c..be39ec4f939 100644 --- a/packages/amplify-util-headless-input/package.json +++ b/packages/amplify-util-headless-input/package.json @@ -1,6 +1,6 @@ { "name": "amplify-util-headless-input", - "version": "1.9.6", + "version": "1.9.7", "description": "Logic for validating objects against JSON-schema specs and performing version upgrades when necessary / possible", "main": "lib/index.js", "scripts": { @@ -16,7 +16,7 @@ "license": "Apache-2.0", "dependencies": { "ajv": "^6.12.6", - "amplify-headless-interface": "1.15.0" + "amplify-headless-interface": "1.16.0" }, "devDependencies": { "@types/json-schema": "^7.0.5", diff --git a/packages/amplify-util-mock/CHANGELOG.md b/packages/amplify-util-mock/CHANGELOG.md index 0bb41081d21..cfecd8154b8 100644 --- a/packages/amplify-util-mock/CHANGELOG.md +++ b/packages/amplify-util-mock/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.7.0](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-mock@4.6.1...amplify-util-mock@4.7.0) (2022-11-17) + + +### Features + +* add searchable mocking ([#11326](https://github.com/aws-amplify/amplify-cli/issues/11326)) ([da313bb](https://github.com/aws-amplify/amplify-cli/commit/da313bbaa61068519e6f1dfefd6029e9479d226a)) +* add Searchable mocking feature ([#11089](https://github.com/aws-amplify/amplify-cli/issues/11089)) ([899fe22](https://github.com/aws-amplify/amplify-cli/commit/899fe225b31a3d0e88a8090e13b8da0c725b69a1)) + + +### Reverts + +* Revert "feat: add Searchable mocking feature (#11089)" (#11324) ([6dfe8ed](https://github.com/aws-amplify/amplify-cli/commit/6dfe8ed16549a40c3ad72248612414287a444d8f)), closes [#11089](https://github.com/aws-amplify/amplify-cli/issues/11089) [#11324](https://github.com/aws-amplify/amplify-cli/issues/11324) + + + +## 10.3.2 (2022-10-25) + + + + + ## [4.6.1](https://github.com/aws-amplify/amplify-cli/compare/amplify-util-mock@4.6.0...amplify-util-mock@4.6.1) (2022-11-11) **Note:** Version bump only for package amplify-util-mock diff --git a/packages/amplify-util-mock/package.json b/packages/amplify-util-mock/package.json index 3f7a9ebf742..4f70ea0b5cd 100644 --- a/packages/amplify-util-mock/package.json +++ b/packages/amplify-util-mock/package.json @@ -1,6 +1,6 @@ { "name": "amplify-util-mock", - "version": "4.6.1", + "version": "4.7.0", "description": "amplify cli plugin providing local testing", "repository": { "type": "git", @@ -28,15 +28,15 @@ "jest": "jest" }, "dependencies": { - "@aws-amplify/amplify-appsync-simulator": "2.7.0", + "@aws-amplify/amplify-appsync-simulator": "2.8.0", + "@aws-amplify/amplify-opensearch-simulator": "1.1.0", "@hapi/topo": "^5.0.0", - "amplify-category-function": "4.2.0", - "amplify-cli-core": "3.3.0", + "amplify-category-function": "4.2.1", + "amplify-cli-core": "3.4.0", "amplify-codegen": "^3.3.2", - "amplify-dynamodb-simulator": "2.5.0", - "@aws-amplify/amplify-opensearch-simulator": "1.0.0", - "amplify-prompts": "2.6.0", - "amplify-provider-awscloudformation": "6.9.0", + "amplify-dynamodb-simulator": "2.5.1", + "amplify-prompts": "2.6.1", + "amplify-provider-awscloudformation": "6.9.1", "amplify-storage-simulator": "1.7.0", "chokidar": "^3.5.3", "detect-port": "^1.3.0", @@ -69,7 +69,7 @@ "@types/semver": "^7.1.0", "@types/which": "^1.3.2", "amplify-function-plugin-interface": "1.9.5", - "amplify-nodejs-function-runtime-provider": "2.3.4", + "amplify-nodejs-function-runtime-provider": "2.3.5", "aws-appsync": "^4.1.4", "aws-sdk": "^2.1233.0", "aws-sdk-mock": "^5.8.0", @@ -122,4 +122,4 @@ "usePathForSuiteName": "true", "addFileAttribute": "true" } -} \ No newline at end of file +} diff --git a/packages/amplify-util-uibuilder/CHANGELOG.md b/packages/amplify-util-uibuilder/CHANGELOG.md index a351722da09..ba450664091 100644 --- a/packages/amplify-util-uibuilder/CHANGELOG.md +++ b/packages/amplify-util-uibuilder/CHANGELOG.md @@ -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.6.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.6.0...@aws-amplify/amplify-util-uibuilder@1.6.1) (2022-11-17) + + +### Bug Fixes + +* generate default theme if user has no themes ([#11343](https://github.com/aws-amplify/amplify-cli/issues/11343)) ([13a02ac](https://github.com/aws-amplify/amplify-cli/commit/13a02ac32de717a518336871b1c741aa2714562b)) + + + + + # [1.6.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.5.0...@aws-amplify/amplify-util-uibuilder@1.6.0) (2022-10-27) diff --git a/packages/amplify-util-uibuilder/package.json b/packages/amplify-util-uibuilder/package.json index f6705278740..dfc18dbb46e 100644 --- a/packages/amplify-util-uibuilder/package.json +++ b/packages/amplify-util-uibuilder/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/amplify-util-uibuilder", - "version": "1.6.0", + "version": "1.6.1", "description": "", "main": "lib/index.js", "scripts": { @@ -15,8 +15,8 @@ "dependencies": { "@aws-amplify/codegen-ui": "2.5.4", "@aws-amplify/codegen-ui-react": "2.5.4", - "amplify-cli-core": "3.3.0", - "amplify-prompts": "2.6.0", + "amplify-cli-core": "3.4.0", + "amplify-prompts": "2.6.1", "aws-sdk": "^2.1233.0", "fs-extra": "^8.1.0", "ora": "^4.0.3" From 1922caaf70ab7c10ef97996aea355960b9605a96 Mon Sep 17 00:00:00 2001 From: awsluja <110861985+awsluja@users.noreply.github.com> Date: Thu, 17 Nov 2022 10:07:49 -0800 Subject: [PATCH 09/30] chore: truncate long file names (#11422) --- packages/amplify-e2e-core/src/nexpect-reporter.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/amplify-e2e-core/src/nexpect-reporter.js b/packages/amplify-e2e-core/src/nexpect-reporter.js index 4ce3366afee..9f918800a42 100644 --- a/packages/amplify-e2e-core/src/nexpect-reporter.js +++ b/packages/amplify-e2e-core/src/nexpect-reporter.js @@ -84,7 +84,10 @@ class AmplifyCLIExecutionReporter { // this ensures only alphanumeric values are in the file name sanitizedSections.push(section.replace(/[^a-z0-9]/gi, '_').toLowerCase()); } - const suffix = sanitizedSections.join('_'); + let suffix = sanitizedSections.join('_'); + if(suffix.length > 30){ + suffix = suffix.substring(0, 30); + } const castFile = `${new Date().getTime()}_${index}_${suffix}.cast`; const castFilePath = path.join(publicPath, castFile); fs.writeFileSync(castFilePath, r.recording); From d8a9270ab99ccd5f03a7c7b0c9fba264fabf9daf Mon Sep 17 00:00:00 2001 From: awsluja <110861985+awsluja@users.noreply.github.com> Date: Thu, 17 Nov 2022 11:02:10 -0800 Subject: [PATCH 10/30] chore: add random delay to spread sdk calls (#11423) --- .circleci/local_publish_helpers.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 7ebe3ebd977..2307ffac379 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -208,6 +208,8 @@ function setAwsAccountCredentials { export AWS_ACCESS_KEY_ID_ORIG=$AWS_ACCESS_KEY_ID export AWS_SECRET_ACCESS_KEY_ORIG=$AWS_SECRET_ACCESS_KEY export AWS_SESSION_TOKEN_ORIG=$AWS_SESSION_TOKEN + # introduce a delay of up to 3 minutes to allow for more even spread aws list-accounts calls due to throttling + sleep $[ ( $RANDOM % 180 ) + 1 ]s if [[ "$OSTYPE" == "msys" ]]; then # windows provided by circleci has this OSTYPE useChildAccountCredentials From 1dc42bae3f84a78f08f5a2148f50d5db20cbee27 Mon Sep 17 00:00:00 2001 From: Kamil Sobol Date: Thu, 17 Nov 2022 11:46:52 -0800 Subject: [PATCH 11/30] chore: add binary validation in all builds (#11424) * chore: add binary validation in all builds * chore: add binary validation in all builds - fix script * chore: add binary validation in all builds - try this * chore: add binary validation in all builds - try this * chore: add binary validation in all builds - try this * chore: add binary validation in all builds - try this * chore: add binary validation in all builds - try this * chore: add binary validation in all builds - try this * chore: add binary validation in all builds - try this * chore: add binary validation in all builds - try this --- .circleci/config.base.yml | 165 ++++++++++++++++++++++++++--- .circleci/local_publish_helpers.sh | 66 +++++++++--- .circleci/publish.sh | 25 ++++- 3 files changed, 222 insertions(+), 34 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 3b4e3745322..42525386a05 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -213,7 +213,30 @@ jobs: paths: - ~/repo/.amplify-pkg-version - build_pkg_binaries: + upload_pkg_binaries: + <<: *linux-e2e-executor + steps: + - restore_cache: + key: amplify-cli-repo-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-linux-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-macos-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-win-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-arm-{{ .Branch }}-{{ .Revision }} + - run: + name: Consolidate binaries cache and upload + command: | + source .circleci/local_publish_helpers.sh + uploadPkgCli + - save_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + paths: + - ~/repo/out + + build_pkg_binaries_linux: <<: *linux-e2e-executor steps: - restore_cache: @@ -229,14 +252,101 @@ jobs: startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal changeNpmGlobalPath - generatePkgCli + generatePkgCli linux unsetNpmRegistryUrl - uploadPkgCli - save_cache: - key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + key: amplify-pkg-binaries-linux-{{ .Branch }}-{{ .Revision }} + paths: + - ~/repo/out + + build_pkg_binaries_macos: + <<: *linux-e2e-executor + steps: + - restore_cache: + key: amplify-cli-repo-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio and package CLI + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + generatePkgCli macos + unsetNpmRegistryUrl + - save_cache: + key: amplify-pkg-binaries-macos-{{ .Branch }}-{{ .Revision }} paths: - ~/repo/out + build_pkg_binaries_win: + <<: *linux-e2e-executor + steps: + - restore_cache: + key: amplify-cli-repo-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio and package CLI + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + generatePkgCli win + unsetNpmRegistryUrl + - save_cache: + key: amplify-pkg-binaries-win-{{ .Branch }}-{{ .Revision }} + paths: + - ~/repo/out + + build_pkg_binaries_arm: + <<: *linux-e2e-executor + steps: + - restore_cache: + key: amplify-cli-repo-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio and package CLI + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + generatePkgCli arm + unsetNpmRegistryUrl + - save_cache: + key: amplify-pkg-binaries-arm-{{ .Branch }}-{{ .Revision }} + paths: + - ~/repo/out + + verify_pkg_binaries: + <<: *linux-e2e-executor + steps: + - restore_cache: + key: amplify-cli-repo-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-linux-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-macos-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-win-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-arm-{{ .Branch }}-{{ .Revision }} + - run: + name: Verify packaged CLI + command: | + source .circleci/local_publish_helpers.sh + verifyPkgCli + graphql_e2e_tests: <<: *defaults steps: @@ -748,7 +858,7 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - build_pkg_binaries + - upload_pkg_binaries - integration_test: context: - e2e-test-context @@ -762,6 +872,9 @@ workflows: requires: - build - publish_to_local_registry: + requires: + - build + - upload_pkg_binaries: filters: branches: only: @@ -772,19 +885,37 @@ workflows: - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ - /run-e2e\/.*/ - requires: - - build - - build_pkg_binaries: context: - e2e-auth-credentials - e2e-test-context - amplify-s3-upload + requires: + - build_pkg_binaries_linux + - build_pkg_binaries_macos + - build_pkg_binaries_win + - build_pkg_binaries_arm + - build_pkg_binaries_linux: + requires: + - publish_to_local_registry + - build_pkg_binaries_macos: + requires: + - publish_to_local_registry + - build_pkg_binaries_win: requires: - publish_to_local_registry + - build_pkg_binaries_arm: + requires: + - publish_to_local_registry + - verify_pkg_binaries: + requires: + - build_pkg_binaries_linux + - build_pkg_binaries_macos + - build_pkg_binaries_win + - build_pkg_binaries_arm - amplify_sudo_install_test: context: amplify-ecr-image-pull requires: - - build_pkg_binaries + - upload_pkg_binaries filters: branches: only: @@ -817,7 +948,7 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - build_pkg_binaries + - upload_pkg_binaries - build_windows_workspace_for_e2e - amplify_migration_tests_v6: context: @@ -832,7 +963,7 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - build_pkg_binaries + - upload_pkg_binaries - amplify_migration_tests_v5: context: - e2e-auth-credentials @@ -846,7 +977,7 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - build_pkg_binaries + - upload_pkg_binaries - amplify_migration_tests_non_multi_env_layers: context: - e2e-auth-credentials @@ -860,7 +991,7 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - build_pkg_binaries + - upload_pkg_binaries - amplify_migration_tests_multi_env_layers: context: - e2e-auth-credentials @@ -874,7 +1005,7 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/.*/ requires: - - build_pkg_binaries + - upload_pkg_binaries - amplify_console_integration_tests: context: - e2e-auth-credentials @@ -886,11 +1017,11 @@ workflows: only: - dev requires: - - build_pkg_binaries + - upload_pkg_binaries - github_prerelease: context: github-publish requires: - - build_pkg_binaries + - upload_pkg_binaries filters: branches: only: @@ -949,7 +1080,7 @@ workflows: - amplify_migration_tests_non_multi_env_layers - amplify_migration_tests_multi_env_layers - github_prerelease_install_sanity_check - - build_pkg_binaries + - upload_pkg_binaries filters: branches: only: diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 2307ffac379..6f313f06c1a 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -21,11 +21,6 @@ function uploadPkgCli { export version=$(./amplify-pkg-linux-x64 --version) if [[ "$CIRCLE_BRANCH" == "release" ]] || [[ "$CIRCLE_BRANCH" =~ ^run-e2e-with-rc\/.* ]] || [[ "$CIRCLE_BRANCH" =~ ^release_rc\/.* ]] || [[ "$CIRCLE_BRANCH" =~ ^tagged-release ]]; then - tar -czvf amplify-pkg-linux-arm64.tgz amplify-pkg-linux-arm64 - tar -czvf amplify-pkg-linux-x64.tgz amplify-pkg-linux-x64 - tar -czvf amplify-pkg-macos-x64.tgz amplify-pkg-macos-x64 - tar -czvf amplify-pkg-win-x64.tgz amplify-pkg-win-x64.exe - aws --profile=s3-uploader s3 cp amplify-pkg-win-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-win-x64-$(echo $hash).tgz aws --profile=s3-uploader s3 cp amplify-pkg-macos-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-macos-x64-$(echo $hash).tgz aws --profile=s3-uploader s3 cp amplify-pkg-linux-arm64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-arm64-$(echo $hash).tgz @@ -50,7 +45,6 @@ function uploadPkgCli { aws --profile=s3-uploader s3 cp amplify-pkg-linux-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-x64.tgz else - tar -czvf amplify-pkg-linux-x64.tgz amplify-pkg-linux-x64 aws --profile=s3-uploader s3 cp amplify-pkg-linux-x64.tgz s3://aws-amplify-cli-do-not-delete/$(echo $version)/amplify-pkg-linux-x64-$(echo $hash).tgz fi @@ -78,23 +72,65 @@ function generatePkgCli { # Build pkg cli cp package.json ../build/node_modules/package.json - if [[ "$CIRCLE_BRANCH" == "release" ]] || [[ "$CIRCLE_BRANCH" =~ ^run-e2e-with-rc\/.* ]] || [[ "$CIRCLE_BRANCH" =~ ^release_rc\/.* ]] || [[ "$CIRCLE_BRANCH" =~ ^tagged-release ]]; then - # This will generate a file our arm64 binary + + if [[ "$@" =~ 'arm' ]]; then npx pkg --no-bytecode --public-packages "*" --public -t node14-linux-arm64 ../build/node_modules -o ../out/amplify-pkg-linux-arm64 - # This will generate files for our x64 binaries. - npx pkg -t node14-macos-x64 ../build/node_modules -o ../out/amplify-pkg-macos-x64 + tar -czvf ../out/amplify-pkg-linux-arm64.tgz ../out/amplify-pkg-linux-arm64 + fi + + if [[ "$@" =~ 'linux' ]]; then npx pkg -t node14-linux-x64 ../build/node_modules -o ../out/amplify-pkg-linux-x64 - npx pkg -t node14-win-x64 ../build/node_modules -o ../out/amplify-pkg-win-x64.exe - else - # This will generate files for our x64 binaries. + tar -czvf ../out/amplify-pkg-linux-x64.tgz ../out/amplify-pkg-linux-x64 + fi + + if [[ "$@" =~ 'macos' ]]; then npx pkg -t node14-macos-x64 ../build/node_modules -o ../out/amplify-pkg-macos-x64 - npx pkg -t node14-linux-x64 ../build/node_modules -o ../out/amplify-pkg-linux-x64 - npx pkg -t node14-win-x64 ../build/node_modules -o ../out/amplify-pkg-win-x64.exe + tar -czvf ../out/amplify-pkg-macos-x64.tgz ../out/amplify-pkg-macos-x64 fi + if [[ "$@" =~ 'win' ]]; then + npx pkg -t node14-win-x64 ../build/node_modules -o ../out/amplify-pkg-win-x64.exe + tar -czvf ../out/amplify-pkg-win-x64.tgz ../out/amplify-pkg-win-x64.exe + fi cd .. } + +function verifyPkgCli { + echo "Human readable sizes" + du -h out/* + echo "Sizes in bytes" + wc -c out/* + + linux_compressed_binary_threshold_in_bytes=$((200 * 1024 * 1024)) + linux_compressed_binary_size=$(wc -c out/amplify-pkg-linux-x64.tgz | awk '{print $1}') + if (( linux_compressed_binary_size > linux_compressed_binary_threshold_in_bytes )); then + echo "Linux compressed binary size has grown over $linux_compressed_binary_threshold_in_bytes bytes" + exit 1 + fi + + macos_compressed_binary_threshold_in_bytes=$((200 * 1024 * 1024)) + macos_compressed_binary_size=$(wc -c out/amplify-pkg-macos-x64.tgz | awk '{print $1}') + if (( macos_compressed_binary_size > macos_compressed_binary_threshold_in_bytes )); then + echo "MacOS compressed binary size has grown over $macos_compressed_binary_threshold_in_bytes bytes" + exit 1 + fi + + win_compressed_binary_threshold_in_bytes=$((200 * 1024 * 1024)) + win_compressed_binary_size=$(wc -c out/amplify-pkg-win-x64.tgz | awk '{print $1}') + if (( win_compressed_binary_size > win_compressed_binary_threshold_in_bytes )); then + echo "Windows compressed binary size has grown over $win_compressed_binary_threshold_in_bytes bytes" + exit 1 + fi + + arm_compressed_binary_threshold_in_bytes=$((150 * 1024 * 1024)) + arm_compressed_binary_size=$(wc -c out/amplify-pkg-linux-arm64.tgz | awk '{print $1}') + if (( arm_compressed_binary_size > arm_compressed_binary_threshold_in_bytes )); then + echo "Windows compressed binary size has grown over $arm_compressed_binary_threshold_in_bytes bytes" + exit 1 + fi +} + function unsetNpmRegistryUrl { # Restore the original NPM and Yarn registry URLs npm set registry "https://registry.npmjs.org/" diff --git a/.circleci/publish.sh b/.circleci/publish.sh index 56a00931bb7..b30188467e3 100755 --- a/.circleci/publish.sh +++ b/.circleci/publish.sh @@ -1,6 +1,27 @@ #!/bin/bash -e -git config --global user.email $GITHUB_EMAIL -git config --global user.name $GITHUB_USER + +if [ -z "$GITHUB_EMAIL" ]; then + if [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then + git config --global user.email not@used.com + else + echo "GITHUB_EMAIL email is missing" + exit 1 + fi +else + git config --global user.email $GITHUB_EMAIL +fi + +if [ -z "$GITHUB_USER" ]; then + if [[ "$LOCAL_PUBLISH_TO_LATEST" == "true" ]]; then + git config --global user.name "Doesnt Matter" + else + echo "GITHUB_USER email is missing" + exit 1 + fi +else + git config --global user.name $GITHUB_USER +fi + if [[ "$CIRCLE_BRANCH" =~ ^tagged-release ]]; then if [[ "$CIRCLE_BRANCH" =~ ^tagged-release-without-e2e-tests\/.* ]]; then # Remove tagged-release-without-e2e-tests/ From 334173a5cab0ccb34529756b07d4dd9c3b571439 Mon Sep 17 00:00:00 2001 From: Kamil Sobol Date: Thu, 17 Nov 2022 13:52:22 -0800 Subject: [PATCH 12/30] fix: include arm64 in github release (#11431) * fix: include arm64 in github release * Update config.base.yml don't need that --- scripts/github-prerelease.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/github-prerelease.ts b/scripts/github-prerelease.ts index e3390a2a51d..1240d0fbfbb 100644 --- a/scripts/github-prerelease.ts +++ b/scripts/github-prerelease.ts @@ -9,7 +9,7 @@ import { unifiedChangelogPath } from './constants'; */ const binariesDir = join(__dirname, '..', 'out'); const binaryNamePrefix = 'amplify-pkg-'; -const platformSuffixes = ['linux', 'macos', 'win.exe']; +const platformSuffixes = ['linux', 'linux-arm64', 'macos', 'win.exe']; const validateVersion = async (version: string) => { if (!valid(version)) { From e9fb32fa78c3bdbbc5ef2539a1fe6a93109327ae Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Thu, 17 Nov 2022 14:29:59 -0800 Subject: [PATCH 13/30] fix: fallback to tpi when no backend dir (#11419) --- .../src/__tests__/attach-backend.test.ts | 55 +++++++++++++++++++ packages/amplify-cli/src/attach-backend.ts | 4 +- 2 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 packages/amplify-cli/src/__tests__/attach-backend.test.ts diff --git a/packages/amplify-cli/src/__tests__/attach-backend.test.ts b/packages/amplify-cli/src/__tests__/attach-backend.test.ts new file mode 100644 index 00000000000..de01c11d30e --- /dev/null +++ b/packages/amplify-cli/src/__tests__/attach-backend.test.ts @@ -0,0 +1,55 @@ +import { $TSContext, stateManager } from 'amplify-cli-core'; +import { attachBackend } from '../attach-backend'; + +jest.mock('../amplify-service-helper'); +jest.mock('../attach-backend-steps/a10-queryProvider'); +jest.mock('../attach-backend-steps/a20-analyzeProject'); +jest.mock('../attach-backend-steps/a30-initFrontend'); +jest.mock('../attach-backend-steps/a40-generateFiles'); +jest.mock('../initialize-env'); +jest.mock('amplify-prompts'); + +jest.mock('amplify-cli-core'); +jest.mock('fs-extra'); +const stateManagerMock = stateManager as jest.Mocked; + +const testAppId = 'testAppId'; + +stateManagerMock.getTeamProviderInfo.mockReturnValue({ + test: { + awscloudformation: { + AmplifyAppId: testAppId, + }, + }, +}); + +stateManagerMock.getLocalEnvInfo.mockReturnValue({ + noUpdateBackend: true, + envName: 'test', +}); +stateManagerMock.getLocalAWSInfo.mockReturnValue({ + test: {}, +}); + +describe('attachBackend', () => { + it('sets input params appId to team provider app id if not already present', async () => { + const inputParams = { + yes: true, + test: {}, + amplify: { + defaultEditor: 'test', + projectName: 'test', + envName: 'test', + frontend: 'test', + noOverride: false, + }, + }; + const contextStub = { + exeInfo: { + awsConfigInfo: {}, + }, + } as unknown as $TSContext; + await attachBackend(contextStub, inputParams); + expect(contextStub.exeInfo.inputParams.amplify.appId).toBe(testAppId); + }); +}); diff --git a/packages/amplify-cli/src/attach-backend.ts b/packages/amplify-cli/src/attach-backend.ts index d60a71f6bc8..913648128cc 100644 --- a/packages/amplify-cli/src/attach-backend.ts +++ b/packages/amplify-cli/src/attach-backend.ts @@ -14,7 +14,6 @@ import { queryProvider } from './attach-backend-steps/a10-queryProvider'; import { analyzeProject } from './attach-backend-steps/a20-analyzeProject'; import { initFrontend } from './attach-backend-steps/a30-initFrontend'; import { generateFiles } from './attach-backend-steps/a40-generateFiles'; -import { getAmplifyAppId } from './extensions/amplify-helpers/get-amplify-appId'; import { initializeEnv } from './initialize-env'; const backupAmplifyDirName = 'amplify-backup'; @@ -225,7 +224,8 @@ const updateContextForNoUpdateBackendProjects = (context: $TSContext): void => { context.exeInfo.inputParams.amplify.envName = context.exeInfo.inputParams.amplify.envName || envName; context.exeInfo.inputParams.amplify.frontend = context.exeInfo.inputParams.amplify.frontend || context.exeInfo.existingProjectConfig.frontend; - context.exeInfo.inputParams.amplify.appId = context.exeInfo.inputParams.amplify.appId || getAmplifyAppId(); + context.exeInfo.inputParams.amplify.appId = context.exeInfo.inputParams.amplify.appId + || context.exeInfo.existingTeamProviderInfo[envName].awscloudformation?.AmplifyAppId; // eslint-disable-next-line max-len context.exeInfo.inputParams[context.exeInfo.inputParams.amplify.frontend] = context.exeInfo.inputParams[context.exeInfo.inputParams.amplify.frontend] || context.exeInfo.existingProjectConfig[context.exeInfo.inputParams.amplify.frontend]; From bd81d741aa93ba7263b378921bf82f771046c5c7 Mon Sep 17 00:00:00 2001 From: Kamil Sobol Date: Fri, 18 Nov 2022 11:03:53 -0800 Subject: [PATCH 14/30] chore: add api extractor (#11346) * chore: add api extractor * chore: add api extractor - add yarn install * chore: add api extractor - try this * chore: add api extractor - try this * chore: add api extractor - try this * chore: add api extractor - try this * chore: add api extractor - fix warning * chore: add api extractor - validation * chore: add api extractor - api files * chore: add api extractor - api files * chore: add api extractor - pr feedback * chore: add api extractor - add hook * chore: add api extractor - try hook * chore: add api extractor - try hook * chore: add api extractor - undo this for now * chore: add api extractor - refactor this file. * chore: add api extractor - add hook. * chore: add api extractor - try hook. * chore: update API.md * chore: add api extractor - can't commit on push really * chore: add api extractor - try hook * chore: add api extractor - that worked nice. * chore: add api extractor - missed that part * chore: add api extractor - remove private * chore: add api dif --- .circleci/config.base.yml | 25 + CONTRIBUTING.md | 2 +- nx.json | 51 +- package.json | 8 +- packages/amplify-appsync-simulator/API.md | 363 ++++ .../amplify-appsync-simulator/package.json | 3 +- packages/amplify-category-analytics/API.md | 55 + .../amplify-category-analytics/package.json | 3 +- packages/amplify-category-auth/API.md | 129 ++ packages/amplify-category-auth/package.json | 3 +- packages/amplify-category-custom/API.md | 37 + packages/amplify-category-custom/package.json | 3 +- packages/amplify-category-function/API.md | 127 ++ .../amplify-category-function/package.json | 3 +- packages/amplify-category-geo/API.md | 28 + packages/amplify-category-geo/package.json | 3 +- packages/amplify-category-interactions/API.md | 24 + .../package.json | 3 +- .../amplify-category-notifications/API.md | 42 + .../package.json | 3 +- packages/amplify-category-predictions/API.md | 9 + .../amplify-category-predictions/package.json | 3 +- packages/amplify-category-storage/API.md | 127 ++ .../amplify-category-storage/package.json | 3 +- packages/amplify-cli-core/API.md | 1527 +++++++++++++++++ packages/amplify-cli-core/package.json | 3 +- .../amplify-cli-extensibility-helper/API.md | 192 +++ .../package.json | 3 +- packages/amplify-cli-logger/API.md | 23 + packages/amplify-cli-logger/package.json | 3 +- packages/amplify-cli-npm/API.md | 15 + packages/amplify-cli-npm/package.json | 3 +- packages/amplify-cli-shared-interfaces/API.md | 88 + .../package.json | 3 +- packages/amplify-cli/API.md | 115 ++ packages/amplify-cli/package.json | 3 +- packages/amplify-console-hosting/API.md | 25 + packages/amplify-console-hosting/package.json | 3 +- packages/amplify-container-hosting/API.md | 9 + .../amplify-container-hosting/package.json | 3 +- .../API.md | 14 + .../package.json | 3 +- .../API.md | 14 + .../package.json | 3 +- .../amplify-environment-parameters/API.md | 34 + .../package.json | 3 +- .../amplify-function-plugin-interface/API.md | 360 ++++ .../package.json | 3 +- .../API.md | 18 + .../package.json | 3 +- .../API.md | 14 + .../package.json | 3 +- packages/amplify-headless-interface/API.md | 662 +++++++ .../amplify-headless-interface/package.json | 3 +- .../API.md | 18 + .../package.json | 3 +- .../API.md | 14 + .../package.json | 3 +- .../API.md | 14 + .../package.json | 3 +- .../API.md | 14 + .../package.json | 3 +- packages/amplify-opensearch-simulator/API.md | 79 + .../amplify-opensearch-simulator/package.json | 3 +- packages/amplify-prompts/API.md | 244 +++ packages/amplify-prompts/package.json | 3 +- .../amplify-provider-awscloudformation/API.md | 52 + .../package.json | 3 +- .../API.md | 18 + .../package.json | 3 +- .../API.md | 18 + .../package.json | 3 +- packages/amplify-storage-simulator/API.md | 43 + .../amplify-storage-simulator/package.json | 3 +- packages/amplify-util-headless-input/API.md | 54 + .../amplify-util-headless-input/package.json | 3 +- packages/amplify-util-import/API.md | 69 + packages/amplify-util-import/package.json | 3 +- packages/amplify-util-mock/API.md | 15 + packages/amplify-util-mock/package.json | 3 +- packages/amplify-util-uibuilder/API.md | 19 + packages/amplify-util-uibuilder/package.json | 3 +- scripts/api-extractor.json | 44 + scripts/extract-api.ts | 39 + scripts/package.json | 1 + scripts/verify_extract_api.sh | 8 + scripts/yarn.lock | 288 ++++ 87 files changed, 5243 insertions(+), 62 deletions(-) create mode 100644 packages/amplify-appsync-simulator/API.md create mode 100644 packages/amplify-category-analytics/API.md create mode 100644 packages/amplify-category-auth/API.md create mode 100644 packages/amplify-category-custom/API.md create mode 100644 packages/amplify-category-function/API.md create mode 100644 packages/amplify-category-geo/API.md create mode 100644 packages/amplify-category-interactions/API.md create mode 100644 packages/amplify-category-notifications/API.md create mode 100644 packages/amplify-category-predictions/API.md create mode 100644 packages/amplify-category-storage/API.md create mode 100644 packages/amplify-cli-core/API.md create mode 100644 packages/amplify-cli-extensibility-helper/API.md create mode 100644 packages/amplify-cli-logger/API.md create mode 100644 packages/amplify-cli-npm/API.md create mode 100644 packages/amplify-cli-shared-interfaces/API.md create mode 100644 packages/amplify-cli/API.md create mode 100644 packages/amplify-console-hosting/API.md create mode 100644 packages/amplify-container-hosting/API.md create mode 100644 packages/amplify-dotnet-function-runtime-provider/API.md create mode 100644 packages/amplify-dotnet-function-template-provider/API.md create mode 100644 packages/amplify-environment-parameters/API.md create mode 100644 packages/amplify-function-plugin-interface/API.md create mode 100644 packages/amplify-go-function-runtime-provider/API.md create mode 100644 packages/amplify-go-function-template-provider/API.md create mode 100644 packages/amplify-headless-interface/API.md create mode 100644 packages/amplify-java-function-runtime-provider/API.md create mode 100644 packages/amplify-java-function-template-provider/API.md create mode 100644 packages/amplify-nodejs-function-runtime-provider/API.md create mode 100644 packages/amplify-nodejs-function-template-provider/API.md create mode 100644 packages/amplify-opensearch-simulator/API.md create mode 100644 packages/amplify-prompts/API.md create mode 100644 packages/amplify-provider-awscloudformation/API.md create mode 100644 packages/amplify-python-function-runtime-provider/API.md create mode 100644 packages/amplify-python-function-template-provider/API.md create mode 100644 packages/amplify-storage-simulator/API.md create mode 100644 packages/amplify-util-headless-input/API.md create mode 100644 packages/amplify-util-import/API.md create mode 100644 packages/amplify-util-mock/API.md create mode 100644 packages/amplify-util-uibuilder/API.md create mode 100644 scripts/api-extractor.json create mode 100644 scripts/extract-api.ts create mode 100755 scripts/verify_extract_api.sh diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 42525386a05..745beb062b9 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -156,6 +156,21 @@ jobs: key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: chmod +x .circleci/lint_pr.sh && ./.circleci/lint_pr.sh + verify-api-extract: + <<: *linux-e2e-executor + steps: + - restore_cache: + key: amplify-cli-repo-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - run: + name: extract api + command: | + cd scripts + yarn install + cd .. + yarn verify-api-extract + mock_e2e_tests: <<: *linux-e2e-executor steps: @@ -828,6 +843,16 @@ workflows: - release - /release_rc\/.*/ - /tagged-release-without-e2e-tests\/.*/ + - verify-api-extract: + requires: + - build + filters: + branches: + ignore: + - beta + - release + - /release_rc\/.*/ + - /tagged-release-without-e2e-tests\/.*/ - test: requires: - build diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b528fa627ae..814d972c0c0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -171,7 +171,7 @@ You will notice the extra actions carried out when you run the `git commit` or ` "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", - "pre-push": "yarn build-tests-changed && yarn split-e2e-tests", + "pre-push": "yarn verify-api-extract && yarn build-tests-changed && yarn split-e2e-tests", "pre-commit": "yarn verify-commit" } } diff --git a/nx.json b/nx.json index 549cca57a91..630d8798c40 100644 --- a/nx.json +++ b/nx.json @@ -10,31 +10,44 @@ "test", "lint", "package", - "prepare" + "prepare", + "extract-api" ] } } }, - "targetDependencies": { - "build": [ - { - "target": "build", - "projects": "dependencies" - } - ], - "prepare": [ - { - "target": "prepare", - "projects": "dependencies" - } - ], - "package": [ - { - "target": "package", - "projects": "dependencies" - } + "namedInputs": { + "default": [ + "{projectRoot}/**/*", + "!{projectRoot}/**/*.md" ] }, + "targetDefaults": { + "build": { + "inputs": [ "default", "^default" ], + "dependsOn": [ "^build" ] + }, + "prepare": { + "inputs": [ "default", "^default" ], + "dependsOn": [ "^prepare" ] + }, + "package": { + "inputs": [ "default", "^default" ], + "dependsOn": [ "^package" ] + }, + "test": { + "inputs": [ "default", "^default" ], + "dependsOn": [ "build" ] + }, + "extract-api": { + "dependsOn": [ "build" ], + "inputs": [ + "{projectRoot}/src/**/*", + "!{projectRoot}/src/__tests__/**/*" + ], + "outputs": [ "{projectRoot}/API.md" ] + } + }, "affected": { "defaultBase": "dev" }, diff --git a/package.json b/package.json index 8ea57cc9d1a..d153180da94 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,9 @@ "release-rc": "./scripts/release-rc.sh", "promote-rc": "./scripts/promote-rc.sh", "finish-release": "./scripts/finish-release.sh", - "update-data-packages": "./scripts/update-data-dependencies.sh && yarn" + "update-data-packages": "./scripts/update-data-dependencies.sh && yarn", + "extract-api": "nx run-many --target=extract-api --all", + "verify-api-extract": "yarn extract-api && ./scripts/verify_extract_api.sh" }, "bugs": { "url": "https://github.com/aws-amplify/amplify-cli/issues" @@ -61,7 +63,7 @@ "husky": { "hooks": { "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", - "pre-push": "yarn build-tests-changed && yarn split-e2e-tests", + "pre-push": "yarn verify-api-extract && yarn build-tests-changed && yarn split-e2e-tests", "pre-commit": "yarn verify-commit" } }, @@ -137,4 +139,4 @@ "**/nth-check": "^2.0.1", "**/undici": "^5.8.0" } -} \ No newline at end of file +} diff --git a/packages/amplify-appsync-simulator/API.md b/packages/amplify-appsync-simulator/API.md new file mode 100644 index 00000000000..32fae224b83 --- /dev/null +++ b/packages/amplify-appsync-simulator/API.md @@ -0,0 +1,363 @@ +## API Report File for "@aws-amplify/amplify-appsync-simulator" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { GraphQLResolveInfo } from 'graphql'; +import { GraphQLSchema } from 'graphql'; +import { PubSub } from 'graphql-subscriptions'; +import { Request as Request_2 } from 'express'; + +// Warning: (ae-forgotten-export) The symbol "AmplifyAppSyncSimulatorDataLoader" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export function addDataLoader(sourceType: AppSyncSimulatorDataSourceType, loader: new (config?: AppSyncSimulatorDataSourceConfig) => AmplifyAppSyncSimulatorDataLoader): void; + +// @public (undocumented) +export type AmplifyAppSyncAPIConfig = { + name: string; + defaultAuthenticationType: AmplifyAppSyncAuthenticationProviderConfig; + authRoleName?: string; + unAuthRoleName?: string; + authAccessKeyId?: string; + accountId?: string; + apiKey?: string; + additionalAuthenticationProviders: AmplifyAppSyncAuthenticationProviderConfig[]; +}; + +// @public (undocumented) +export type AmplifyAppSyncAuthenticationProviderAPIConfig = { + authenticationType: AmplifyAppSyncSimulatorAuthenticationType.API_KEY; +}; + +// @public (undocumented) +export type AmplifyAppSyncAuthenticationProviderCognitoConfig = { + authenticationType: AmplifyAppSyncSimulatorAuthenticationType.AMAZON_COGNITO_USER_POOLS; + cognitoUserPoolConfig: { + AppIdClientRegex?: string; + }; +}; + +// @public (undocumented) +export type AmplifyAppSyncAuthenticationProviderConfig = AmplifyAppSyncAuthenticationProviderAPIConfig | AmplifyAppSyncAuthenticationProviderIAMConfig | AmplifyAppSyncAuthenticationProviderCognitoConfig | AmplifyAppSyncAuthenticationProviderOIDCConfig | AmplifyAppSyncAuthenticationProviderLambdaConfig; + +// @public (undocumented) +export type AmplifyAppSyncAuthenticationProviderIAMConfig = { + authenticationType: AmplifyAppSyncSimulatorAuthenticationType.AWS_IAM; +}; + +// @public (undocumented) +export type AmplifyAppSyncAuthenticationProviderLambdaConfig = { + authenticationType: AmplifyAppSyncSimulatorAuthenticationType.AWS_LAMBDA; + lambdaAuthorizerConfig: { + AuthorizerUri: string; + AuthorizerResultTtlInSeconds?: number; + }; +}; + +// @public (undocumented) +export type AmplifyAppSyncAuthenticationProviderOIDCConfig = { + authenticationType: AmplifyAppSyncSimulatorAuthenticationType.OPENID_CONNECT; + openIDConnectConfig: { + Issuer?: string; + ClientId?: string; + }; +}; + +// @public (undocumented) +export class AmplifyAppSyncSimulator { + constructor(serverConfig?: AppSyncSimulatorServerConfig); + // (undocumented) + get appSyncConfig(): AmplifyAppSyncAPIConfig; + // (undocumented) + asyncIterator(trigger: string): AsyncIterator; + // (undocumented) + get config(): AmplifyAppSyncSimulatorConfig; + // (undocumented) + getDataLoader(sourceName: string): AmplifyAppSyncSimulatorDataLoader; + // Warning: (ae-forgotten-export) The symbol "AmplifySimulatorFunction" needs to be exported by the entry point index.d.ts + // + // (undocumented) + getFunction(functionName: string): AmplifySimulatorFunction; + // (undocumented) + getMappingTemplate(path: string): VelocityTemplate; + // (undocumented) + getResolver(typeName: any, fieldName: any): any; + // (undocumented) + init(config: AmplifyAppSyncSimulatorConfig): void; + // (undocumented) + get pubsub(): PubSub; + // (undocumented) + reload(config: AmplifyAppSyncSimulatorConfig): void; + // (undocumented) + get schema(): GraphQLSchema; + // (undocumented) + start(): Promise; + // (undocumented) + stop(): void; + // (undocumented) + get url(): string; +} + +// @public (undocumented) +export enum AmplifyAppSyncSimulatorAuthenticationType { + // (undocumented) + AMAZON_COGNITO_USER_POOLS = "AMAZON_COGNITO_USER_POOLS", + // (undocumented) + API_KEY = "API_KEY", + // (undocumented) + AWS_IAM = "AWS_IAM", + // (undocumented) + AWS_LAMBDA = "AWS_LAMBDA", + // (undocumented) + OPENID_CONNECT = "OPENID_CONNECT" +} + +// @public (undocumented) +export type AmplifyAppSyncSimulatorConfig = { + schema: AppSyncSimulatorSchemaConfig; + resolvers?: (AppSyncSimulatorUnitResolverConfig | AppSyncSimulatorPipelineResolverConfig)[]; + functions?: AppSyncSimulatorFunctionsConfig[]; + dataSources?: AppSyncSimulatorDataSourceConfig[]; + mappingTemplates?: AppSyncSimulatorMappingTemplate[]; + tables?: AppSyncSimulatorTable[]; + appSync: AmplifyAppSyncAPIConfig; +}; + +// @public (undocumented) +export type AmplifyAppSyncSimulatorRequestContext = { + jwt?: object; + requestAuthorizationMode: AmplifyAppSyncSimulatorAuthenticationType; + request: Request_2; + appsyncErrors: {}; +}; + +// @public (undocumented) +export type AppSyncGraphQLExecutionContext = { + readonly sourceIp?: string; + readonly jwt?: JWTToken; + readonly iamToken?: IAMToken; + headers: Record; + appsyncErrors?: Error[]; + requestAuthorizationMode: AmplifyAppSyncSimulatorAuthenticationType; +}; + +// @public (undocumented) +export type AppSyncMockFile = { + path?: string; + content: string; +}; + +// @public (undocumented) +export interface AppSyncSimulatorBaseResolverConfig { + // (undocumented) + requestMappingTemplate?: string; + // (undocumented) + requestMappingTemplateLocation?: string; + // (undocumented) + responseMappingTemplate?: string; + // (undocumented) + responseMappingTemplateLocation?: string; +} + +// @public (undocumented) +export interface AppSyncSimulatorDataSourceBaseConfig { + // (undocumented) + name: string; + // (undocumented) + type: AppSyncSimulatorDataSourceType | `${AppSyncSimulatorDataSourceType}`; +} + +// @public (undocumented) +export type AppSyncSimulatorDataSourceConfig = AppSyncSimulatorDataSourceDDBConfig | AppSyncSimulatorDataSourceNoneConfig | AppSyncSimulatorDataSourceLambdaConfig; + +// @public (undocumented) +export interface AppSyncSimulatorDataSourceDDBConfig extends AppSyncSimulatorDataSourceBaseConfig { + // (undocumented) + config: { + endpoint: string; + region?: string; + accessKeyId?: string; + secretAccessKey?: string; + tableName: string; + }; + // (undocumented) + type: AppSyncSimulatorDataSourceType.DynamoDB | `${AppSyncSimulatorDataSourceType.DynamoDB}`; +} + +// @public (undocumented) +export interface AppSyncSimulatorDataSourceLambdaConfig extends AppSyncSimulatorDataSourceBaseConfig { + // (undocumented) + invoke: Function; + // (undocumented) + type: AppSyncSimulatorDataSourceType.Lambda | `${AppSyncSimulatorDataSourceType.Lambda}`; +} + +// @public (undocumented) +export interface AppSyncSimulatorDataSourceNoneConfig extends AppSyncSimulatorDataSourceBaseConfig { + // (undocumented) + type: AppSyncSimulatorDataSourceType.None | `${AppSyncSimulatorDataSourceType.None}`; +} + +// @public (undocumented) +export const enum AppSyncSimulatorDataSourceType { + // (undocumented) + DynamoDB = "AMAZON_DYNAMODB", + // (undocumented) + Lambda = "AWS_LAMBDA", + // (undocumented) + None = "NONE", + // (undocumented) + OpenSearch = "AMAZON_ELASTICSEARCH" +} + +// @public (undocumented) +export interface AppSyncSimulatorFunctionResolverConfig extends AppSyncSimulatorBaseResolverConfig { + // (undocumented) + dataSourceName: string; +} + +// @public (undocumented) +export type AppSyncSimulatorFunctionsConfig = { + name: string; + dataSourceName: string; + requestMappingTemplateLocation: string; + responseMappingTemplateLocation: string; +}; + +// @public (undocumented) +export type AppSyncSimulatorMappingTemplate = AppSyncMockFile; + +// @public (undocumented) +export interface AppSyncSimulatorPipelineResolver extends AppSyncSimulatorUnitResolverConfig { + // (undocumented) + functions: string[]; +} + +// @public (undocumented) +export interface AppSyncSimulatorPipelineResolverConfig extends AppSyncSimulatorBaseResolverConfig { + // (undocumented) + fieldName: string; + // (undocumented) + functions: string[]; + // (undocumented) + kind: RESOLVER_KIND.PIPELINE; + // (undocumented) + typeName: string; +} + +// @public (undocumented) +export type AppSyncSimulatorRequestContext = { + jwt?: { + iss?: string; + sub?: string; + 'cognito:username'?: string; + }; + request?: object; +}; + +// @public (undocumented) +export type AppSyncSimulatorSchemaConfig = AppSyncMockFile; + +// @public (undocumented) +export type AppSyncSimulatorServerConfig = { + port?: number; + wsPort?: number; +}; + +// @public (undocumented) +export type AppSyncSimulatorTable = string; + +// @public (undocumented) +export interface AppSyncSimulatorUnitResolver extends AppSyncSimulatorUnitResolverConfig { + // (undocumented) + datSourceName: string; +} + +// @public (undocumented) +export interface AppSyncSimulatorUnitResolverConfig extends AppSyncSimulatorBaseResolverConfig { + // (undocumented) + dataSourceName: string; + // (undocumented) + fieldName: string; + // (undocumented) + kind: RESOLVER_KIND.UNIT; + // (undocumented) + typeName: string; +} + +// @public (undocumented) +export type AppSyncVTLRenderContext = { + arguments: object; + source: object; + stash?: object; + result?: any; + prevResult?: any; + error?: any; +}; + +// @public (undocumented) +export type AppSyncVTLTemplate = AppSyncMockFile; + +// @public (undocumented) +export type IAMToken = { + accountId: string; + userArn: string; + username: string; + cognitoIdentityPoolId?: string; + cognitoIdentityId?: string; + cognitoIdentityAuthType?: 'authenticated' | 'unauthenticated'; + cognitoIdentityAuthProvider?: string; +}; + +// @public (undocumented) +export type JWTToken = { + iss: string; + sub: string; + aud: string; + exp: number; + iat: number; + event_id?: string; + token_use?: string; + auth_time?: number; + nbf?: number; + username?: string; + email?: string; + groups?: string[]; + 'cognito:username'?: string; + 'cognito:groups'?: string[]; +}; + +// @public (undocumented) +export function removeDataLoader(sourceType: AppSyncSimulatorDataSourceType): boolean; + +// @public (undocumented) +export enum RESOLVER_KIND { + // (undocumented) + PIPELINE = "PIPELINE", + // (undocumented) + UNIT = "UNIT" +} + +// @public (undocumented) +export class VelocityTemplate { + constructor(template: AppSyncVTLTemplate, simulatorContext: AmplifyAppSyncSimulator); + // (undocumented) + render(ctxValues: AppSyncVTLRenderContext, requestContext: AppSyncGraphQLExecutionContext, info?: GraphQLResolveInfo): { + result: any; + stash: any; + args: any; + errors: any; + isReturn: boolean; + hadException: boolean; + }; +} + +// @public (undocumented) +export class VelocityTemplateParseError extends Error { +} + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/amplify-appsync-simulator/package.json b/packages/amplify-appsync-simulator/package.json index 2f84f1552aa..363d4df72ee 100644 --- a/packages/amplify-appsync-simulator/package.json +++ b/packages/amplify-appsync-simulator/package.json @@ -26,7 +26,8 @@ "clean": "rimraf ./lib tsconfig.tsbuildinfo tsconfig.tests.tsbuildinfo node_modules", "watch": "tsc -w", "start": "node ./lib/index.js", - "test": "jest --logHeapUsage --forceExit" + "test": "jest --logHeapUsage --forceExit", + "extract-api": "ts-node ../../scripts/extract-api.ts" }, "dependencies": { "@graphql-tools/schema": "^8.3.1", diff --git a/packages/amplify-category-analytics/API.md b/packages/amplify-category-analytics/API.md new file mode 100644 index 00000000000..34d651710e2 --- /dev/null +++ b/packages/amplify-category-analytics/API.md @@ -0,0 +1,55 @@ +## API Report File for "amplify-category-analytics" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { $TSAny } from 'amplify-cli-core'; +import { $TSContext } from 'amplify-cli-core'; +import { IAmplifyResource } from 'amplify-cli-core'; +import { IAnalyticsResource } from 'amplify-cli-core'; +import { IPluginCapabilityAPIResponse } from 'amplify-cli-core'; +import { NotificationChannels } from 'amplify-cli-core'; + +// @public (undocumented) +export const analyticsPluginAPICreateResource: (context: $TSContext, resourceProviderServiceName: string) => Promise; + +// @public (undocumented) +export const analyticsPluginAPIGetResources: (resourceProviderServiceName?: string | undefined, context?: $TSContext | undefined) => Array; + +// @public (undocumented) +export const analyticsPluginAPIMigrations: (context: $TSContext) => Promise; + +// @public (undocumented) +export const analyticsPluginAPIPinpointHasInAppMessagingPolicy: (context: $TSContext) => Promise; + +// @public (undocumented) +export const analyticsPluginAPIPostPush: (context: $TSContext) => Promise<$TSContext>; + +// @public (undocumented) +export const analyticsPluginAPIPush: (context: $TSContext, resourceProviderServiceName: string) => Promise; + +// @public (undocumented) +export const analyticsPluginAPIToggleNotificationChannel: (resourceProviderServiceName: string, channel: NotificationChannels, enableChannel: boolean) => Promise; + +// @public (undocumented) +const console_2: (context: $TSContext) => Promise; +export { console_2 as console } + +// @public (undocumented) +export const executeAmplifyCommand: (context: $TSContext) => Promise<$TSAny>; + +// @public (undocumented) +export const getPermissionPolicies: (context: $TSContext, resourceOpsMapping: { + [x: string]: any; +}) => Promise<$TSAny>; + +// @public (undocumented) +export const handleAmplifyEvent: (__context: $TSContext, args: $TSAny) => Promise; + +// @public (undocumented) +export const migrate: (context: $TSContext) => void; + +// (No @packageDocumentation comment for this package) + +``` diff --git a/packages/amplify-category-analytics/package.json b/packages/amplify-category-analytics/package.json index 82fa95c9179..aeb9fe2981e 100644 --- a/packages/amplify-category-analytics/package.json +++ b/packages/amplify-category-analytics/package.json @@ -18,7 +18,8 @@ "build": "tsc", "clean": "rimraf lib tsconfig.tsbuildinfo node_modules", "watch": "tsc --watch", - "test": "jest --logHeapUsage" + "test": "jest --logHeapUsage", + "extract-api": "ts-node ../../scripts/extract-api.ts" }, "dependencies": { "@aws-amplify/amplify-environment-parameters": "1.2.1", diff --git a/packages/amplify-category-auth/API.md b/packages/amplify-category-auth/API.md new file mode 100644 index 00000000000..77764ca24f1 --- /dev/null +++ b/packages/amplify-category-auth/API.md @@ -0,0 +1,129 @@ +## API Report File for "@aws-amplify/amplify-category-auth" + +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). + +```ts + +import { $TSAny } from 'amplify-cli-core'; +import { $TSContext } from 'amplify-cli-core'; +import { AmplifyCategoryTransform } from 'amplify-cli-core'; +import { Template } from 'amplify-cli-core'; + +// @public (undocumented) +export function add(context: any, skipNextSteps?: boolean): Promise; + +// @public (undocumented) +export class AmplifyAuthTransform extends AmplifyCategoryTransform { + constructor(resourceName: string); + // (undocumented) + applyOverride: () => Promise; + // (undocumented) + saveBuildFiles: (context: $TSContext, template: Template) => Promise; + // (undocumented) + transform(context: $TSContext): Promise