Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update crypto-js to @4 in aws-amplify@latest #8273

Merged
merged 7 commits into from
May 13, 2021
Merged

Conversation

iartemiev
Copy link
Member

Description of changes

  • Upgrading CryptoJS to 4
  • Adding workaround implementation of WordArray.random for RN since it doesn't support latest CryptoJS

Issue #, if available

#8256

Description of how you validated changes

Checklist

  • PR description included
  • yarn test passes
  • Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lgtm-com
Copy link

lgtm-com bot commented May 13, 2021

This pull request introduces 1 alert when merging 937ff85 into 6528037 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

Copy link
Contributor

@manueliglesias manueliglesias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -19,6 +19,7 @@ import {
SortPredicatesGroup,
SortDirection,
} from './types';
import { WordArray } from 'amazon-cognito-identity-js';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this appear now as a dependency in the package.json? (managed by lerna)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I was curious on this as well?

@@ -68,7 +68,7 @@
"types": "./index.d.ts",
"dependencies": {
"buffer": "4.9.2",
"crypto-js": "^3.3.0",
"crypto-js": "^4.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the version 3 PR, is does not have a ^ do we want to remove the ^ here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, that was a fat finger in 3. I'm updating it

@codecov-commenter
Copy link

codecov-commenter commented May 13, 2021

Codecov Report

Merging #8273 (37e8aea) into main (6528037) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #8273   +/-   ##
=======================================
  Coverage   77.87%   77.87%           
=======================================
  Files         236      236           
  Lines       16513    16514    +1     
  Branches     3539     3539           
=======================================
+ Hits        12859    12860    +1     
  Misses       3543     3543           
  Partials      111      111           
Impacted Files Coverage Δ
packages/amazon-cognito-identity-js/src/index.js 100.00% <100.00%> (ø)
packages/datastore/src/util.ts 81.29% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6528037...37e8aea. Read the comment docs.

Copy link
Contributor

@manueliglesias manueliglesias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@amhinson amhinson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

Copy link
Contributor

@sammartinez sammartinez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🌮

@github-actions
Copy link

This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants