Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aws-amplify/amplify-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: [email protected]
Choose a base ref
...
head repository: aws-amplify/amplify-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: [email protected]
Choose a head ref
  • 6 commits
  • 85 files changed
  • 4 contributors

Commits on Oct 29, 2024

  1. chore(release): Update API docs [skip release]

    aws-amplify-bot committed Oct 29, 2024

    Unverified

    The email in this signature doesn’t match the committer email.
    Copy the full SHA
    4345594 View commit details

Commits on Oct 30, 2024

  1. chore: Merge release into main (#13972)

    joon-won authored Oct 30, 2024
    Copy the full SHA
    caf00e2 View commit details

Commits on Oct 31, 2024

  1. feat(auth): add support for Email MFA (#13945)

    * [Email MFA] Updating fetchMFAPreference and updateMFAPreference (#13720)
    
    * add EMAIL MFA option in fetchMFAPreference
    
    * add EMAIL MFA option in updateMFAPreference
    
    * update fetchMFAPreference tests
    
    * update updateMFAPreference tests
    
    * update bundle size
    
    * remove redundant assertions
    
    * [Email MFA] Add support for EMAIL_OTP during sign in flows (#13745)
    
    * Confirm Sign In With Email OTP
    
    * Confirm Sign In Tests With Email OTP
    
    * Update packages/auth/src/types/models.ts
    
    Co-authored-by: israx <[email protected]>
    
    * Fix Errant Pascal Casing
    
    ---------
    
    Co-authored-by: israx <[email protected]>
    
    * feat(auth): [EMAIL MFA] Sign In / Confirm Sign In With MFA_SETUP (#13760)
    
    * Sign In / Confirm Sign In With MFA_SETUP
    
    * Sign In State Management Tests
    
    * Confirm Sign In Happy Path Tests
    
    * Fix State Management Tests
    
    * Apply Feedback
    
    * loose email matching
    
    * Remove Unnecessary Export
    
    * Update SignInHelpers For Getting Allowed MFA Setup Types
    
    * Add Error Case Unit Tests
    
    * feat(auth): [EMAIL MFA] enable integ tests with backend configuration swapping (#13794)
    
    * chore: enable mfa integ tests
    
    * chore: add mfa-setup test def
    
    * chore: temporarily enable push integ tests
    
    * chore: disable push integ tests
    
    * chore: address test strategy feedback
    
    * chore: use trimmed challenge response
    
    * chore: improved naming
    
    * chore: update bundle size tests
    
    * chore: remove trimmed challenge response
    
    ---------
    
    Co-authored-by: israx <[email protected]>
    jjarvisp and israx authored Oct 31, 2024
    Copy the full SHA
    42db720 View commit details
  2. release(required): Amplify JS release (#13978)

    joon-won authored Oct 31, 2024
    Copy the full SHA
    e9f9657 View commit details
  3. chore(release): Set core metadata [skip release]

    aws-amplify-bot committed Oct 31, 2024
    Copy the full SHA
    3c89069 View commit details
  4. chore(release): Publish [skip release]

     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - [email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - @aws-amplify/[email protected]
     - [email protected]
    aws-amplify-bot committed Oct 31, 2024
    Copy the full SHA
    8e9d263 View commit details
Showing with 1,281 additions and 311 deletions.
  1. +45 −0 .github/integ-config/integ-all.yml
  2. +9 −2 .github/workflows/callable-e2e-test.yml
  3. +1 −0 .github/workflows/callable-e2e-tests.yml
  4. +1 −1 docs/api/assets/navigation.js
  5. +1 −1 docs/api/assets/search.js
  6. +2 −0 docs/api/functions/aws_amplify.api.events.closeAll.html
  7. +10 −0 docs/api/functions/aws_amplify.api.events.connect.html
  8. +15 −0 docs/api/functions/aws_amplify.api.events.post.html
  9. +15 −0 docs/api/interfaces/_aws_amplify_adapter_nextjs.api._Reference_Types_.APIEventsConfig.html
  10. +3 −0 docs/api/interfaces/_aws_amplify_adapter_nextjs.api._Reference_Types_.EventsProviderConfig.html
  11. +3 −2 docs/api/interfaces/_aws_amplify_adapter_nextjs.index._Reference_Types_.AmplifyOutputs.html
  12. +3 −0 ...nterfaces/_aws_amplify_adapter_nextjs.index._Reference_Types_.AmplifyOutputsCustomProperties.html
  13. +3 −2 docs/api/interfaces/aws_amplify.adapter_core.AmplifyOutputs.html
  14. +3 −0 docs/api/interfaces/aws_amplify.adapter_core._Reference_Types_.AmplifyOutputsCustomProperties.html
  15. +16 −0 docs/api/interfaces/aws_amplify.api.EventsChannel.html
  16. +4 −0 docs/api/interfaces/aws_amplify.api.EventsOptions.html
  17. +4 −0 docs/api/interfaces/aws_amplify.api._Reference_Types_.PublishedEvent.html
  18. +4 −0 docs/api/interfaces/aws_amplify.api._Reference_Types_.SubscriptionObserver.html
  19. +2 −2 docs/api/interfaces/aws_amplify.datastore.AuthorizationRule.html
  20. +15 −0 docs/api/interfaces/aws_amplify.index._Reference_Types_.APIEventsConfig.html
  21. +3 −0 docs/api/interfaces/aws_amplify.index._Reference_Types_.EventsProviderConfig.html
  22. +3 −1 docs/api/modules/_aws_amplify_adapter_nextjs.api._Reference_Types_.html
  23. +2 −2 docs/api/modules/_aws_amplify_adapter_nextjs.html
  24. +1 −0 docs/api/modules/_aws_amplify_adapter_nextjs.index._Reference_Types_.html
  25. +2 −2 docs/api/modules/_aws_amplify_datastore_storage_adapter.html
  26. +2 −2 docs/api/modules/_aws_amplify_geo.html
  27. +2 −2 docs/api/modules/_aws_amplify_interactions.html
  28. +2 −2 docs/api/modules/_aws_amplify_predictions.html
  29. +2 −2 docs/api/modules/_aws_amplify_pubsub.html
  30. +1 −0 docs/api/modules/aws_amplify.adapter_core._Reference_Types_.html
  31. +2 −0 docs/api/modules/aws_amplify.api._Reference_Types_.html
  32. +5 −0 docs/api/modules/aws_amplify.api.events.html
  33. +4 −1 docs/api/modules/aws_amplify.api.html
  34. +2 −2 docs/api/modules/aws_amplify.html
  35. +3 −1 docs/api/modules/aws_amplify.index._Reference_Types_.html
  36. +1 −1 docs/api/types/_aws_amplify_adapter_nextjs.api._Reference_Types_.APIConfig.html
  37. +1 −1 docs/api/types/aws_amplify.index._Reference_Types_.APIConfig.html
  38. +4 −0 packages/adapter-nextjs/CHANGELOG.md
  39. +2 −2 packages/adapter-nextjs/package.json
  40. +4 −0 packages/analytics/CHANGELOG.md
  41. +2 −2 packages/analytics/package.json
  42. +4 −0 packages/api-graphql/CHANGELOG.md
  43. +3 −3 packages/api-graphql/package.json
  44. +4 −0 packages/api-rest/CHANGELOG.md
  45. +2 −2 packages/api-rest/package.json
  46. +4 −0 packages/api/CHANGELOG.md
  47. +3 −3 packages/api/package.json
  48. +6 −0 packages/auth/CHANGELOG.md
  49. +22 −2 packages/auth/__tests__/providers/cognito/confirmSignInErrorCases.test.ts
  50. +442 −4 packages/auth/__tests__/providers/cognito/confirmSignInHappyCases.test.ts
  51. +70 −21 packages/auth/__tests__/providers/cognito/fetchMFAPreference.test.ts
  52. +40 −11 packages/auth/__tests__/providers/cognito/signInErrorCases.test.ts
  53. +24 −1 packages/auth/__tests__/providers/cognito/testUtils/authApiTestParams.ts
  54. +41 −23 packages/auth/__tests__/providers/cognito/updateMFAPreference.test.ts
  55. +2 −2 packages/auth/package.json
  56. +4 −2 packages/auth/src/common/AuthErrorStrings.ts
  57. +23 −1 packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/types/sdk.ts
  58. +2 −2 packages/auth/src/providers/cognito/apis/confirmSignIn.ts
  59. +2 −1 packages/auth/src/providers/cognito/apis/updateMFAPreference.ts
  60. +1 −0 packages/auth/src/providers/cognito/types/inputs.ts
  61. +246 −166 packages/auth/src/providers/cognito/utils/signInHelpers.ts
  62. +48 −1 packages/auth/src/types/models.ts
  63. +6 −0 packages/aws-amplify/CHANGELOG.md
  64. +9 −9 packages/aws-amplify/package.json
  65. +4 −0 packages/core/CHANGELOG.md
  66. +1 −1 packages/core/metadata
  67. +1 −1 packages/core/package.json
  68. +4 −0 packages/datastore-storage-adapter/CHANGELOG.md
  69. +3 −3 packages/datastore-storage-adapter/package.json
  70. +4 −0 packages/datastore/CHANGELOG.md
  71. +3 −3 packages/datastore/package.json
  72. +4 −0 packages/geo/CHANGELOG.md
  73. +2 −2 packages/geo/package.json
  74. +4 −0 packages/interactions/CHANGELOG.md
  75. +2 −2 packages/interactions/package.json
  76. +4 −0 packages/notifications/CHANGELOG.md
  77. +2 −2 packages/notifications/package.json
  78. +4 −0 packages/predictions/CHANGELOG.md
  79. +3 −3 packages/predictions/package.json
  80. +4 −0 packages/pubsub/CHANGELOG.md
  81. +3 −3 packages/pubsub/package.json
  82. +4 −0 packages/storage/CHANGELOG.md
  83. +2 −2 packages/storage/package.json
  84. +4 −0 scripts/tsc-compliance-test/CHANGELOG.md
  85. +2 −2 scripts/tsc-compliance-test/package.json
45 changes: 45 additions & 0 deletions .github/integ-config/integ-all.yml
Original file line number Diff line number Diff line change
@@ -870,3 +870,48 @@ tests:
spec: ssr-context-isolation
yarn_script: ci:ssr-context-isolation
browser: [chrome]
- test_name: integ_next_mfa_req_email
desc: 'mfa required with email sign in attribute'
framework: next
category: auth
sample_name: [mfa]
spec: mfa-req-email
browser: [chrome]
env:
NEXT_PUBLIC_BACKEND_CONFIG: mfa-req-email
- test_name: integ_next_mfa_req_phone
desc: 'mfa required with phone sign in attribute'
framework: next
category: auth
sample_name: [mfa]
spec: mfa-req-phone
browser: [chrome]
env:
NEXT_PUBLIC_BACKEND_CONFIG: mfa-req-phone
- test_name: integ_next_mfa_opt_email
desc: 'mfa optional with email sign in attribute'
framework: next
category: auth
sample_name: [mfa]
spec: mfa-opt-email
browser: [chrome]
env:
NEXT_PUBLIC_BACKEND_CONFIG: mfa-opt-email
- test_name: integ_next_mfa_opt_phone
desc: 'mfa optional with phone sign in attribute'
framework: next
category: auth
sample_name: [mfa]
spec: mfa-opt-phone
browser: [chrome]
env:
NEXT_PUBLIC_BACKEND_CONFIG: mfa-opt-phone
- test_name: integ_next_mfa_setup
desc: 'mfa setup sign in flow'
framework: next
category: auth
sample_name: [mfa]
spec: mfa-setup
browser: [chrome]
env:
NEXT_PUBLIC_BACKEND_CONFIG: mfa-setup
11 changes: 9 additions & 2 deletions .github/workflows/callable-e2e-test.yml
Original file line number Diff line number Diff line change
@@ -37,6 +37,9 @@ on:
yarn_script:
required: false
type: string
env:
required: false
type: string

env:
AMPLIFY_DIR: /home/runner/work/amplify-js/amplify-js/amplify-js
@@ -84,6 +87,7 @@ jobs:
E2E_RETRY_COUNT: ${{ inputs.retry_count }}
E2E_TEST_NAME: ${{ inputs.test_name }}
E2E_YARN_SCRIPT: ${{ inputs.yarn_script }}
E2E_ENV: ${{ inputs.env }}
run: |
if [ -z "$E2E_YARN_SCRIPT" ]; then
../amplify-js/scripts/retry-yarn-script.sh -s \
@@ -95,7 +99,8 @@ jobs:
$E2E_BROWSER \
dev \
$E2E_BACKEND \
$E2E_AMPLIFY_JS_DIR" \
$E2E_AMPLIFY_JS_DIR \
--env $(echo $E2E_ENV | jq -r 'tostring')" \
$E2E_YARN_SCRIPT \
-n $E2E_RETRY_COUNT
else
@@ -115,6 +120,7 @@ jobs:
E2E_RETRY_COUNT: ${{ inputs.retry_count }}
E2E_TEST_NAME: ${{ inputs.test_name }}
E2E_YARN_SCRIPT: ${{ inputs.yarn_script }}
E2E_ENV: ${{ inputs.env }}
run: |
if [ -z "$E2E_YARN_SCRIPT" ]; then
../amplify-js/scripts/retry-yarn-script.sh -s \
@@ -126,7 +132,8 @@ jobs:
$E2E_BROWSER \
prod \
$E2E_BACKEND \
$E2E_AMPLIFY_JS_DIR" \
$E2E_AMPLIFY_JS_DIR \
--env $(echo $E2E_ENV | jq -r 'tostring')" \
$E2E_YARN_SCRIPT \
-n $E2E_RETRY_COUNT
else
1 change: 1 addition & 0 deletions .github/workflows/callable-e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ jobs:
timeout_minutes: ${{ matrix.integ-config.timeout_minutes || 35 }}
retry_count: ${{ matrix.integ-config.retry_count || 3 }}
yarn_script: ${{ matrix.integ-config.yarn_script || '' }}
env: ${{ matrix.integ-config.env && toJSON(matrix.integ-config.env) || '{}' }}

# e2e-test-runner-headless:
# name: E2E test runnner_headless
Loading