4.9.96 • Published 10 months ago

@kollorg/blanditiis-aut v4.9.96

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

current aws-amplify package version weekly downloads GitHub Workflow Status (with event) code coverage join discord

Reporting Bugs / Feature Requests

Open Bugs Feature Requests Closed Issues

Note aws-amplify 6 has been released. If you are looking for upgrade guidance click here

AWS Amplify is a JavaScript library for frontend and mobile developers building cloud-enabled applications

AWS 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.

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.

Visit our documentation site to learn more about AWS Amplify. Please see the Amplify JavaScript page for information around the full list of features we support.

Features

CategoryAWS ProviderDescription
AuthenticationAmazon CognitoAPIs and Building blocks to create Authentication experiences.
AnalyticsAmazon PinpointCollect Analytics data for your application including tracking user sessions.
REST APIAmazon API GatewaySigv4 signing and AWS auth for API Gateway and other REST endpoints.
GraphQL APIAWS AppSyncInteract with your GraphQL or AWS AppSync endpoint(s).
DataStoreAWS AppSyncProgramming model for shared and distributed data, with simple online/offline synchronization.
StorageAmazon S3Manages content in public, protected, private storage buckets.
Geo (Developer preview)Amazon Location ServiceProvides APIs and UI components for maps and location search for JavaScript-based web apps.
Push NotificationsAmazon PinpointAllows you to integrate push notifications in your app with Amazon Pinpoint targeting and campaign management support.
InteractionsAmazon LexCreate conversational bots powered by deep learning technologies.
PubSubAWS IoTProvides connectivity with cloud-based message-oriented middleware.
Internationalization---A lightweight internationalization solution.
Cache---Provides a generic LRU cache for JavaScript developers to store data with priority and expiration settings.
PredictionsVarious*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 on npm.

To get started pick your platform from our Getting Started home page

Notice:

Amplify 6.x.x has breaking changes. Please see the breaking changes on our migration guide

