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

fix: removed lodash.findlast to use JS code #18167

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

guidari
Copy link
Contributor

@guidari guidari commented Nov 27, 2024

Closes #18097

We are replacing the lodash.findlast with pure Javascript. That way we can get rid of security issues related to this library.

Stackblitz example

Changelog

Removed

  • Removed lodash.findlast

Testing / Reviewing

  • Test ComposedModal, Modal, Notification and OverflowMenu.
  • Wrap focus should work as expected

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for v11-carbon-web-components ready!

Name Link
🔨 Latest commit 81d51d4
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-web-components/deploys/6747230bde79150008c2814c
😎 Deploy Preview https://deploy-preview-18167--v11-carbon-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 54dcb69
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/674722ebc0b29700089621a8
😎 Deploy Preview https://deploy-preview-18167--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 54dcb69
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/674722eb9b506c0008fa1647
😎 Deploy Preview https://deploy-preview-18167--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 81d51d4
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/6747230b1c852f00075dc86c
😎 Deploy Preview https://deploy-preview-18167--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.36%. Comparing base (0da5e37) to head (81d51d4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #18167   +/-   ##
=======================================
  Coverage   83.36%   83.36%           
=======================================
  Files         404      404           
  Lines       14344    14344           
  Branches     4646     4646           
=======================================
  Hits        11958    11958           
  Misses       2225     2225           
  Partials      161      161           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

netlify bot commented Nov 27, 2024

Deploy Preview for v11-carbon-react ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 81d51d4
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/6747230b073e5e00072c178d
😎 Deploy Preview https://deploy-preview-18167--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@guidari guidari marked this pull request as ready for review November 27, 2024 14:20
@guidari guidari requested a review from a team as a code owner November 27, 2024 14:20
Copy link
Member

@alisonjoseph alisonjoseph left a comment

Choose a reason for hiding this comment

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

Tested all components using wrapFocus and they appear to be working correctly. Thanks!

@guidari guidari added this pull request to the merge queue Nov 27, 2024
Merged via the queue into carbon-design-system:main with commit 29d0f18 Nov 27, 2024
40 checks passed
@guidari guidari deleted the 18097-findlast branch November 27, 2024 15:55
guidari added a commit to guidari/carbon that referenced this pull request Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@carbon/react uses [email protected] which has security issues
3 participants