{"id":13485023,"url":"https://github.com/aws-amplify/amplify-js","last_synced_at":"2026-04-14T13:02:45.178Z","repository":{"id":37478873,"uuid":"105590837","full_name":"aws-amplify/amplify-js","owner":"aws-amplify","description":"A declarative JavaScript library for application development using cloud services.","archived":false,"fork":false,"pushed_at":"2026-03-03T05:39:47.000Z","size":246631,"stargazers_count":9593,"open_issues_count":475,"forks_count":2169,"subscribers_count":198,"default_branch":"main","last_synced_at":"2026-03-03T06:47:59.399Z","etag":null,"topics":["amazon-cognito","analytics","aws","aws-amplify","aws-apigateway","aws-cognito","aws-mobile","aws-s3","cloud-service","cognito","javascript","metrics","mobile-analytics","pinpoint","pwa","react","react-native","storage"],"latest_commit_sha":null,"homepage":"https://docs.amplify.aws/lib/q/platform/js","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws-amplify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-02T22:17:14.000Z","updated_at":"2026-03-02T12:03:08.000Z","dependencies_parsed_at":"2024-01-16T10:39:29.993Z","dependency_job_id":"6603e319-1e5e-4ceb-b3fe-ff562f3d2ed9","html_url":"https://github.com/aws-amplify/amplify-js","commit_stats":{"total_commits":7123,"total_committers":480,"mean_commits":"14.839583333333334","dds":0.8635406429875052,"last_synced_commit":"af13e13608820a8f7dbea87b245ec7bb5f0e50cc"},"previous_names":["aws/aws-amplify"],"tags_count":8685,"template":false,"template_full_name":null,"purl":"pkg:github/aws-amplify/amplify-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-amplify%2Famplify-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-amplify%2Famplify-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-amplify%2Famplify-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-amplify%2Famplify-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws-amplify","download_url":"https://codeload.github.com/aws-amplify/amplify-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-amplify%2Famplify-js/sbom","scorecard":{"id":219257,"data":{"date":"2025-08-11","repo":{"name":"github.com/aws-amplify/amplify-js","commit":"6f44adfb29705212591402c7cbf4c1e604d2ad4d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":7.1,"checks":[{"name":"Code-Review","score":9,"reason":"Found 16/17 approved changesets -- score normalized to 9","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 16 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/aws-amplify/.github/SECURITY.md:1","Info: Found linked content: github.com/aws-amplify/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/aws-amplify/.github/SECURITY.md:1","Info: Found text in security policy: github.com/aws-amplify/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:19","Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:18","Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/pr-label.yml:26","Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/pr-label.yml:63","Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/pr-label.yml:80","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/push-latest-release.yml:18","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/push-lts-release.yml:21","Info: jobLevel 'contents' permission set to 'read': .github/workflows/snyk-security.yml:16","Info: jobLevel 'actions' permission set to 'read': .github/workflows/snyk-security.yml:18","Warn: no topLevel permission defined: .github/workflows/aws-amplify-dependency-check.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-bundle-size-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-canary-e2e-runner.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-canary-e2e-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-canary-e2e.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-canary-sampleapp-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-dependency-review.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-docs-update.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-e2e-test-detox.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-e2e-test-headless.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-e2e-test.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-e2e-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-get-package-list.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-npm-publish-lts-release.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-npm-publish-preid.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-npm-publish-release.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-prebuild-amplify-js.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-prebuild-samples-staging.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-release-verification.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-test-github-actions.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-test-license.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-test-tsc-compliance.yml:1","Warn: no topLevel permission defined: .github/workflows/callable-unit-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/issue-comment.yml:1","Warn: no topLevel permission defined: .github/workflows/issue-labeled.yml:1","Warn: no topLevel permission defined: .github/workflows/issue-opened.yml:1","Warn: no topLevel permission defined: .github/workflows/lock.yaml:1","Warn: no topLevel permission defined: .github/workflows/on-schedule-canary-test.yml:1","Warn: no topLevel permission defined: .github/workflows/pr-label.yml:1","Info: topLevel permissions set to 'read-all': .github/workflows/pr.yml:9","Warn: no topLevel permission defined: .github/workflows/push-integ-test.yml:1","Warn: no topLevel permission defined: .github/workflows/push-latest-release.yml:1","Warn: no topLevel permission defined: .github/workflows/push-lts-release.yml:1","Warn: no topLevel permission defined: .github/workflows/push-main-release.yml:1","Warn: no topLevel permission defined: .github/workflows/push-next-release.yml:1","Warn: no topLevel permission defined: .github/workflows/push-preid-release.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/snyk-security.yml:10"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":6,"reason":"binaries present in source code","details":["Warn: binary detected: packages/react-native/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: packages/react-native/example/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: packages/rtn-push-notification/android/gradle/wrapper/gradle-wrapper.jar:1","Warn: binary detected: packages/rtn-web-browser/android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":10,"reason":"SAST tool detected","details":["Info: SAST configuration detected: CodeQL","Info: SAST configuration detected: Snyk","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":6,"reason":"dependency not pinned by hash detected -- score normalized to 6","details":["Warn: npmCommand not pinned by hash: .github/workflows/callable-canary-sampleapp-tests.yml:53","Warn: npmCommand not pinned by hash: .github/workflows/callable-canary-sampleapp-tests.yml:126","Warn: npmCommand not pinned by hash: .github/workflows/callable-canary-sampleapp-tests.yml:129","Warn: npmCommand not pinned by hash: .github/workflows/callable-canary-sampleapp-tests.yml:187","Warn: npmCommand not pinned by hash: .github/workflows/callable-canary-sampleapp-tests.yml:203","Warn: npmCommand not pinned by hash: .github/workflows/callable-docs-update.yml:71","Info:  39 out of  39 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of   6 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T02:10:47.100Z","repository_id":37478873,"created_at":"2025-08-17T02:10:47.100Z","updated_at":"2025-08-17T02:10:47.100Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30184874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T14:42:24.748Z","status":"ssl_error","status_checked_at":"2026-03-06T14:42:14.925Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amazon-cognito","analytics","aws","aws-amplify","aws-apigateway","aws-cognito","aws-mobile","aws-s3","cloud-service","cognito","javascript","metrics","mobile-analytics","pinpoint","pwa","react","react-native","storage"],"created_at":"2024-07-31T17:01:42.957Z","updated_at":"2026-03-11T17:03:54.966Z","avatar_url":"https://github.com/aws-amplify.png","language":"TypeScript","readme":"\u003cimg src=\"https://s3.amazonaws.com/aws-mobile-hub-images/aws-amplify-logo.png\" alt=\"AWS Amplify\" width=\"550\" \u003e\n\n[![current aws-amplify package version](https://img.shields.io/npm/v/aws-amplify?color=brightgreen\u0026label=npm%20package)](https://www.npmjs.com/package/aws-amplify)\n[![weekly downloads](https://img.shields.io/npm/dw/aws-amplify)](https://www.npmjs.com/package/aws-amplify)\n[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/aws-amplify/amplify-js/push-main-release.yml)\n](https://github.com/aws-amplify/amplify-js/blob/main/.github/workflows/push-main-release.yml)\n[![code coverage](https://codecov.io/gh/aws-amplify/amplify-js/branch/main/graph/badge.svg)](https://codecov.io/gh/aws-amplify/amplify-js)\n[![join discord](https://img.shields.io/discord/308323056592486420?logo=discord)](https://discord.gg/jWVbPfC)\n\n### Reporting Bugs / Feature Requests\n\n[![Open Bugs](https://img.shields.io/github/issues/aws-amplify/amplify-js/bug?color=d73a4a\u0026label=bugs)](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+is%3Aopen+label%3Abug)\n[![Feature Requests](https://img.shields.io/github/issues/aws-amplify/amplify-js/feature-request?color=ff9001\u0026label=feature%20requests)](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+label%3Afeature-request+is%3Aopen)\n[![Closed Issues](https://img.shields.io/github/issues-closed/aws-amplify/amplify-js?color=%2325CC00\u0026label=issues%20closed)](https://github.com/aws-amplify/amplify-js/issues?q=is%3Aissue+is%3Aclosed+)\n\n\u003e **Note**\n\u003e aws-amplify 6 has been released. If you are looking for upgrade guidance [click here](#notice)\n\n### AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications\n\nAWS Amplify provides a declarative and easy-to-use interface across different categories of cloud operations. AWS Amplify goes well with any JavaScript based frontend workflow and React Native for mobile developers.\n\nOur default implementation works with Amazon Web Services (AWS), but AWS Amplify is designed to be open and pluggable for any custom backend or service.\n\n#### Visit our [documentation site](https://docs.amplify.aws/) to learn more about AWS Amplify. Please see the [Amplify JavaScript](https://docs.amplify.aws/lib/q/platform/js/) page for information around the full list of features we support.\n\n- [Contributing](https://github.com/aws-amplify/amplify-js/blob/main/CONTRIBUTING.md)\n\n### Features\n\n| Category                                                                                                          | AWS Provider                                                | Description                                                                                                            |\n| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |\n| [**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.                                                         |\n| [**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.                                          |\n| [**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.                                                   |\n| [**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).                                                                 |\n| [**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.                         |\n| [**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.                                                         |\n| [**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.                            |\n| [**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. |\n| [**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.                                                      |\n| [**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.                                                    |\n| [**Internationalization**](https://docs.amplify.aws/lib/utilities/i18n/q/platform/js)                             | ---                                                         | A lightweight internationalization solution.                                                                           |\n| [**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.            |\n| [**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.                              |\n\n- Predictions utilizes a range of Amazon's Machine Learning services, including: Amazon Comprehend, Amazon Polly, Amazon Rekognition, Amazon Textract, and Amazon Translate.\n\n## Getting Started\n\nAWS Amplify is available as `aws-amplify` on [npm](https://www.npmjs.com/package/aws-amplify).\n\nTo get started pick your platform from our [**Getting Started** home page](https://docs.amplify.aws/javascript/)\n\n## Version Support\nAWS Amplify JavaScript library v4 and below will end support on **April 13, 2026**, as documented in our [AWS Amplify JavaScript library version support calendar](https://github.com/aws-amplify/amplify-js/issues/14580).\n\nEffective immediately, the AWS Amplify JavaScript library v4 and below will enter **Maintenance Mode** until April 13, 2026 after which it will receive no more updates. While in Maintenance Mode, the libraries will only receive updates for **critical bug fixes and security vulnerabilities**. Refer to [Amplify Documentation](https://docs.amplify.aws/reference/maintenance-policy) for more information on the maintenance policy.\n\nIf you are using AWS Amplify JavaScript library v4 and below, we strongly recommend upgrading to the AWS Amplify JavaScript Library v6 before April 13, 2026.\n\n\n## Notice:\n\n### Amplify 6.x.x has breaking changes. Please see the breaking changes on our [migration guide](https://docs.amplify.aws/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/)\n\n### Amplify 5.x.x has breaking changes. Please see the breaking changes below:\n\n- If you are using **default exports** from any Amplify package, then you will need to migrate to using named exports. For example:\n\n  ```diff\n  - import Amplify from 'aws-amplify';\n  + import { Amplify } from 'aws-amplify'\n\n  - import Analytics from '@aws-amplify/analytics';\n  + import { Analytics } from '@aws-amplify/analytics';\n  // or better\n  + import { Analytics } from 'aws-amplify';\n\n  - import Storage from '@aws-amplify/storage';\n  + import { Storage } from '@aws-amplify/storage';\n  // or better\n  + import { Storage } from 'aws-amplify';\n  ```\n\n- Datastore predicate syntax has changed, impacting the `DataStore.query`, `DataStore.save`, `DataStore.delete`, and `DataStore.observe` interfaces. For example:\n\n  ```diff\n  - await DataStore.delete(Post, (post) =\u003e post.status('eq', PostStatus.INACTIVE));\n  + await DataStore.delete(Post, (post) =\u003e post.status.eq(PostStatus.INACTIVE));\n\n  - await DataStore.query(Post, p =\u003e p.and( p =\u003e [p.title('eq', 'Amplify Getting Started Guide'), p.score('gt', 8)]));\n  + await DataStore.query(Post, p =\u003e p.and( p =\u003e [p.title.eq('Amplify Getting Started Guide'), p.score.gt(8)]));\n  ```\n\n  - To use the new syntax with 5.x.x you may need to rebuild your Datastore models with the latest version of Amplify codegen. To do this:\n    - [Upgrade the Amplify CLI](https://docs.amplify.aws/cli/start/workflows/#upgrade-amplify-cli)\n      - `npm install -g @aws-amplify/cli`\n    - [Re-generate your models with Amplify codegen](https://docs.amplify.aws/lib/datastore/getting-started/q/platform/js/#code-generation-amplify-cli)\n      - `amplify codegen models`\n\n- `Storage.list` has changed the name of the `maxKeys` parameter to `pageSize` and has a new return type that contains the results list. For example:\n\n  ```diff\n  - const photos = await Storage.list('photos/', { maxKeys: 100 });\n  - const { key } = photos[0];\n\n  + const photos = await Storage.list('photos/', { pageSize: 100 });\n  + const { key } = photos.results[0];\n  ```\n\n- `Storage.put` with resumable turned on has changed the key to no longer include the bucket name. For example:\n\n  ```diff\n  - let uploadedObjectKey;\n  - Storage.put(file.name, file, {\n  -   resumable: true,\n  -   // Necessary to parse the bucket name out to work with the key\n  -   completeCallback: (obj) =\u003e uploadedObjectKey = obj.key.substring( obj.key.indexOf(\"/\") + 1 )\n  - }\n\n  + let uploadedObjectKey;\n  + Storage.put(file.name, file, {\n  +   resumable: true,\n  +   completeCallback: (obj) =\u003e uploadedObjectKey = obj.key\n  + }\n  ```\n\n- `Analytics.record` no longer accepts string as input. For example:\n\n  ```diff\n  - Analytics.record('my example event');\n  + Analytics.record({ name: 'my example event' });\n  ```\n\n- The `JS` export has been removed from `@aws-amplify/core` in favor of exporting the functions it contained.\n- Any calls to `Amplify.Auth`, `Amplify.Cache`, and `Amplify.ServiceWorker` are no longer supported. Instead, your code should use the named exports. For example:\n\n  ```diff\n  - import { Amplify } from 'aws-amplify';\n  - Amplify.configure(...);\n  - // ...\n  - Amplify.Auth.signIn(...);\n\n  + import { Amplify, Auth } from 'aws-amplify';\n  + Amplify.configure(...);\n  + // ...\n  + Auth.signIn(...);\n  ```\n\n### Amplify 4.x.x has breaking changes for React Native. Please see the breaking changes below:\n\n- If you are using React Native (vanilla or Expo), you will need to add the following React Native community dependencies:\n  - `@react-native-community/netinfo`\n  - `@react-native-async-storage/async-storage`\n\n```\n// React Native\nyarn add aws-amplify amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage\nnpx pod-install\n\n// Expo\nyarn add aws-amplify @react-native-community/netinfo @react-native-async-storage/async-storage\n```\n\n### Amplify 3.x.x has breaking changes. Please see the breaking changes below:\n\n- `AWS.credentials` and `AWS.config` don’t exist anymore in Amplify JavaScript.\n  - Both options will not be available to use in version 3. You will not be able to use and set your own credentials.\n  - For more information on this change, please see the [AWS SDK for JavaScript v3](https://github.com/aws/aws-sdk-js-v3/#configuration)\n- `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.\n\nIf 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.\n\n- 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:\n\n  ```js\n  import { Analytics } from 'aws-amplify';\n  ```\n\n- If you are using categories as `Amplify.\u003cCategory\u003e`, this will no longer work and we recommend to import the category you are needing to use:\n\n  ```js\n  import { Auth } from 'aws-amplify';\n  ```\n\n### DataStore Docs\n\nFor more information on contributing to DataStore / how DataStore works, see the [DataStore Docs](packages/datastore/README.md)\n","funding_links":[],"categories":["TypeScript","Libraries","Implementations","前端开发框架及项目","aws","Clients","Backend \u0026 BaaS"],"sub_categories":["JavaScript Libraries","JavaScript/TypeScript","其他_文本生成、文本对话","Graphics \u0026 Drawing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-amplify%2Famplify-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws-amplify%2Famplify-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-amplify%2Famplify-js/lists"}