Skip to content

Commit

Permalink
chore: merge main into geo/staging (#8875)
Browse files Browse the repository at this point in the history
* added removePluggable function to PubSub to be able to swap providers as needed.

* chore: preparing release

* chore(release): Publish [ci skip]

 - @aws-amplify/ui-angular@1.0.17
 - @aws-amplify/ui-components@1.7.1
 - @aws-amplify/ui-react@1.2.8
 - @aws-amplify/ui-storybook@2.0.8
 - @aws-amplify/ui-vue@1.1.2
 - @aws-amplify/analytics@5.0.8
 - @aws-amplify/api-graphql@2.1.0
 - @aws-amplify/api-rest@2.0.8
 - @aws-amplify/api@4.0.8
 - @aws-amplify/auth@4.2.0
 - aws-amplify-angular@6.0.8
 - aws-amplify-react@5.0.8
 - aws-amplify@4.2.2
 - @aws-amplify/cache@4.0.10
 - @aws-amplify/core@4.2.2
 - @aws-amplify/datastore@3.3.0
 - @aws-amplify/interactions@4.0.8
 - @aws-amplify/predictions@4.0.8
 - @aws-amplify/pubsub@4.1.0
 - @aws-amplify/pushnotification@4.2.2
 - @aws-amplify/storage@4.3.3
 - @aws-amplify/xr@3.0.8

* chore(release): update version.ts [ci skip]

* Dispose of ?code on error and success (#8166)

Co-authored-by: Manuel Iglesias <6154160+manueliglesias@users.noreply.github.com>

* chore(geo): add Geo to main readme (#8702)

* fix(@aws-amplify/core): Include refreshToken in UniversalStorage for SSR (#7374)

Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: Manuel Iglesias <6154160+manueliglesias@users.noreply.github.com>

* Fix Storage.put SSE-c bug (#8380)

* SSE config fix for get and put

Co-authored-by: Manuel Iglesias <6154160+manueliglesias@users.noreply.github.com>

* fix: function parameters partiy with signIn (#8713)

Co-authored-by: Manoj NB <manojnb@amazon.com>

* fix(@aws-amplify/ui-components): Remove local storage check (#8730)

* chore: preparing release

* chore(release): Publish [ci skip]

 - @aws-amplify/ui-angular@1.0.18
 - @aws-amplify/ui-components@1.7.2
 - @aws-amplify/ui-react@1.2.9
 - @aws-amplify/ui-storybook@2.0.9
 - @aws-amplify/ui-vue@1.1.3
 - @aws-amplify/analytics@5.0.9
 - @aws-amplify/api-graphql@2.1.1
 - @aws-amplify/api-rest@2.0.9
 - @aws-amplify/api@4.0.9
 - @aws-amplify/auth@4.2.1
 - aws-amplify-angular@6.0.9
 - aws-amplify-react@5.0.9
 - aws-amplify@4.2.3
 - @aws-amplify/cache@4.0.11
 - @aws-amplify/core@4.2.3
 - @aws-amplify/datastore@3.3.1
 - @aws-amplify/interactions@4.0.9
 - @aws-amplify/predictions@4.0.9
 - @aws-amplify/pubsub@4.1.1
 - @aws-amplify/pushnotification@4.2.3
 - @aws-amplify/storage@4.3.4
 - @aws-amplify/xr@3.0.9

* chore(release): update version.ts [ci skip]

* feat(@aws-amplify/auth): Add a 'SUCCESS' response on successful call to forgotPasswordSubmit and verifyUserAttributes(#8744)

* added a success message on successful call to forgotPasswordSubmit function

* modified test to expect onSuccess to be called with 'SUCCESS' on successful confirmPassword()

* added 'SUCCESS' response on successful call to verifyUserAttribute

* chore: preparing release

* chore(release): Publish [ci skip]

 - amazon-cognito-identity-js@5.1.0
 - @aws-amplify/ui-angular@1.0.19
 - @aws-amplify/ui-components@1.7.3
 - @aws-amplify/ui-react@1.2.10
 - @aws-amplify/ui-storybook@2.0.10
 - @aws-amplify/ui-vue@1.1.4
 - @aws-amplify/analytics@5.0.10
 - @aws-amplify/api-graphql@2.1.2
 - @aws-amplify/api-rest@2.0.10
 - @aws-amplify/api@4.0.10
 - @aws-amplify/auth@4.3.0
 - aws-amplify-angular@6.0.10
 - aws-amplify-react@5.0.10
 - aws-amplify@4.2.4
 - @aws-amplify/cache@4.0.12
 - @aws-amplify/core@4.2.4
 - @aws-amplify/datastore@3.3.2
 - @aws-amplify/interactions@4.0.10
 - @aws-amplify/predictions@4.0.10
 - @aws-amplify/pubsub@4.1.2
 - @aws-amplify/pushnotification@4.2.4
 - @aws-amplify/storage@4.3.5
 - @aws-amplify/xr@3.0.10

* chore(release): update version.ts [ci skip]

* GH-4468: Transfer Acceleration can now be passed as a parameter to Storage.put() (#8750)

Co-authored-by: James Au <40404256+jamesaucode@users.noreply.github.com>

* refactor: change LogLevel of getCurrentUserInfo error (#8434)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* Updates to the README (#8782)

* chore:Update NOTICE file to remove copyright date

* chore:Update README

* chore:Update based on feedback from pull request

* chore:Fix typos, remove redundancy

* chore:Fix typo within the documentation site

* chore(issue templates): update template picker for ui repo (#8556)

Co-authored-by: Eric Clemmons <eric@smarterspam.com>

* fix(@aws-amplify/datastore): check read-only at instance level (#8794)

* feat(@aws-amplify/api-graphql): Add support for string 'authmode' values in TypeScript based apps  (#8799)

* added string authmode values as allowed types

* refactoring and using existing types to allow string values for authMode

Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>

* chore: preparing release

* chore(release): Publish [ci skip]

 - @aws-amplify/ui-angular@1.0.20
 - @aws-amplify/ui-components@1.7.4
 - @aws-amplify/ui-react@1.2.11
 - @aws-amplify/ui-storybook@2.0.11
 - @aws-amplify/ui-vue@1.1.5
 - @aws-amplify/analytics@5.0.11
 - @aws-amplify/api-graphql@2.2.0
 - @aws-amplify/api-rest@2.0.11
 - @aws-amplify/api@4.0.11
 - @aws-amplify/auth@4.3.1
 - aws-amplify-angular@6.0.11
 - aws-amplify-react@5.0.11
 - aws-amplify@4.2.5
 - @aws-amplify/cache@4.0.13
 - @aws-amplify/core@4.2.5
 - @aws-amplify/datastore@3.3.3
 - @aws-amplify/interactions@4.0.11
 - @aws-amplify/predictions@4.0.11
 - @aws-amplify/pubsub@4.1.3
 - @aws-amplify/pushnotification@4.2.5
 - @aws-amplify/storage@4.3.6
 - @aws-amplify/xr@3.0.11

* chore(release): update version.ts [ci skip]

* chore(gh action): reduce cron sched to once per day (#8721)

Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>

* fix(@aws-amplify/datastore): remove conditional require (#8828)

* feat(@aws-amplify/datastore): add SQLite storage adapter option for RN apps (#8809)

* fix(@aws-amplify/datastore): patch immer vuln (#8841)

* chore: preparing release

* chore(release): Publish [ci skip]

 - @aws-amplify/ui-angular@1.0.21
 - @aws-amplify/ui-components@1.7.5
 - @aws-amplify/ui-react@1.2.12
 - @aws-amplify/ui-storybook@2.0.12
 - @aws-amplify/ui-vue@1.1.6
 - @aws-amplify/analytics@5.0.12
 - @aws-amplify/api-graphql@2.2.1
 - @aws-amplify/api-rest@2.0.12
 - @aws-amplify/api@4.0.12
 - @aws-amplify/auth@4.3.2
 - aws-amplify-angular@6.0.12
 - aws-amplify-react@5.0.12
 - aws-amplify@4.2.6
 - @aws-amplify/cache@4.0.14
 - @aws-amplify/core@4.2.6
 - @aws-amplify/datastore-storage-adapter@1.1.0
 - @aws-amplify/datastore@3.4.0
 - @aws-amplify/interactions@4.0.12
 - @aws-amplify/predictions@4.0.12
 - @aws-amplify/pubsub@4.1.4
 - @aws-amplify/pushnotification@4.2.6
 - @aws-amplify/storage@4.3.7
 - @aws-amplify/xr@3.0.12

* chore(release): update version.ts [ci skip]

* fix(@aws-amplify/datastore): only stringify nested AWSJSON in mutation event (#8844)

* chore: preparing release

* chore(release): Publish [ci skip]

 - @aws-amplify/ui-angular@1.0.22
 - @aws-amplify/ui-components@1.7.6
 - @aws-amplify/ui-react@1.2.13
 - @aws-amplify/ui-storybook@2.0.13
 - @aws-amplify/ui-vue@1.1.7
 - @aws-amplify/analytics@5.0.13
 - @aws-amplify/api-graphql@2.2.2
 - @aws-amplify/api-rest@2.0.13
 - @aws-amplify/api@4.0.13
 - @aws-amplify/auth@4.3.3
 - aws-amplify-angular@6.0.13
 - aws-amplify-react@5.0.13
 - aws-amplify@4.2.7
 - @aws-amplify/cache@4.0.15
 - @aws-amplify/core@4.2.7
 - @aws-amplify/datastore-storage-adapter@1.1.1
 - @aws-amplify/datastore@3.4.1
 - @aws-amplify/interactions@4.0.13
 - @aws-amplify/predictions@4.0.13
 - @aws-amplify/pubsub@4.1.5
 - @aws-amplify/pushnotification@4.2.7
 - @aws-amplify/storage@4.3.8
 - @aws-amplify/xr@3.0.13

* chore(release): update version.ts [ci skip]

* Modified removePluggable to remove pluggable based on providerName. Updated tests to test if removing then adding a pluggable will replace original.

* chore(fix axios version): patch security vuln for api-rest and storage (#8858)

* chore: preparing release

* chore(release): Publish [ci skip]

 - @aws-amplify/ui-angular@1.0.23
 - @aws-amplify/ui-components@1.7.7
 - @aws-amplify/ui-react@1.2.14
 - @aws-amplify/ui-storybook@2.0.14
 - @aws-amplify/ui-vue@1.1.8
 - @aws-amplify/analytics@5.0.14
 - @aws-amplify/api-graphql@2.2.3
 - @aws-amplify/api-rest@2.0.14
 - @aws-amplify/api@4.0.14
 - @aws-amplify/auth@4.3.4
 - aws-amplify-angular@6.0.14
 - aws-amplify-react@5.0.14
 - aws-amplify@4.2.8
 - @aws-amplify/cache@4.0.16
 - @aws-amplify/core@4.2.8
 - @aws-amplify/datastore-storage-adapter@1.1.2
 - @aws-amplify/datastore@3.4.2
 - @aws-amplify/interactions@4.0.14
 - @aws-amplify/predictions@4.0.14
 - @aws-amplify/pubsub@4.1.6
 - @aws-amplify/pushnotification@4.2.8
 - @aws-amplify/storage@4.3.9
 - @aws-amplify/xr@3.0.14

* chore(release): update version.ts [ci skip]

* chore(@aws-amplify/pubsub): Add JSDoc to removePluggable function; Update removePluggable unit test so that it fails if plugin is not removed; Format recent changes using Prettier

* chore(@aws-amplify/pubsub): minor update to removePluggable unit test

* chore: preparing release

* chore(release): Publish [ci skip]

 - @aws-amplify/ui-angular@1.0.24
 - @aws-amplify/ui-components@1.7.8
 - @aws-amplify/ui-react@1.2.15
 - @aws-amplify/ui-storybook@2.0.15
 - @aws-amplify/ui-vue@1.1.9
 - @aws-amplify/analytics@5.0.15
 - @aws-amplify/api-graphql@2.2.4
 - @aws-amplify/api-rest@2.0.15
 - @aws-amplify/api@4.0.15
 - @aws-amplify/auth@4.3.5
 - aws-amplify-angular@6.0.15
 - aws-amplify-react@5.0.15
 - aws-amplify@4.2.9
 - @aws-amplify/cache@4.0.17
 - @aws-amplify/core@4.2.9
 - @aws-amplify/datastore-storage-adapter@1.1.3
 - @aws-amplify/datastore@3.4.3
 - @aws-amplify/interactions@4.0.15
 - @aws-amplify/predictions@4.0.15
 - @aws-amplify/pubsub@4.1.7
 - @aws-amplify/pushnotification@4.2.9
 - @aws-amplify/storage@4.3.10
 - @aws-amplify/xr@3.0.15

* chore(release): update version.ts [ci skip]

* chore(geo): bring core version up to date

Co-authored-by: ZacharyRogers <ztrogers1@gmail.com>
Co-authored-by: Manuel Iglesias <6154160+manueliglesias@users.noreply.github.com>
Co-authored-by: aws-amplify-bot <aws@amazon.com>
Co-authored-by: Eric Clemmons <eric@smarterspam.com>
Co-authored-by: Sam Martinez <samlmar@amazon.com>
Co-authored-by: James Au <40404256+jamesaucode@users.noreply.github.com>
Co-authored-by: ManojNB <manojnb95@gmail.com>
Co-authored-by: Manoj NB <manojnb@amazon.com>
Co-authored-by: William Lee <43682783+wlee221@users.noreply.github.com>
Co-authored-by: Nick Arocho <nicaroch@amazon.com>
Co-authored-by: Khairo Khatib <59224303+Khairo-kh@users.noreply.github.com>
Co-authored-by: evcodes <eddvar@amazon.com>
Co-authored-by: Carlos Espin <65199391+cespin@users.noreply.github.com>
Co-authored-by: h-kishi <h-kishi@users.noreply.github.com>
Co-authored-by: Ashika <35131273+ashika01@users.noreply.github.com>
Co-authored-by: siegerts <stephen.siegert@gmail.com>
Co-authored-by: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com>
Co-authored-by: James Au <auchu@amazon.com>
Co-authored-by: hkjpotato <hkjpotato@gmail.com>
Co-authored-by: David McAfee <mcafd@amazon.com>
  • Loading branch information
21 people committed Sep 13, 2021
1 parent 6130e27 commit 306e727
Show file tree
Hide file tree
Showing 92 changed files with 4,910 additions and 356 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Expand Up @@ -344,6 +344,7 @@ jobs:
command: |
mv .yarnrc ._yarnrc
yarn
- run: yarn bootstrap
- run: yarn build
# storing yarn.lock as an artifact, so that we can quickly get a dependency diff
# with the last working build in the event that some upstream deps break the build in the future
Expand Down
89 changes: 0 additions & 89 deletions .github/ISSUE_TEMPLATE/5.bug_report.md

This file was deleted.

3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
@@ -1,5 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Amplify UI Component Issue?
url: https://github.com/aws-amplify/amplify-ui/issues/new/choose
about: Open an issue in the Amplify-UI repository
- name: Usage Question
url: https://github.com/aws-amplify/amplify-js/discussions
about: Ask a question about AWS Amplify usage
2 changes: 1 addition & 1 deletion .github/workflows/lock.yaml
Expand Up @@ -2,7 +2,7 @@ name: 'Lock Threads'

on:
schedule:
- cron: '0 * * * *'
- cron: '30 1 * * *'

jobs:
lock:
Expand Down
116 changes: 60 additions & 56 deletions README.md
Expand Up @@ -5,7 +5,7 @@
</a>
<p>
<a href="https://discord.gg/jWVbPfC" target="_blank">
<img src="https://img.shields.io/discord/308323056592486420?logo=discord"" alt="Discord Chat" />
<img src="https://img.shields.io/discord/308323056592486420?logo=discord"" alt="Discord Chat" />
</a>
<a href="https://codecov.io/gh/aws-amplify/amplify-js">
<img src="https://codecov.io/gh/aws-amplify/amplify-js/branch/main/graph/badge.svg" />
Expand All @@ -17,7 +17,7 @@
</a>
</p>

### Reporting Bugs/Feature Requests
### Reporting Bugs / Feature Requests

[![Open Bugs](https://img.shields.io/github/issues/aws-amplify/amplify-js/bug?color=d73a4a&label=bugs)](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+is%3Aopen+label%3Abug)
[![Feature Requests](https://img.shields.io/github/issues/aws-amplify/amplify-js/feature-request?color=ff9001&label=feature%20requests)](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+label%3Afeature-request+is%3Aopen)
Expand All @@ -29,66 +29,34 @@ AWS Amplify provides a declarative and easy-to-use interface across different ca

Our default implementation works with Amazon Web Services (AWS), but AWS Amplify is designed to be open and pluggable for any custom backend or service.

## Notice:

### Amplify 4.x.x has breaking changes for React Native. Please see the breaking changes below:

- If you are using React Native or Expo, you will need add `@react-native-async-storage/async-storage` as a dependency to your application, in addition to the other React Native dependencies:

```
// React Native
yarn add aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage
npx pod-install
// Expo
yarn add aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage
```

### Amplify 3.x.x has breaking changes. Please see the breaking changes below:

- `AWS.credentials` and `AWS.config` don’t exist anymore anywhere in Amplify JavaScript.
- Both options will not be available to use in version 3. You will not be able to use and set your own credentials.
- For more information on this change, please see the [AWS SDK for JavaScript v3](https://github.com/aws/aws-sdk-js-v3/#configuration)
- `aws-sdk@2.x` has been removed from `Amplify@3.x.x` in favor of [version 3 of aws-sdk-js](https://github.com/aws/aws-sdk-js-v3). We recommend to migrate to [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3) if you rely on AWS services that are not supported by Amplify, since [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3) is imported modularly.

If you can't migrate to [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3) or rely on aws-sdk@2.x, you will need to import it separately.

- If you are using exported paths within your Amplify JS application, (e.g. `import from "@aws-amplify/analytics/lib/Analytics"`) this will now break and no longer will be supported. You will need to change to named imports:

```js
import { Analytics } from 'aws-amplify';
```

- If you are using categories as `Amplify.<Category>`, this will no longer work and we recommend to import the category you are needing to use:

```js
import { Auth } from 'aws-amplify';
```

### Features / APIs

- [**Authentication**](https://docs.amplify.aws/lib/auth/getting-started/q/platform/js): APIs and building blocks for developers who want to create user authentication experiences.
- [**Analytics**](https://docs.amplify.aws/lib/analytics/getting-started/q/platform/js): Easily collect analytics data for your app. Analytics data includes user sessions and other custom events that you want to track in your app.
- [**REST API**](https://docs.amplify.aws/lib/restapi/getting-started/q/platform/js): Provides a simple solution when making HTTP requests. It provides an automatic, lightweight signing process which complies with AWS Signature Version 4.
- [**GraphQL API**](https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/js): Interact with your GraphQL server or AWS AppSync API with an easy-to-use & configured GraphQL client.
- [**DataStore**](https://docs.amplify.aws/lib/datastore/getting-started/q/platform/js): A programming model for leveraging shared and distributed data without writing additional code for offline and online scenarios, which makes working with distributed, cross-user data just as simple as working with local-only data.
- [**Storage**](https://docs.amplify.aws/lib/storage/getting-started/q/platform/js): Provides a simple mechanism for managing user content for your app in public, protected or private storage buckets.
- [**Push Notifications**](https://docs.amplify.aws/lib/push-notifications/getting-started/q/platform/js): Allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support.
- [**Interactions**](https://docs.amplify.aws/lib/interactions/getting-started/q/platform/js#interactions-with-aws): Create conversational bots powered by deep learning technologies.
- [**PubSub**](https://docs.amplify.aws/lib/pubsub/getting-started/q/platform/js): Provides connectivity with cloud-based message-oriented middleware.
- [**Internationalization**](https://docs.amplify.aws/lib/utilities/i18n/q/platform/js): A lightweight internationalization solution.
- [**Cache**](https://docs.amplify.aws/lib/utilities/cache/q/platform/js): Provides a generic LRU cache for JavaScript developers to store data with priority and expiration settings.
- [**Predictions**](https://docs.amplify.aws/lib/predictions/getting-started/q/platform/js): Provides a solution for using AI and ML cloud services to enhance your application.

#### Visit our [Web Site](https://docs.amplify.aws/) to learn more about AWS Amplify.
#### Visit our [Documentation site](https://docs.amplify.aws/) to learn more about AWS Amplify. Please see our [Amplify JavaScript](https://docs.amplify.aws/lib/q/platform/js/) page within our Documentation site for information around the full list of features we support.

- [Documentation](https://docs.amplify.aws/)
- [Demo Applications](https://github.com/aws-amplify/amplify-js-samples)
- [Contributing](https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md)

### Features

| Category | AWS Provider | Description |
| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| [**Authentication**](https://docs.amplify.aws/lib/auth/getting-started/q/platform/js) | [Amazon Cognito](https://aws.amazon.com/cognito/) | APIs and Building blocks to create Authentication experiences. |
| [**Analytics**](https://docs.amplify.aws/lib/analytics/getting-started/q/platform/js) | [Amazon Pinpoint](https://aws.amazon.com/pinpoint/) | Collect Analytics data for your application including tracking user sessions. |
| [**REST API**](https://docs.amplify.aws/lib/restapi/getting-started/q/platform/js) | [Amazon API Gateway](https://aws.amazon.com/api-gateway/) | Sigv4 signing and AWS auth for API Gateway and other REST endpoints. |
| [**GraphQL API**](https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/js) | [AWS AppSync](https://aws.amazon.com/appsync/) | Interact with your GraphQL or AWS AppSync endpoint(s). |
| [**DataStore**](https://docs.amplify.aws/lib/datastore/getting-started/q/platform/js) | [AWS AppSync](https://aws.amazon.com/appsync/) | Programming model for shared and distributed data, with simple online/offline synchronization. |
| [**Storage**](https://docs.amplify.aws/lib/storage/getting-started/q/platform/js) | [Amazon S3](https://aws.amazon.com/s3/) | Manages content in public, protected, private storage buckets. |
| [**Geo (Developer preview)**](https://docs.amplify.aws/lib/geo/getting-started/q/platform/js) | [Amazon Location Service](https://aws.amazon.com/location/) | Provides APIs and UI components for maps and location search for JavaScript-based web apps. |
| [**Push Notifications**](https://docs.amplify.aws/lib/push-notifications/getting-started/q/platform/js) | [Amazon Pinpoint](https://aws.amazon.com/pinpoint/) | Allows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support. |
| [**Interactions**](https://docs.amplify.aws/lib/interactions/getting-started/q/platform/js#interactions-with-aws) | [Amazon Lex](https://aws.amazon.com/lex/) | Create conversational bots powered by deep learning technologies. |
| [**PubSub**](https://docs.amplify.aws/lib/pubsub/getting-started/q/platform/js) | [AWS IoT](https://aws.amazon.com/iot/) | Provides connectivity with cloud-based message-oriented middleware. |
| [**Internationalization**](https://docs.amplify.aws/lib/utilities/i18n/q/platform/js) | --- | A lightweight internationalization solution. |
| [**Cache**](https://docs.amplify.aws/lib/utilities/cache/q/platform/js) | --- | Provides a generic LRU cache for JavaScript developers to store data with priority and expiration settings. |
| [**Predictions**](https://docs.amplify.aws/lib/predictions/getting-started/q/platform/js) | Various\* | Connect your app with machine learning services like NLP, computer vision, TTS, and more. |

- Predictions utilizes a range of Amazon's Machine Learning services, including: Amazon Comprehend, Amazon Polly, Amazon Rekognition, Amazon Textract, and Amazon Translate.

## Getting Started

AWS Amplify is available as `aws-amplify` package on [npm](https://www.npmjs.com/).
AWS Amplify is available as `aws-amplify` package on [npm](https://www.npmjs.com/package/aws-amplify).

**Web**

Expand Down Expand Up @@ -121,3 +89,39 @@ $ npm install aws-amplify-react-native --save
```

Visit our [Installation Guide for React Native](https://docs.amplify.aws/start/q/integration/react-native) to start building your web app.

## Notice:

### Amplify 4.x.x has breaking changes for React Native. Please see the breaking changes below:

- If you are using React Native or Expo, you will need to add `@react-native-async-storage/async-storage` as a dependency to your application, in addition to the other React Native dependencies:

```
// React Native
yarn add aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage
npx pod-install
// Expo
yarn add aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage
```

### Amplify 3.x.x has breaking changes. Please see the breaking changes below:

- `AWS.credentials` and `AWS.config` don’t exist anymore in Amplify JavaScript.
- Both options will not be available to use in version 3. You will not be able to use and set your own credentials.
- For more information on this change, please see the [AWS SDK for JavaScript v3](https://github.com/aws/aws-sdk-js-v3/#configuration)
- `aws-sdk@2.x` has been removed from `Amplify@3.x.x` in favor of [version 3 of aws-sdk-js](https://github.com/aws/aws-sdk-js-v3). We recommend to migrate to [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3) if you rely on AWS services that are not supported by Amplify, since [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3) is imported modularly.

If you can't migrate to [aws-sdk-js-v3](https://github.com/aws/aws-sdk-js-v3) or rely on aws-sdk@2.x, you will need to import it separately.

- If you are using exported paths within your Amplify JS application, (e.g. `import from "@aws-amplify/analytics/lib/Analytics"`) this will now break and no longer will be supported. You will need to change to named imports:

```js
import { Analytics } from 'aws-amplify';
```

- If you are using categories as `Amplify.<Category>`, this will no longer work and we recommend to import the category you are needing to use:

```js
import { Auth } from 'aws-amplify';
```
11 changes: 11 additions & 0 deletions packages/amazon-cognito-identity-js/CHANGELOG.md
Expand Up @@ -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.

# [5.1.0](https://github.com/aws-amplify/amplify-js/compare/amazon-cognito-identity-js@5.0.6...amazon-cognito-identity-js@5.1.0) (2021-08-19)


### Features

* **@aws-amplify/auth:** Add a 'SUCCESS' response on successful call to forgotPasswordSubmit and verifyUserAttributes([#8744](https://github.com/aws-amplify/amplify-js/issues/8744)) ([1bd6c35](https://github.com/aws-amplify/amplify-js/commit/1bd6c35c115321d77f48a3954942dd57d7cf9056))





## [5.0.6](https://github.com/aws-amplify/amplify-js/compare/amazon-cognito-identity-js@5.0.5...amazon-cognito-identity-js@5.0.6) (2021-07-22)


Expand Down
Expand Up @@ -1120,7 +1120,7 @@ describe('verifyAttribute(), getAttributeVerificationCode', () => {
netRequestMockSuccess(true);
cognitoUser.getAttributeVerificationCode(...getAttrsVerifCodeDefaults);
callback.inputVerificationCode = jest.fn();
expect(callback.onSuccess.mock.calls.length).toEqual(1);
expect(callback.onSuccess).toHaveBeenCalledWith('SUCCESS');
});

test('when inputVerificationCode exists in the callback, call inputVerifier with the data', () => {
Expand Down Expand Up @@ -1169,7 +1169,7 @@ describe('confirmPassword() and forgotPassword()', () => {
test('happy path should callback onSuccess', () => {
netRequestMockSuccess(true);
cognitoUser.confirmPassword(...confirmPasswordDefaults);
expect(callback.onSuccess.mock.calls.length).toEqual(1);
expect(callback.onSuccess).toHaveBeenCalledWith('SUCCESS')
});

test('client request throws an error', () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/amazon-cognito-identity-js/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/amazon-cognito-identity-js/package.json
@@ -1,7 +1,7 @@
{
"name": "amazon-cognito-identity-js",
"description": "Amazon Cognito Identity Provider JavaScript SDK",
"version": "5.0.6",
"version": "5.1.0",
"author": {
"name": "Amazon Web Services",
"email": "aws@amazon.com",
Expand Down
4 changes: 2 additions & 2 deletions packages/amazon-cognito-identity-js/src/CognitoUser.js
Expand Up @@ -1700,7 +1700,7 @@ export default class CognitoUser {
if (err) {
return callback.onFailure(err);
}
return callback.onSuccess();
return callback.onSuccess('SUCCESS');
});
}

Expand Down Expand Up @@ -1732,7 +1732,7 @@ export default class CognitoUser {
if (typeof callback.inputVerificationCode === 'function') {
return callback.inputVerificationCode(data);
}
return callback.onSuccess();
return callback.onSuccess('SUCCESS');
}
);
return undefined;
Expand Down

0 comments on commit 306e727

Please sign in to comment.