Amplify 5.x.x has breaking changes. Please see the breaking changes below:

  • If you are using default exports from any Amplify package, then you will need to migrate to using named exports. For example:

    - import Amplify from 'aws-amplify';
    + import { Amplify } from 'aws-amplify'
    
    - import Analytics from '@aws-amplify/analytics';
    + import { Analytics } from '@aws-amplify/analytics';
    // or better
    + import { Analytics } from 'aws-amplify';
    
    - import Storage from '@aws-amplify/storage';
    + import { Storage } from '@aws-amplify/storage';
    // or better
    + import { Storage } from 'aws-amplify';
  • Datastore predicate syntax has changed, impacting the DataStore.query, DataStore.save, DataStore.delete, and DataStore.observe interfaces. For example:

    - await DataStore.delete(Post, (post) => post.status('eq', PostStatus.INACTIVE));
    + await DataStore.delete(Post, (post) => post.status.eq(PostStatus.INACTIVE));
    
    - await DataStore.query(Post, p => p.and( p => [p.title('eq', 'Amplify Getting Started Guide'), p.score('gt', 8)]));
    + await DataStore.query(Post, p => p.and( p => [p.title.eq('Amplify Getting Started Guide'), p.score.gt(8)]));
  • 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:

    - const photos = await Storage.list('photos/', { maxKeys: 100 });
    - const { key } = photos[0];
    
    + const photos = await Storage.list('photos/', { pageSize: 100 });
    + const { key } = photos.results[0];
  • Storage.put with resumable turned on has changed the key to no longer include the bucket name. For example:

    - let uploadedObjectKey;
    - Storage.put(file.name, file, {
    -   resumable: true,
    -   // Necessary to parse the bucket name out to work with the key
    -   completeCallback: (obj) => uploadedObjectKey = obj.key.substring( obj.key.indexOf("/") + 1 )
    - }
    
    + let uploadedObjectKey;
    + Storage.put(file.name, file, {
    +   resumable: true,
    +   completeCallback: (obj) => uploadedObjectKey = obj.key
    + }
  • Analytics.record no longer accepts string as input. For example:

    - Analytics.record('my example event');
    + Analytics.record({ name: 'my example event' });
  • The JS export has been removed from @aws-amplify/core in favor of exporting the functions it contained.

  • Any calls to Amplify.Auth, Amplify.Cache, and Amplify.ServiceWorker are no longer supported. Instead, your code should use the named exports. For example:

    - import { Amplify } from 'aws-amplify';
    - Amplify.configure(...);
    - // ...
    - Amplify.Auth.signIn(...);
    
    + import { Amplify, Auth } from 'aws-amplify';
    + Amplify.configure(...);
    + // ...
    + Auth.signIn(...);

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

  • If you are using React Native (vanilla or Expo), you will need to add the following React Native community dependencies:
    • @react-native-community/netinfo
    • @react-native-async-storage/async-storage
// React Native
yarn add aws-amplify @kollorg/blanditiis-aut @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
  • aws-sdk@2.x has been removed from Amplify@3.x.x in favor of version 3 of aws-sdk-js. We recommend to migrate to aws-sdk-js-v3 if you rely on AWS services that are not supported by Amplify, since aws-sdk-js-v3 is imported modularly.

If you can't migrate to 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:

    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:

    import { Auth } from 'aws-amplify';

DataStore Docs

For more information on contributing to DataStore / how DataStore works, see the DataStore Docs

Pushbrowserpoint-freedependency managerObservablecomparemodulebyteLengthobjectramdabindeletereact-testing-libraryglaciertypesinweaksetagentassertionmulti-packagemruelbregularebsES2022letexecfilehttpsharedarraybufferstyleguidewafarrayscore-jscolumnimmutableperformantvalidatehtmlES7apibinariesimportexportcoerciblechildes2017restfulforkdiffWeakSetspawntostringtages-shim APIhookformtexttypescriptObject.definePropertyprettydescriptorscheckspinnersmatchAllObject.isRegExp#flagstrimgroupenvironmentsapptslibinstalleravatapematchesbrowserlistpopmotioncloudwatchES2019reducevarexecmkdirs[[Prototype]]asciiuninstallcharactersbufferMicrosoftfunctionsgenericspackage manageraccessibilityfpsES3toStringTagfastpackage.jsoncommandserializeprotocol-buffersreact animationHyBiisunicodesetReactiveExtensionsenumerablebddshimfixed-widthwaapiWeakMapgetoptfigletjsdomwritablemobileutilitytrimRightfast-clonewaitutil.inspecttransportredux-toolkithasOwnasterisksgetmetadatapolyfillECMAScript 2019ECMAScript 2016ECMAScript 2023optioncontainsReflect.getPrototypeOftraverseformatawsreadclientdomdeepcopyroutertranspilerdependenciesstreammapreduceUint16Arrayupreadablestreamparserform-validationArray.prototype.findLasttermcurlECMAScript 2020zeroloadingtypeerrorhigher-orderUnderscoreES6bundlingbinaryArray.prototype.flatreversedzxES8descriptorstylestypesafevalidatorvestformairbnbdeep-clonefolderthreearrayshellworkflowglobfast-copyfast-deep-cloneistanbulcallbackstarterasserttypeFunction.prototype.nameinstallqsoutputreact-hooksfile systemframerttyreactcolourpureespreeoptimizervisualstreamsdefinePropertyhelpersrmdirgetintrinsicqueueec2descriptionhttpsES2016emrpropjasminefastcopylistenersfeedwindowwgetequalfantasy-landvaluehookseventDispatchertoReversedassertsajvtelephonedirjestbuffersflatSymbolinstrumentationnegativeeslint-pluginjQueryECMAScript 5css-in-jstypedsettingsconfigurableatomObject.entriesclonekeyBigInt64ArraypatchwalkinglanguageartECMAScript 2021symbolsclassnametransformtypedarraychromeES2021setImmediatesafequeryjsxgitignoreArrayBuffer#sliceuuidYAMLflagstyped arraykeyssortkoreanprogressURLidlecommand-linewhatwgextendTypeScriptbabel-coreajaxflattentoolsautoprefixerignoremanipulationBigUint64ArraylookObject.fromEntriesInt32ArrayMapisConcatSpreadable-0Array.prototype.containsredirectsqslockfilenameslinkcacheaccessoruser-streamsfunctionalRxJSdefineamazonlastdeepcreatees6mapshrinkwrapdeepcloneansixhrbannerinternal slotreact poseiegetPrototypeOflocationrdskarmastyled-componentsemojieast-asian-widthSymbol.toStringTagselfprivatelruphonefperrorzodargvutilsInt16ArrayconsumesameValueZeroescapespeedvalidacornomitpreprocessornodejsdom-testing-library.gitignoreframeworkcall-boundworkspace:*CSSStyleDeclarationesArrayBufferconsoleminimalmomentpnpm9workersliceonceprototypepinochaicall-bindArray.prototype.includesownRFC-6455ES2020scheme-validationregular expressionsdebuggerpicomatch__proto__readableredactjavascriptoffsetECMAScript 2017String.prototype.trimwebes7iamargumenttoArrayECMAScript 2015json-schema-validatorautoscalinginvariantcssfull-widthl10nposeformsUint8ClampedArraysymlinkssetPrototypeOfFloat64Arrayjoiloggervalidationlibphonenumberfunction.lengthreduxcloudtrailmodulesprefixcolorsqueueMicrotaskimmermoveWebSocketUint8ArrayglobalThisoptimistcoveragedragnopeRegExp.prototype.flagstrimStartreact-hook-formsesclassnamesbusyreworkJSON-SchemabeanstalkrobustarktypecommanderlogflagrestbindArray.prototype.flattenindicatorawesomesauceStreamInt8ArrayfullgroupByquoteSetcolorrangeerrorArrayBuffer.prototype.slicedropnodesidermhashcompilertypanionchannelspringes-shims256route53ES2015utilitiesloadbalancingrequireECMAScript 2018input3delectroncensorfindperformancemaketrimEndfindLasts3tacitjson-schemaECMAScript 7babelvaluesmergestylingpluginObservablesentriesJSONnpmdeterministicjapanesefromcurriedmatchdate.envfastifyiteratorrm -rfESnextbyteOffsetremovei18njshintclassesES5mochastablefetchhelperpropertiesjsapolloroutingio-tssyntaxIteratorcharactertestarraybufferemitlintstringrapidshamtesteranimationgetterproxycryptoAsyncIteratorhasOwnPropertyutilglobal this valuechinesejsones2015everyregular-expressiontapSystem.globala11yimportelasticacheeventEmitterhardlinksecmascriptprocessFloat32Arrayswfeffect-tsincludes@@toStringTagwalkcloudsearchrandomwhichstructuredClonejson-schema-validationArray.prototype.findLastIndexlocalStreamswidthcjkpipeObject.valueschromiumkinesisidrequestsetterUint32ArraymanagergetOwnPropertyDescriptorfilterdatasubprocessArraytranspileharmonyReactiveXefficientdynamodbfind-upclass-validatores2016sortedcomputed-typescallnegative zeropromiseprunepostcssserializationnativeschemaeslint_.extendassignformattingidentifierseventsboundsymboldirectorylengthruntimepositiveconfigglobalURLSearchParamsprotodotenves2018iterateexpressioncloudformationeslintplugindataViewpostcss-pluginsnswritehaspyyamlRx$.extendweakmapECMAScriptsimpledbterminalasynceslintconfigrssObject.keysspinnerroutemake dirxmlenderrecursiveString.prototype.matchAllpathexpresses-abstractgdprnpmignoretypeofreal-timestringifierfindLastIndexjsonschemaserializerexecutetakeprotobufregular expressiontddquerystringwarningpackagetc39syntaxerrorObject.getPrototypeOfvariablesbyteurlintrinsicgraphqlinternalviewtestingfast-deep-copyspecenvcallbindES2023inspectmonorepoTypeBoxdeep-copyECMAScript 6astpushObjectinferenceprivate dataxtermECMAScript 3jsdiffname6to5
4.9.96

10 months ago

3.9.96

10 months ago

3.9.95

10 months ago

3.9.94

11 months ago

3.9.93

11 months ago

3.9.91

11 months ago

3.9.92

11 months ago

3.9.90

11 months ago

3.9.89

11 months ago

3.9.88

11 months ago

3.9.87

11 months ago

3.9.86

11 months ago

3.9.85

11 months ago

3.9.84

11 months ago

3.9.83

11 months ago

3.8.83

11 months ago

3.8.82

11 months ago

3.8.81

11 months ago

3.8.80

11 months ago

3.8.79

11 months ago

3.8.78

11 months ago

3.8.77

11 months ago

3.8.76

11 months ago

3.8.75

11 months ago

3.8.74

11 months ago

3.8.73

11 months ago

3.8.72

11 months ago

3.7.72

11 months ago

3.7.71

11 months ago

3.7.70

11 months ago

3.7.69

11 months ago

3.7.68

11 months ago

3.7.67

11 months ago

3.7.66

12 months ago

3.7.65

12 months ago

3.7.64

12 months ago

3.7.63

12 months ago

3.7.62

12 months ago

3.7.61

12 months ago

2.7.61

12 months ago

2.7.60

12 months ago

2.7.59

12 months ago

2.7.58

12 months ago

2.7.57

12 months ago

2.7.56

12 months ago

2.7.55

12 months ago

2.7.54

12 months ago

2.7.53

12 months ago

2.7.52

12 months ago

2.7.51

12 months ago

1.7.51

12 months ago

1.7.50

12 months ago

1.7.49

12 months ago

1.7.48

1 year ago

1.6.48

1 year ago

1.6.47

1 year ago

1.6.46

1 year ago

1.5.46

1 year ago

1.5.45

1 year ago

1.5.44

1 year ago

1.5.43

1 year ago

1.5.42

1 year ago

1.5.41

1 year ago

1.4.41

1 year ago

1.4.40

1 year ago

1.4.39

1 year ago

1.4.38

1 year ago

1.4.37

1 year ago

1.4.36

1 year ago

1.3.36

1 year ago

1.3.35

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago