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

[Snyk] Upgrade react-router-dom from 5.2.1 to 5.3.0 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade react-router-dom from 5.2.1 to 5.3.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 22 days ago, on 2021-09-03.
Release notes
Package name: react-router-dom
  • 5.3.0 - 2021-09-03

    This release of react-router-dom adds support for passing a function to either the className or style props to conditionally apply values based on the link's active state.

    This provides similar functionality as the existing activeClassName and activeStyle props, but is a bit more powerful. For example, you can now easily apply styles exclusively to an inactive NavLink as well. This offers a nicer experience for folks who use utility class-based CSS tools such as Tailwind.

    function Comp() {
      return (
        <NavLink
          to="/"
          className={isActive =>
            `px-3 py-2 ${isActive ? 'text-gray-200' : 'text-gray-800'}`
          }
        >
          Home
        </NavLink>
      );
    }

    Note that as of v6.0.0-beta.3, the activeClassName and activeStyle props are removed completely. Adding support for functional className and style props to both v5 and v6 will give v5 users an easier upgrade path.

    Thanks to @ tim-phillips for raising the issue that inspired the change! 🥳

  • 5.2.1 - 2021-08-27

    This release fixes a bug with <Link> so that, when the to location is the same as the current, the history state entry is replaced instead of pushed to the stack. See #5362 for details. 🥳

    Thanks to @ guidobouman for the PR and for everyone else who weighed in for the fix!

from react-router-dom GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@netlify
Copy link

netlify bot commented Sep 25, 2021

✔️ Deploy Preview for mobilefy ready!

🔨 Explore the source changes: 0e209a4

🔍 Inspect the deploy log: https://app.netlify.com/sites/mobilefy/deploys/614f8a746fff620007d12f65

😎 Browse the preview: https://deploy-preview-2--mobilefy.netlify.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant