Skip to content

Releases: aws-amplify/amplify-js

2022-11-14 Amplify JS release - [email protected]

14 Nov 17:15
Compare
Choose a tag to compare

New Features:

  • @aws-amplify/api, @aws-amplify/pubsub
  • @aws-amplify/storage
    • Storage.list supports paginated results. You can also set a set page size by using the pageSize 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 author for loops:
          for await (const comment of post.comments) {
           console.log(comment) // iterates over each comment!
          }
      
    • 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
    • PR 10477
  • 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 param
  • aws-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 export MqttProvidertOptions from MqttOverWSProvider provider
  • @aws-amplify/core: Removed JS export from in favor of individual function exports #10528
  • @aws-amplify/storage: Storage.list now accepts pageSize instead of maxKeys and also the return value is an object that has result 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)

Breaking change upgrade notes

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 with importHelpers option enabled
  • 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 and amazon-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...
Read more

2022-11-03 Amplify JS release - [email protected]

04 Nov 00:26
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.43

2022-10-27 Amplify JS release - [email protected]

27 Oct 22:34
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.42

2022-10-25 Amplify JS release - [email protected]

26 Oct 04:12
Compare
Choose a tag to compare

What's Changed

Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.41

2022-10-25 Amplify JS release - [email protected]

25 Oct 22:52
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.40

2022-10-13 Amplify JS release - [email protected]

14 Oct 20:52
Compare
Choose a tag to compare

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]

14 Oct 01:11
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.38

2022-09-30 Amplify JS release

30 Sep 19:38
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/aws-amplify/amplify-js/compare/[email protected]@4.3.37

2022-09-20 Amplify JS release

20 Sep 20:40
Compare
Choose a tag to compare

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

09 Sep 00:00
Compare
Choose a tag to compare