Releases: aws-amplify/amplify-js
2022-11-14 Amplify JS release - [email protected]
New Features:
@aws-amplify/api
,@aws-amplify/pubsub
- Automatic reconnect for GraphQL and pubsub subscriptions! PR 10235.
- More information about reconnection can be found on GraphQL subscriptions documentation and PubSub subscriptions documentation
@aws-amplify/storage
Storage.list
supports paginated results. You can also set a set page size by using thepageSize
attribute.- More information about
Storage.list
on the Storage documentation
@aws-amplify/datastore
- Lazy loading
- You can now asynchronously fetch related data in one-line of code. For example: if a post has many comments, you can lazy load comments using the async toArray() function:
await post.comments.toArray()
. You can also lazy load hasOne relationships, for example: await post.author. DataStore also takes advantage of JavaScript’s built-in async iterator support to make it easier for you to authorfor
loops:
for await (const comment of post.comments) { console.log(comment) // iterates over each comment! }
- More information about DataStore lazy loading on the DataStore documentation
- You can now asynchronously fetch related data in one-line of code. For example: if a post has many comments, you can lazy load comments using the async toArray() function:
- Nested predicates
- You can now query based on conditions of related models. For example, if you only want to get the comments of posts with a title starting with “Amplify”, you can now do the following:
await DataStore.query(Comment, c => c.post.title.beginsWith(“Amplify”)
- More information about DataStore nested predicates on the DataStore documentation
- You can now query based on conditions of related models. For example, if you only want to get the comments of posts with a title starting with “Amplify”, you can now do the following:
- PR 10477
- Lazy loading
- New Notifications category
@aws-amplify/notifications
with support for AWS Pinpoint In-App Messaging channel.- You can setup contextual UI messages that can you can show your users when users trigger specific events. PR 10430
- More information about In-App Messaging on In-App Messaging documentation
Breaking changes:
- Default exports removed from, e.g.
import Auth from '@aws-amplify/auth'
is no longer supported@aws-amplify/analytics
@aws-amplify/api-rest
@aws-amplify/api-graphql
@aws-amplify/api
@aws-amplify/cache
@aws-amplify/datastore
@aws-amplify/geo
@aws-amplify/interactions
@aws-amplify/predictions
@aws-amplify/pub
@aws-amplify/storage
@aws-amplify/xr
aws-amplify
@aws-amplify/api
,@aws-amplify/pubsub
: Network subscriptions are automatically reconnected and observables stays available (previously observables were closed after network issues)@aws-amplify/analytics
:Analytics.record
no longer accepts string as its first paramaws-amplify
Amplify.Auth
,Amplify.Cache
,Amplify.ServiceWorker
static members are no longer available on Amplify singleton #10562- Removed CSS modules export
@aws-amplify/pubsub
: Removed misspelled type exportMqttProvidertOptions
fromMqttOverWSProvider
provider@aws-amplify/core
: RemovedJS
export from in favor of individual function exports #10528@aws-amplify/storage
:Storage.list
now acceptspageSize
instead ofmaxKeys
and also the return value is an object that hasresult
and pagination info.- Deprecated legacy UI packages (You can migrate to the new UI packages by following this link):
@aws-amplify/ui-vue@"< 1.x"
@aws-amplify/ui-react@"< 1.x"
@aws-amplify/ui-angular@"< 1.x"
@aws-amplify/ui-components@"< 1.x"
aws-amplify-vue (all versions)
aws-amplify-angular (all versions)
aws-amplify-react (all versions)
Other changes:
- Bundle size reduction:
- Reduced by 10% on average when authentication (tested with
create-react-app
) - Reduced by 35% on average when unauthenticated (guest) users (tested with
create-react-app
) - Replaced dependencies with smaller alternatives
- Optimize bundle size for unauthenticated use cases, e.g. recording events or loading images for guests users
tslib
is used across all the packages withimportHelpers
option enabled
- Reduced by 10% on average when authentication (tested with
- Removed unnecessary artifacts from npm packages reducing installation size
All Changes
- feat(pubsub): Automated reconnect for IoT and API by @stocaaro in #10235
- chore: Merge from main by @stocaaro in #10397
- fix(pubsub): surface graphql connection failure error to observers by @AllanZhengYP in #10421
- feat(storage): updating naming for consistency across libraries by @katiegoines in #10414
- feat(@aws-amplify/storage): pagination for storage list api using Token by @kvramyasri7 in #10199
- fix(storage): Optimized storage category
sideEffects
to improve shake-ability by @jimblanc in #10375 - chore: Setup
tslib
&importHelpers
to improve bundle size by @jimblanc in #10435 - chore: Remove legacy UI packages by @jimblanc in #10433
- chore(core): deprecate hub remove fn by @haverchuck in #10420
- chore(core): remove deprecated mobilehub config parser class and rename to parseAWSExports by @AllanZhengYP in #10460
- fix: Restore
tslib
dependencies for v5 by @jimblanc in #10512 - chore: replace .npmignore to allow list of NPM artifacts by @AllanZhengYP in #10473
- chore: rename core/Parser.ts file & followup #10460 by @AllanZhengYP in #10513
- Migrate
auth
andamazon-cognito-identity-js
to use@aws-crypto/sha256-js
by @jimblanc in #10523 - chore: Remove (most) default exports by @jimblanc in #10461
- chore: Remove miscellaneous deprecated exports & prototypes by @jimblanc in #10528
- fix: Standardize
cache
named export to preserve interoperability with RN by @jimblanc in #10546 - chore: Expand * exports to optimize tree-shaking by @jimblanc in #10555
- feat: add a typescript coverage report mechanism by @israx in #10551
- chore: Update copyright notices by @jimblanc in #10556
- chore: Standardize copyright header format by @jimblanc in #10559
- feature(@aws-amplify/datastore): lazy loading and nested/related-model predicates by @svidgen in #10477
- chore: Move
cache
sideEffects to align with other packages by @jimblanc in #10562 - ci(datastore): add integ tests for lazy loading by @dpilch in #10529
- test(integ): remove vue 2 test on legacy Auth UI by @AllanZhengYP in #10576
- chore: remove sideeffects mark on non-code artifacts by @AllanZhengYP in #10578
- chore: Removing deprecated PubSub provider type by @elorzafe in #10585
- chore: use --ignore-engines option in CI by @AllanZhengYP in #10589
- chore: Remove crypto-js dependency from @aws-amplify/auth by @elorzafe in #10591
- fix: Lower
tslib
version to improve dependency flattening by @jimblanc in #10588 - ci(pubsub): add integ tests for reconnection by @stocaaro in #10580
- fix(@aws-amplify/datastore): remove predicate, AsyncCollection internals from public interfaces by @svidgen in #10594
- fix(@aws-amplify/core): Fix guest credentials without Auth module by @elorzafe in #10596
- fix(storage): Fix storage api to have correct typing of .list response by @stocaaro in #10607
- fix(@aws-amplify/datastore): fix join conditions on predicate not groups by @svidgen in #10610
- fix(@aws-amplify/datastore): Fix predicate group types by @svidgen in #10614
- feat: change unsupported codegen error message by @dpilch in #10563
- fix(aws-amplify): Fix remove side effect by @elorzafe in #10611
- test(i...
2022-11-03 Amplify JS release - [email protected]
What's Changed
- fix: Missing
cache
exports in React Native by @jimblanc in #10577 - chore: use --ignore-engines option in CI by @AllanZhengYP in #10590
- chore: Flip all deprecated UI packages back to private to resolve deployment issues. by @jimblanc in #10602
- fix: Empty commit to fix deploy by @stocaaro in #10609
- chore: Release from main by @stocaaro in #10605
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.43
2022-10-27 Amplify JS release - [email protected]
What's Changed
- Released deprecation messaging for legacy UI components by @jimblanc in #10542
- chore: fix build on main, resolve babel deps by @svidgen in #10548
- chore: preparing release by @Samaritan1011001 in #10554
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.42
2022-10-25 Amplify JS release - [email protected]
What's Changed
- fix: remove dep on es2020.promise lib additions by @svidgen in #10532
- chore: preparing release by @Samaritan1011001 in #10535
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.41
2022-10-25 Amplify JS release - [email protected]
What's Changed
- fix(data): re-enable Chrome testing for CPK integ tests by @david-mcafee in #10482
- Remove polyfill note by @chrisbonifacio in #10464
- Updating README to remove unnecessary RN info by @abdallahshaban557 in #10493
- feat(data): background process manager integ tests by @david-mcafee in #10502
- chore: stop generating unused dts in lib folder by @AllanZhengYP in #10501
- chore(deps): bump nokogiri from 1.13.6 to 1.13.9 in /docs by @dependabot in #10515
- fix(@aws-amplify/datastore): introduce "settlement" guarantees to stop() and clear() by @svidgen in #10450
- fix: Update .d.ts file to match the actual code by @MatrixFrog in #8825
- chore(docs): fixes jquery dependency by @haverchuck in #10504
- fix(datastore): CPK on Safari by @iartemiev in #10527
- chore: Merging changes to release by @iartemiev in #10530
New Contributors
- @abdallahshaban557 made their first contribution in #10493
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.40
2022-10-13 Amplify JS release - [email protected]
What's Changed
- feat(data): update Circle CI config to use new CPK integ tests / samples by @david-mcafee in #10466
- feat(datastore): allow sync query to complete when non-applicable data present by @iartemiev in #10471
- fix(datastore): unblock vite build after CPK changes by @iartemiev in #10478
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.39
2022-10-13 Amplify JS release - [email protected]
What's Changed
- chore(legacy-ui): add deprecation warnings by @calebpollman in #10384
- fix(@aws-amplify/datastore): introduce "settlement" guarantees to stop() and clear() by @svidgen in #10055
- chore: ignore private packages in lerna run commands by @AllanZhengYP in #10424
- ci: update post_release by @iartemiev in #10429
- fix: validate non models when using object literal by @dpilch in #10417
- Add PlaceId support for Geo Autocomplete feature by @sreeramsama in #10383
- chore(cognito-identity-js) Add CognitoUserPool.getUserPoolName by @razor-x in #9793
- feat(data): add custom primary key integ tests to Circle CI config by @david-mcafee in #10443
- Revert "fix(@aws-amplify/datastore): introduce "settlement" guarantees to stop() and clear()" by @svidgen in #10449
- ci: only run cpk integ on ff by @iartemiev in #10459
- chore(deps): bump commonmarker from 0.23.4 to 0.23.6 in /docs by @dependabot in #10358
- [docs] Fix singIn method comment by @m98 in #9908
- Create method that verificates if an instance was created, in order t… by @miranciandt in #10409
- chore: Remove deprecated jcenter repo by @MatrixFrog in #9397
- chore: Merging changes to release by @stocaaro in #10462
New Contributors
- @razor-x made their first contribution in #9793
- @m98 made their first contribution in #9908
- @miranciandt made their first contribution in #10409
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.38
2022-09-30 Amplify JS release
What's Changed
- fix(cache): use named import when exporting from aws-amplify by @iartemiev in #10305
- Update CODEOWNERS from permissions migration by @stocaaro in #10321
- fix(@aws-amplify/interactions): Upgrade client lex runtime v2 by @elorzafe in #10328
- Merge release into main [ci skip] by @manueliglesias in #10351
- fix(api-graphql): use named PubSub export by @7nohe in #10344
- fix(pubsub): Vite build issues by @stocaaro in #10353
- chore(docs): fix typo in asyncstoragecache.html by @eltociear in #10307
- ci: temp disable observeQuery e2e by @iartemiev in #10392
- chore: Merging changes to release by @stocaaro in #10391
New Contributors
- @7nohe made their first contribution in #10344
- @eltociear made their first contribution in #10307
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.37
2022-09-20 Amplify JS release
What's Changed
- 4.3.34 is causing hermes compilation issues #10284
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.36
2022-09-08 Amplify JS release
What's Changed
Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.35