From cabcfac3d090c6e80528fdd2319937b81180eb4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=E2=84=93e=20Hensel?= Date: Tue, 23 Feb 2021 09:09:13 +1300 Subject: [PATCH 01/34] fix(@aws-amplify/auth) correct validationData type definition (#7100) --- packages/auth/src/types/Auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/auth/src/types/Auth.ts b/packages/auth/src/types/Auth.ts index 060f54454ed..1d8ccb2a679 100644 --- a/packages/auth/src/types/Auth.ts +++ b/packages/auth/src/types/Auth.ts @@ -14,7 +14,7 @@ import { ICookieStorageData, ICognitoStorage, - CognitoUserAttribute, + ICognitoUserAttributeData, } from 'amazon-cognito-identity-js'; /** @@ -24,7 +24,7 @@ export interface SignUpParams { username: string; password: string; attributes?: object; - validationData?: CognitoUserAttribute[]; + validationData?: ICognitoUserAttributeData[]; clientMetadata?: { [key: string]: string }; } From 59e6396cf7f0424b3befa1888ea937f96ef5ce60 Mon Sep 17 00:00:00 2001 From: William Lee <43682783+wlee221@users.noreply.github.com> Date: Mon, 22 Feb 2021 12:46:03 -0800 Subject: [PATCH 02/34] chore(amazon-cognito-identity-js): bump buffer to 4.9.2 (#7783) --- packages/amazon-cognito-identity-js/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amazon-cognito-identity-js/package.json b/packages/amazon-cognito-identity-js/package.json index 63862bc2799..0b79a76a54a 100644 --- a/packages/amazon-cognito-identity-js/package.json +++ b/packages/amazon-cognito-identity-js/package.json @@ -64,7 +64,7 @@ "jsnext:main": "es/index.js", "types": "./index.d.ts", "dependencies": { - "buffer": "4.9.1", + "buffer": "4.9.2", "crypto-js": "^3.3.0", "fast-base64-decode": "^1.0.0", "isomorphic-unfetch": "^3.0.0", From ac0ef4b994a863fac3b5899fe7190c20a070fa16 Mon Sep 17 00:00:00 2001 From: William Lee <43682783+wlee221@users.noreply.github.com> Date: Mon, 22 Feb 2021 13:33:54 -0800 Subject: [PATCH 03/34] chore(@aws-amplify/ui-vue): Use rimraf instead of rm -rf (#7758) --- packages/amplify-ui-vue/package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/amplify-ui-vue/package.json b/packages/amplify-ui-vue/package.json index 89659574a54..5990299fd69 100644 --- a/packages/amplify-ui-vue/package.json +++ b/packages/amplify-ui-vue/package.json @@ -19,12 +19,15 @@ "dependencies": { "@aws-amplify/ui-components": "1.0.2" }, + "devDependencies": { + "rimraf": "^3.0.2" + }, "peerDependencies": { "vue": "2.x.x" }, "scripts": { "build": "npm run clean && npm run compile", - "clean": "rm -rf dist", + "clean": "rimraf dist", "compile": "npm run tsc", "tsc": "tsc -p ." } From 0eec66d7c58b22a0a83322ebc7f62a4dce2ec9d0 Mon Sep 17 00:00:00 2001 From: William Lee <43682783+wlee221@users.noreply.github.com> Date: Thu, 25 Feb 2021 12:43:24 -0800 Subject: [PATCH 04/34] chore: bump aws-sdk to 3.6.1 (#7822) --- packages/analytics/package.json | 10 +++++----- packages/core/package.json | 8 ++++---- packages/interactions/package.json | 2 +- packages/predictions/package.json | 14 +++++++------- packages/storage/package.json | 8 ++++---- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/analytics/package.json b/packages/analytics/package.json index e15adab2ed3..a66a51d3be2 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -45,11 +45,11 @@ "dependencies": { "@aws-amplify/cache": "3.1.48", "@aws-amplify/core": "3.8.15", - "@aws-sdk/client-firehose": "3.4.1", - "@aws-sdk/client-kinesis": "3.4.1", - "@aws-sdk/client-personalize-events": "3.4.1", - "@aws-sdk/client-pinpoint": "3.4.1", - "@aws-sdk/util-utf8-browser": "3.4.1", + "@aws-sdk/client-firehose": "3.6.1", + "@aws-sdk/client-kinesis": "3.6.1", + "@aws-sdk/client-personalize-events": "3.6.1", + "@aws-sdk/client-pinpoint": "3.6.1", + "@aws-sdk/util-utf8-browser": "3.6.1", "lodash": "^4.17.20", "uuid": "^3.2.1" }, diff --git a/packages/core/package.json b/packages/core/package.json index bd9f27cd44f..10f3eccd654 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -55,10 +55,10 @@ }, "dependencies": { "@aws-crypto/sha256-js": "1.0.0-alpha.0", - "@aws-sdk/client-cognito-identity": "3.4.1", - "@aws-sdk/credential-provider-cognito-identity": "3.4.1", - "@aws-sdk/types": "3.4.1", - "@aws-sdk/util-hex-encoding": "3.4.1", + "@aws-sdk/client-cognito-identity": "3.6.1", + "@aws-sdk/credential-provider-cognito-identity": "3.6.1", + "@aws-sdk/types": "3.6.1", + "@aws-sdk/util-hex-encoding": "3.6.1", "universal-cookie": "^4.0.4", "zen-observable-ts": "0.8.19" }, diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 030747e165c..68c7ff64dfc 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -42,7 +42,7 @@ "homepage": "https://aws-amplify.github.io/", "dependencies": { "@aws-amplify/core": "3.8.15", - "@aws-sdk/client-lex-runtime-service": "3.4.1" + "@aws-sdk/client-lex-runtime-service": "3.6.1" }, "jest": { "globals": { diff --git a/packages/predictions/package.json b/packages/predictions/package.json index 947397edaba..e4c7ee1f0c0 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -42,13 +42,13 @@ "dependencies": { "@aws-amplify/core": "3.8.15", "@aws-amplify/storage": "3.3.23", - "@aws-sdk/client-comprehend": "3.4.1", - "@aws-sdk/client-polly": "3.4.1", - "@aws-sdk/client-rekognition": "3.4.1", - "@aws-sdk/client-textract": "3.4.1", - "@aws-sdk/client-translate": "3.4.1", - "@aws-sdk/eventstream-marshaller": "3.4.1", - "@aws-sdk/util-utf8-node": "3.4.1", + "@aws-sdk/client-comprehend": "3.6.1", + "@aws-sdk/client-polly": "3.6.1", + "@aws-sdk/client-rekognition": "3.6.1", + "@aws-sdk/client-textract": "3.6.1", + "@aws-sdk/client-translate": "3.6.1", + "@aws-sdk/eventstream-marshaller": "3.6.1", + "@aws-sdk/util-utf8-node": "3.6.1", "uuid": "^3.2.1" }, "jest": { diff --git a/packages/storage/package.json b/packages/storage/package.json index 95cb647b325..17803c48995 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -42,10 +42,10 @@ "homepage": "https://aws-amplify.github.io/", "dependencies": { "@aws-amplify/core": "3.8.15", - "@aws-sdk/client-s3": "3.4.1", - "@aws-sdk/s3-request-presigner": "3.4.1", - "@aws-sdk/util-create-request": "3.4.1", - "@aws-sdk/util-format-url": "3.4.1", + "@aws-sdk/client-s3": "3.6.1", + "@aws-sdk/s3-request-presigner": "3.6.1", + "@aws-sdk/util-create-request": "3.6.1", + "@aws-sdk/util-format-url": "3.6.1", "axios": "0.21.1", "events": "^3.1.0", "sinon": "^7.5.0" From d32be03dfb69eebbad36b11e07b13b2f3a4289c8 Mon Sep 17 00:00:00 2001 From: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com> Date: Thu, 25 Feb 2021 16:36:51 -0500 Subject: [PATCH 05/34] chore: preparing release From 2b181d5956984d48b554b073b9a1ce70b84c7fbc Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Thu, 25 Feb 2021 22:03:04 +0000 Subject: [PATCH 06/34] chore(release): Publish [ci skip] - amazon-cognito-identity-js@4.5.12 - @aws-amplify/ui-angular@1.0.3 - @aws-amplify/ui-components@1.0.3 - @aws-amplify/ui-react@1.0.3 - @aws-amplify/ui-storybook@1.0.3 - @aws-amplify/ui-vue@1.0.3 - @aws-amplify/analytics@4.0.12 - @aws-amplify/api-graphql@1.2.24 - @aws-amplify/api-rest@1.2.24 - @aws-amplify/api@3.2.24 - @aws-amplify/auth@3.4.24 - aws-amplify-angular@5.0.50 - aws-amplify-react@4.2.25 - aws-amplify@3.3.21 - @aws-amplify/cache@3.1.49 - @aws-amplify/core@3.8.16 - @aws-amplify/datastore@2.9.10 - @aws-amplify/interactions@3.3.24 - @aws-amplify/predictions@3.2.24 - @aws-amplify/pubsub@3.2.22 - @aws-amplify/pushnotification@3.2.24 - @aws-amplify/storage@3.3.24 - @aws-amplify/xr@2.2.24 --- .../amazon-cognito-identity-js/CHANGELOG.md | 8 +++++++ .../package-lock.json | 2 +- .../amazon-cognito-identity-js/package.json | 2 +- packages/amplify-ui-angular/CHANGELOG.md | 8 +++++++ packages/amplify-ui-angular/package.json | 4 ++-- packages/amplify-ui-components/CHANGELOG.md | 8 +++++++ packages/amplify-ui-components/package.json | 2 +- packages/amplify-ui-react/CHANGELOG.md | 8 +++++++ packages/amplify-ui-react/package.json | 4 ++-- packages/amplify-ui-storybook/CHANGELOG.md | 8 +++++++ packages/amplify-ui-storybook/package.json | 4 ++-- packages/amplify-ui-vue/CHANGELOG.md | 8 +++++++ packages/amplify-ui-vue/package.json | 4 ++-- packages/analytics/CHANGELOG.md | 8 +++++++ packages/analytics/package.json | 6 ++--- packages/api-graphql/CHANGELOG.md | 8 +++++++ packages/api-graphql/package.json | 12 +++++----- packages/api-rest/CHANGELOG.md | 8 +++++++ packages/api-rest/package.json | 4 ++-- packages/api/CHANGELOG.md | 8 +++++++ packages/api/package.json | 6 ++--- packages/auth/CHANGELOG.md | 8 +++++++ packages/auth/package.json | 8 +++---- packages/aws-amplify-angular/CHANGELOG.md | 8 +++++++ packages/aws-amplify-angular/package.json | 4 ++-- packages/aws-amplify-react/CHANGELOG.md | 8 +++++++ packages/aws-amplify-react/package.json | 4 ++-- packages/aws-amplify/CHANGELOG.md | 8 +++++++ packages/aws-amplify/package.json | 24 +++++++++---------- packages/cache/CHANGELOG.md | 8 +++++++ packages/cache/package.json | 4 ++-- packages/core/CHANGELOG.md | 8 +++++++ packages/core/package.json | 2 +- packages/datastore/CHANGELOG.md | 11 +++++++++ packages/datastore/package.json | 8 +++---- packages/interactions/CHANGELOG.md | 8 +++++++ packages/interactions/package.json | 4 ++-- packages/predictions/CHANGELOG.md | 8 +++++++ packages/predictions/package.json | 6 ++--- packages/pubsub/CHANGELOG.md | 8 +++++++ packages/pubsub/package.json | 8 +++---- packages/pushnotification/CHANGELOG.md | 8 +++++++ packages/pushnotification/package.json | 4 ++-- packages/storage/CHANGELOG.md | 8 +++++++ packages/storage/package.json | 4 ++-- packages/xr/CHANGELOG.md | 8 +++++++ packages/xr/package.json | 4 ++-- 47 files changed, 254 insertions(+), 67 deletions(-) diff --git a/packages/amazon-cognito-identity-js/CHANGELOG.md b/packages/amazon-cognito-identity-js/CHANGELOG.md index 21ef59ad667..87bdf50288f 100644 --- a/packages/amazon-cognito-identity-js/CHANGELOG.md +++ b/packages/amazon-cognito-identity-js/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.5.12](https://github.com/aws-amplify/amplify-js/compare/amazon-cognito-identity-js@4.5.11...amazon-cognito-identity-js@4.5.12) (2021-02-25) + +**Note:** Version bump only for package amazon-cognito-identity-js + + + + + ## [4.5.11](https://github.com/aws-amplify/amplify-js/compare/amazon-cognito-identity-js@4.5.10...amazon-cognito-identity-js@4.5.11) (2021-02-18) diff --git a/packages/amazon-cognito-identity-js/package-lock.json b/packages/amazon-cognito-identity-js/package-lock.json index 265f7e1cd06..d18a242a3f9 100644 --- a/packages/amazon-cognito-identity-js/package-lock.json +++ b/packages/amazon-cognito-identity-js/package-lock.json @@ -1,6 +1,6 @@ { "name": "amazon-cognito-identity-js", - "version": "4.5.11", + "version": "4.5.12", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/amazon-cognito-identity-js/package.json b/packages/amazon-cognito-identity-js/package.json index 0b79a76a54a..35a3c4df367 100644 --- a/packages/amazon-cognito-identity-js/package.json +++ b/packages/amazon-cognito-identity-js/package.json @@ -1,7 +1,7 @@ { "name": "amazon-cognito-identity-js", "description": "Amazon Cognito Identity Provider JavaScript SDK", - "version": "4.5.11", + "version": "4.5.12", "author": { "name": "Amazon Web Services", "email": "aws@amazon.com", diff --git a/packages/amplify-ui-angular/CHANGELOG.md b/packages/amplify-ui-angular/CHANGELOG.md index cc149eab5cc..24df15a5558 100644 --- a/packages/amplify-ui-angular/CHANGELOG.md +++ b/packages/amplify-ui-angular/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.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-angular@1.0.2...@aws-amplify/ui-angular@1.0.3) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/ui-angular + + + + + ## [1.0.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-angular@1.0.1...@aws-amplify/ui-angular@1.0.2) (2021-02-18) **Note:** Version bump only for package @aws-amplify/ui-angular diff --git a/packages/amplify-ui-angular/package.json b/packages/amplify-ui-angular/package.json index 8b0b5f03841..2b4f07ffed8 100644 --- a/packages/amplify-ui-angular/package.json +++ b/packages/amplify-ui-angular/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-angular", - "version": "1.0.2", + "version": "1.0.3", "description": "Angular specific wrapper for @aws-amplify/ui-components", "publishConfig": { "access": "public" @@ -31,7 +31,7 @@ "dist/" ], "dependencies": { - "@aws-amplify/ui-components": "1.0.2" + "@aws-amplify/ui-components": "1.0.3" }, "devDependencies": { "@angular/compiler-cli": "^7.2.1", diff --git a/packages/amplify-ui-components/CHANGELOG.md b/packages/amplify-ui-components/CHANGELOG.md index 2786bb553da..9fd016faede 100644 --- a/packages/amplify-ui-components/CHANGELOG.md +++ b/packages/amplify-ui-components/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.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-components@1.0.2...@aws-amplify/ui-components@1.0.3) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/ui-components + + + + + ## [1.0.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-components@1.0.1...@aws-amplify/ui-components@1.0.2) (2021-02-18) **Note:** Version bump only for package @aws-amplify/ui-components diff --git a/packages/amplify-ui-components/package.json b/packages/amplify-ui-components/package.json index fd588d722d4..363debc94af 100644 --- a/packages/amplify-ui-components/package.json +++ b/packages/amplify-ui-components/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-components", - "version": "1.0.2", + "version": "1.0.3", "description": "Core Amplify UI Component Library", "module": "dist/index.mjs", "main": "dist/index.js", diff --git a/packages/amplify-ui-react/CHANGELOG.md b/packages/amplify-ui-react/CHANGELOG.md index d32fe9a3313..883b4cfd9ed 100644 --- a/packages/amplify-ui-react/CHANGELOG.md +++ b/packages/amplify-ui-react/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.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-react@1.0.2...@aws-amplify/ui-react@1.0.3) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/ui-react + + + + + ## [1.0.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-react@1.0.1...@aws-amplify/ui-react@1.0.2) (2021-02-18) **Note:** Version bump only for package @aws-amplify/ui-react diff --git a/packages/amplify-ui-react/package.json b/packages/amplify-ui-react/package.json index bec31f97ab1..9a635765828 100755 --- a/packages/amplify-ui-react/package.json +++ b/packages/amplify-ui-react/package.json @@ -1,7 +1,7 @@ { "name": "@aws-amplify/ui-react", "sideEffects": false, - "version": "1.0.2", + "version": "1.0.3", "description": "React specific wrapper for @aws-amplify/ui-components", "publishConfig": { "access": "public" @@ -32,7 +32,7 @@ "typescript": "^3.3.4000" }, "dependencies": { - "@aws-amplify/ui-components": "1.0.2" + "@aws-amplify/ui-components": "1.0.3" }, "peerDependencies": { "react": ">= 16.7.0", diff --git a/packages/amplify-ui-storybook/CHANGELOG.md b/packages/amplify-ui-storybook/CHANGELOG.md index ac3be6e439f..665ee1c4076 100644 --- a/packages/amplify-ui-storybook/CHANGELOG.md +++ b/packages/amplify-ui-storybook/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.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-storybook@1.0.2...@aws-amplify/ui-storybook@1.0.3) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/ui-storybook + + + + + ## [1.0.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-storybook@1.0.1...@aws-amplify/ui-storybook@1.0.2) (2021-02-18) **Note:** Version bump only for package @aws-amplify/ui-storybook diff --git a/packages/amplify-ui-storybook/package.json b/packages/amplify-ui-storybook/package.json index 3993994b9a4..9b4bad100ee 100644 --- a/packages/amplify-ui-storybook/package.json +++ b/packages/amplify-ui-storybook/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-storybook", - "version": "1.0.2", + "version": "1.0.3", "private": true, "dependencies": { "@aws-amplify/ui-react": "0.2.38", @@ -10,7 +10,7 @@ "@types/node": "^12.0.0", "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", - "aws-amplify": "3.3.20", + "aws-amplify": "3.3.21", "react": "^16.12.0", "react-app-polyfill": "^1.0.6", "react-dom": "^16.12.0", diff --git a/packages/amplify-ui-vue/CHANGELOG.md b/packages/amplify-ui-vue/CHANGELOG.md index bf811e96d3f..6d0e78f7d2d 100644 --- a/packages/amplify-ui-vue/CHANGELOG.md +++ b/packages/amplify-ui-vue/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.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-vue@1.0.2...@aws-amplify/ui-vue@1.0.3) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/ui-vue + + + + + ## [1.0.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-vue@1.0.1...@aws-amplify/ui-vue@1.0.2) (2021-02-18) **Note:** Version bump only for package @aws-amplify/ui-vue diff --git a/packages/amplify-ui-vue/package.json b/packages/amplify-ui-vue/package.json index 5990299fd69..b622008d9cc 100644 --- a/packages/amplify-ui-vue/package.json +++ b/packages/amplify-ui-vue/package.json @@ -1,7 +1,7 @@ { "name": "@aws-amplify/ui-vue", "sideEffects": true, - "version": "1.0.2", + "version": "1.0.3", "description": "Vue specific wrapper for @aws-amplify/ui-components", "publishConfig": { "access": "public" @@ -17,7 +17,7 @@ "url": "https://github.com/aws-amplify/amplify-js.git" }, "dependencies": { - "@aws-amplify/ui-components": "1.0.2" + "@aws-amplify/ui-components": "1.0.3" }, "devDependencies": { "rimraf": "^3.0.2" diff --git a/packages/analytics/CHANGELOG.md b/packages/analytics/CHANGELOG.md index 01c00e47b94..2d34f478e07 100644 --- a/packages/analytics/CHANGELOG.md +++ b/packages/analytics/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.0.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@4.0.11...@aws-amplify/analytics@4.0.12) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/analytics + + + + + ## [4.0.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@4.0.10...@aws-amplify/analytics@4.0.11) (2021-02-18) **Note:** Version bump only for package @aws-amplify/analytics diff --git a/packages/analytics/package.json b/packages/analytics/package.json index a66a51d3be2..0934d2a9aad 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/analytics", - "version": "4.0.11", + "version": "4.0.12", "description": "Analytics category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -43,8 +43,8 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/cache": "3.1.48", - "@aws-amplify/core": "3.8.15", + "@aws-amplify/cache": "3.1.49", + "@aws-amplify/core": "3.8.16", "@aws-sdk/client-firehose": "3.6.1", "@aws-sdk/client-kinesis": "3.6.1", "@aws-sdk/client-personalize-events": "3.6.1", diff --git a/packages/api-graphql/CHANGELOG.md b/packages/api-graphql/CHANGELOG.md index e9877f1de2f..4e2ac41acce 100644 --- a/packages/api-graphql/CHANGELOG.md +++ b/packages/api-graphql/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.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@1.2.23...@aws-amplify/api-graphql@1.2.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/api-graphql + + + + + ## [1.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@1.2.22...@aws-amplify/api-graphql@1.2.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/api-graphql diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index cb43e98bbab..3216f879849 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api-graphql", - "version": "1.2.23", + "version": "1.2.24", "description": "Api-graphql category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,11 +44,11 @@ "@types/zen-observable": "^0.8.0" }, "dependencies": { - "@aws-amplify/api-rest": "1.2.23", - "@aws-amplify/auth": "3.4.23", - "@aws-amplify/cache": "3.1.48", - "@aws-amplify/core": "3.8.15", - "@aws-amplify/pubsub": "3.2.21", + "@aws-amplify/api-rest": "1.2.24", + "@aws-amplify/auth": "3.4.24", + "@aws-amplify/cache": "3.1.49", + "@aws-amplify/core": "3.8.16", + "@aws-amplify/pubsub": "3.2.22", "graphql": "14.0.0", "uuid": "^3.2.1", "zen-observable-ts": "0.8.19" diff --git a/packages/api-rest/CHANGELOG.md b/packages/api-rest/CHANGELOG.md index 28a5f1abdbc..03976176500 100644 --- a/packages/api-rest/CHANGELOG.md +++ b/packages/api-rest/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.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@1.2.23...@aws-amplify/api-rest@1.2.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/api-rest + + + + + ## [1.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@1.2.22...@aws-amplify/api-rest@1.2.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/api-rest diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index 7068ae6daa9..dc91775ab44 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api-rest", - "version": "1.2.23", + "version": "1.2.24", "description": "Api-rest category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.15", + "@aws-amplify/core": "3.8.16", "axios": "0.21.1" }, "jest": { diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index aad535fccb3..efdf3ed74d1 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/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.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@3.2.23...@aws-amplify/api@3.2.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/api + + + + + ## [3.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@3.2.22...@aws-amplify/api@3.2.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/api diff --git a/packages/api/package.json b/packages/api/package.json index d505de22caa..1a84b2eba7e 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api", - "version": "3.2.23", + "version": "3.2.24", "description": "Api category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,8 +44,8 @@ "@types/zen-observable": "^0.8.0" }, "dependencies": { - "@aws-amplify/api-graphql": "1.2.23", - "@aws-amplify/api-rest": "1.2.23" + "@aws-amplify/api-graphql": "1.2.24", + "@aws-amplify/api-rest": "1.2.24" }, "jest": { "globals": { diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index 7d10ecbc513..09eabceaced 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/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.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@3.4.23...@aws-amplify/auth@3.4.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/auth + + + + + ## [3.4.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@3.4.22...@aws-amplify/auth@3.4.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/auth diff --git a/packages/auth/package.json b/packages/auth/package.json index 58263f2e17f..d2721982ae8 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/auth", - "version": "3.4.23", + "version": "3.4.24", "description": "Auth category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,9 +41,9 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/cache": "3.1.48", - "@aws-amplify/core": "3.8.15", - "amazon-cognito-identity-js": "4.5.11", + "@aws-amplify/cache": "3.1.49", + "@aws-amplify/core": "3.8.16", + "amazon-cognito-identity-js": "4.5.12", "crypto-js": "^3.3.0" }, "devDependencies": { diff --git a/packages/aws-amplify-angular/CHANGELOG.md b/packages/aws-amplify-angular/CHANGELOG.md index a3ae835fa75..cda9274fee1 100644 --- a/packages/aws-amplify-angular/CHANGELOG.md +++ b/packages/aws-amplify-angular/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.0.50](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-angular@5.0.49...aws-amplify-angular@5.0.50) (2021-02-25) + +**Note:** Version bump only for package aws-amplify-angular + + + + + ## [5.0.49](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-angular@5.0.48...aws-amplify-angular@5.0.49) (2021-02-18) **Note:** Version bump only for package aws-amplify-angular diff --git a/packages/aws-amplify-angular/package.json b/packages/aws-amplify-angular/package.json index 81fa5c71022..a88d9fcbe55 100644 --- a/packages/aws-amplify-angular/package.json +++ b/packages/aws-amplify-angular/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify-angular", - "version": "5.0.49", + "version": "5.0.50", "description": "AWS Amplify Angular Components", "main": "bundles/aws-amplify-angular.umd.js", "module": "dist/index.js", @@ -39,7 +39,7 @@ "@types/zen-observable": "^0.5.3", "angular2-template-loader": "^0.6.2", "awesome-typescript-loader": "^4.0.1", - "aws-amplify": "3.3.20", + "aws-amplify": "3.3.21", "babel-core": "^6.26.3", "babel-plugin-lodash": "^3.3.4", "babel-preset-env": "^1.7.0", diff --git a/packages/aws-amplify-react/CHANGELOG.md b/packages/aws-amplify-react/CHANGELOG.md index 5130b9e75d7..c0edc2bd5d5 100644 --- a/packages/aws-amplify-react/CHANGELOG.md +++ b/packages/aws-amplify-react/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.25](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-react@4.2.24...aws-amplify-react@4.2.25) (2021-02-25) + +**Note:** Version bump only for package aws-amplify-react + + + + + ## [4.2.24](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-react@4.2.23...aws-amplify-react@4.2.24) (2021-02-18) **Note:** Version bump only for package aws-amplify-react diff --git a/packages/aws-amplify-react/package.json b/packages/aws-amplify-react/package.json index 5e71d51f564..e38a1528d5e 100644 --- a/packages/aws-amplify-react/package.json +++ b/packages/aws-amplify-react/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify-react", - "version": "4.2.24", + "version": "4.2.25", "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -38,7 +38,7 @@ "@types/enzyme-adapter-react-16": "^1.0.3", "@types/react": "^16.0.41", "@types/react-dom": "^16.0.11", - "aws-amplify": "3.3.20", + "aws-amplify": "3.3.21", "enzyme": "^3.1.0", "enzyme-adapter-react-16": "^1.0.3", "enzyme-to-json": "^3.2.1", diff --git a/packages/aws-amplify/CHANGELOG.md b/packages/aws-amplify/CHANGELOG.md index c6aa8994b6d..c8c91390e8e 100644 --- a/packages/aws-amplify/CHANGELOG.md +++ b/packages/aws-amplify/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.21](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@3.3.20...aws-amplify@3.3.21) (2021-02-25) + +**Note:** Version bump only for package aws-amplify + + + + + ## [3.3.20](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@3.3.19...aws-amplify@3.3.20) (2021-02-18) **Note:** Version bump only for package aws-amplify diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 5a1fa3394e3..c7b97067f66 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify", - "version": "3.3.20", + "version": "3.3.21", "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -34,18 +34,18 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/analytics": "4.0.11", - "@aws-amplify/api": "3.2.23", - "@aws-amplify/auth": "3.4.23", - "@aws-amplify/cache": "3.1.48", - "@aws-amplify/core": "3.8.15", - "@aws-amplify/datastore": "2.9.9", - "@aws-amplify/interactions": "3.3.23", - "@aws-amplify/predictions": "3.2.23", - "@aws-amplify/pubsub": "3.2.21", - "@aws-amplify/storage": "3.3.23", + "@aws-amplify/analytics": "4.0.12", + "@aws-amplify/api": "3.2.24", + "@aws-amplify/auth": "3.4.24", + "@aws-amplify/cache": "3.1.49", + "@aws-amplify/core": "3.8.16", + "@aws-amplify/datastore": "2.9.10", + "@aws-amplify/interactions": "3.3.24", + "@aws-amplify/predictions": "3.2.24", + "@aws-amplify/pubsub": "3.2.22", + "@aws-amplify/storage": "3.3.24", "@aws-amplify/ui": "2.0.2", - "@aws-amplify/xr": "2.2.23" + "@aws-amplify/xr": "2.2.24" }, "jest": { "globals": { diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index e07ad4bd651..0b142ac20d8 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/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.1.49](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/cache@3.1.48...@aws-amplify/cache@3.1.49) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/cache + + + + + ## [3.1.48](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/cache@3.1.47...@aws-amplify/cache@3.1.48) (2021-02-18) **Note:** Version bump only for package @aws-amplify/cache diff --git a/packages/cache/package.json b/packages/cache/package.json index 9c026d32327..2040c7c1d4c 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/cache", - "version": "3.1.48", + "version": "3.1.49", "description": "Cache category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,7 +44,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.15" + "@aws-amplify/core": "3.8.16" }, "jest": { "globals": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 5c0494e8b61..187baa723af 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/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.8.16](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@3.8.15...@aws-amplify/core@3.8.16) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/core + + + + + ## [3.8.15](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@3.8.14...@aws-amplify/core@3.8.15) (2021-02-18) **Note:** Version bump only for package @aws-amplify/core diff --git a/packages/core/package.json b/packages/core/package.json index 10f3eccd654..02f97e47a9e 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/core", - "version": "3.8.15", + "version": "3.8.16", "description": "Core category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", diff --git a/packages/datastore/CHANGELOG.md b/packages/datastore/CHANGELOG.md index 0f82903419c..ec67a24e47d 100644 --- a/packages/datastore/CHANGELOG.md +++ b/packages/datastore/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.9.10](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@2.9.9...@aws-amplify/datastore@2.9.10) (2021-02-25) + + +### Bug Fixes + +* **@aws-amplify/datastore:** improve IDB query performance ([#7746](https://github.com/aws-amplify/amplify-js/issues/7746)) ([5b87ad4](https://github.com/aws-amplify/amplify-js/commit/5b87ad485be5521a3ca91aa7bb00bba178e6c8b9)) + + + + + ## [2.9.9](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@2.9.8...@aws-amplify/datastore@2.9.9) (2021-02-18) **Note:** Version bump only for package @aws-amplify/datastore diff --git a/packages/datastore/package.json b/packages/datastore/package.json index caef66a9c31..25c924fd307 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/datastore", - "version": "2.9.9", + "version": "2.9.10", "description": "AppSyncLocal support for aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -48,9 +48,9 @@ "fake-indexeddb": "3.0.0" }, "dependencies": { - "@aws-amplify/api": "3.2.23", - "@aws-amplify/core": "3.8.15", - "@aws-amplify/pubsub": "3.2.21", + "@aws-amplify/api": "3.2.24", + "@aws-amplify/core": "3.8.16", + "@aws-amplify/pubsub": "3.2.22", "idb": "5.0.6", "immer": "8.0.1", "ulid": "2.3.0", diff --git a/packages/interactions/CHANGELOG.md b/packages/interactions/CHANGELOG.md index bcc9ce96311..7298b00729b 100644 --- a/packages/interactions/CHANGELOG.md +++ b/packages/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. +## [3.3.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@3.3.23...@aws-amplify/interactions@3.3.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/interactions + + + + + ## [3.3.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@3.3.22...@aws-amplify/interactions@3.3.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/interactions diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 68c7ff64dfc..85768aa9dc4 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/interactions", - "version": "3.3.23", + "version": "3.3.24", "description": "Interactions category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.15", + "@aws-amplify/core": "3.8.16", "@aws-sdk/client-lex-runtime-service": "3.6.1" }, "jest": { diff --git a/packages/predictions/CHANGELOG.md b/packages/predictions/CHANGELOG.md index 4b4b3a6f2e3..5ca4df5aedf 100644 --- a/packages/predictions/CHANGELOG.md +++ b/packages/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. +## [3.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@3.2.23...@aws-amplify/predictions@3.2.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/predictions + + + + + ## [3.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@3.2.22...@aws-amplify/predictions@3.2.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/predictions diff --git a/packages/predictions/package.json b/packages/predictions/package.json index e4c7ee1f0c0..783f076036d 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/predictions", - "version": "3.2.23", + "version": "3.2.24", "description": "Machine learning category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -40,8 +40,8 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.15", - "@aws-amplify/storage": "3.3.23", + "@aws-amplify/core": "3.8.16", + "@aws-amplify/storage": "3.3.24", "@aws-sdk/client-comprehend": "3.6.1", "@aws-sdk/client-polly": "3.6.1", "@aws-sdk/client-rekognition": "3.6.1", diff --git a/packages/pubsub/CHANGELOG.md b/packages/pubsub/CHANGELOG.md index e9fac0e5ccc..0000ef8e011 100644 --- a/packages/pubsub/CHANGELOG.md +++ b/packages/pubsub/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.2.22](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@3.2.21...@aws-amplify/pubsub@3.2.22) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/pubsub + + + + + ## [3.2.21](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@3.2.20...@aws-amplify/pubsub@3.2.21) (2021-02-18) **Note:** Version bump only for package @aws-amplify/pubsub diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 99e8051c212..f35ef719e9e 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/pubsub", - "version": "3.2.21", + "version": "3.2.22", "description": "Pubsub category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -45,9 +45,9 @@ "cpx": "^1.5.0" }, "dependencies": { - "@aws-amplify/auth": "3.4.23", - "@aws-amplify/cache": "3.1.48", - "@aws-amplify/core": "3.8.15", + "@aws-amplify/auth": "3.4.24", + "@aws-amplify/cache": "3.1.49", + "@aws-amplify/core": "3.8.16", "graphql": "14.0.0", "paho-mqtt": "^1.1.0", "uuid": "^3.2.1", diff --git a/packages/pushnotification/CHANGELOG.md b/packages/pushnotification/CHANGELOG.md index 04307c5e30e..38028382255 100644 --- a/packages/pushnotification/CHANGELOG.md +++ b/packages/pushnotification/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.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pushnotification@3.2.23...@aws-amplify/pushnotification@3.2.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/pushnotification + + + + + ## [3.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pushnotification@3.2.22...@aws-amplify/pushnotification@3.2.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/pushnotification diff --git a/packages/pushnotification/package.json b/packages/pushnotification/package.json index f53a279169c..fce6c137f01 100644 --- a/packages/pushnotification/package.json +++ b/packages/pushnotification/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/pushnotification", - "version": "3.2.23", + "version": "3.2.24", "description": "Push notifications category of aws-amplify", "main": "./lib/index.js", "module": "./lib/index.js", @@ -44,7 +44,7 @@ "webpack": "^3.5.5" }, "dependencies": { - "@aws-amplify/core": "3.8.15", + "@aws-amplify/core": "3.8.16", "@react-native-community/push-notification-ios": "1.0.3" }, "peerdependencies": { diff --git a/packages/storage/CHANGELOG.md b/packages/storage/CHANGELOG.md index 9f45f015857..eb90c4080c2 100644 --- a/packages/storage/CHANGELOG.md +++ b/packages/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.3.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@3.3.23...@aws-amplify/storage@3.3.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/storage + + + + + ## [3.3.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@3.3.22...@aws-amplify/storage@3.3.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/storage diff --git a/packages/storage/package.json b/packages/storage/package.json index 17803c48995..6cd860a90f8 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/storage", - "version": "3.3.23", + "version": "3.3.24", "description": "Storage category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.15", + "@aws-amplify/core": "3.8.16", "@aws-sdk/client-s3": "3.6.1", "@aws-sdk/s3-request-presigner": "3.6.1", "@aws-sdk/util-create-request": "3.6.1", diff --git a/packages/xr/CHANGELOG.md b/packages/xr/CHANGELOG.md index b33ad04c10b..e2c1e112df6 100644 --- a/packages/xr/CHANGELOG.md +++ b/packages/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. +## [2.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/xr@2.2.23...@aws-amplify/xr@2.2.24) (2021-02-25) + +**Note:** Version bump only for package @aws-amplify/xr + + + + + ## [2.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/xr@2.2.22...@aws-amplify/xr@2.2.23) (2021-02-18) **Note:** Version bump only for package @aws-amplify/xr diff --git a/packages/xr/package.json b/packages/xr/package.json index 71457647b20..726c2c7eaca 100644 --- a/packages/xr/package.json +++ b/packages/xr/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/xr", - "version": "2.2.23", + "version": "2.2.24", "description": "XR category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.15" + "@aws-amplify/core": "3.8.16" }, "jest": { "globals": { From 98f7fafd4c92baa41ea55867145751d50e0952e7 Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Thu, 25 Feb 2021 22:05:49 +0000 Subject: [PATCH 07/34] chore(release): update version.ts [ci skip] --- packages/core/src/Platform/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/Platform/version.ts b/packages/core/src/Platform/version.ts index df97f0cb405..fbe5aabb2c1 100644 --- a/packages/core/src/Platform/version.ts +++ b/packages/core/src/Platform/version.ts @@ -1,2 +1,2 @@ // generated by genversion -export const version = '3.8.15'; +export const version = '3.8.16'; From 8e91e01cb00971eca4bfea844026ec69dac23229 Mon Sep 17 00:00:00 2001 From: siegerts Date: Mon, 1 Mar 2021 13:02:49 -0500 Subject: [PATCH 08/34] [contributing] add bug report section --- CONTRIBUTING.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cd2f8fd4dec..075cdfcbdf7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,6 +8,7 @@ Thank you for your interest in contributing to our project! <3 Whether it's a bu - [Setting up for local development](#setting-up-for-local-development) - [Architecture of the codebase](#architecture-of-the-codebase) - [Steps towards contributions](#steps-towards-contributions) +- [Bug Reports](#bug-reports) - [Pull Requests](#pull-requests) - [Debugging](#debugging) - [Release](#release) @@ -166,6 +167,27 @@ Once you are done with Verdaccio, you can reset to the default registry by doing yarn config set registry https://registry.yarnpkg.com ``` +## Bug Reports + +Bug reports and feature suggestions are always welcome. Good bug reports are extremely helpful, so thanks in advance! + +When filing a bug, please try to be as detailed as possible. In addition to the bug report form information, details like these are incredibly useful: + +- A reproducible test case or series of steps +- The date/commit/version(s) of the code you're running +- 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-js/issues?q=is%3Aissue+) already exists! +- Provide a short and descriptive issue title +- Remove any sensitive data from your examples or snippets +- 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 a [specific package](#packages-inside-amplify-js), 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. + # Pull Requests This is mostly the same as GitHub's guide on creating a pull request. @@ -181,7 +203,7 @@ _[Skip step 1 to 3 if you have already done this]_ - feat - chore - bug - - use slashes to seperate parts of branch names + - use slashes to separate parts of branch names - Hyphenate well-defined branch name 5. Once your work is committed and you're ready to share, run test `yarn test`. **Note:** Manually test your changes in a sample app with different edge cases and also test across different browsers and platform From d316599884f2e4cb31545891e569963cd5bd897d Mon Sep 17 00:00:00 2001 From: siegerts Date: Mon, 1 Mar 2021 13:04:37 -0500 Subject: [PATCH 09/34] [issue template] port existing structure into new form template + selections for apis/categories --- .github/ISSUE_TEMPLATE/bug_report.yaml | 241 +++++++++++++++++++++++++ 1 file changed, 241 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yaml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 00000000000..d4428bbbee7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,241 @@ +name: Bug report +about: Create a report to help us improve Amplify JS +title: "" +labels: to-be-reproduced +issue_body: true +body: +- type: markdown + attributes: + value: Thanks for taking the time to fill out this bug report! Try to include as much information as you can. +- type: markdown + attributes: + value: | + > **Note**: If your issue is regarding the AWS Amplify CLI, please log it in the [Amplify CLI GitHub Issue Tracker](https://github.com/aws-amplify/amplify-cli/issues). +- type: checkboxes + attributes: + label: | + Before opening, please confirm. + options: + - label: I have installed the latest version of the Amplify CLI (), and confirmed that the issue still persists. + required: true + - label: I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+). + required: true + - label: I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-js/blob/master/CONTRIBUTING.md#bug-reports). + required: true + - label: I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue. + - required: true +- type: markdown + attributes: + value: | + ## Environment +- type: textarea + attributes: + label: Expected behavior + description: | + Please run the following command inside your project and copy/paste the output below: + ``` + npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages + ``` + validations: + required: true +- type: markdown + attributes: + value: | + ## Configuration +- type: dropdown + attributes: + label: JavaScript Framework + description: What JavaScript framework is being used? + multiple: true + options: + - Angular + - React + - React Native + - Vue + - Web Components + - None + validations: + required: true +- type: dropdown + attributes: + label: Amplify Categories + description: | + What [Amplify categories](https://github.com/aws-amplify/amplify-cli#category-specific-commands) are being used? + multiple: true + options: + - auth + - storage + - function + - api + - analytics + - hosting + - notifications + - interactions + - predictions + - xr + - None + validations: + required: true +- type: dropdown + attributes: + label: Amplify APIs + description: | + What [Amplify APIs](https://github.com/aws-amplify/amplify-js#features--apis) are being used? + multiple: true + options: + - Authentication + - Analytics + - REST API + - GraphQL API + - DataStore + - Storage + - Push Notifications + - Interactions + - PubSub + - Internationalization + - Cache + - Predictions + - None + validations: + required: true +- type: textarea + attributes: + label: aws-exports + description: If applicable, please provide your `aws-exports.js` file. + value: | + ```javascript + // -- If not provided, please remove placeholder below -- + const awsmobile = { + "aws_project_region": "us-east-1", + "aws_cognito_identity_pool_id": "us-east-1:xxx-xxxx-xxxx-xxxx-xxxxxxxx", + "aws_cognito_region": "us-east-1", + "aws_user_pools_id": "us-east-1_xxx", + "aws_user_pools_web_client_id": "xxxx", + "oauth": {} + }; + ``` +- type: textarea + attributes: + label: Manual configuration + description: If applicable, please provide your **manual configuration** example. + value: | + ```json + // -- If not provided, please remove placeholder below -- + { + Auth: { + identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab', + region: 'XX-XXXX-X', + identityPoolRegion: 'XX-XXXX-X', + userPoolId: 'XX-XXXX-X_abcd1234', + userPoolWebClientId: 'a1b2c3d4e5f6g7h8i9j0k1l2m3', + mandatorySignIn: false, + authenticationFlowType: 'USER_PASSWORD_AUTH', + oauth: { + domain: 'your_cognito_domain', + scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'], + redirectSignIn: 'http://localhost:3000/', + redirectSignOut: 'http://localhost:3000/', + responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code + } + } + } + ``` +- type: textarea + attributes: + label: Additional configuration + description: | + If applicable, provide more configuration data. + + For example, for Amazon Cognito, run `aws cognito-idp describe-user-pool --user-pool-id us-west-2_xxxxxx`. + + **Be sure to remove any sensitive data*** + + value: | + ```json + ``` +- type: markdown + attributes: + value: | + ## Details +- type: textarea + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. Markdown formatting supported. + validations: + required: true +- type: textarea + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. Markdown formatting supported. + validations: + required: true +- type: textarea + attributes: + label: Reproduction steps + description: How do you trigger this bug? Please walk us through it step by step. Screenshots can be provided in the issue body below. Markdown formatting supported. + value: | + 1. Install '...' + 2. Configure '...' + 3. Go to '...' + 4. See error + validations: + required: true +- type: textarea + attributes: + label: Code Snippet + description: | + Please provide a code snippet or a link to sample code of the issue you are experiencing to help us reproduce the issue. + + **Be sure to remove any sensitive data.** + value: | + ```javascript + // Put your code below this line. + ``` +- type: textarea + attributes: + label: Log output + description: | + For example, error messages, or stack traces. + + You can turn on the debug mode to provide more info for us + by using the below statement in your app/ + + ```javascript + window.LOG_LEVEL = 'DEBUG'; + ``` + **Be sure to remove any sensitive data.** + value: | + ``` + # Put your logs below this line. + ``` +- type: markdown + attributes: + value: | + ## Smartphone (Optional) +- type: input + attributes: + label: Mobile Device + description: e.g. iPhone6 +- type: input + attributes: + label: Mobile Operating System + description: For example, iOS8.1 +- type: input + attributes: + label: Mobile Browser + description: For example, stock browser, Safari, Chrome +- type: input + attributes: + label: Mobile Browser Version + description: For example, 22 +- type: markdown + attributes: + value: | + ## Additional information + - type: markdown + attributes: + value: > + If you have any additional information (i.e. `package.json`), workarounds, etc. for us, use the field below. + Please note, you can attach screenshots or screen recordings here, by + dragging and dropping files in the field below. + From c664a14e5a5e490c793bd00d67c8e8e5096b0a06 Mon Sep 17 00:00:00 2001 From: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com> Date: Mon, 1 Mar 2021 14:07:47 -0500 Subject: [PATCH 10/34] chore: improve bug report template (#7773) --- .github/ISSUE_TEMPLATE/bug_report.md | 7 +++- .github/workflows/bug-report-helper.yml | 50 +++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/bug-report-helper.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 55cf76a8d5e..24bac3fa35c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -87,4 +87,9 @@ npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages **Additional context** Add any other context about the problem here. -**_You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app._** +**Is this a production issue?** +Are you experiencing this issue with a production application where end users are affected? + +- [ ] (check box if yes) + +**_You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app._** \ No newline at end of file diff --git a/.github/workflows/bug-report-helper.yml b/.github/workflows/bug-report-helper.yml new file mode 100644 index 00000000000..3dcc60f7120 --- /dev/null +++ b/.github/workflows/bug-report-helper.yml @@ -0,0 +1,50 @@ +name: Issue Test + +on: issues + +jobs: + test: + name: Test + runs-on: ubuntu-latest + if: | + (github.event.action == 'edited' || github.event.action == 'opened') && + !contains(github.event.issue.labels.*.name, 'production-issue') && + (contains(github.event.issue.body, '- [x] (check box if yes)') || + contains(github.event.issue.body, '- [ x] (check box if yes)') || + contains(github.event.issue.body, '- [x ] (check box if yes)') || + contains(github.event.issue.body, '- [ x ] (check box if yes)')) + + steps: + - name: Add production-issue label + # Apache License - https://github.com/actions-ecosystem/action-add-labels + uses: actions-ecosystem/action-add-labels@v1 + with: + # Create scoped-down token + github_token: ${{ secrets.GITHUB_TOKEN }} + labels: production-issue + + - name: Respond with suggestion + # MIT License - https://github.com/peter-evans/create-or-update-comment + uses: peter-evans/create-or-update-comment@v1 + with: + issue-number: ${{ github.event.issue.number }} + body: | + Thanks for reporting this issue! The team has been alerted and someone will respond shortly. + In the mean time, please try installing a previous version of Amplify + ```bash + rm -rf node_modules yarn.lock package-lock.json + npm i aws-amplify + ``` + + - name: Sanitize Issue Title + run: | + export sanitized_issue_title=`echo "${{ github.event.issue.title }}" | sed 's/[^a-zA-Z0-9 ]//g'` + echo "sanitized_issue_title=$sanitized_issue_title" >> $GITHUB_ENV + + - name: Execute Slack Workflow + # MIT License - https://github.com/fjogeleit/http-request-action + uses: fjogeleit/http-request-action@master + with: + url: ${{ secrets.SLACK_WEBHOOK_URL }} + method: POST + data: '{ "issue_url": "${{ github.event.issue.html_url }}", "issue_title": "${{ env.sanitized_issue_title }}" }' From 1facb390bab24dd3b1ccd9dcf1882e6176865c75 Mon Sep 17 00:00:00 2001 From: siegerts Date: Mon, 1 Mar 2021 14:43:57 -0500 Subject: [PATCH 11/34] rename for testing alongside existing template --- .../{bug_report.yaml => new_bug_report.yaml} | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) rename .github/ISSUE_TEMPLATE/{bug_report.yaml => new_bug_report.yaml} (90%) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/new_bug_report.yaml similarity index 90% rename from .github/ISSUE_TEMPLATE/bug_report.yaml rename to .github/ISSUE_TEMPLATE/new_bug_report.yaml index d4428bbbee7..f559c243a7c 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/new_bug_report.yaml @@ -1,4 +1,4 @@ -name: Bug report +name: New Bug report about: Create a report to help us improve Amplify JS title: "" labels: to-be-reproduced @@ -16,14 +16,21 @@ body: label: | Before opening, please confirm. options: - - label: I have installed the latest version of the Amplify CLI (), and confirmed that the issue still persists. - required: true + # - label: I have installed the latest version of the Amplify CLI (), and confirmed that the issue still persists. + # required: true - label: I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+). required: true - label: I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-js/blob/master/CONTRIBUTING.md#bug-reports). required: true - label: I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue. - required: true +- type: checkboxes + attributes: + label: Is this a production issue? + description: | + Are you experiencing this issue with a production application where end users are affected? + options: + - label: (check box if **yes**) - type: markdown attributes: value: | @@ -232,10 +239,10 @@ body: attributes: value: | ## Additional information - - type: markdown - attributes: - value: > - If you have any additional information (i.e. `package.json`), workarounds, etc. for us, use the field below. - Please note, you can attach screenshots or screen recordings here, by - dragging and dropping files in the field below. +- type: markdown + attributes: + value: > + If you have any additional information (i.e. `package.json`), workarounds, etc. for us, use the field below. + Please note, you can attach screenshots or screen recordings here, by + dragging and dropping files in the field below. From 72befd262d44091a19ff18f420e1590b7cbb87a7 Mon Sep 17 00:00:00 2001 From: siegerts Date: Mon, 1 Mar 2021 14:54:20 -0500 Subject: [PATCH 12/34] remove bold around prod check to fit existing gh action pattern --- .github/ISSUE_TEMPLATE/new_bug_report.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/new_bug_report.yaml b/.github/ISSUE_TEMPLATE/new_bug_report.yaml index f559c243a7c..b4b7e25b9c7 100644 --- a/.github/ISSUE_TEMPLATE/new_bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/new_bug_report.yaml @@ -30,7 +30,7 @@ body: description: | Are you experiencing this issue with a production application where end users are affected? options: - - label: (check box if **yes**) + - label: (check box if yes) - type: markdown attributes: value: | From ad2dd864ffbe3bc5c620c3078f82805a4ed83439 Mon Sep 17 00:00:00 2001 From: Sebastien Schwartz Date: Mon, 1 Mar 2021 23:59:42 +0100 Subject: [PATCH 13/34] fix(@aws-amplify/predictions): Missing return in AmazonAIConvertPredictionsProvider.ts (#7803) Without this return, user will also get 'Source types other than byte source are not supported.' error. Co-authored-by: William Lee <43682783+wlee221@users.noreply.github.com> --- .../src/Providers/AmazonAIConvertPredictionsProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts b/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts index afe5a31305c..f4ef5f803e8 100644 --- a/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts +++ b/packages/predictions/src/Providers/AmazonAIConvertPredictionsProvider.ts @@ -189,7 +189,7 @@ export class AmazonAIConvertPredictionsProvider extends AbstractConvertPredictio }, }; } catch (err) { - Promise.reject(err); + return Promise.reject(err); } } From 9efd907dd1643eda149e7297ec7dedb8e23f9d9d Mon Sep 17 00:00:00 2001 From: siegerts Date: Tue, 2 Mar 2021 15:56:17 -0500 Subject: [PATCH 14/34] update for syntax validations --- .github/ISSUE_TEMPLATE/new_bug_report.yaml | 457 ++++++++++----------- 1 file changed, 228 insertions(+), 229 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/new_bug_report.yaml b/.github/ISSUE_TEMPLATE/new_bug_report.yaml index b4b7e25b9c7..8da0167926a 100644 --- a/.github/ISSUE_TEMPLATE/new_bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/new_bug_report.yaml @@ -1,248 +1,247 @@ name: New Bug report -about: Create a report to help us improve Amplify JS -title: "" +description: Create a report to help us improve Amplify JS +title: '' labels: to-be-reproduced issue_body: true body: -- type: markdown - attributes: - value: Thanks for taking the time to fill out this bug report! Try to include as much information as you can. -- type: markdown - attributes: - value: | - > **Note**: If your issue is regarding the AWS Amplify CLI, please log it in the [Amplify CLI GitHub Issue Tracker](https://github.com/aws-amplify/amplify-cli/issues). -- type: checkboxes - attributes: - label: | - Before opening, please confirm. - options: - # - label: I have installed the latest version of the Amplify CLI (), and confirmed that the issue still persists. - # required: true - - label: I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+). - required: true - - label: I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-js/blob/master/CONTRIBUTING.md#bug-reports). - required: true - - label: I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue. - - required: true -- type: checkboxes - attributes: - label: Is this a production issue? - description: | - Are you experiencing this issue with a production application where end users are affected? - options: - - label: (check box if yes) -- type: markdown - attributes: - value: | - ## Environment -- type: textarea - attributes: - label: Expected behavior - description: | - Please run the following command inside your project and copy/paste the output below: - ``` - npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages - ``` - validations: - required: true -- type: markdown - attributes: - value: | - ## Configuration -- type: dropdown - attributes: - label: JavaScript Framework - description: What JavaScript framework is being used? - multiple: true - options: - - Angular - - React - - React Native - - Vue - - Web Components - - None - validations: - required: true -- type: dropdown - attributes: - label: Amplify Categories - description: | - What [Amplify categories](https://github.com/aws-amplify/amplify-cli#category-specific-commands) are being used? - multiple: true - options: - - auth - - storage - - function - - api - - analytics - - hosting - - notifications - - interactions - - predictions - - xr - - None - validations: - required: true -- type: dropdown - attributes: - label: Amplify APIs - description: | - What [Amplify APIs](https://github.com/aws-amplify/amplify-js#features--apis) are being used? - multiple: true - options: - - Authentication - - Analytics - - REST API - - GraphQL API - - DataStore - - Storage - - Push Notifications - - Interactions - - PubSub - - Internationalization - - Cache - - Predictions - - None - validations: - required: true -- type: textarea - attributes: - label: aws-exports - description: If applicable, please provide your `aws-exports.js` file. - value: | - ```javascript - // -- If not provided, please remove placeholder below -- - const awsmobile = { - "aws_project_region": "us-east-1", - "aws_cognito_identity_pool_id": "us-east-1:xxx-xxxx-xxxx-xxxx-xxxxxxxx", - "aws_cognito_region": "us-east-1", - "aws_user_pools_id": "us-east-1_xxx", - "aws_user_pools_web_client_id": "xxxx", - "oauth": {} - }; - ``` -- type: textarea - attributes: - label: Manual configuration - description: If applicable, please provide your **manual configuration** example. - value: | - ```json - // -- If not provided, please remove placeholder below -- - { - Auth: { - identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab', - region: 'XX-XXXX-X', - identityPoolRegion: 'XX-XXXX-X', - userPoolId: 'XX-XXXX-X_abcd1234', - userPoolWebClientId: 'a1b2c3d4e5f6g7h8i9j0k1l2m3', - mandatorySignIn: false, - authenticationFlowType: 'USER_PASSWORD_AUTH', - oauth: { - domain: 'your_cognito_domain', - scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'], - redirectSignIn: 'http://localhost:3000/', - redirectSignOut: 'http://localhost:3000/', - responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code - } - } - } - ``` -- type: textarea - attributes: - label: Additional configuration - description: | - If applicable, provide more configuration data. - - For example, for Amazon Cognito, run `aws cognito-idp describe-user-pool --user-pool-id us-west-2_xxxxxx`. - - **Be sure to remove any sensitive data*** - - value: | - ```json - ``` -- type: markdown - attributes: - value: | - ## Details -- type: textarea - attributes: - label: Describe the bug - description: A clear and concise description of what the bug is. Markdown formatting supported. - validations: - required: true -- type: textarea - attributes: - label: Expected behavior - description: A clear and concise description of what you expected to happen. Markdown formatting supported. - validations: - required: true -- type: textarea - attributes: - label: Reproduction steps - description: How do you trigger this bug? Please walk us through it step by step. Screenshots can be provided in the issue body below. Markdown formatting supported. - value: | - 1. Install '...' - 2. Configure '...' - 3. Go to '...' - 4. See error - validations: - required: true -- type: textarea - attributes: - label: Code Snippet - description: | - Please provide a code snippet or a link to sample code of the issue you are experiencing to help us reproduce the issue. - - **Be sure to remove any sensitive data.** - value: | - ```javascript - // Put your code below this line. - ``` -- type: textarea - attributes: - label: Log output - description: | - For example, error messages, or stack traces. - - You can turn on the debug mode to provide more info for us - by using the below statement in your app/ - - ```javascript - window.LOG_LEVEL = 'DEBUG'; - ``` - **Be sure to remove any sensitive data.** - value: | - ``` - # Put your logs below this line. - ``` -- type: markdown + - type: markdown + attributes: + value: Thanks for taking the time to fill out this bug report! Try to include as much information as you can. + - type: markdown + attributes: + value: | + > **Note**: If your issue is regarding the AWS Amplify CLI, please log it in the [Amplify CLI GitHub Issue Tracker](https://github.com/aws-amplify/amplify-cli/issues). + - type: checkboxes + attributes: + label: | + Before opening, please confirm: + options: + - label: I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+). + required: true + - label: I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-js/blob/master/CONTRIBUTING.md#bug-reports). + required: true + - label: I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue. + required: true + - type: checkboxes + attributes: + label: Is this a production issue? + description: | + Are you experiencing this issue with a production application where end users are affected? + options: + - label: (check box if yes) + - type: markdown + attributes: + value: | + ## Environment + - type: textarea + attributes: + label: Expected behavior + description: | + Please run the following command inside your project and copy/paste the output below: + ``` + npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages + ``` + validations: + required: true + - type: markdown + attributes: + value: | + ## Configuration + - type: dropdown + attributes: + label: JavaScript Framework + description: What JavaScript framework is being used? + multiple: true + options: + - Angular + - React + - React Native + - Vue + - Web Components + - Not applicable + validations: + required: true + - type: dropdown + attributes: + label: Amplify Categories + description: | + What [Amplify categories](https://github.com/aws-amplify/amplify-cli#category-specific-commands) are being used? + multiple: true + options: + - auth + - storage + - function + - api + - analytics + - hosting + - notifications + - interactions + - predictions + - xr + - Not applicable + validations: + required: true + - type: dropdown + attributes: + label: Amplify APIs + description: | + What [Amplify APIs](https://github.com/aws-amplify/amplify-js#features--apis) are being used? + multiple: true + options: + - Authentication + - Analytics + - REST API + - GraphQL API + - DataStore + - Storage + - Push Notifications + - Interactions + - PubSub + - Internationalization + - Cache + - Predictions + - Not applicable + validations: + required: true + - type: textarea + attributes: + label: aws-exports + description: If applicable, please provide your `aws-exports.js` file. + value: | + ```javascript + // -- If not provided, please remove placeholder below -- + const awsmobile = { + "aws_project_region": "us-east-1", + "aws_cognito_identity_pool_id": "us-east-1:xxx-xxxx-xxxx-xxxx-xxxxxxxx", + "aws_cognito_region": "us-east-1", + "aws_user_pools_id": "us-east-1_xxx", + "aws_user_pools_web_client_id": "xxxx", + "oauth": {} + }; + ``` + - type: textarea + attributes: + label: Manual configuration + description: If applicable, please provide your **manual configuration** example. + value: | + ```json + // -- If not provided, please remove placeholder below -- + { + Auth: { + identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab', + region: 'XX-XXXX-X', + identityPoolRegion: 'XX-XXXX-X', + userPoolId: 'XX-XXXX-X_abcd1234', + userPoolWebClientId: 'a1b2c3d4e5f6g7h8i9j0k1l2m3', + mandatorySignIn: false, + authenticationFlowType: 'USER_PASSWORD_AUTH', + oauth: { + domain: 'your_cognito_domain', + scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'], + redirectSignIn: 'http://localhost:3000/', + redirectSignOut: 'http://localhost:3000/', + responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code + } + } + } + ``` + - type: textarea + attributes: + label: Additional configuration + description: | + If applicable, provide more configuration data. + + For example, for Amazon Cognito, run `aws cognito-idp describe-user-pool --user-pool-id us-west-2_xxxxxx`. + + **Be sure to remove any sensitive data*** + + value: | + ```json + + + ``` + - type: markdown + attributes: + value: | + ## Details + - type: textarea + attributes: + label: Describe the bug + description: A clear and concise description of what the bug is. Markdown formatting supported. + validations: + required: true + - type: textarea + attributes: + label: Expected behavior + description: A clear and concise description of what you expected to happen. Markdown formatting supported. + validations: + required: true + - type: textarea + attributes: + label: Reproduction steps + description: How do you trigger this bug? Please walk us through it step by step. Screenshots can be provided in the issue body below. Markdown formatting supported. + placeholder: | + 1. Install '...' + 2. Configure '...' + 3. Go to '...' + 4. See error + validations: + required: true + - type: textarea + attributes: + label: Code Snippet + description: | + Please provide a code snippet or a link to sample code of the issue you are experiencing to help us reproduce the issue. + + **Be sure to remove any sensitive data.** + value: | + ```javascript + // Put your code below this line. + ``` + - type: textarea + attributes: + label: Log output + description: | + For example, error messages, or stack traces. + + You can turn on the debug mode to provide more info for us + by using the below statement in your app/ + + ```javascript + window.LOG_LEVEL = 'DEBUG'; + ``` + **Be sure to remove any sensitive data.** + value: | + ``` + # Put your logs below this line. + ``` + - type: markdown attributes: value: | ## Smartphone (Optional) -- type: input - attributes: - label: Mobile Device - description: e.g. iPhone6 -- type: input + - type: input + attributes: + label: Mobile Device + description: e.g. iPhone6 + - type: input attributes: label: Mobile Operating System description: For example, iOS8.1 -- type: input + - type: input attributes: label: Mobile Browser description: For example, stock browser, Safari, Chrome -- type: input + - type: input attributes: label: Mobile Browser Version description: For example, 22 -- type: markdown + - type: markdown attributes: value: | ## Additional information -- type: markdown - attributes: - value: > - If you have any additional information (i.e. `package.json`), workarounds, etc. for us, use the field below. - Please note, you can attach screenshots or screen recordings here, by - dragging and dropping files in the field below. - + - type: markdown + attributes: + value: > + If you have any additional information (i.e. `package.json`), workarounds, etc. for us, use the field below. + Please note, you can attach screenshots or screen recordings here, by + dragging and dropping files in the field below. From b36953eeb3016d19f3fca74c38706742ed967ced Mon Sep 17 00:00:00 2001 From: siegerts Date: Tue, 2 Mar 2021 16:56:35 -0500 Subject: [PATCH 15/34] Update CONTRIBUTING.md Co-authored-by: Sam Martinez --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 075cdfcbdf7..e8e4e405793 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -169,7 +169,7 @@ yarn config set registry https://registry.yarnpkg.com ## Bug Reports -Bug reports and feature suggestions are always welcome. Good bug reports are extremely helpful, so thanks in advance! +Bug reports and feature requests are always welcome. Good bug reports are extremely helpful, so thanks in advance! When filing a bug, please try to be as detailed as possible. In addition to the bug report form information, details like these are incredibly useful: From 427dd9d93c63256f4aab0d90eef33c7d7da22027 Mon Sep 17 00:00:00 2001 From: siegerts Date: Tue, 2 Mar 2021 17:04:26 -0500 Subject: [PATCH 16/34] remove default label + adjust library link --- .github/ISSUE_TEMPLATE/new_bug_report.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/new_bug_report.yaml b/.github/ISSUE_TEMPLATE/new_bug_report.yaml index 8da0167926a..b5b3676cac1 100644 --- a/.github/ISSUE_TEMPLATE/new_bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/new_bug_report.yaml @@ -1,7 +1,6 @@ name: New Bug report description: Create a report to help us improve Amplify JS title: '' -labels: to-be-reproduced issue_body: true body: - type: markdown @@ -85,7 +84,7 @@ body: attributes: label: Amplify APIs description: | - What [Amplify APIs](https://github.com/aws-amplify/amplify-js#features--apis) are being used? + What [Amplify APIs](https://docs.amplify.aws/lib/q/platform/js) are being used? multiple: true options: - Authentication From 1df374080e3aed3c0e5731fa6258cd202abe589d Mon Sep 17 00:00:00 2001 From: siegerts Date: Tue, 2 Mar 2021 17:13:57 -0500 Subject: [PATCH 17/34] make amplify category selection optional --- .github/ISSUE_TEMPLATE/new_bug_report.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/new_bug_report.yaml b/.github/ISSUE_TEMPLATE/new_bug_report.yaml index b5b3676cac1..731eb0b448b 100644 --- a/.github/ISSUE_TEMPLATE/new_bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/new_bug_report.yaml @@ -78,8 +78,6 @@ body: - predictions - xr - Not applicable - validations: - required: true - type: dropdown attributes: label: Amplify APIs From 6ed737173e322f8db34a0092656ab22d94735926 Mon Sep 17 00:00:00 2001 From: siegerts Date: Tue, 2 Mar 2021 17:46:18 -0500 Subject: [PATCH 18/34] Update new_bug_report.yaml fix duplicate label --- .github/ISSUE_TEMPLATE/new_bug_report.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/new_bug_report.yaml b/.github/ISSUE_TEMPLATE/new_bug_report.yaml index 731eb0b448b..6df655ad12b 100644 --- a/.github/ISSUE_TEMPLATE/new_bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/new_bug_report.yaml @@ -34,7 +34,7 @@ body: ## Environment - type: textarea attributes: - label: Expected behavior + label: Environment information description: | Please run the following command inside your project and copy/paste the output below: ``` From 66a8686768117a3586b8b7e9d5f3115c932be7de Mon Sep 17 00:00:00 2001 From: siegerts Date: Wed, 3 Mar 2021 13:36:51 -0500 Subject: [PATCH 19/34] - Clean up spacing - Rearrange sections - Use placeholder vs value for optional configuration inputs - Remove note on CLI repo - can add in future, if needed --- .github/ISSUE_TEMPLATE/new_bug_report.yaml | 184 +++++++++++---------- 1 file changed, 94 insertions(+), 90 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/new_bug_report.yaml b/.github/ISSUE_TEMPLATE/new_bug_report.yaml index 6df655ad12b..993b58ebd3b 100644 --- a/.github/ISSUE_TEMPLATE/new_bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/new_bug_report.yaml @@ -3,13 +3,10 @@ description: Create a report to help us improve Amplify JS title: '' issue_body: true body: - - type: markdown - attributes: - value: Thanks for taking the time to fill out this bug report! Try to include as much information as you can. - type: markdown attributes: value: | - > **Note**: If your issue is regarding the AWS Amplify CLI, please log it in the [Amplify CLI GitHub Issue Tracker](https://github.com/aws-amplify/amplify-cli/issues). + Thanks for taking the time to fill out this bug report! Try to include as much information as you can. - type: checkboxes attributes: label: | @@ -21,6 +18,10 @@ body: required: true - label: I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue. required: true + - type: markdown + attributes: + value: | + --- - type: checkboxes attributes: label: Is this a production issue? @@ -32,20 +33,6 @@ body: attributes: value: | ## Environment - - type: textarea - attributes: - label: Environment information - description: | - Please run the following command inside your project and copy/paste the output below: - ``` - npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages - ``` - validations: - required: true - - type: markdown - attributes: - value: | - ## Configuration - type: dropdown attributes: label: JavaScript Framework @@ -60,24 +47,6 @@ body: - Not applicable validations: required: true - - type: dropdown - attributes: - label: Amplify Categories - description: | - What [Amplify categories](https://github.com/aws-amplify/amplify-cli#category-specific-commands) are being used? - multiple: true - options: - - auth - - storage - - function - - api - - analytics - - hosting - - notifications - - interactions - - predictions - - xr - - Not applicable - type: dropdown attributes: label: Amplify APIs @@ -100,63 +69,39 @@ body: - Not applicable validations: required: true - - type: textarea - attributes: - label: aws-exports - description: If applicable, please provide your `aws-exports.js` file. - value: | - ```javascript - // -- If not provided, please remove placeholder below -- - const awsmobile = { - "aws_project_region": "us-east-1", - "aws_cognito_identity_pool_id": "us-east-1:xxx-xxxx-xxxx-xxxx-xxxxxxxx", - "aws_cognito_region": "us-east-1", - "aws_user_pools_id": "us-east-1_xxx", - "aws_user_pools_web_client_id": "xxxx", - "oauth": {} - }; - ``` - - type: textarea + - type: dropdown attributes: - label: Manual configuration - description: If applicable, please provide your **manual configuration** example. - value: | - ```json - // -- If not provided, please remove placeholder below -- - { - Auth: { - identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab', - region: 'XX-XXXX-X', - identityPoolRegion: 'XX-XXXX-X', - userPoolId: 'XX-XXXX-X_abcd1234', - userPoolWebClientId: 'a1b2c3d4e5f6g7h8i9j0k1l2m3', - mandatorySignIn: false, - authenticationFlowType: 'USER_PASSWORD_AUTH', - oauth: { - domain: 'your_cognito_domain', - scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'], - redirectSignIn: 'http://localhost:3000/', - redirectSignOut: 'http://localhost:3000/', - responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code - } - } - } - ``` + label: Amplify Categories + description: | + What [Amplify categories](https://github.com/aws-amplify/amplify-cli#category-specific-commands) are being used? + multiple: true + options: + - auth + - storage + - function + - api + - analytics + - hosting + - notifications + - interactions + - predictions + - xr + - Not applicable - type: textarea attributes: - label: Additional configuration + label: Environment information description: | - If applicable, provide more configuration data. - - For example, for Amazon Cognito, run `aws cognito-idp describe-user-pool --user-pool-id us-west-2_xxxxxx`. - - **Be sure to remove any sensitive data*** - - value: | - ```json - + Please run the following command inside your project and copy/paste the output below: + ``` + npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages + ``` + placeholder: | + ``` + # Please format as code block ``` + validations: + required: true - type: markdown attributes: value: | @@ -202,15 +147,74 @@ body: For example, error messages, or stack traces. You can turn on the debug mode to provide more info for us - by using the below statement in your app/ + by using the below statement in your app. ```javascript window.LOG_LEVEL = 'DEBUG'; ``` **Be sure to remove any sensitive data.** + placeholder: | + ``` + # Please format as code block + ``` + - type: markdown + attributes: value: | + ## Configuration + - type: textarea + attributes: + label: aws-exports.js + description: If applicable, please provide your `aws-exports.js` file. + placeholder: | + ```javascript + const awsmobile = { + "aws_project_region": "us-east-1", + "aws_cognito_identity_pool_id": "us-east-1:xxx-xxxx-xxxx-xxxx-xxxxxxxx", + "aws_cognito_region": "us-east-1", + "aws_user_pools_id": "us-east-1_xxx", + "aws_user_pools_web_client_id": "xxxx", + "oauth": {} + }; + ``` + - type: textarea + attributes: + label: Manual configuration + description: If applicable, please provide your **manual configuration** example. + placeholder: | + ```json + { + Auth: { + identityPoolId: 'XX-XXXX-X:XXXXXXXX-XXXX-1234-abcd-1234567890ab', + region: 'XX-XXXX-X', + identityPoolRegion: 'XX-XXXX-X', + userPoolId: 'XX-XXXX-X_abcd1234', + userPoolWebClientId: 'a1b2c3d4e5f6g7h8i9j0k1l2m3', + mandatorySignIn: false, + authenticationFlowType: 'USER_PASSWORD_AUTH', + oauth: { + domain: 'your_cognito_domain', + scope: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'], + redirectSignIn: 'http://localhost:3000/', + redirectSignOut: 'http://localhost:3000/', + responseType: 'code' // or 'token', note that REFRESH token will only be generated when the responseType is code + } + } + } ``` - # Put your logs below this line. + - type: textarea + attributes: + label: Additional configuration + description: | + If applicable, provide more configuration data. + + For example, for Amazon Cognito, run `aws cognito-idp describe-user-pool --user-pool-id us-west-2_xxxxxx`. + + **Be sure to remove any sensitive data*** + + placeholder: | + ```json + + ``` - type: markdown attributes: @@ -235,7 +239,7 @@ body: - type: markdown attributes: value: | - ## Additional information + ## Additional information and screenshots - type: markdown attributes: value: > From 715aa7e1d8ea1797784d37ab706c12b133fca4f0 Mon Sep 17 00:00:00 2001 From: Alex Hinson Date: Wed, 3 Mar 2021 10:47:44 -0800 Subject: [PATCH 20/34] fix(@aws-amplify/datastore): return partial data when available (#7775) --- .../__tests__/__snapshots__/sync.test.ts.snap | 80 ++++++ packages/datastore/__tests__/sync.test.ts | 267 ++++++++++++++++++ .../datastore/src/sync/processors/sync.ts | 68 ++++- 3 files changed, 407 insertions(+), 8 deletions(-) create mode 100644 packages/datastore/__tests__/__snapshots__/sync.test.ts.snap create mode 100644 packages/datastore/__tests__/sync.test.ts diff --git a/packages/datastore/__tests__/__snapshots__/sync.test.ts.snap b/packages/datastore/__tests__/__snapshots__/sync.test.ts.snap new file mode 100644 index 00000000000..3fba0a3bbe0 --- /dev/null +++ b/packages/datastore/__tests__/__snapshots__/sync.test.ts.snap @@ -0,0 +1,80 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Sync jitteredRetry should return all data 1`] = ` +Object { + "data": Object { + "syncPosts": Object { + "items": Array [ + Object { + "id": "1", + "title": "Item 1", + }, + Object { + "id": "2", + "title": "Item 2", + }, + ], + }, + }, +} +`; + +exports[`Sync jitteredRetry should return partial data and send Hub event when datastorePartialData is set 1`] = ` +Object { + "data": Object { + "syncPosts": Object { + "items": Array [ + Object { + "id": "1", + "title": "Item 1", + }, + Object { + "id": "3", + "title": "Item 3", + }, + ], + }, + }, + "errors": Array [ + Object { + "message": "Item 2 error", + }, + ], +} +`; + +exports[`Sync jitteredRetry should throw error and NOT return data or send Hub event when datastorePartialData is not set 1`] = ` +Object { + "data": Object { + "syncPosts": Object { + "items": Array [ + Object { + "id": "1", + "title": "Item 1", + }, + null, + Object { + "id": "3", + "title": "Item 3", + }, + ], + }, + }, + "errors": Array [ + Object { + "message": "Item 2 error", + }, + ], +} +`; + +exports[`Sync jitteredRetry should throw error if no data is returned 1`] = ` +Object { + "data": null, + "errors": Array [ + Object { + "message": "General error", + }, + ], +} +`; diff --git a/packages/datastore/__tests__/sync.test.ts b/packages/datastore/__tests__/sync.test.ts new file mode 100644 index 00000000000..b1fe228fd30 --- /dev/null +++ b/packages/datastore/__tests__/sync.test.ts @@ -0,0 +1,267 @@ +// These tests should be replaced once SyncEngine.partialDataFeatureFlagEnabled is removed. + +const sessionStorageMock = (() => { + let store = {}; + + return { + getItem(key) { + return store[key] || null; + }, + setItem(key, value) { + store[key] = value.toString(); + }, + removeItem(key) { + delete store[key]; + }, + clear() { + store = {}; + }, + }; +})(); + +Object.defineProperty(window, 'sessionStorage', { + value: sessionStorageMock, +}); + +describe('Sync', () => { + describe('jitteredRetry', () => { + const defaultQuery = `query { + syncPosts { + items { + id + title + count + _version + _lastChangedAt + _deleted + } + nextToken + startedAt + } + }`; + const defaultVariables = {}; + const defaultOpName = 'syncPosts'; + const defaultModelDefinition = { name: 'Post' }; + + beforeEach(() => { + window.sessionStorage.clear(); + jest.resetModules(); + jest.resetAllMocks(); + }); + + it('should return all data', async () => { + window.sessionStorage.setItem('datastorePartialData', 'true'); + const resolveResponse = { + data: { + syncPosts: { + items: [ + { + id: '1', + title: 'Item 1', + }, + { + id: '2', + title: 'Item 2', + }, + ], + }, + }, + }; + + const SyncProcessor = jitteredRetrySyncProcessorSetup({ + resolveResponse, + }); + + const data = await SyncProcessor.jitteredRetry({ + query: defaultQuery, + variables: defaultVariables, + opName: defaultOpName, + modelDefinition: defaultModelDefinition, + }); + + expect(data).toMatchSnapshot(); + }); + + it('should return partial data and send Hub event when datastorePartialData is set', async () => { + window.sessionStorage.setItem('datastorePartialData', 'true'); + const rejectResponse = { + data: { + syncPosts: { + items: [ + { + id: '1', + title: 'Item 1', + }, + null, + { + id: '3', + title: 'Item 3', + }, + ], + }, + }, + errors: [ + { + message: 'Item 2 error', + }, + ], + }; + + const hubDispatchMock = jest.fn(); + const coreMocks = { + Hub: { + dispatch: hubDispatchMock, + listen: jest.fn(), + }, + }; + + const SyncProcessor = jitteredRetrySyncProcessorSetup({ + rejectResponse, + coreMocks, + }); + + const data = await SyncProcessor.jitteredRetry({ + query: defaultQuery, + variables: defaultVariables, + opName: defaultOpName, + modelDefinition: defaultModelDefinition, + }); + + expect(data).toMatchSnapshot(); + + expect(hubDispatchMock).toHaveBeenCalledWith('datastore', { + event: 'syncQueriesPartialSyncError', + data: { + errors: [ + { + message: 'Item 2 error', + }, + ], + modelName: 'Post', + }, + }); + }); + + it('should throw error and NOT return data or send Hub event when datastorePartialData is not set', async () => { + const rejectResponse = { + data: { + syncPosts: { + items: [ + { + id: '1', + title: 'Item 1', + }, + null, + { + id: '3', + title: 'Item 3', + }, + ], + }, + }, + errors: [ + { + message: 'Item 2 error', + }, + ], + }; + + const hubDispatchMock = jest.fn(); + const coreMocks = { + Hub: { + dispatch: hubDispatchMock, + listen: jest.fn(), + }, + }; + + const SyncProcessor = jitteredRetrySyncProcessorSetup({ + rejectResponse, + coreMocks, + }); + + try { + await SyncProcessor.jitteredRetry({ + query: defaultQuery, + variables: defaultVariables, + opName: defaultOpName, + modelDefinition: defaultModelDefinition, + }); + } catch (e) { + expect(e).toMatchSnapshot(); + } + }); + + it('should throw error if no data is returned', async () => { + window.sessionStorage.setItem('datastorePartialData', 'true'); + const rejectResponse = { + data: null, + errors: [ + { + message: 'General error', + }, + ], + }; + + const SyncProcessor = jitteredRetrySyncProcessorSetup({ + rejectResponse, + }); + + try { + await SyncProcessor.jitteredRetry({ + query: defaultQuery, + variables: defaultVariables, + opName: defaultOpName, + modelDefinition: defaultModelDefinition, + }); + } catch (e) { + expect(e).toMatchSnapshot(); + } + }); + }); +}); + +function jitteredRetrySyncProcessorSetup({ + rejectResponse, + resolveResponse, + coreMocks, +}: { + rejectResponse?: any; + resolveResponse?: any; + coreMocks?: object; +}) { + jest.mock('@aws-amplify/api', () => ({ + graphql: () => + new Promise((res, rej) => { + if (resolveResponse) { + res(resolveResponse); + } else if (rejectResponse) { + rej(rejectResponse); + } + }), + })); + + jest.mock('@aws-amplify/core', () => ({ + ...jest.requireActual('@aws-amplify/core'), + // No need to retry any thrown errors right now, + // so we're overriding jitteredExponentialRetry + jitteredExponentialRetry: (fn, args) => fn(...args), + ...coreMocks, + })); + + const SyncProcessorClass = require('../src/sync/processors/sync') + .SyncProcessor; + + const testInternalSchema = { + namespaces: {}, + version: '', + }; + + const SyncProcessor = new SyncProcessorClass( + testInternalSchema, + 1000, // default maxRecordsToSync + 10000, // default syncPageSize + null + ); + + return SyncProcessor; +} diff --git a/packages/datastore/src/sync/processors/sync.ts b/packages/datastore/src/sync/processors/sync.ts index e8e577ecfeb..7d660ce66b7 100644 --- a/packages/datastore/src/sync/processors/sync.ts +++ b/packages/datastore/src/sync/processors/sync.ts @@ -12,14 +12,15 @@ import { buildGraphQLOperation, predicateToGraphQLFilter } from '../utils'; import { jitteredExponentialRetry, ConsoleLogger as Logger, + Hub, } from '@aws-amplify/core'; import { ModelPredicateCreator } from '../../predicates'; -const logger = new Logger('DataStore'); - const DEFAULT_PAGINATION_LIMIT = 1000; const DEFAULT_MAX_RECORDS_TO_SYNC = 10000; +const logger = new Logger('DataStore'); + class SyncProcessor { private readonly typeQuery = new WeakMap(); @@ -90,7 +91,12 @@ class SyncProcessor { startedAt: number; }; }> - >await this.jitteredRetry(query, variables, opName); + >await this.jitteredRetry({ + query, + variables, + opName, + modelDefinition, + }); const { [opName]: opResult } = data; @@ -99,11 +105,27 @@ class SyncProcessor { return { nextToken: newNextToken, startedAt, items }; } - private async jitteredRetry( - query: string, - variables: { limit: number; lastSync: number; nextToken: string }, - opName: string - ): Promise< + // Partial data private feature flag. Not a public API. This will be removed in a future release. + private partialDataFeatureFlagEnabled() { + try { + const flag = sessionStorage.getItem('datastorePartialData'); + return Boolean(flag); + } catch (e) { + return false; + } + } + + private async jitteredRetry({ + query, + variables, + opName, + modelDefinition, + }: { + query: string; + variables: { limit: number; lastSync: number; nextToken: string }; + opName: string; + modelDefinition: SchemaModel; + }): Promise< GraphQLResult<{ [opName: string]: { items: T[]; @@ -120,6 +142,36 @@ class SyncProcessor { variables, }); } catch (error) { + if (this.partialDataFeatureFlagEnabled()) { + const hasItems = Boolean( + error && + error.data && + error.data[opName] && + error.data[opName].items + ); + + if (hasItems) { + const result = error; + result.data[opName].items = result.data[opName].items.filter( + item => item !== null + ); + + if (error.errors) { + Hub.dispatch('datastore', { + event: 'syncQueriesPartialSyncError', + data: { + errors: error.errors, + modelName: modelDefinition.name, + }, + }); + } + + return result; + } else { + throw error; + } + } + // If the error is unauthorized, filter out unauthorized items and return accessible items const unauthorized = (error.errors as [any]).some( err => err.errorType === 'Unauthorized' From 35838c0d6d2afa5fbf730671af00af89207c43bf Mon Sep 17 00:00:00 2001 From: Sam Martinez Date: Wed, 3 Mar 2021 11:58:01 -0800 Subject: [PATCH 21/34] chore: preparing release From 92286f46275ebc2b207a61b4a945c901879f65c5 Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Wed, 3 Mar 2021 20:38:31 +0000 Subject: [PATCH 22/34] chore(release): Publish [ci skip] - @aws-amplify/ui-storybook@1.0.4 - @aws-amplify/analytics@4.0.13 - @aws-amplify/api-graphql@1.2.25 - @aws-amplify/api-rest@1.2.25 - @aws-amplify/api@3.2.25 - @aws-amplify/auth@3.4.25 - aws-amplify-angular@5.0.51 - aws-amplify-react@4.2.26 - aws-amplify@3.3.22 - @aws-amplify/cache@3.1.50 - @aws-amplify/core@3.8.17 - @aws-amplify/datastore@2.9.11 - @aws-amplify/interactions@3.3.25 - @aws-amplify/predictions@3.2.25 - @aws-amplify/pubsub@3.2.23 - @aws-amplify/pushnotification@3.2.25 - @aws-amplify/storage@3.3.25 - @aws-amplify/xr@2.2.25 --- packages/amplify-ui-storybook/CHANGELOG.md | 8 ++++++++ packages/amplify-ui-storybook/package.json | 4 ++-- packages/analytics/CHANGELOG.md | 8 ++++++++ packages/analytics/package.json | 6 +++--- packages/api-graphql/CHANGELOG.md | 8 ++++++++ packages/api-graphql/package.json | 12 +++++------ packages/api-rest/CHANGELOG.md | 8 ++++++++ packages/api-rest/package.json | 4 ++-- packages/api/CHANGELOG.md | 8 ++++++++ packages/api/package.json | 6 +++--- packages/auth/CHANGELOG.md | 8 ++++++++ packages/auth/package.json | 6 +++--- packages/aws-amplify-angular/CHANGELOG.md | 8 ++++++++ packages/aws-amplify-angular/package.json | 4 ++-- packages/aws-amplify-react/CHANGELOG.md | 8 ++++++++ packages/aws-amplify-react/package.json | 4 ++-- packages/aws-amplify/CHANGELOG.md | 8 ++++++++ packages/aws-amplify/package.json | 24 +++++++++++----------- packages/cache/CHANGELOG.md | 8 ++++++++ packages/cache/package.json | 4 ++-- packages/core/CHANGELOG.md | 8 ++++++++ packages/core/package.json | 2 +- packages/datastore/CHANGELOG.md | 11 ++++++++++ packages/datastore/package.json | 8 ++++---- packages/interactions/CHANGELOG.md | 8 ++++++++ packages/interactions/package.json | 4 ++-- packages/predictions/CHANGELOG.md | 11 ++++++++++ packages/predictions/package.json | 6 +++--- packages/pubsub/CHANGELOG.md | 8 ++++++++ packages/pubsub/package.json | 8 ++++---- packages/pushnotification/CHANGELOG.md | 8 ++++++++ packages/pushnotification/package.json | 4 ++-- packages/storage/CHANGELOG.md | 8 ++++++++ packages/storage/package.json | 4 ++-- packages/xr/CHANGELOG.md | 8 ++++++++ packages/xr/package.json | 4 ++-- 36 files changed, 207 insertions(+), 57 deletions(-) diff --git a/packages/amplify-ui-storybook/CHANGELOG.md b/packages/amplify-ui-storybook/CHANGELOG.md index 665ee1c4076..2354fb7505d 100644 --- a/packages/amplify-ui-storybook/CHANGELOG.md +++ b/packages/amplify-ui-storybook/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.0.4](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-storybook@1.0.3...@aws-amplify/ui-storybook@1.0.4) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/ui-storybook + + + + + ## [1.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-storybook@1.0.2...@aws-amplify/ui-storybook@1.0.3) (2021-02-25) **Note:** Version bump only for package @aws-amplify/ui-storybook diff --git a/packages/amplify-ui-storybook/package.json b/packages/amplify-ui-storybook/package.json index 9b4bad100ee..f0b4ba2bb74 100644 --- a/packages/amplify-ui-storybook/package.json +++ b/packages/amplify-ui-storybook/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-storybook", - "version": "1.0.3", + "version": "1.0.4", "private": true, "dependencies": { "@aws-amplify/ui-react": "0.2.38", @@ -10,7 +10,7 @@ "@types/node": "^12.0.0", "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", - "aws-amplify": "3.3.21", + "aws-amplify": "3.3.22", "react": "^16.12.0", "react-app-polyfill": "^1.0.6", "react-dom": "^16.12.0", diff --git a/packages/analytics/CHANGELOG.md b/packages/analytics/CHANGELOG.md index 2d34f478e07..8b808439a0e 100644 --- a/packages/analytics/CHANGELOG.md +++ b/packages/analytics/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.0.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@4.0.12...@aws-amplify/analytics@4.0.13) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/analytics + + + + + ## [4.0.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@4.0.11...@aws-amplify/analytics@4.0.12) (2021-02-25) **Note:** Version bump only for package @aws-amplify/analytics diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 0934d2a9aad..a5454add2bc 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/analytics", - "version": "4.0.12", + "version": "4.0.13", "description": "Analytics category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -43,8 +43,8 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/cache": "3.1.49", - "@aws-amplify/core": "3.8.16", + "@aws-amplify/cache": "3.1.50", + "@aws-amplify/core": "3.8.17", "@aws-sdk/client-firehose": "3.6.1", "@aws-sdk/client-kinesis": "3.6.1", "@aws-sdk/client-personalize-events": "3.6.1", diff --git a/packages/api-graphql/CHANGELOG.md b/packages/api-graphql/CHANGELOG.md index 4e2ac41acce..ded37833af2 100644 --- a/packages/api-graphql/CHANGELOG.md +++ b/packages/api-graphql/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.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@1.2.24...@aws-amplify/api-graphql@1.2.25) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/api-graphql + + + + + ## [1.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@1.2.23...@aws-amplify/api-graphql@1.2.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/api-graphql diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index 3216f879849..4ccca49afa8 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api-graphql", - "version": "1.2.24", + "version": "1.2.25", "description": "Api-graphql category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,11 +44,11 @@ "@types/zen-observable": "^0.8.0" }, "dependencies": { - "@aws-amplify/api-rest": "1.2.24", - "@aws-amplify/auth": "3.4.24", - "@aws-amplify/cache": "3.1.49", - "@aws-amplify/core": "3.8.16", - "@aws-amplify/pubsub": "3.2.22", + "@aws-amplify/api-rest": "1.2.25", + "@aws-amplify/auth": "3.4.25", + "@aws-amplify/cache": "3.1.50", + "@aws-amplify/core": "3.8.17", + "@aws-amplify/pubsub": "3.2.23", "graphql": "14.0.0", "uuid": "^3.2.1", "zen-observable-ts": "0.8.19" diff --git a/packages/api-rest/CHANGELOG.md b/packages/api-rest/CHANGELOG.md index 03976176500..b5d994eb68f 100644 --- a/packages/api-rest/CHANGELOG.md +++ b/packages/api-rest/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.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@1.2.24...@aws-amplify/api-rest@1.2.25) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/api-rest + + + + + ## [1.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@1.2.23...@aws-amplify/api-rest@1.2.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/api-rest diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index dc91775ab44..53d42bc3b4a 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api-rest", - "version": "1.2.24", + "version": "1.2.25", "description": "Api-rest category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.16", + "@aws-amplify/core": "3.8.17", "axios": "0.21.1" }, "jest": { diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index efdf3ed74d1..08177d3d8c3 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/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.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@3.2.24...@aws-amplify/api@3.2.25) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/api + + + + + ## [3.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@3.2.23...@aws-amplify/api@3.2.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/api diff --git a/packages/api/package.json b/packages/api/package.json index 1a84b2eba7e..99d087c5d28 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api", - "version": "3.2.24", + "version": "3.2.25", "description": "Api category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,8 +44,8 @@ "@types/zen-observable": "^0.8.0" }, "dependencies": { - "@aws-amplify/api-graphql": "1.2.24", - "@aws-amplify/api-rest": "1.2.24" + "@aws-amplify/api-graphql": "1.2.25", + "@aws-amplify/api-rest": "1.2.25" }, "jest": { "globals": { diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index 09eabceaced..52856db10a2 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/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.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@3.4.24...@aws-amplify/auth@3.4.25) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/auth + + + + + ## [3.4.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@3.4.23...@aws-amplify/auth@3.4.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/auth diff --git a/packages/auth/package.json b/packages/auth/package.json index d2721982ae8..154ac9bcded 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/auth", - "version": "3.4.24", + "version": "3.4.25", "description": "Auth category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,8 +41,8 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/cache": "3.1.49", - "@aws-amplify/core": "3.8.16", + "@aws-amplify/cache": "3.1.50", + "@aws-amplify/core": "3.8.17", "amazon-cognito-identity-js": "4.5.12", "crypto-js": "^3.3.0" }, diff --git a/packages/aws-amplify-angular/CHANGELOG.md b/packages/aws-amplify-angular/CHANGELOG.md index cda9274fee1..31d1f158b89 100644 --- a/packages/aws-amplify-angular/CHANGELOG.md +++ b/packages/aws-amplify-angular/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.0.51](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-angular@5.0.50...aws-amplify-angular@5.0.51) (2021-03-03) + +**Note:** Version bump only for package aws-amplify-angular + + + + + ## [5.0.50](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-angular@5.0.49...aws-amplify-angular@5.0.50) (2021-02-25) **Note:** Version bump only for package aws-amplify-angular diff --git a/packages/aws-amplify-angular/package.json b/packages/aws-amplify-angular/package.json index a88d9fcbe55..043e8952833 100644 --- a/packages/aws-amplify-angular/package.json +++ b/packages/aws-amplify-angular/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify-angular", - "version": "5.0.50", + "version": "5.0.51", "description": "AWS Amplify Angular Components", "main": "bundles/aws-amplify-angular.umd.js", "module": "dist/index.js", @@ -39,7 +39,7 @@ "@types/zen-observable": "^0.5.3", "angular2-template-loader": "^0.6.2", "awesome-typescript-loader": "^4.0.1", - "aws-amplify": "3.3.21", + "aws-amplify": "3.3.22", "babel-core": "^6.26.3", "babel-plugin-lodash": "^3.3.4", "babel-preset-env": "^1.7.0", diff --git a/packages/aws-amplify-react/CHANGELOG.md b/packages/aws-amplify-react/CHANGELOG.md index c0edc2bd5d5..61ddc46841a 100644 --- a/packages/aws-amplify-react/CHANGELOG.md +++ b/packages/aws-amplify-react/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.26](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-react@4.2.25...aws-amplify-react@4.2.26) (2021-03-03) + +**Note:** Version bump only for package aws-amplify-react + + + + + ## [4.2.25](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-react@4.2.24...aws-amplify-react@4.2.25) (2021-02-25) **Note:** Version bump only for package aws-amplify-react diff --git a/packages/aws-amplify-react/package.json b/packages/aws-amplify-react/package.json index e38a1528d5e..ac903b20a20 100644 --- a/packages/aws-amplify-react/package.json +++ b/packages/aws-amplify-react/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify-react", - "version": "4.2.25", + "version": "4.2.26", "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -38,7 +38,7 @@ "@types/enzyme-adapter-react-16": "^1.0.3", "@types/react": "^16.0.41", "@types/react-dom": "^16.0.11", - "aws-amplify": "3.3.21", + "aws-amplify": "3.3.22", "enzyme": "^3.1.0", "enzyme-adapter-react-16": "^1.0.3", "enzyme-to-json": "^3.2.1", diff --git a/packages/aws-amplify/CHANGELOG.md b/packages/aws-amplify/CHANGELOG.md index c8c91390e8e..79597ff81c3 100644 --- a/packages/aws-amplify/CHANGELOG.md +++ b/packages/aws-amplify/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.22](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@3.3.21...aws-amplify@3.3.22) (2021-03-03) + +**Note:** Version bump only for package aws-amplify + + + + + ## [3.3.21](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@3.3.20...aws-amplify@3.3.21) (2021-02-25) **Note:** Version bump only for package aws-amplify diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index c7b97067f66..951a2c25910 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify", - "version": "3.3.21", + "version": "3.3.22", "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -34,18 +34,18 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/analytics": "4.0.12", - "@aws-amplify/api": "3.2.24", - "@aws-amplify/auth": "3.4.24", - "@aws-amplify/cache": "3.1.49", - "@aws-amplify/core": "3.8.16", - "@aws-amplify/datastore": "2.9.10", - "@aws-amplify/interactions": "3.3.24", - "@aws-amplify/predictions": "3.2.24", - "@aws-amplify/pubsub": "3.2.22", - "@aws-amplify/storage": "3.3.24", + "@aws-amplify/analytics": "4.0.13", + "@aws-amplify/api": "3.2.25", + "@aws-amplify/auth": "3.4.25", + "@aws-amplify/cache": "3.1.50", + "@aws-amplify/core": "3.8.17", + "@aws-amplify/datastore": "2.9.11", + "@aws-amplify/interactions": "3.3.25", + "@aws-amplify/predictions": "3.2.25", + "@aws-amplify/pubsub": "3.2.23", + "@aws-amplify/storage": "3.3.25", "@aws-amplify/ui": "2.0.2", - "@aws-amplify/xr": "2.2.24" + "@aws-amplify/xr": "2.2.25" }, "jest": { "globals": { diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index 0b142ac20d8..b9468510962 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/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.1.50](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/cache@3.1.49...@aws-amplify/cache@3.1.50) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/cache + + + + + ## [3.1.49](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/cache@3.1.48...@aws-amplify/cache@3.1.49) (2021-02-25) **Note:** Version bump only for package @aws-amplify/cache diff --git a/packages/cache/package.json b/packages/cache/package.json index 2040c7c1d4c..92b67b0e3a5 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/cache", - "version": "3.1.49", + "version": "3.1.50", "description": "Cache category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,7 +44,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.16" + "@aws-amplify/core": "3.8.17" }, "jest": { "globals": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 187baa723af..518b9aaf054 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/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.8.17](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@3.8.16...@aws-amplify/core@3.8.17) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/core + + + + + ## [3.8.16](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@3.8.15...@aws-amplify/core@3.8.16) (2021-02-25) **Note:** Version bump only for package @aws-amplify/core diff --git a/packages/core/package.json b/packages/core/package.json index 02f97e47a9e..219c8c529cd 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/core", - "version": "3.8.16", + "version": "3.8.17", "description": "Core category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", diff --git a/packages/datastore/CHANGELOG.md b/packages/datastore/CHANGELOG.md index ec67a24e47d..98010dad160 100644 --- a/packages/datastore/CHANGELOG.md +++ b/packages/datastore/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.9.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@2.9.10...@aws-amplify/datastore@2.9.11) (2021-03-03) + + +### Bug Fixes + +* **@aws-amplify/datastore:** return partial data when available ([#7775](https://github.com/aws-amplify/amplify-js/issues/7775)) ([715aa7e](https://github.com/aws-amplify/amplify-js/commit/715aa7e1d8ea1797784d37ab706c12b133fca4f0)) + + + + + ## [2.9.10](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@2.9.9...@aws-amplify/datastore@2.9.10) (2021-02-25) diff --git a/packages/datastore/package.json b/packages/datastore/package.json index 25c924fd307..60e7ed0309e 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/datastore", - "version": "2.9.10", + "version": "2.9.11", "description": "AppSyncLocal support for aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -48,9 +48,9 @@ "fake-indexeddb": "3.0.0" }, "dependencies": { - "@aws-amplify/api": "3.2.24", - "@aws-amplify/core": "3.8.16", - "@aws-amplify/pubsub": "3.2.22", + "@aws-amplify/api": "3.2.25", + "@aws-amplify/core": "3.8.17", + "@aws-amplify/pubsub": "3.2.23", "idb": "5.0.6", "immer": "8.0.1", "ulid": "2.3.0", diff --git a/packages/interactions/CHANGELOG.md b/packages/interactions/CHANGELOG.md index 7298b00729b..0d7ecb99bc4 100644 --- a/packages/interactions/CHANGELOG.md +++ b/packages/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. +## [3.3.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@3.3.24...@aws-amplify/interactions@3.3.25) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/interactions + + + + + ## [3.3.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@3.3.23...@aws-amplify/interactions@3.3.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/interactions diff --git a/packages/interactions/package.json b/packages/interactions/package.json index 85768aa9dc4..e6a078cb077 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/interactions", - "version": "3.3.24", + "version": "3.3.25", "description": "Interactions category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.16", + "@aws-amplify/core": "3.8.17", "@aws-sdk/client-lex-runtime-service": "3.6.1" }, "jest": { diff --git a/packages/predictions/CHANGELOG.md b/packages/predictions/CHANGELOG.md index 5ca4df5aedf..9cbfa8477d1 100644 --- a/packages/predictions/CHANGELOG.md +++ b/packages/predictions/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. +## [3.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@3.2.24...@aws-amplify/predictions@3.2.25) (2021-03-03) + + +### Bug Fixes + +* **@aws-amplify/predictions:** Missing return in AmazonAIConvertPredictionsProvider.ts ([#7803](https://github.com/aws-amplify/amplify-js/issues/7803)) ([ad2dd86](https://github.com/aws-amplify/amplify-js/commit/ad2dd864ffbe3bc5c620c3078f82805a4ed83439)) + + + + + ## [3.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@3.2.23...@aws-amplify/predictions@3.2.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/predictions diff --git a/packages/predictions/package.json b/packages/predictions/package.json index 783f076036d..07df82c583c 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/predictions", - "version": "3.2.24", + "version": "3.2.25", "description": "Machine learning category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -40,8 +40,8 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.16", - "@aws-amplify/storage": "3.3.24", + "@aws-amplify/core": "3.8.17", + "@aws-amplify/storage": "3.3.25", "@aws-sdk/client-comprehend": "3.6.1", "@aws-sdk/client-polly": "3.6.1", "@aws-sdk/client-rekognition": "3.6.1", diff --git a/packages/pubsub/CHANGELOG.md b/packages/pubsub/CHANGELOG.md index 0000ef8e011..932db09a59c 100644 --- a/packages/pubsub/CHANGELOG.md +++ b/packages/pubsub/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.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@3.2.22...@aws-amplify/pubsub@3.2.23) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/pubsub + + + + + ## [3.2.22](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@3.2.21...@aws-amplify/pubsub@3.2.22) (2021-02-25) **Note:** Version bump only for package @aws-amplify/pubsub diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index f35ef719e9e..d31511c1138 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/pubsub", - "version": "3.2.22", + "version": "3.2.23", "description": "Pubsub category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -45,9 +45,9 @@ "cpx": "^1.5.0" }, "dependencies": { - "@aws-amplify/auth": "3.4.24", - "@aws-amplify/cache": "3.1.49", - "@aws-amplify/core": "3.8.16", + "@aws-amplify/auth": "3.4.25", + "@aws-amplify/cache": "3.1.50", + "@aws-amplify/core": "3.8.17", "graphql": "14.0.0", "paho-mqtt": "^1.1.0", "uuid": "^3.2.1", diff --git a/packages/pushnotification/CHANGELOG.md b/packages/pushnotification/CHANGELOG.md index 38028382255..49262223500 100644 --- a/packages/pushnotification/CHANGELOG.md +++ b/packages/pushnotification/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.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pushnotification@3.2.24...@aws-amplify/pushnotification@3.2.25) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/pushnotification + + + + + ## [3.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pushnotification@3.2.23...@aws-amplify/pushnotification@3.2.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/pushnotification diff --git a/packages/pushnotification/package.json b/packages/pushnotification/package.json index fce6c137f01..6b915072656 100644 --- a/packages/pushnotification/package.json +++ b/packages/pushnotification/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/pushnotification", - "version": "3.2.24", + "version": "3.2.25", "description": "Push notifications category of aws-amplify", "main": "./lib/index.js", "module": "./lib/index.js", @@ -44,7 +44,7 @@ "webpack": "^3.5.5" }, "dependencies": { - "@aws-amplify/core": "3.8.16", + "@aws-amplify/core": "3.8.17", "@react-native-community/push-notification-ios": "1.0.3" }, "peerdependencies": { diff --git a/packages/storage/CHANGELOG.md b/packages/storage/CHANGELOG.md index eb90c4080c2..a3c295cbbbb 100644 --- a/packages/storage/CHANGELOG.md +++ b/packages/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.3.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@3.3.24...@aws-amplify/storage@3.3.25) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/storage + + + + + ## [3.3.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@3.3.23...@aws-amplify/storage@3.3.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/storage diff --git a/packages/storage/package.json b/packages/storage/package.json index 6cd860a90f8..db600d2d5f1 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/storage", - "version": "3.3.24", + "version": "3.3.25", "description": "Storage category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.16", + "@aws-amplify/core": "3.8.17", "@aws-sdk/client-s3": "3.6.1", "@aws-sdk/s3-request-presigner": "3.6.1", "@aws-sdk/util-create-request": "3.6.1", diff --git a/packages/xr/CHANGELOG.md b/packages/xr/CHANGELOG.md index e2c1e112df6..b180e68a8d7 100644 --- a/packages/xr/CHANGELOG.md +++ b/packages/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. +## [2.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/xr@2.2.24...@aws-amplify/xr@2.2.25) (2021-03-03) + +**Note:** Version bump only for package @aws-amplify/xr + + + + + ## [2.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/xr@2.2.23...@aws-amplify/xr@2.2.24) (2021-02-25) **Note:** Version bump only for package @aws-amplify/xr diff --git a/packages/xr/package.json b/packages/xr/package.json index 726c2c7eaca..b039977eac4 100644 --- a/packages/xr/package.json +++ b/packages/xr/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/xr", - "version": "2.2.24", + "version": "2.2.25", "description": "XR category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.16" + "@aws-amplify/core": "3.8.17" }, "jest": { "globals": { From a76a7129555cd101b7ab1c861c199ea370060058 Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Wed, 3 Mar 2021 20:41:25 +0000 Subject: [PATCH 23/34] chore(release): update version.ts [ci skip] --- packages/core/src/Platform/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/Platform/version.ts b/packages/core/src/Platform/version.ts index fbe5aabb2c1..959c156ae76 100644 --- a/packages/core/src/Platform/version.ts +++ b/packages/core/src/Platform/version.ts @@ -1,2 +1,2 @@ // generated by genversion -export const version = '3.8.16'; +export const version = '3.8.17'; From d2e1e168b64359ec9ec1a17c76f20eef1878752d Mon Sep 17 00:00:00 2001 From: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:15:55 -0500 Subject: [PATCH 24/34] chore: update bug template (#7872) --- .github/ISSUE_TEMPLATE/bug_report.md | 5 ----- .github/workflows/bug-report-helper.yml | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 24bac3fa35c..fc854e7c513 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -87,9 +87,4 @@ npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages **Additional context** Add any other context about the problem here. -**Is this a production issue?** -Are you experiencing this issue with a production application where end users are affected? - -- [ ] (check box if yes) - **_You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app._** \ No newline at end of file diff --git a/.github/workflows/bug-report-helper.yml b/.github/workflows/bug-report-helper.yml index 3dcc60f7120..19394794258 100644 --- a/.github/workflows/bug-report-helper.yml +++ b/.github/workflows/bug-report-helper.yml @@ -7,6 +7,7 @@ jobs: name: Test runs-on: ubuntu-latest if: | + false && (github.event.action == 'edited' || github.event.action == 'opened') && !contains(github.event.issue.labels.*.name, 'production-issue') && (contains(github.event.issue.body, '- [x] (check box if yes)') || From c43d4d02926b9b66a25dc43456da5b716c78e1cc Mon Sep 17 00:00:00 2001 From: William Lee <43682783+wlee221@users.noreply.github.com> Date: Thu, 4 Mar 2021 21:38:56 -0800 Subject: [PATCH 25/34] docs(@aws-amplify/ui-components): remove ui-preview tag --- packages/amplify-ui-components/Readme.md | 180 ++++++++++++----------- 1 file changed, 95 insertions(+), 85 deletions(-) diff --git a/packages/amplify-ui-components/Readme.md b/packages/amplify-ui-components/Readme.md index 551ed826eda..91d1d244eee 100644 --- a/packages/amplify-ui-components/Readme.md +++ b/packages/amplify-ui-components/Readme.md @@ -4,8 +4,8 @@ ## Frameworks -| Framework | Package | Version | READMEs | Quick Start | -| ------------------ | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------: | ----------------------------------- | +| Framework | Package | Version | READMEs | Quick Start | +| ------------------ | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | :--------------------------------------------: | ----------------------------------- | | **React** | [`@aws-amplify/ui-react`](https://www.npmjs.com/package/@aws-amplify/ui-react) | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-react/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-react) | [`README.md`](../amplify-ui-react/README.md) | [`React`](#react) | | **Angular** | [`@aws-amplify/ui-angular`](https://www.npmjs.com/package/@aws-amplify/ui-angular) | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-angular/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-angular) | [`README.md`](../amplify-ui-angular/README.md) | [`Angular`](#angular) | | **Vue** | [`@aws-amplify/ui-vue`](https://www.npmjs.com/package/@aws-amplify/ui-vue) | [![version](https://img.shields.io/npm/v/@aws-amplify/ui-vue/latest.svg)](https://www.npmjs.com/package/@aws-amplify/ui-vue) | [`README.md`](../amplify-ui-vue/README.md) | [`Vue`](#vue) | @@ -32,7 +32,7 @@ In this Quick Start guide you will set up an Authenticator component and the clo ##### Installation ``` -yarn add aws-amplify@ui-preview @aws-amplify/ui-react@ui-preview +yarn add aws-amplify @aws-amplify/ui-react ``` ##### Usage @@ -46,12 +46,12 @@ import awsconfig from './aws-exports'; Amplify.configure(awsconfig); const App = () => { - -
- My App - -
-
; + +
+ My App + +
+
; }; ``` @@ -60,7 +60,7 @@ const App = () => { ##### Installation ``` -yarn add aws-amplify@ui-preview @aws-amplify/ui-angular@ui-preview +yarn add aws-amplify @aws-amplify/ui-angular ``` ##### Usage @@ -79,10 +79,10 @@ import awsconfig from './aws-exports'; Amplify.configure(awsconfig); @NgModule({ - declarations: [AppComponent], - imports: [AmplifyUIAngularModule, BrowserModule], - providers: [], - bootstrap: [AppComponent], + declarations: [AppComponent], + imports: [AmplifyUIAngularModule, BrowserModule], + providers: [], + bootstrap: [AppComponent], }) export class AppModule {} ``` @@ -91,10 +91,10 @@ _app.component.html_ ```html -
- My App - -
+
+ My App + +
``` @@ -103,7 +103,7 @@ _app.component.html_ ##### Installation ``` -yarn add aws-amplify@ui-preview @aws-amplify/ui-vue@ui-preview +yarn add aws-amplify @aws-amplify/ui-vue ``` ##### Usage @@ -120,7 +120,7 @@ import awsconfig from './aws-exports'; Amplify.configure(awsconfig); new Vue({ - render: h => h(App), + render: h => h(App), }).$mount('#app'); ``` @@ -128,12 +128,12 @@ _App.vue_ ```html ``` @@ -142,7 +142,7 @@ _App.vue_ ##### Installation ``` -yarn add aws-amplify@ui-preview @aws-amplify/ui-components@ui-preview +yarn add aws-amplify @aws-amplify/ui-components ``` ##### Usage @@ -150,11 +150,17 @@ yarn add aws-amplify@ui-preview @aws-amplify/ui-components@ui-preview _app.js_ ```js -import '@aws-amplify/ui-vue'; import Amplify from 'aws-amplify'; import awsconfig from './aws-exports'; - Amplify.configure(awsconfig); +import { + applyPolyfills, + defineCustomElements, +} from '@aws-amplify/ui-components/loader'; + +applyPolyfills().then(() => { + defineCustomElements(window); +}); ``` _index.html_ @@ -162,16 +168,16 @@ _index.html_ ```html - - -
- My App - -
-
- - - + + +
+ My App + +
+
+ + + ``` @@ -231,18 +237,22 @@ Amplify UI Components use [slots](https://developer.mozilla.org/en-US/docs/Web/H #### React ```js -import { AmplifyAuthenticator, AmplifySignIn, AmplifySignUp } from '@aws-amplify/ui-react'; +import { + AmplifyAuthenticator, + AmplifySignIn, + AmplifySignUp, +} from '@aws-amplify/ui-react'; const App = () => { - - - - -
- My App - -
-
; + + + + +
+ My App + +
+
; }; ``` @@ -263,13 +273,13 @@ export default withAuthenticator(App, { /* ...amplifyAuthenticatorSettings */ }) ```html - - + + -
- My App - -
+
+ My App + +
``` @@ -277,13 +287,13 @@ export default withAuthenticator(App, { /* ...amplifyAuthenticatorSettings */ }) ```html - - + + -
- My App - -
+
+ My App + +
``` @@ -291,13 +301,13 @@ export default withAuthenticator(App, { /* ...amplifyAuthenticatorSettings */ }) ```html - - + + -
- My App - -
+
+ My App + +
``` @@ -375,21 +385,21 @@ The `federated` prop implements the `FederatedConfig`: ```ts export interface FederatedConfig { - auth0Config?: { - audience?: string; - clientID: string; - domain: string; - responseType: string; - redirectUri: string; - returnTo?: string; - scope?: string; - }; - amazonClientId?: string; - facebookAppId?: string; - googleClientId?: string; - oauthConfig?: { - [key: string]: any; - }; + auth0Config?: { + audience?: string; + clientID: string; + domain: string; + responseType: string; + redirectUri: string; + returnTo?: string; + scope?: string; + }; + amazonClientId?: string; + facebookAppId?: string; + googleClientId?: string; + oauthConfig?: { + [key: string]: any; + }; } ``` @@ -426,7 +436,7 @@ const federated = { ```diff - yarn add aws-amplify-react -+ yarn add @aws-amplify/ui-react@ui-preview ++ yarn add @aws-amplify/ui-react ``` ##### Usage @@ -469,7 +479,7 @@ export default withAuthenticator(App); ```diff - yarn add aws-amplify-angular -+ yarn add @aws-amplify/ui-angular@ui-preview ++ yarn add @aws-amplify/ui-angular ``` ##### Usage @@ -504,7 +514,7 @@ export class AppModule {} ```diff - yarn add aws-amplify-vue -+ yarn add @aws-amplify/ui-vue@ui-preview ++ yarn add @aws-amplify/ui-vue ``` ##### Usage From 8d30ce5633fd19acadf621cedc338a4e7504481b Mon Sep 17 00:00:00 2001 From: Alex Hinson Date: Mon, 8 Mar 2021 09:15:26 -0800 Subject: [PATCH 26/34] fix(amazon-cognito-identity-js): set userDataKey with updated username (#7903) --- .../src/CognitoUser.js | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/packages/amazon-cognito-identity-js/src/CognitoUser.js b/packages/amazon-cognito-identity-js/src/CognitoUser.js index fe56c143c07..2306f2c7b94 100644 --- a/packages/amazon-cognito-identity-js/src/CognitoUser.js +++ b/packages/amazon-cognito-identity-js/src/CognitoUser.js @@ -287,6 +287,7 @@ export default class CognitoUser { const challengeParameters = data.ChallengeParameters; this.username = challengeParameters.USER_ID_FOR_SRP; + this.userDataKey = `${this.keyPrefix}.${this.username}.userData`; serverBValue = new BigInteger(challengeParameters.SRP_B, 16); salt = new BigInteger(challengeParameters.SALT, 16); this.getCachedDeviceKeyAndPassword(); @@ -1233,11 +1234,10 @@ export default class CognitoUser { } /** - * @typedef {Object} GetUserDataOptions + * @typedef {Object} GetUserDataOptions * @property {boolean} bypassCache - force getting data from Cognito service * @property {Record} clientMetadata - clientMetadata for getSession - */ - + */ /** * This is used by an authenticated users to get the userData @@ -1364,9 +1364,9 @@ export default class CognitoUser { } /** - * @typedef {Object} GetSessionOptions + * @typedef {Object} GetSessionOptions * @property {Record} clientMetadata - clientMetadata for getSession - */ + */ /** * This is used to get a session, either from the session object @@ -1388,8 +1388,9 @@ export default class CognitoUser { return callback(null, this.signInUserSession); } - const keyPrefix = `CognitoIdentityServiceProvider.${this.pool.getClientId()}.${this.username - }`; + const keyPrefix = `CognitoIdentityServiceProvider.${this.pool.getClientId()}.${ + this.username + }`; const idTokenKey = `${keyPrefix}.idToken`; const accessTokenKey = `${keyPrefix}.accessToken`; const refreshTokenKey = `${keyPrefix}.refreshToken`; @@ -1552,8 +1553,9 @@ export default class CognitoUser { * @returns {void} */ cacheDeviceKeyAndPassword() { - const keyPrefix = `CognitoIdentityServiceProvider.${this.pool.getClientId()}.${this.username - }`; + const keyPrefix = `CognitoIdentityServiceProvider.${this.pool.getClientId()}.${ + this.username + }`; const deviceKeyKey = `${keyPrefix}.deviceKey`; const randomPasswordKey = `${keyPrefix}.randomPasswordKey`; const deviceGroupKeyKey = `${keyPrefix}.deviceGroupKey`; @@ -1568,8 +1570,9 @@ export default class CognitoUser { * @returns {void} */ getCachedDeviceKeyAndPassword() { - const keyPrefix = `CognitoIdentityServiceProvider.${this.pool.getClientId()}.${this.username - }`; + const keyPrefix = `CognitoIdentityServiceProvider.${this.pool.getClientId()}.${ + this.username + }`; const deviceKeyKey = `${keyPrefix}.deviceKey`; const randomPasswordKey = `${keyPrefix}.randomPasswordKey`; const deviceGroupKeyKey = `${keyPrefix}.deviceGroupKey`; @@ -1586,8 +1589,9 @@ export default class CognitoUser { * @returns {void} */ clearCachedDeviceKeyAndPassword() { - const keyPrefix = `CognitoIdentityServiceProvider.${this.pool.getClientId()}.${this.username - }`; + const keyPrefix = `CognitoIdentityServiceProvider.${this.pool.getClientId()}.${ + this.username + }`; const deviceKeyKey = `${keyPrefix}.deviceKey`; const randomPasswordKey = `${keyPrefix}.randomPasswordKey`; const deviceGroupKeyKey = `${keyPrefix}.deviceGroupKey`; From 4a2e6587035239c8d5e2da64cfffdae63efdba5c Mon Sep 17 00:00:00 2001 From: Alex Hinson Date: Mon, 8 Mar 2021 10:43:25 -0800 Subject: [PATCH 27/34] chore: preparing release From f8eafcee62f266eca7e4e8e6bbb5dd13c4ccdaa4 Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Mon, 8 Mar 2021 19:25:54 +0000 Subject: [PATCH 28/34] chore(release): Publish [ci skip] - amazon-cognito-identity-js@4.5.13 - @aws-amplify/ui-angular@1.0.4 - @aws-amplify/ui-components@1.0.4 - @aws-amplify/ui-react@1.0.4 - @aws-amplify/ui-storybook@1.0.5 - @aws-amplify/ui-vue@1.0.4 - @aws-amplify/analytics@4.0.14 - @aws-amplify/api-graphql@1.2.26 - @aws-amplify/api-rest@1.2.26 - @aws-amplify/api@3.2.26 - @aws-amplify/auth@3.4.26 - aws-amplify-angular@5.0.52 - aws-amplify-react@4.2.27 - aws-amplify@3.3.23 - @aws-amplify/cache@3.1.51 - @aws-amplify/core@3.8.18 - @aws-amplify/datastore@2.9.12 - @aws-amplify/interactions@3.3.26 - @aws-amplify/predictions@3.2.26 - @aws-amplify/pubsub@3.2.24 - @aws-amplify/pushnotification@3.2.26 - @aws-amplify/storage@3.3.26 - @aws-amplify/xr@2.2.26 --- .../amazon-cognito-identity-js/CHANGELOG.md | 11 +++++++++ .../package-lock.json | 2 +- .../amazon-cognito-identity-js/package.json | 2 +- packages/amplify-ui-angular/CHANGELOG.md | 8 +++++++ packages/amplify-ui-angular/package.json | 4 ++-- packages/amplify-ui-components/CHANGELOG.md | 8 +++++++ packages/amplify-ui-components/package.json | 2 +- packages/amplify-ui-react/CHANGELOG.md | 8 +++++++ packages/amplify-ui-react/package.json | 4 ++-- packages/amplify-ui-storybook/CHANGELOG.md | 8 +++++++ packages/amplify-ui-storybook/package.json | 4 ++-- packages/amplify-ui-vue/CHANGELOG.md | 8 +++++++ packages/amplify-ui-vue/package.json | 4 ++-- packages/analytics/CHANGELOG.md | 8 +++++++ packages/analytics/package.json | 6 ++--- packages/api-graphql/CHANGELOG.md | 8 +++++++ packages/api-graphql/package.json | 12 +++++----- packages/api-rest/CHANGELOG.md | 8 +++++++ packages/api-rest/package.json | 4 ++-- packages/api/CHANGELOG.md | 8 +++++++ packages/api/package.json | 6 ++--- packages/auth/CHANGELOG.md | 8 +++++++ packages/auth/package.json | 8 +++---- packages/aws-amplify-angular/CHANGELOG.md | 8 +++++++ packages/aws-amplify-angular/package.json | 4 ++-- packages/aws-amplify-react/CHANGELOG.md | 8 +++++++ packages/aws-amplify-react/package.json | 4 ++-- packages/aws-amplify/CHANGELOG.md | 8 +++++++ packages/aws-amplify/package.json | 24 +++++++++---------- packages/cache/CHANGELOG.md | 8 +++++++ packages/cache/package.json | 4 ++-- packages/core/CHANGELOG.md | 8 +++++++ packages/core/package.json | 2 +- packages/datastore/CHANGELOG.md | 8 +++++++ packages/datastore/package.json | 8 +++---- packages/interactions/CHANGELOG.md | 8 +++++++ packages/interactions/package.json | 4 ++-- packages/predictions/CHANGELOG.md | 8 +++++++ packages/predictions/package.json | 6 ++--- packages/pubsub/CHANGELOG.md | 8 +++++++ packages/pubsub/package.json | 8 +++---- packages/pushnotification/CHANGELOG.md | 8 +++++++ packages/pushnotification/package.json | 4 ++-- packages/storage/CHANGELOG.md | 8 +++++++ packages/storage/package.json | 4 ++-- packages/xr/CHANGELOG.md | 8 +++++++ packages/xr/package.json | 4 ++-- 47 files changed, 254 insertions(+), 67 deletions(-) diff --git a/packages/amazon-cognito-identity-js/CHANGELOG.md b/packages/amazon-cognito-identity-js/CHANGELOG.md index 87bdf50288f..ca35ece1dad 100644 --- a/packages/amazon-cognito-identity-js/CHANGELOG.md +++ b/packages/amazon-cognito-identity-js/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.5.13](https://github.com/aws-amplify/amplify-js/compare/amazon-cognito-identity-js@4.5.12...amazon-cognito-identity-js@4.5.13) (2021-03-08) + + +### Bug Fixes + +* **amazon-cognito-identity-js:** set userDataKey with updated username ([#7903](https://github.com/aws-amplify/amplify-js/issues/7903)) ([8d30ce5](https://github.com/aws-amplify/amplify-js/commit/8d30ce5633fd19acadf621cedc338a4e7504481b)) + + + + + ## [4.5.12](https://github.com/aws-amplify/amplify-js/compare/amazon-cognito-identity-js@4.5.11...amazon-cognito-identity-js@4.5.12) (2021-02-25) **Note:** Version bump only for package amazon-cognito-identity-js diff --git a/packages/amazon-cognito-identity-js/package-lock.json b/packages/amazon-cognito-identity-js/package-lock.json index d18a242a3f9..decd4ac9694 100644 --- a/packages/amazon-cognito-identity-js/package-lock.json +++ b/packages/amazon-cognito-identity-js/package-lock.json @@ -1,6 +1,6 @@ { "name": "amazon-cognito-identity-js", - "version": "4.5.12", + "version": "4.5.13", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/packages/amazon-cognito-identity-js/package.json b/packages/amazon-cognito-identity-js/package.json index 35a3c4df367..5634988c058 100644 --- a/packages/amazon-cognito-identity-js/package.json +++ b/packages/amazon-cognito-identity-js/package.json @@ -1,7 +1,7 @@ { "name": "amazon-cognito-identity-js", "description": "Amazon Cognito Identity Provider JavaScript SDK", - "version": "4.5.12", + "version": "4.5.13", "author": { "name": "Amazon Web Services", "email": "aws@amazon.com", diff --git a/packages/amplify-ui-angular/CHANGELOG.md b/packages/amplify-ui-angular/CHANGELOG.md index 24df15a5558..567a5d0d6ba 100644 --- a/packages/amplify-ui-angular/CHANGELOG.md +++ b/packages/amplify-ui-angular/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.0.4](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-angular@1.0.3...@aws-amplify/ui-angular@1.0.4) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/ui-angular + + + + + ## [1.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-angular@1.0.2...@aws-amplify/ui-angular@1.0.3) (2021-02-25) **Note:** Version bump only for package @aws-amplify/ui-angular diff --git a/packages/amplify-ui-angular/package.json b/packages/amplify-ui-angular/package.json index 2b4f07ffed8..5c12807a0f4 100644 --- a/packages/amplify-ui-angular/package.json +++ b/packages/amplify-ui-angular/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-angular", - "version": "1.0.3", + "version": "1.0.4", "description": "Angular specific wrapper for @aws-amplify/ui-components", "publishConfig": { "access": "public" @@ -31,7 +31,7 @@ "dist/" ], "dependencies": { - "@aws-amplify/ui-components": "1.0.3" + "@aws-amplify/ui-components": "1.0.4" }, "devDependencies": { "@angular/compiler-cli": "^7.2.1", diff --git a/packages/amplify-ui-components/CHANGELOG.md b/packages/amplify-ui-components/CHANGELOG.md index 9fd016faede..ec3e27a10ad 100644 --- a/packages/amplify-ui-components/CHANGELOG.md +++ b/packages/amplify-ui-components/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.0.4](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-components@1.0.3...@aws-amplify/ui-components@1.0.4) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/ui-components + + + + + ## [1.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-components@1.0.2...@aws-amplify/ui-components@1.0.3) (2021-02-25) **Note:** Version bump only for package @aws-amplify/ui-components diff --git a/packages/amplify-ui-components/package.json b/packages/amplify-ui-components/package.json index 363debc94af..9d24dbcab4d 100644 --- a/packages/amplify-ui-components/package.json +++ b/packages/amplify-ui-components/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-components", - "version": "1.0.3", + "version": "1.0.4", "description": "Core Amplify UI Component Library", "module": "dist/index.mjs", "main": "dist/index.js", diff --git a/packages/amplify-ui-react/CHANGELOG.md b/packages/amplify-ui-react/CHANGELOG.md index 883b4cfd9ed..074353a66ae 100644 --- a/packages/amplify-ui-react/CHANGELOG.md +++ b/packages/amplify-ui-react/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.0.4](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-react@1.0.3...@aws-amplify/ui-react@1.0.4) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/ui-react + + + + + ## [1.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-react@1.0.2...@aws-amplify/ui-react@1.0.3) (2021-02-25) **Note:** Version bump only for package @aws-amplify/ui-react diff --git a/packages/amplify-ui-react/package.json b/packages/amplify-ui-react/package.json index 9a635765828..69b90a87866 100755 --- a/packages/amplify-ui-react/package.json +++ b/packages/amplify-ui-react/package.json @@ -1,7 +1,7 @@ { "name": "@aws-amplify/ui-react", "sideEffects": false, - "version": "1.0.3", + "version": "1.0.4", "description": "React specific wrapper for @aws-amplify/ui-components", "publishConfig": { "access": "public" @@ -32,7 +32,7 @@ "typescript": "^3.3.4000" }, "dependencies": { - "@aws-amplify/ui-components": "1.0.3" + "@aws-amplify/ui-components": "1.0.4" }, "peerDependencies": { "react": ">= 16.7.0", diff --git a/packages/amplify-ui-storybook/CHANGELOG.md b/packages/amplify-ui-storybook/CHANGELOG.md index 2354fb7505d..475931302a1 100644 --- a/packages/amplify-ui-storybook/CHANGELOG.md +++ b/packages/amplify-ui-storybook/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.0.5](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-storybook@1.0.4...@aws-amplify/ui-storybook@1.0.5) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/ui-storybook + + + + + ## [1.0.4](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-storybook@1.0.3...@aws-amplify/ui-storybook@1.0.4) (2021-03-03) **Note:** Version bump only for package @aws-amplify/ui-storybook diff --git a/packages/amplify-ui-storybook/package.json b/packages/amplify-ui-storybook/package.json index f0b4ba2bb74..8c93bd8e8f9 100644 --- a/packages/amplify-ui-storybook/package.json +++ b/packages/amplify-ui-storybook/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/ui-storybook", - "version": "1.0.4", + "version": "1.0.5", "private": true, "dependencies": { "@aws-amplify/ui-react": "0.2.38", @@ -10,7 +10,7 @@ "@types/node": "^12.0.0", "@types/react": "^16.9.0", "@types/react-dom": "^16.9.0", - "aws-amplify": "3.3.22", + "aws-amplify": "3.3.23", "react": "^16.12.0", "react-app-polyfill": "^1.0.6", "react-dom": "^16.12.0", diff --git a/packages/amplify-ui-vue/CHANGELOG.md b/packages/amplify-ui-vue/CHANGELOG.md index 6d0e78f7d2d..cb43bda77dd 100644 --- a/packages/amplify-ui-vue/CHANGELOG.md +++ b/packages/amplify-ui-vue/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.0.4](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-vue@1.0.3...@aws-amplify/ui-vue@1.0.4) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/ui-vue + + + + + ## [1.0.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/ui-vue@1.0.2...@aws-amplify/ui-vue@1.0.3) (2021-02-25) **Note:** Version bump only for package @aws-amplify/ui-vue diff --git a/packages/amplify-ui-vue/package.json b/packages/amplify-ui-vue/package.json index b622008d9cc..89192ca6414 100644 --- a/packages/amplify-ui-vue/package.json +++ b/packages/amplify-ui-vue/package.json @@ -1,7 +1,7 @@ { "name": "@aws-amplify/ui-vue", "sideEffects": true, - "version": "1.0.3", + "version": "1.0.4", "description": "Vue specific wrapper for @aws-amplify/ui-components", "publishConfig": { "access": "public" @@ -17,7 +17,7 @@ "url": "https://github.com/aws-amplify/amplify-js.git" }, "dependencies": { - "@aws-amplify/ui-components": "1.0.3" + "@aws-amplify/ui-components": "1.0.4" }, "devDependencies": { "rimraf": "^3.0.2" diff --git a/packages/analytics/CHANGELOG.md b/packages/analytics/CHANGELOG.md index 8b808439a0e..98cb9c4685e 100644 --- a/packages/analytics/CHANGELOG.md +++ b/packages/analytics/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.0.14](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@4.0.13...@aws-amplify/analytics@4.0.14) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/analytics + + + + + ## [4.0.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@4.0.12...@aws-amplify/analytics@4.0.13) (2021-03-03) **Note:** Version bump only for package @aws-amplify/analytics diff --git a/packages/analytics/package.json b/packages/analytics/package.json index a5454add2bc..afd1d26aa6a 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/analytics", - "version": "4.0.13", + "version": "4.0.14", "description": "Analytics category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -43,8 +43,8 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/cache": "3.1.50", - "@aws-amplify/core": "3.8.17", + "@aws-amplify/cache": "3.1.51", + "@aws-amplify/core": "3.8.18", "@aws-sdk/client-firehose": "3.6.1", "@aws-sdk/client-kinesis": "3.6.1", "@aws-sdk/client-personalize-events": "3.6.1", diff --git a/packages/api-graphql/CHANGELOG.md b/packages/api-graphql/CHANGELOG.md index ded37833af2..6a79eeab1da 100644 --- a/packages/api-graphql/CHANGELOG.md +++ b/packages/api-graphql/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.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@1.2.25...@aws-amplify/api-graphql@1.2.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/api-graphql + + + + + ## [1.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@1.2.24...@aws-amplify/api-graphql@1.2.25) (2021-03-03) **Note:** Version bump only for package @aws-amplify/api-graphql diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index 4ccca49afa8..57be5907314 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api-graphql", - "version": "1.2.25", + "version": "1.2.26", "description": "Api-graphql category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,11 +44,11 @@ "@types/zen-observable": "^0.8.0" }, "dependencies": { - "@aws-amplify/api-rest": "1.2.25", - "@aws-amplify/auth": "3.4.25", - "@aws-amplify/cache": "3.1.50", - "@aws-amplify/core": "3.8.17", - "@aws-amplify/pubsub": "3.2.23", + "@aws-amplify/api-rest": "1.2.26", + "@aws-amplify/auth": "3.4.26", + "@aws-amplify/cache": "3.1.51", + "@aws-amplify/core": "3.8.18", + "@aws-amplify/pubsub": "3.2.24", "graphql": "14.0.0", "uuid": "^3.2.1", "zen-observable-ts": "0.8.19" diff --git a/packages/api-rest/CHANGELOG.md b/packages/api-rest/CHANGELOG.md index b5d994eb68f..be863f7f391 100644 --- a/packages/api-rest/CHANGELOG.md +++ b/packages/api-rest/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.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@1.2.25...@aws-amplify/api-rest@1.2.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/api-rest + + + + + ## [1.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-rest@1.2.24...@aws-amplify/api-rest@1.2.25) (2021-03-03) **Note:** Version bump only for package @aws-amplify/api-rest diff --git a/packages/api-rest/package.json b/packages/api-rest/package.json index 53d42bc3b4a..080d537599e 100644 --- a/packages/api-rest/package.json +++ b/packages/api-rest/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api-rest", - "version": "1.2.25", + "version": "1.2.26", "description": "Api-rest category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.17", + "@aws-amplify/core": "3.8.18", "axios": "0.21.1" }, "jest": { diff --git a/packages/api/CHANGELOG.md b/packages/api/CHANGELOG.md index 08177d3d8c3..9d2a285965e 100644 --- a/packages/api/CHANGELOG.md +++ b/packages/api/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.2.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@3.2.25...@aws-amplify/api@3.2.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/api + + + + + ## [3.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@3.2.24...@aws-amplify/api@3.2.25) (2021-03-03) **Note:** Version bump only for package @aws-amplify/api diff --git a/packages/api/package.json b/packages/api/package.json index 99d087c5d28..817b108eb84 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/api", - "version": "3.2.25", + "version": "3.2.26", "description": "Api category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,8 +44,8 @@ "@types/zen-observable": "^0.8.0" }, "dependencies": { - "@aws-amplify/api-graphql": "1.2.25", - "@aws-amplify/api-rest": "1.2.25" + "@aws-amplify/api-graphql": "1.2.26", + "@aws-amplify/api-rest": "1.2.26" }, "jest": { "globals": { diff --git a/packages/auth/CHANGELOG.md b/packages/auth/CHANGELOG.md index 52856db10a2..96e5607b66a 100644 --- a/packages/auth/CHANGELOG.md +++ b/packages/auth/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.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@3.4.25...@aws-amplify/auth@3.4.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/auth + + + + + ## [3.4.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/auth@3.4.24...@aws-amplify/auth@3.4.25) (2021-03-03) **Note:** Version bump only for package @aws-amplify/auth diff --git a/packages/auth/package.json b/packages/auth/package.json index 154ac9bcded..74685e87907 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/auth", - "version": "3.4.25", + "version": "3.4.26", "description": "Auth category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,9 +41,9 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/cache": "3.1.50", - "@aws-amplify/core": "3.8.17", - "amazon-cognito-identity-js": "4.5.12", + "@aws-amplify/cache": "3.1.51", + "@aws-amplify/core": "3.8.18", + "amazon-cognito-identity-js": "4.5.13", "crypto-js": "^3.3.0" }, "devDependencies": { diff --git a/packages/aws-amplify-angular/CHANGELOG.md b/packages/aws-amplify-angular/CHANGELOG.md index 31d1f158b89..875ffb9fd08 100644 --- a/packages/aws-amplify-angular/CHANGELOG.md +++ b/packages/aws-amplify-angular/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.0.52](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-angular@5.0.51...aws-amplify-angular@5.0.52) (2021-03-08) + +**Note:** Version bump only for package aws-amplify-angular + + + + + ## [5.0.51](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-angular@5.0.50...aws-amplify-angular@5.0.51) (2021-03-03) **Note:** Version bump only for package aws-amplify-angular diff --git a/packages/aws-amplify-angular/package.json b/packages/aws-amplify-angular/package.json index 043e8952833..c7a00eaf6e1 100644 --- a/packages/aws-amplify-angular/package.json +++ b/packages/aws-amplify-angular/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify-angular", - "version": "5.0.51", + "version": "5.0.52", "description": "AWS Amplify Angular Components", "main": "bundles/aws-amplify-angular.umd.js", "module": "dist/index.js", @@ -39,7 +39,7 @@ "@types/zen-observable": "^0.5.3", "angular2-template-loader": "^0.6.2", "awesome-typescript-loader": "^4.0.1", - "aws-amplify": "3.3.22", + "aws-amplify": "3.3.23", "babel-core": "^6.26.3", "babel-plugin-lodash": "^3.3.4", "babel-preset-env": "^1.7.0", diff --git a/packages/aws-amplify-react/CHANGELOG.md b/packages/aws-amplify-react/CHANGELOG.md index 61ddc46841a..0fb7093d56b 100644 --- a/packages/aws-amplify-react/CHANGELOG.md +++ b/packages/aws-amplify-react/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.27](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-react@4.2.26...aws-amplify-react@4.2.27) (2021-03-08) + +**Note:** Version bump only for package aws-amplify-react + + + + + ## [4.2.26](https://github.com/aws-amplify/amplify-js/compare/aws-amplify-react@4.2.25...aws-amplify-react@4.2.26) (2021-03-03) **Note:** Version bump only for package aws-amplify-react diff --git a/packages/aws-amplify-react/package.json b/packages/aws-amplify-react/package.json index ac903b20a20..9f7f5f8aa18 100644 --- a/packages/aws-amplify-react/package.json +++ b/packages/aws-amplify-react/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify-react", - "version": "4.2.26", + "version": "4.2.27", "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -38,7 +38,7 @@ "@types/enzyme-adapter-react-16": "^1.0.3", "@types/react": "^16.0.41", "@types/react-dom": "^16.0.11", - "aws-amplify": "3.3.22", + "aws-amplify": "3.3.23", "enzyme": "^3.1.0", "enzyme-adapter-react-16": "^1.0.3", "enzyme-to-json": "^3.2.1", diff --git a/packages/aws-amplify/CHANGELOG.md b/packages/aws-amplify/CHANGELOG.md index 79597ff81c3..614ea322f07 100644 --- a/packages/aws-amplify/CHANGELOG.md +++ b/packages/aws-amplify/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.23](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@3.3.22...aws-amplify@3.3.23) (2021-03-08) + +**Note:** Version bump only for package aws-amplify + + + + + ## [3.3.22](https://github.com/aws-amplify/amplify-js/compare/aws-amplify@3.3.21...aws-amplify@3.3.22) (2021-03-03) **Note:** Version bump only for package aws-amplify diff --git a/packages/aws-amplify/package.json b/packages/aws-amplify/package.json index 951a2c25910..0a2c2bbe613 100644 --- a/packages/aws-amplify/package.json +++ b/packages/aws-amplify/package.json @@ -1,6 +1,6 @@ { "name": "aws-amplify", - "version": "3.3.22", + "version": "3.3.23", "description": "AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -34,18 +34,18 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/analytics": "4.0.13", - "@aws-amplify/api": "3.2.25", - "@aws-amplify/auth": "3.4.25", - "@aws-amplify/cache": "3.1.50", - "@aws-amplify/core": "3.8.17", - "@aws-amplify/datastore": "2.9.11", - "@aws-amplify/interactions": "3.3.25", - "@aws-amplify/predictions": "3.2.25", - "@aws-amplify/pubsub": "3.2.23", - "@aws-amplify/storage": "3.3.25", + "@aws-amplify/analytics": "4.0.14", + "@aws-amplify/api": "3.2.26", + "@aws-amplify/auth": "3.4.26", + "@aws-amplify/cache": "3.1.51", + "@aws-amplify/core": "3.8.18", + "@aws-amplify/datastore": "2.9.12", + "@aws-amplify/interactions": "3.3.26", + "@aws-amplify/predictions": "3.2.26", + "@aws-amplify/pubsub": "3.2.24", + "@aws-amplify/storage": "3.3.26", "@aws-amplify/ui": "2.0.2", - "@aws-amplify/xr": "2.2.25" + "@aws-amplify/xr": "2.2.26" }, "jest": { "globals": { diff --git a/packages/cache/CHANGELOG.md b/packages/cache/CHANGELOG.md index b9468510962..64e3768a74d 100644 --- a/packages/cache/CHANGELOG.md +++ b/packages/cache/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.1.51](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/cache@3.1.50...@aws-amplify/cache@3.1.51) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/cache + + + + + ## [3.1.50](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/cache@3.1.49...@aws-amplify/cache@3.1.50) (2021-03-03) **Note:** Version bump only for package @aws-amplify/cache diff --git a/packages/cache/package.json b/packages/cache/package.json index 92b67b0e3a5..5d70b43efaf 100644 --- a/packages/cache/package.json +++ b/packages/cache/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/cache", - "version": "3.1.50", + "version": "3.1.51", "description": "Cache category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -44,7 +44,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.17" + "@aws-amplify/core": "3.8.18" }, "jest": { "globals": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 518b9aaf054..8edd9a9d05d 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/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.8.18](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@3.8.17...@aws-amplify/core@3.8.18) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/core + + + + + ## [3.8.17](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/core@3.8.16...@aws-amplify/core@3.8.17) (2021-03-03) **Note:** Version bump only for package @aws-amplify/core diff --git a/packages/core/package.json b/packages/core/package.json index 219c8c529cd..ba8c915ac24 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/core", - "version": "3.8.17", + "version": "3.8.18", "description": "Core category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", diff --git a/packages/datastore/CHANGELOG.md b/packages/datastore/CHANGELOG.md index 98010dad160..4835273768b 100644 --- a/packages/datastore/CHANGELOG.md +++ b/packages/datastore/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.9.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@2.9.11...@aws-amplify/datastore@2.9.12) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/datastore + + + + + ## [2.9.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/datastore@2.9.10...@aws-amplify/datastore@2.9.11) (2021-03-03) diff --git a/packages/datastore/package.json b/packages/datastore/package.json index 60e7ed0309e..720e9be26e2 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/datastore", - "version": "2.9.11", + "version": "2.9.12", "description": "AppSyncLocal support for aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -48,9 +48,9 @@ "fake-indexeddb": "3.0.0" }, "dependencies": { - "@aws-amplify/api": "3.2.25", - "@aws-amplify/core": "3.8.17", - "@aws-amplify/pubsub": "3.2.23", + "@aws-amplify/api": "3.2.26", + "@aws-amplify/core": "3.8.18", + "@aws-amplify/pubsub": "3.2.24", "idb": "5.0.6", "immer": "8.0.1", "ulid": "2.3.0", diff --git a/packages/interactions/CHANGELOG.md b/packages/interactions/CHANGELOG.md index 0d7ecb99bc4..e65a8276ba4 100644 --- a/packages/interactions/CHANGELOG.md +++ b/packages/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. +## [3.3.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@3.3.25...@aws-amplify/interactions@3.3.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/interactions + + + + + ## [3.3.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/interactions@3.3.24...@aws-amplify/interactions@3.3.25) (2021-03-03) **Note:** Version bump only for package @aws-amplify/interactions diff --git a/packages/interactions/package.json b/packages/interactions/package.json index e6a078cb077..ac3a5a7f075 100644 --- a/packages/interactions/package.json +++ b/packages/interactions/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/interactions", - "version": "3.3.25", + "version": "3.3.26", "description": "Interactions category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.17", + "@aws-amplify/core": "3.8.18", "@aws-sdk/client-lex-runtime-service": "3.6.1" }, "jest": { diff --git a/packages/predictions/CHANGELOG.md b/packages/predictions/CHANGELOG.md index 9cbfa8477d1..c391c0e2851 100644 --- a/packages/predictions/CHANGELOG.md +++ b/packages/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. +## [3.2.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@3.2.25...@aws-amplify/predictions@3.2.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/predictions + + + + + ## [3.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/predictions@3.2.24...@aws-amplify/predictions@3.2.25) (2021-03-03) diff --git a/packages/predictions/package.json b/packages/predictions/package.json index 07df82c583c..3c68f07cfa2 100644 --- a/packages/predictions/package.json +++ b/packages/predictions/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/predictions", - "version": "3.2.25", + "version": "3.2.26", "description": "Machine learning category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -40,8 +40,8 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.17", - "@aws-amplify/storage": "3.3.25", + "@aws-amplify/core": "3.8.18", + "@aws-amplify/storage": "3.3.26", "@aws-sdk/client-comprehend": "3.6.1", "@aws-sdk/client-polly": "3.6.1", "@aws-sdk/client-rekognition": "3.6.1", diff --git a/packages/pubsub/CHANGELOG.md b/packages/pubsub/CHANGELOG.md index 932db09a59c..e0d7c6765a4 100644 --- a/packages/pubsub/CHANGELOG.md +++ b/packages/pubsub/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.2.24](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@3.2.23...@aws-amplify/pubsub@3.2.24) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/pubsub + + + + + ## [3.2.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pubsub@3.2.22...@aws-amplify/pubsub@3.2.23) (2021-03-03) **Note:** Version bump only for package @aws-amplify/pubsub diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index d31511c1138..8624960e073 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/pubsub", - "version": "3.2.23", + "version": "3.2.24", "description": "Pubsub category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -45,9 +45,9 @@ "cpx": "^1.5.0" }, "dependencies": { - "@aws-amplify/auth": "3.4.25", - "@aws-amplify/cache": "3.1.50", - "@aws-amplify/core": "3.8.17", + "@aws-amplify/auth": "3.4.26", + "@aws-amplify/cache": "3.1.51", + "@aws-amplify/core": "3.8.18", "graphql": "14.0.0", "paho-mqtt": "^1.1.0", "uuid": "^3.2.1", diff --git a/packages/pushnotification/CHANGELOG.md b/packages/pushnotification/CHANGELOG.md index 49262223500..80ce948b8f5 100644 --- a/packages/pushnotification/CHANGELOG.md +++ b/packages/pushnotification/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.2.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pushnotification@3.2.25...@aws-amplify/pushnotification@3.2.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/pushnotification + + + + + ## [3.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/pushnotification@3.2.24...@aws-amplify/pushnotification@3.2.25) (2021-03-03) **Note:** Version bump only for package @aws-amplify/pushnotification diff --git a/packages/pushnotification/package.json b/packages/pushnotification/package.json index 6b915072656..80da6844685 100644 --- a/packages/pushnotification/package.json +++ b/packages/pushnotification/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/pushnotification", - "version": "3.2.25", + "version": "3.2.26", "description": "Push notifications category of aws-amplify", "main": "./lib/index.js", "module": "./lib/index.js", @@ -44,7 +44,7 @@ "webpack": "^3.5.5" }, "dependencies": { - "@aws-amplify/core": "3.8.17", + "@aws-amplify/core": "3.8.18", "@react-native-community/push-notification-ios": "1.0.3" }, "peerdependencies": { diff --git a/packages/storage/CHANGELOG.md b/packages/storage/CHANGELOG.md index a3c295cbbbb..412dc280ad9 100644 --- a/packages/storage/CHANGELOG.md +++ b/packages/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.3.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@3.3.25...@aws-amplify/storage@3.3.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/storage + + + + + ## [3.3.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/storage@3.3.24...@aws-amplify/storage@3.3.25) (2021-03-03) **Note:** Version bump only for package @aws-amplify/storage diff --git a/packages/storage/package.json b/packages/storage/package.json index db600d2d5f1..10b2aa779af 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/storage", - "version": "3.3.25", + "version": "3.3.26", "description": "Storage category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.17", + "@aws-amplify/core": "3.8.18", "@aws-sdk/client-s3": "3.6.1", "@aws-sdk/s3-request-presigner": "3.6.1", "@aws-sdk/util-create-request": "3.6.1", diff --git a/packages/xr/CHANGELOG.md b/packages/xr/CHANGELOG.md index b180e68a8d7..458d96e137f 100644 --- a/packages/xr/CHANGELOG.md +++ b/packages/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. +## [2.2.26](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/xr@2.2.25...@aws-amplify/xr@2.2.26) (2021-03-08) + +**Note:** Version bump only for package @aws-amplify/xr + + + + + ## [2.2.25](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/xr@2.2.24...@aws-amplify/xr@2.2.25) (2021-03-03) **Note:** Version bump only for package @aws-amplify/xr diff --git a/packages/xr/package.json b/packages/xr/package.json index b039977eac4..e9146296b43 100644 --- a/packages/xr/package.json +++ b/packages/xr/package.json @@ -1,6 +1,6 @@ { "name": "@aws-amplify/xr", - "version": "2.2.25", + "version": "2.2.26", "description": "XR category of aws-amplify", "main": "./lib/index.js", "module": "./lib-esm/index.js", @@ -41,7 +41,7 @@ }, "homepage": "https://aws-amplify.github.io/", "dependencies": { - "@aws-amplify/core": "3.8.17" + "@aws-amplify/core": "3.8.18" }, "jest": { "globals": { From 83273b1030f544fbb84e8a0751611d189d23675b Mon Sep 17 00:00:00 2001 From: aws-amplify-bot Date: Mon, 8 Mar 2021 19:28:41 +0000 Subject: [PATCH 29/34] chore(release): update version.ts [ci skip] --- packages/core/src/Platform/version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/Platform/version.ts b/packages/core/src/Platform/version.ts index 959c156ae76..85046580633 100644 --- a/packages/core/src/Platform/version.ts +++ b/packages/core/src/Platform/version.ts @@ -1,2 +1,2 @@ // generated by genversion -export const version = '3.8.17'; +export const version = '3.8.18'; From 2849f223fe81b60cb98f857b2ffddcffc25b109e Mon Sep 17 00:00:00 2001 From: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com> Date: Tue, 9 Mar 2021 10:50:29 -0500 Subject: [PATCH 30/34] chore: test ci (#7912) --- packages/core/src/Util/DateUtils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/Util/DateUtils.ts b/packages/core/src/Util/DateUtils.ts index 2a5dfabe705..96a55278d1e 100644 --- a/packages/core/src/Util/DateUtils.ts +++ b/packages/core/src/Util/DateUtils.ts @@ -5,6 +5,8 @@ * @see https://github.com/aws/aws-sdk-js/blob/6edf586dcc1de7fe8fbfbbd9a0d2b1847921e6e1/lib/util.js#L262 */ +// Comment - TODO: remove + const FIVE_MINUTES_IN_MS = 1000 * 60 * 5; export const DateUtils = { From 6c9c4efde6d4da48f5add075ef2f4c3d112c7dea Mon Sep 17 00:00:00 2001 From: Alex Hinson Date: Tue, 9 Mar 2021 14:26:31 -0800 Subject: [PATCH 31/34] fix(amazon-cognito-identity-js): update podspec dep (#7873) --- packages/amazon-cognito-identity-js/RNAWSCognito.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amazon-cognito-identity-js/RNAWSCognito.podspec b/packages/amazon-cognito-identity-js/RNAWSCognito.podspec index 83f9e023045..99fbe9f04aa 100644 --- a/packages/amazon-cognito-identity-js/RNAWSCognito.podspec +++ b/packages/amazon-cognito-identity-js/RNAWSCognito.podspec @@ -19,5 +19,5 @@ Pod::Spec.new do |s| s.source = { :git => "https://github.com/aws/aws-amplify.git", :tag => "amazon-cognito-identity-js@#{s.version.to_s}" } s.source_files = 'ios/**/*.{h,m,c}' - s.dependency 'React' + s.dependency 'React-Core' end From bf2f04888ea7e1e5364e1f669bb2847040fde684 Mon Sep 17 00:00:00 2001 From: Luke-Davies Date: Wed, 10 Mar 2021 21:17:32 +0000 Subject: [PATCH 32/34] feat(@aws-amplify/ui-components): add hideToast prop to authenticator (#7129) --- packages/amplify-ui-components/src/components.d.ts | 8 ++++++++ .../amplify-authenticator/amplify-authenticator.tsx | 10 ++++++---- .../src/components/amplify-authenticator/readme.md | 1 + 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/packages/amplify-ui-components/src/components.d.ts b/packages/amplify-ui-components/src/components.d.ts index 907c4987a3f..633fc722e77 100644 --- a/packages/amplify-ui-components/src/components.d.ts +++ b/packages/amplify-ui-components/src/components.d.ts @@ -50,6 +50,10 @@ export namespace Components { * Callback for Authenticator state machine changes */ "handleAuthStateChange": AuthStateHandler; + /** + * Hide amplify-toast for auth errors + */ + "hideToast": boolean; /** * Initial starting state of the Authenticator component. E.g. If `signup` is passed the default component is set to AmplifySignUp */ @@ -1550,6 +1554,10 @@ declare namespace LocalJSX { * Callback for Authenticator state machine changes */ "handleAuthStateChange"?: AuthStateHandler; + /** + * Hide amplify-toast for auth errors + */ + "hideToast"?: boolean; /** * Initial starting state of the Authenticator component. E.g. If `signup` is passed the default component is set to AmplifySignUp */ diff --git a/packages/amplify-ui-components/src/components/amplify-authenticator/amplify-authenticator.tsx b/packages/amplify-ui-components/src/components/amplify-authenticator/amplify-authenticator.tsx index 85d8a14d42d..12deba29c6d 100644 --- a/packages/amplify-ui-components/src/components/amplify-authenticator/amplify-authenticator.tsx +++ b/packages/amplify-ui-components/src/components/amplify-authenticator/amplify-authenticator.tsx @@ -49,6 +49,8 @@ export class AmplifyAuthenticator { @Prop() usernameAlias: UsernameAliasStrings; /** Callback for Authenticator state machine changes */ @Prop() handleAuthStateChange: AuthStateHandler = () => {}; + /** Hide amplify-toast for auth errors */ + @Prop() hideToast: boolean = false; @State() authState: AuthState = AuthState.Loading; @State() authData: CognitoUserInterface; @@ -83,7 +85,7 @@ export class AmplifyAuthenticator { this.onAuthStateChange(authState, authData as CognitoUserInterface); this.toastMessage = ''; }); - Hub.listen(UI_AUTH_CHANNEL, this.handleToastEvent); + if (!this.hideToast) Hub.listen(UI_AUTH_CHANNEL, this.handleToastEvent); Hub.listen(AUTH_CHANNEL, this.handleExternalAuthEvent); appendToCognitoUserAgent('amplify-authenticator'); @@ -180,14 +182,14 @@ export class AmplifyAuthenticator { componentWillUnload() { Hub.remove(AUTH_CHANNEL, this.handleExternalAuthEvent); - Hub.remove(UI_AUTH_CHANNEL, this.handleToastEvent); + if (!this.hideToast) Hub.remove(UI_AUTH_CHANNEL, this.handleToastEvent); return onAuthUIStateChange; } render() { return ( - {this.toastMessage ? ( + {!this.hideToast && this.toastMessage && ( { @@ -195,7 +197,7 @@ export class AmplifyAuthenticator { }} data-test="authenticator-error" /> - ) : null} + )} {this.authState === AuthState.SignedIn ? ( [, ] ) : ( diff --git a/packages/amplify-ui-components/src/components/amplify-authenticator/readme.md b/packages/amplify-ui-components/src/components/amplify-authenticator/readme.md index e2c44ca11f3..eafea58db47 100644 --- a/packages/amplify-ui-components/src/components/amplify-authenticator/readme.md +++ b/packages/amplify-ui-components/src/components/amplify-authenticator/readme.md @@ -9,6 +9,7 @@ | ----------------------- | -------------------- | ------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ------------------ | | `federated` | -- | Federated credentials & configuration. | `FederatedConfig` | `undefined` | | `handleAuthStateChange` | -- | Callback for Authenticator state machine changes | `(nextAuthState: AuthState, data?: object) => void` | `() => {}` | +| `hideToast` | `hide-toast` | Hide amplify-toast for auth errors | `boolean` | `false` | | `initialAuthState` | `initial-auth-state` | Initial starting state of the Authenticator component. E.g. If `signup` is passed the default component is set to AmplifySignUp | `AuthState.SignIn \| AuthState.SignUp` | `AuthState.SignIn` | | `usernameAlias` | `username-alias` | Username Alias is used to setup authentication with `username`, `email` or `phone_number` | `"email" \| "phone_number" \| "username"` | `undefined` | From 85d4dcf80eb341b5d40905954ee71b07532326cf Mon Sep 17 00:00:00 2001 From: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com> Date: Thu, 11 Mar 2021 11:38:24 -0500 Subject: [PATCH 33/34] ci: unblock unstable deployments (#7924) --- .circleci/config.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e138a68f2f..c961687cf1f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -660,17 +660,13 @@ jobs: - run: name: 'Publish to Amplify Package' command: | - if [ -z "$CIRCLE_PULL_REQUEST" ]; then - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc - npm whoami - git config --global user.email $GITHUB_EMAIL - git config --global user.name $GITHUB_USER - git status - git --no-pager diff - yarn publish:$CIRCLE_BRANCH - else - echo "Skipping deploy." - fi + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + npm whoami + git config --global user.email $GITHUB_EMAIL + git config --global user.name $GITHUB_USER + git status + git --no-pager diff + yarn publish:$CIRCLE_BRANCH post_release: executor: build-executor From 64357b109dbf098c5b4050b698d43ab32f51e0d4 Mon Sep 17 00:00:00 2001 From: Michael Edelman Date: Thu, 11 Mar 2021 13:05:54 -0500 Subject: [PATCH 34/34] fix(rn-ui): respect user provided theme --- packages/aws-amplify-react-native/src/Auth/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/aws-amplify-react-native/src/Auth/index.tsx b/packages/aws-amplify-react-native/src/Auth/index.tsx index 0d28f4769a6..f7b7a520dc1 100644 --- a/packages/aws-amplify-react-native/src/Auth/index.tsx +++ b/packages/aws-amplify-react-native/src/Auth/index.tsx @@ -58,7 +58,7 @@ interface IWithAuthenticatorState { export function withAuthenticator( Comp: React.ComponentType, - includeGreetings = false, + includeGreetings: boolean | { [index: string]: any } = false, authenticatorComponents = [], federated = null, theme: AmplifyThemeType = null, @@ -80,6 +80,9 @@ export function withAuthenticator( this.authConfig = {}; if (typeof includeGreetings === 'object' && includeGreetings !== null) { + if (includeGreetings.theme) { + theme = includeGreetings.theme; + } this.authConfig = Object.assign(this.authConfig, includeGreetings); } else { this.authConfig = {